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.
package/openapi.json CHANGED
@@ -106,7 +106,14 @@
106
106
  {
107
107
  "name": "authorization",
108
108
  "description": " make required after integ is done",
109
- "in": "header",
109
+ "in": "query",
110
+ "required": false,
111
+ "type": "string"
112
+ },
113
+ {
114
+ "name": "auth",
115
+ "description": " made optional to support header auth clients",
116
+ "in": "query",
110
117
  "required": false,
111
118
  "type": "string"
112
119
  },
@@ -123,13 +130,6 @@
123
130
  "required": true,
124
131
  "type": "integer",
125
132
  "format": "int16"
126
- },
127
- {
128
- "name": "auth",
129
- "description": " made optional to support header auth clients",
130
- "in": "query",
131
- "required": false,
132
- "type": "string"
133
133
  }
134
134
  ],
135
135
  "tags": [
@@ -163,7 +163,7 @@
163
163
  {
164
164
  "name": "authorization",
165
165
  "description": " make required after integ is done",
166
- "in": "header",
166
+ "in": "query",
167
167
  "required": false,
168
168
  "type": "string"
169
169
  },
@@ -247,13 +247,6 @@
247
247
  }
248
248
  },
249
249
  "parameters": [
250
- {
251
- "name": "authorization",
252
- "description": " make required after integ is done",
253
- "in": "header",
254
- "required": false,
255
- "type": "string"
256
- },
257
250
  {
258
251
  "name": "account_index",
259
252
  "in": "query",
@@ -261,6 +254,13 @@
261
254
  "type": "integer",
262
255
  "format": "int64"
263
256
  },
257
+ {
258
+ "name": "authorization",
259
+ "description": " make required after integ is done",
260
+ "in": "query",
261
+ "required": false,
262
+ "type": "string"
263
+ },
264
264
  {
265
265
  "name": "auth",
266
266
  "description": " made optional to support header auth clients",
@@ -354,12 +354,6 @@
354
354
  }
355
355
  },
356
356
  "parameters": [
357
- {
358
- "name": "authorization",
359
- "in": "header",
360
- "required": false,
361
- "type": "string"
362
- },
363
357
  {
364
358
  "name": "index",
365
359
  "in": "query",
@@ -392,20 +386,28 @@
392
386
  "type": "string"
393
387
  },
394
388
  {
395
- "name": "types",
389
+ "name": "authorization",
390
+ "description": " make required after integ is done",
396
391
  "in": "query",
397
392
  "required": false,
398
- "type": "array",
399
- "items": {
400
- "type": "integer",
401
- "format": "uint8"
402
- }
393
+ "type": "string"
403
394
  },
404
395
  {
405
396
  "name": "auth",
397
+ "description": " made optional to support header auth clients",
406
398
  "in": "query",
407
399
  "required": false,
408
400
  "type": "string"
401
+ },
402
+ {
403
+ "name": "types",
404
+ "in": "query",
405
+ "required": false,
406
+ "type": "array",
407
+ "items": {
408
+ "type": "integer",
409
+ "format": "uint8"
410
+ }
409
411
  }
410
412
  ],
411
413
  "tags": [
@@ -452,6 +454,98 @@
452
454
  "description": "Get accounts by l1_address returns all accounts associated with the given L1 address"
453
455
  }
454
456
  },
457
+ "/api/v1/airdrop": {
458
+ "get": {
459
+ "summary": "airdrop",
460
+ "operationId": "airdrop",
461
+ "responses": {
462
+ "200": {
463
+ "description": "A successful response.",
464
+ "schema": {
465
+ "$ref": "#/definitions/AirdropPercentages"
466
+ }
467
+ },
468
+ "400": {
469
+ "description": "Bad request",
470
+ "schema": {
471
+ "$ref": "#/definitions/ResultCode"
472
+ }
473
+ }
474
+ },
475
+ "parameters": [
476
+ {
477
+ "name": "authorization",
478
+ "description": " make required after integ is done",
479
+ "in": "header",
480
+ "required": false,
481
+ "type": "string"
482
+ },
483
+ {
484
+ "name": "l1_address",
485
+ "in": "query",
486
+ "required": true,
487
+ "type": "string"
488
+ },
489
+ {
490
+ "name": "auth",
491
+ "in": "query",
492
+ "required": false,
493
+ "type": "string"
494
+ }
495
+ ],
496
+ "tags": [
497
+ "account"
498
+ ],
499
+ "consumes": [
500
+ "multipart/form-data"
501
+ ],
502
+ "description": "Get airdrop percentages"
503
+ }
504
+ },
505
+ "/api/v1/airdrop/create": {
506
+ "post": {
507
+ "summary": "airdrop_create",
508
+ "operationId": "airdrop_create",
509
+ "responses": {
510
+ "200": {
511
+ "description": "A successful response.",
512
+ "schema": {
513
+ "$ref": "#/definitions/ResultCode"
514
+ }
515
+ },
516
+ "400": {
517
+ "description": "Bad request",
518
+ "schema": {
519
+ "$ref": "#/definitions/ResultCode"
520
+ }
521
+ }
522
+ },
523
+ "parameters": [
524
+ {
525
+ "name": "authorization",
526
+ "description": " make required after integ is done",
527
+ "in": "header",
528
+ "required": false,
529
+ "type": "string"
530
+ },
531
+ {
532
+ "name": "body",
533
+ "in": "body",
534
+ "required": true,
535
+ "schema": {
536
+ "$ref": "#/definitions/ReqCreateAirdropPercentages"
537
+ }
538
+ }
539
+ ],
540
+ "tags": [
541
+ "account"
542
+ ],
543
+ "consumes": [
544
+ "multipart/form-data"
545
+ ],
546
+ "description": "Create airdrop percentages"
547
+ }
548
+ },
455
549
  "/api/v1/announcement": {
456
550
  "get": {
457
551
  "summary": "announcement",
@@ -986,17 +1080,10 @@
986
1080
  {
987
1081
  "name": "authorization",
988
1082
  "description": " make required after integ is done",
989
- "in": "header",
1083
+ "in": "query",
990
1084
  "required": false,
991
1085
  "type": "string"
992
1086
  },
993
- {
994
- "name": "account_index",
995
- "in": "query",
996
- "required": true,
997
- "type": "integer",
998
- "format": "int64"
999
- },
1000
1087
  {
1001
1088
  "name": "auth",
1002
1089
  "description": " made optional to support header auth clients",
@@ -1004,6 +1091,13 @@
1004
1091
  "required": false,
1005
1092
  "type": "string"
1006
1093
  },
1094
+ {
1095
+ "name": "account_index",
1096
+ "in": "query",
1097
+ "required": true,
1098
+ "type": "integer",
1099
+ "format": "int64"
1100
+ },
1007
1101
  {
1008
1102
  "name": "l1_address",
1009
1103
  "in": "query",
@@ -1141,12 +1235,14 @@
1141
1235
  "parameters": [
1142
1236
  {
1143
1237
  "name": "authorization",
1144
- "in": "header",
1238
+ "description": " make required after integ is done",
1239
+ "in": "query",
1145
1240
  "required": false,
1146
1241
  "type": "string"
1147
1242
  },
1148
1243
  {
1149
1244
  "name": "auth",
1245
+ "description": " made optional to support header auth clients",
1150
1246
  "in": "query",
1151
1247
  "required": false,
1152
1248
  "type": "string"
@@ -1277,23 +1373,23 @@
1277
1373
  {
1278
1374
  "name": "authorization",
1279
1375
  "description": " make required after integ is done",
1280
- "in": "header",
1376
+ "in": "query",
1281
1377
  "required": false,
1282
1378
  "type": "string"
1283
1379
  },
1284
- {
1285
- "name": "account_index",
1286
- "in": "query",
1287
- "required": true,
1288
- "type": "integer",
1289
- "format": "int64"
1290
- },
1291
1380
  {
1292
1381
  "name": "auth",
1293
1382
  "description": " made optional to support header auth clients",
1294
1383
  "in": "query",
1295
1384
  "required": false,
1296
1385
  "type": "string"
1386
+ },
1387
+ {
1388
+ "name": "account_index",
1389
+ "in": "query",
1390
+ "required": true,
1391
+ "type": "integer",
1392
+ "format": "int64"
1297
1393
  }
1298
1394
  ],
1299
1395
  "tags": [
@@ -1734,7 +1830,7 @@
1734
1830
  {
1735
1831
  "name": "authorization",
1736
1832
  "description": " make required after integ is done",
1737
- "in": "header",
1833
+ "in": "query",
1738
1834
  "required": false,
1739
1835
  "type": "string"
1740
1836
  },
@@ -2036,12 +2132,14 @@
2036
2132
  "parameters": [
2037
2133
  {
2038
2134
  "name": "authorization",
2039
- "in": "header",
2135
+ "description": " make required after integ is done",
2136
+ "in": "query",
2040
2137
  "required": false,
2041
2138
  "type": "string"
2042
2139
  },
2043
2140
  {
2044
2141
  "name": "auth",
2142
+ "description": " made optional to support header auth clients",
2045
2143
  "in": "query",
2046
2144
  "required": false,
2047
2145
  "type": "string"
@@ -2139,12 +2237,14 @@
2139
2237
  "parameters": [
2140
2238
  {
2141
2239
  "name": "authorization",
2142
- "in": "header",
2240
+ "description": " make required after integ is done",
2241
+ "in": "query",
2143
2242
  "required": false,
2144
2243
  "type": "string"
2145
2244
  },
2146
2245
  {
2147
2246
  "name": "auth",
2247
+ "description": " made optional to support header auth clients",
2148
2248
  "in": "query",
2149
2249
  "required": false,
2150
2250
  "type": "string"
@@ -2222,12 +2322,14 @@
2222
2322
  "parameters": [
2223
2323
  {
2224
2324
  "name": "authorization",
2225
- "in": "header",
2325
+ "description": " make required after integ is done",
2326
+ "in": "query",
2226
2327
  "required": false,
2227
2328
  "type": "string"
2228
2329
  },
2229
2330
  {
2230
2331
  "name": "auth",
2332
+ "description": " made optional to support header auth clients",
2231
2333
  "in": "query",
2232
2334
  "required": false,
2233
2335
  "type": "string"
@@ -2388,7 +2490,7 @@
2388
2490
  {
2389
2491
  "name": "authorization",
2390
2492
  "description": " make required after integ is done",
2391
- "in": "header",
2493
+ "in": "query",
2392
2494
  "required": false,
2393
2495
  "type": "string"
2394
2496
  },
@@ -2482,7 +2584,7 @@
2482
2584
  {
2483
2585
  "name": "authorization",
2484
2586
  "description": " make required after integ is done",
2485
- "in": "header",
2587
+ "in": "query",
2486
2588
  "required": false,
2487
2589
  "type": "string"
2488
2590
  },
@@ -2716,6 +2818,135 @@
2716
2818
  "description": "Set account metadata"
2717
2819
  }
2718
2820
  },
2821
+ "/api/v1/tokens": {
2822
+ "get": {
2823
+ "summary": "tokens",
2824
+ "operationId": "tokens",
2825
+ "responses": {
2826
+ "200": {
2827
+ "description": "A successful response.",
2828
+ "schema": {
2829
+ "$ref": "#/definitions/RespGetApiTokens"
2830
+ }
2831
+ },
2832
+ "400": {
2833
+ "description": "Bad request",
2834
+ "schema": {
2835
+ "$ref": "#/definitions/ResultCode"
2836
+ }
2837
+ }
2838
+ },
2839
+ "parameters": [
2840
+ {
2841
+ "name": "authorization",
2842
+ "description": " make required after integ is done",
2843
+ "in": "header",
2844
+ "required": false,
2845
+ "type": "string"
2846
+ },
2847
+ {
2848
+ "name": "account_index",
2849
+ "in": "query",
2850
+ "required": true,
2851
+ "type": "integer",
2852
+ "format": "int64"
2853
+ }
2854
+ ],
2855
+ "tags": [
2856
+ "account"
2857
+ ],
2858
+ "consumes": [
2859
+ "multipart/form-data"
2860
+ ],
2861
+ "description": "Get api tokens of an account"
2862
+ }
2863
+ },
2864
+ "/api/v1/tokens/create": {
2865
+ "post": {
2866
+ "summary": "tokens_create",
2867
+ "operationId": "tokens_create",
2868
+ "responses": {
2869
+ "200": {
2870
+ "description": "A successful response.",
2871
+ "schema": {
2872
+ "$ref": "#/definitions/RespPostApiToken"
2873
+ }
2874
+ },
2875
+ "400": {
2876
+ "description": "Bad request",
2877
+ "schema": {
2878
+ "$ref": "#/definitions/ResultCode"
2879
+ }
2880
+ }
2881
+ },
2882
+ "parameters": [
2883
+ {
2884
+ "name": "authorization",
2885
+ "in": "header",
2886
+ "required": false,
2887
+ "type": "string"
2888
+ },
2889
+ {
2890
+ "name": "body",
2891
+ "in": "body",
2892
+ "required": true,
2893
+ "schema": {
2894
+ "$ref": "#/definitions/ReqPostApiToken"
2895
+ }
2896
+ }
2897
+ ],
2898
+ "tags": [
2899
+ "account"
2900
+ ],
2901
+ "consumes": [
2902
+ "multipart/form-data"
2903
+ ],
2904
+ "description": "Create api token"
2905
+ }
2906
+ },
2907
+ "/api/v1/tokens/revoke": {
2908
+ "post": {
2909
+ "summary": "tokens_revoke",
2910
+ "operationId": "tokens_revoke",
2911
+ "responses": {
2912
+ "200": {
2913
+ "description": "A successful response.",
2914
+ "schema": {
2915
+ "$ref": "#/definitions/RespRevokeApiToken"
2916
+ }
2917
+ },
2918
+ "400": {
2919
+ "description": "Bad request",
2920
+ "schema": {
2921
+ "$ref": "#/definitions/ResultCode"
2922
+ }
2923
+ }
2924
+ },
2925
+ "parameters": [
2926
+ {
2927
+ "name": "authorization",
2928
+ "in": "header",
2929
+ "required": false,
2930
+ "type": "string"
2931
+ },
2932
+ {
2933
+ "name": "body",
2934
+ "in": "body",
2935
+ "required": true,
2936
+ "schema": {
2937
+ "$ref": "#/definitions/ReqRevokeApiToken"
2938
+ }
2939
+ }
2940
+ ],
2941
+ "tags": [
2942
+ "account"
2943
+ ],
2944
+ "consumes": [
2945
+ "multipart/form-data"
2946
+ ],
2947
+ "description": "Revoke api token"
2948
+ }
2949
+ },
2719
2950
  "/api/v1/trades": {
2720
2951
  "get": {
2721
2952
  "summary": "trades",
@@ -2737,12 +2968,14 @@
2737
2968
  "parameters": [
2738
2969
  {
2739
2970
  "name": "authorization",
2740
- "in": "header",
2971
+ "description": " make required after integ is done",
2972
+ "in": "query",
2741
2973
  "required": false,
2742
2974
  "type": "string"
2743
2975
  },
2744
2976
  {
2745
2977
  "name": "auth",
2978
+ "description": " made optional to support header auth clients",
2746
2979
  "in": "query",
2747
2980
  "required": false,
2748
2981
  "type": "string"
@@ -2888,17 +3121,10 @@
2888
3121
  {
2889
3122
  "name": "authorization",
2890
3123
  "description": " make required after integ is done",
2891
- "in": "header",
3124
+ "in": "query",
2892
3125
  "required": false,
2893
3126
  "type": "string"
2894
3127
  },
2895
- {
2896
- "name": "account_index",
2897
- "in": "query",
2898
- "required": true,
2899
- "type": "integer",
2900
- "format": "int64"
2901
- },
2902
3128
  {
2903
3129
  "name": "auth",
2904
3130
  "description": " made optional to support header auth clients",
@@ -2906,6 +3132,13 @@
2906
3132
  "required": false,
2907
3133
  "type": "string"
2908
3134
  },
3135
+ {
3136
+ "name": "account_index",
3137
+ "in": "query",
3138
+ "required": true,
3139
+ "type": "integer",
3140
+ "format": "int64"
3141
+ },
2909
3142
  {
2910
3143
  "name": "cursor",
2911
3144
  "in": "query",
@@ -2943,12 +3176,14 @@
2943
3176
  "parameters": [
2944
3177
  {
2945
3178
  "name": "authorization",
2946
- "in": "header",
3179
+ "description": " make required after integ is done",
3180
+ "in": "query",
2947
3181
  "required": false,
2948
3182
  "type": "string"
2949
3183
  },
2950
3184
  {
2951
3185
  "name": "auth",
3186
+ "description": " made optional to support header auth clients",
2952
3187
  "in": "query",
2953
3188
  "required": false,
2954
3189
  "type": "string"
@@ -3125,17 +3360,10 @@
3125
3360
  {
3126
3361
  "name": "authorization",
3127
3362
  "description": " make required after integ is done",
3128
- "in": "header",
3363
+ "in": "query",
3129
3364
  "required": false,
3130
3365
  "type": "string"
3131
3366
  },
3132
- {
3133
- "name": "account_index",
3134
- "in": "query",
3135
- "required": true,
3136
- "type": "integer",
3137
- "format": "int64"
3138
- },
3139
3367
  {
3140
3368
  "name": "auth",
3141
3369
  "description": " made optional to support header auth clients",
@@ -3143,6 +3371,13 @@
3143
3371
  "required": false,
3144
3372
  "type": "string"
3145
3373
  },
3374
+ {
3375
+ "name": "account_index",
3376
+ "in": "query",
3377
+ "required": true,
3378
+ "type": "integer",
3379
+ "format": "int64"
3380
+ },
3146
3381
  {
3147
3382
  "name": "cursor",
3148
3383
  "in": "query",
@@ -3790,6 +4025,41 @@
3790
4025
  "total_volume"
3791
4026
  ]
3792
4027
  },
4028
+ "AirdropPercentageItem": {
4029
+ "type": "object",
4030
+ "properties": {
4031
+ "l1_address": {
4032
+ "type": "string"
4033
+ },
4034
+ "percentage": {
4035
+ "type": "string"
4036
+ }
4037
+ },
4038
+ "title": "AirdropPercentageItem",
4039
+ "required": [
4040
+ "l1_address",
4041
+ "percentage"
4042
+ ]
4043
+ },
4044
+ "AirdropPercentages": {
4045
+ "type": "object",
4046
+ "properties": {
4047
+ "l1_address": {
4048
+ "type": "string"
4049
+ },
4050
+ "percentages": {
4051
+ "type": "array",
4052
+ "items": {
4053
+ "$ref": "#/definitions/AirdropPercentageItem"
4054
+ }
4055
+ }
4056
+ },
4057
+ "title": "AirdropPercentages",
4058
+ "required": [
4059
+ "l1_address",
4060
+ "percentages"
4061
+ ]
4062
+ },
3793
4063
  "Announcement": {
3794
4064
  "type": "object",
3795
4065
  "properties": {
@@ -3845,29 +4115,74 @@
3845
4115
  "properties": {
3846
4116
  "account_index": {
3847
4117
  "type": "integer",
3848
- "format": "int64",
3849
- "example": "3"
4118
+ "format": "int64",
4119
+ "example": "3"
4120
+ },
4121
+ "api_key_index": {
4122
+ "type": "integer",
4123
+ "format": "uint8",
4124
+ "example": "0"
4125
+ },
4126
+ "nonce": {
4127
+ "type": "integer",
4128
+ "format": "int64",
4129
+ "example": "722"
4130
+ },
4131
+ "public_key": {
4132
+ "type": "string"
4133
+ }
4134
+ },
4135
+ "title": "ApiKey",
4136
+ "required": [
4137
+ "account_index",
4138
+ "api_key_index",
4139
+ "nonce",
4140
+ "public_key"
4141
+ ]
4142
+ },
4143
+ "ApiToken": {
4144
+ "type": "object",
4145
+ "properties": {
4146
+ "token_id": {
4147
+ "type": "integer",
4148
+ "format": "int64"
4149
+ },
4150
+ "api_token": {
4151
+ "type": "string"
4152
+ },
4153
+ "name": {
4154
+ "type": "string"
4155
+ },
4156
+ "account_index": {
4157
+ "type": "integer",
4158
+ "format": "int64"
3850
4159
  },
3851
- "api_key_index": {
4160
+ "expiry": {
3852
4161
  "type": "integer",
3853
- "format": "uint8",
3854
- "example": "0"
4162
+ "format": "int64"
3855
4163
  },
3856
- "nonce": {
3857
- "type": "integer",
3858
- "format": "int64",
3859
- "example": "722"
4164
+ "sub_account_access": {
4165
+ "type": "boolean",
4166
+ "format": "boolean"
3860
4167
  },
3861
- "public_key": {
4168
+ "revoked": {
4169
+ "type": "boolean",
4170
+ "format": "boolean"
4171
+ },
4172
+ "scopes": {
3862
4173
  "type": "string"
3863
4174
  }
3864
4175
  },
3865
- "title": "ApiKey",
4176
+ "title": "ApiToken",
3866
4177
  "required": [
4178
+ "token_id",
4179
+ "api_token",
4180
+ "name",
3867
4181
  "account_index",
3868
- "api_key_index",
3869
- "nonce",
3870
- "public_key"
4182
+ "expiry",
4183
+ "sub_account_access",
4184
+ "revoked",
4185
+ "scopes"
3871
4186
  ]
3872
4187
  },
3873
4188
  "Asset": {
@@ -3954,6 +4269,19 @@
3954
4269
  "asset_details"
3955
4270
  ]
3956
4271
  },
4272
+ "Auth": {
4273
+ "type": "object",
4274
+ "properties": {
4275
+ "auth": {
4276
+ "type": "string",
4277
+ "description": " made optional to support header auth clients"
4278
+ }
4279
+ },
4280
+ "title": "Auth",
4281
+ "required": [
4282
+ "auth"
4283
+ ]
4284
+ },
3957
4285
  "Block": {
3958
4286
  "type": "object",
3959
4287
  "properties": {
@@ -6963,6 +7291,29 @@
6963
7291
  "new_tier"
6964
7292
  ]
6965
7293
  },
7294
+ "ReqCreateAirdropPercentages": {
7295
+ "type": "object",
7296
+ "properties": {
7297
+ "l1_address": {
7298
+ "type": "string"
7299
+ },
7300
+ "percentages": {
7301
+ "type": "string"
7302
+ },
7303
+ "signature": {
7304
+ "type": "string"
7305
+ },
7306
+ "auth": {
7307
+ "type": "string"
7308
+ }
7309
+ },
7310
+ "title": "ReqCreateAirdropPercentages",
7311
+ "required": [
7312
+ "l1_address",
7313
+ "percentages",
7314
+ "signature"
7315
+ ]
7316
+ },
6966
7317
  "ReqCreateIntentAddress": {
6967
7318
  "type": "object",
6968
7319
  "properties": {
@@ -7026,7 +7377,8 @@
7026
7377
  "type": "object",
7027
7378
  "properties": {
7028
7379
  "auth": {
7029
- "type": "string"
7380
+ "type": "string",
7381
+ "description": " made optional to support header auth clients"
7030
7382
  },
7031
7383
  "account_index": {
7032
7384
  "type": "integer",
@@ -7094,6 +7446,10 @@
7094
7446
  "ReqGetAccountActiveOrders": {
7095
7447
  "type": "object",
7096
7448
  "properties": {
7449
+ "auth": {
7450
+ "type": "string",
7451
+ "description": " made optional to support header auth clients"
7452
+ },
7097
7453
  "account_index": {
7098
7454
  "type": "integer",
7099
7455
  "format": "int64"
@@ -7101,10 +7457,6 @@
7101
7457
  "market_id": {
7102
7458
  "type": "integer",
7103
7459
  "format": "int16"
7104
- },
7105
- "auth": {
7106
- "type": "string",
7107
- "description": " made optional to support header auth clients"
7108
7460
  }
7109
7461
  },
7110
7462
  "title": "ReqGetAccountActiveOrders",
@@ -7227,7 +7579,8 @@
7227
7579
  "type": "object",
7228
7580
  "properties": {
7229
7581
  "auth": {
7230
- "type": "string"
7582
+ "type": "string",
7583
+ "description": " made optional to support header auth clients"
7231
7584
  },
7232
7585
  "by": {
7233
7586
  "type": "string",
@@ -7301,18 +7654,47 @@
7301
7654
  "value": {
7302
7655
  "type": "string"
7303
7656
  },
7657
+ "auth": {
7658
+ "type": "string",
7659
+ "description": " made optional to support header auth clients"
7660
+ },
7304
7661
  "types": {
7305
7662
  "type": "array",
7306
7663
  "items": {
7307
7664
  "type": "integer",
7308
7665
  "format": "uint8"
7309
7666
  }
7667
+ }
7668
+ },
7669
+ "title": "ReqGetAccountTxs"
7670
+ },
7671
+ "ReqGetAirdropPercentages": {
7672
+ "type": "object",
7673
+ "properties": {
7674
+ "l1_address": {
7675
+ "type": "string"
7310
7676
  },
7311
7677
  "auth": {
7312
7678
  "type": "string"
7313
7679
  }
7314
7680
  },
7315
- "title": "ReqGetAccountTxs"
7681
+ "title": "ReqGetAirdropPercentages",
7682
+ "required": [
7683
+ "l1_address"
7684
+ ]
7685
+ },
7686
+ "ReqGetApiTokens": {
7687
+ "type": "object",
7688
+ "properties": {
7689
+ "account_index": {
7690
+ "type": "integer",
7691
+ "format": "int64"
7692
+ }
7693
+ },
7694
+ "title": "ReqGetApiTokens",
7695
+ "required": [
7696
+ "account_index"
7697
+ ]
7316
7698
  },
7317
7699
  "ReqGetAssetDetails": {
7318
7700
  "type": "object",
@@ -7449,14 +7831,14 @@
7449
7831
  "ReqGetDepositHistory": {
7450
7832
  "type": "object",
7451
7833
  "properties": {
7452
- "account_index": {
7453
- "type": "integer",
7454
- "format": "int64"
7455
- },
7456
7834
  "auth": {
7457
7835
  "type": "string",
7458
7836
  "description": " made optional to support header auth clients"
7459
7837
  },
7838
+ "account_index": {
7839
+ "type": "integer",
7840
+ "format": "int64"
7841
+ },
7460
7842
  "l1_address": {
7461
7843
  "type": "string"
7462
7844
  },
@@ -7485,13 +7867,13 @@
7485
7867
  "ReqGetFastWithdrawInfo": {
7486
7868
  "type": "object",
7487
7869
  "properties": {
7488
- "account_index": {
7489
- "type": "integer",
7490
- "format": "int64"
7491
- },
7492
7870
  "auth": {
7493
7871
  "type": "string",
7494
7872
  "description": " made optional to support header auth clients"
7873
+ },
7874
+ "account_index": {
7875
+ "type": "integer",
7876
+ "format": "int64"
7495
7877
  }
7496
7878
  },
7497
7879
  "title": "ReqGetFastWithdrawInfo",
@@ -7733,7 +8115,8 @@
7733
8115
  "type": "object",
7734
8116
  "properties": {
7735
8117
  "auth": {
7736
- "type": "string"
8118
+ "type": "string",
8119
+ "description": " made optional to support header auth clients"
7737
8120
  },
7738
8121
  "account_index": {
7739
8122
  "type": "integer",
@@ -7773,7 +8156,8 @@
7773
8156
  "type": "object",
7774
8157
  "properties": {
7775
8158
  "auth": {
7776
- "type": "string"
8159
+ "type": "string",
8160
+ "description": " made optional to support header auth clients"
7777
8161
  },
7778
8162
  "filter": {
7779
8163
  "type": "string",
@@ -7924,7 +8308,8 @@
7924
8308
  "type": "object",
7925
8309
  "properties": {
7926
8310
  "auth": {
7927
- "type": "string"
8311
+ "type": "string",
8312
+ "description": " made optional to support header auth clients"
7928
8313
  },
7929
8314
  "market_id": {
7930
8315
  "type": "integer",
@@ -8010,7 +8395,8 @@
8010
8395
  "type": "object",
8011
8396
  "properties": {
8012
8397
  "auth": {
8013
- "type": "string"
8398
+ "type": "string",
8399
+ "description": " made optional to support header auth clients"
8014
8400
  },
8015
8401
  "account_index": {
8016
8402
  "type": "integer",
@@ -8030,14 +8416,14 @@
8030
8416
  "ReqGetTransferHistory": {
8031
8417
  "type": "object",
8032
8418
  "properties": {
8033
- "account_index": {
8034
- "type": "integer",
8035
- "format": "int64"
8036
- },
8037
8419
  "auth": {
8038
8420
  "type": "string",
8039
8421
  "description": " made optional to support header auth clients"
8040
8422
  },
8423
+ "account_index": {
8424
+ "type": "integer",
8425
+ "format": "int64"
8426
+ },
8041
8427
  "cursor": {
8042
8428
  "type": "string"
8043
8429
  }
@@ -8070,14 +8456,14 @@
8070
8456
  "ReqGetWithdrawHistory": {
8071
8457
  "type": "object",
8072
8458
  "properties": {
8073
- "account_index": {
8074
- "type": "integer",
8075
- "format": "int64"
8076
- },
8077
8459
  "auth": {
8078
8460
  "type": "string",
8079
8461
  "description": " made optional to support header auth clients"
8080
8462
  },
8463
+ "account_index": {
8464
+ "type": "integer",
8465
+ "format": "int64"
8466
+ },
8081
8467
  "cursor": {
8082
8468
  "type": "string"
8083
8469
  },
@@ -8107,6 +8493,56 @@
8107
8493
  "l1_address"
8108
8494
  ]
8109
8495
  },
8496
+ "ReqPostApiToken": {
8497
+ "type": "object",
8498
+ "properties": {
8499
+ "name": {
8500
+ "type": "string"
8501
+ },
8502
+ "account_index": {
8503
+ "type": "integer",
8504
+ "format": "int64"
8505
+ },
8506
+ "expiry": {
8507
+ "type": "integer",
8508
+ "format": "int64"
8509
+ },
8510
+ "sub_account_access": {
8511
+ "type": "boolean",
8512
+ "format": "boolean"
8513
+ },
8514
+ "scopes": {
8515
+ "type": "string",
8516
+ "example": "read.*",
8517
+ "default": "read.*"
8518
+ }
8519
+ },
8520
+ "title": "ReqPostApiToken",
8521
+ "required": [
8522
+ "name",
8523
+ "account_index",
8524
+ "expiry",
8525
+ "sub_account_access"
8526
+ ]
8527
+ },
8528
+ "ReqRevokeApiToken": {
8529
+ "type": "object",
8530
+ "properties": {
8531
+ "token_id": {
8532
+ "type": "integer",
8533
+ "format": "int64"
8534
+ },
8535
+ "account_index": {
8536
+ "type": "integer",
8537
+ "format": "int64"
8538
+ }
8539
+ },
8540
+ "title": "ReqRevokeApiToken",
8541
+ "required": [
8542
+ "token_id",
8543
+ "account_index"
8544
+ ]
8545
+ },
8110
8546
  "ReqSendTx": {
8111
8547
  "type": "object",
8112
8548
  "properties": {
@@ -8269,6 +8705,30 @@
8269
8705
  "code"
8270
8706
  ]
8271
8707
  },
8708
+ "RespGetApiTokens": {
8709
+ "type": "object",
8710
+ "properties": {
8711
+ "code": {
8712
+ "type": "integer",
8713
+ "format": "int32",
8714
+ "example": "200"
8715
+ },
8716
+ "message": {
8717
+ "type": "string"
8718
+ },
8719
+ "api_tokens": {
8720
+ "type": "array",
8721
+ "items": {
8722
+ "$ref": "#/definitions/ApiToken"
8723
+ }
8724
+ }
8725
+ },
8726
+ "title": "RespGetApiTokens",
8727
+ "required": [
8728
+ "code",
8729
+ "api_tokens"
8730
+ ]
8731
+ },
8272
8732
  "RespGetBridgesByL1Addr": {
8273
8733
  "type": "object",
8274
8734
  "properties": {
@@ -8366,6 +8826,60 @@
8366
8826
  "is_next_bridge_fast"
8367
8827
  ]
8368
8828
  },
8829
+ "RespPostApiToken": {
8830
+ "type": "object",
8831
+ "properties": {
8832
+ "code": {
8833
+ "type": "integer",
8834
+ "format": "int32",
8835
+ "example": "200"
8836
+ },
8837
+ "message": {
8838
+ "type": "string"
8839
+ },
8840
+ "token_id": {
8841
+ "type": "integer",
8842
+ "format": "int64"
8843
+ },
8844
+ "api_token": {
8845
+ "type": "string"
8846
+ },
8847
+ "name": {
8848
+ "type": "string"
8849
+ },
8850
+ "account_index": {
8851
+ "type": "integer",
8852
+ "format": "int64"
8853
+ },
8854
+ "expiry": {
8855
+ "type": "integer",
8856
+ "format": "int64"
8857
+ },
8858
+ "sub_account_access": {
8859
+ "type": "boolean",
8860
+ "format": "boolean"
8861
+ },
8862
+ "revoked": {
8863
+ "type": "boolean",
8864
+ "format": "boolean"
8865
+ },
8866
+ "scopes": {
8867
+ "type": "string"
8868
+ }
8869
+ },
8870
+ "title": "RespPostApiToken",
8871
+ "required": [
8872
+ "code",
8873
+ "token_id",
8874
+ "api_token",
8875
+ "name",
8876
+ "account_index",
8877
+ "expiry",
8878
+ "sub_account_access",
8879
+ "revoked",
8880
+ "scopes"
8881
+ ]
8882
+ },
8369
8883
  "RespPublicPoolsMetadata": {
8370
8884
  "type": "object",
8371
8885
  "properties": {
@@ -8390,6 +8904,33 @@
8390
8904
  "public_pools"
8391
8905
  ]
8392
8906
  },
8907
+ "RespRevokeApiToken": {
8908
+ "type": "object",
8909
+ "properties": {
8910
+ "code": {
8911
+ "type": "integer",
8912
+ "format": "int32",
8913
+ "example": "200"
8914
+ },
8915
+ "message": {
8916
+ "type": "string"
8917
+ },
8918
+ "token_id": {
8919
+ "type": "integer",
8920
+ "format": "int64"
8921
+ },
8922
+ "revoked": {
8923
+ "type": "boolean",
8924
+ "format": "boolean"
8925
+ }
8926
+ },
8927
+ "title": "RespRevokeApiToken",
8928
+ "required": [
8929
+ "code",
8930
+ "token_id",
8931
+ "revoked"
8932
+ ]
8933
+ },
8393
8934
  "RespSendTx": {
8394
8935
  "type": "object",
8395
8936
  "properties": {