@pear-protocol/types 2.1.0 → 2.2.0

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.
Files changed (50) hide show
  1. package/dist/connector/index.d.ts +2 -0
  2. package/dist/connector/index.js +2 -1
  3. package/dist/execution/entities.d.ts +26 -0
  4. package/dist/execution/queries.d.ts +1 -0
  5. package/dist/execution/responses.d.ts +16 -0
  6. package/dist/fee/entities.d.ts +1 -0
  7. package/dist/fee/queries.d.ts +1 -0
  8. package/dist/fill/entities.d.ts +1 -0
  9. package/dist/fill/queries.d.ts +1 -0
  10. package/dist/fill/responses.d.ts +2 -0
  11. package/dist/funding/queries.d.ts +1 -0
  12. package/dist/instrument/entities.d.ts +1 -0
  13. package/dist/instrument/queries.d.ts +1 -0
  14. package/dist/instrument/responses.d.ts +1 -0
  15. package/dist/ladder/entities.d.ts +16 -0
  16. package/dist/ladder/queries.d.ts +1 -0
  17. package/dist/ladder/responses.d.ts +48 -0
  18. package/dist/market/entities.d.ts +2 -0
  19. package/dist/market/payloads.d.ts +1 -0
  20. package/dist/market/queries.d.ts +2 -0
  21. package/dist/market/responses.d.ts +2 -0
  22. package/dist/notification/entities.d.ts +24 -0
  23. package/dist/notification/responses.d.ts +12 -0
  24. package/dist/order/entities.d.ts +2 -0
  25. package/dist/position/entities.d.ts +3 -0
  26. package/dist/position/queries.d.ts +1 -0
  27. package/dist/position/responses.d.ts +5 -0
  28. package/dist/price/queries.d.ts +1 -0
  29. package/dist/schedule/entities.d.ts +10 -0
  30. package/dist/schedule/queries.d.ts +1 -0
  31. package/dist/schedule/responses.d.ts +8 -0
  32. package/dist/statistics/entities.d.ts +1 -0
  33. package/dist/statistics/queries.d.ts +5 -1
  34. package/dist/statistics/responses.d.ts +1 -0
  35. package/dist/sync/payloads.d.ts +13 -0
  36. package/dist/tca/responses.d.ts +10 -0
  37. package/dist/trade/entities.d.ts +3 -0
  38. package/dist/trade/responses.d.ts +42 -0
  39. package/dist/trade-accounts/entities.d.ts +1 -0
  40. package/dist/trade-accounts/payloads.d.ts +21 -0
  41. package/dist/trade-accounts/payloads.js +10 -2
  42. package/dist/trade-accounts/response.d.ts +42 -0
  43. package/dist/trade-accounts/response.js +5 -1
  44. package/dist/trigger/entities/conditions.d.ts +4 -0
  45. package/dist/trigger/entities/index.d.ts +47 -0
  46. package/dist/trigger/payloads/conditions.d.ts +1 -0
  47. package/dist/trigger/payloads/index.d.ts +6 -0
  48. package/dist/trigger/queries.d.ts +1 -0
  49. package/dist/trigger/responses.d.ts +30 -0
  50. package/package.json +1 -1
@@ -8,6 +8,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
8
8
  bybit: "bybit";
9
9
  okx: "okx";
10
10
  lighter: "lighter";
11
+ lighter_rhc: "lighter_rhc";
11
12
  }>;
12
13
  status: z.ZodEnum<{
13
14
  CANCELLED: "CANCELLED";
@@ -27,6 +28,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
27
28
  bybit: "bybit";
28
29
  okx: "okx";
29
30
  lighter: "lighter";
31
+ lighter_rhc: "lighter_rhc";
30
32
  }>;
31
33
  status: z.ZodEnum<{
32
34
  PENDING: "PENDING";
@@ -88,6 +90,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
88
90
  bybit: "bybit";
89
91
  okx: "okx";
90
92
  lighter: "lighter";
93
+ lighter_rhc: "lighter_rhc";
91
94
  }>;
92
95
  status: z.ZodEnum<{
93
96
  CANCELLED: "CANCELLED";
@@ -107,6 +110,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
107
110
  bybit: "bybit";
108
111
  okx: "okx";
109
112
  lighter: "lighter";
113
+ lighter_rhc: "lighter_rhc";
110
114
  }>;
111
115
  status: z.ZodEnum<{
112
116
  PENDING: "PENDING";
@@ -172,6 +176,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
172
176
  bybit: "bybit";
173
177
  okx: "okx";
174
178
  lighter: "lighter";
179
+ lighter_rhc: "lighter_rhc";
175
180
  }>;
176
181
  status: z.ZodEnum<{
177
182
  CANCELLED: "CANCELLED";
@@ -191,6 +196,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
191
196
  bybit: "bybit";
192
197
  okx: "okx";
193
198
  lighter: "lighter";
199
+ lighter_rhc: "lighter_rhc";
194
200
  }>;
195
201
  status: z.ZodEnum<{
196
202
  PENDING: "PENDING";
@@ -229,6 +235,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
229
235
  bybit: "bybit";
230
236
  okx: "okx";
231
237
  lighter: "lighter";
238
+ lighter_rhc: "lighter_rhc";
232
239
  }>;
233
240
  status: z.ZodEnum<{
234
241
  CANCELLED: "CANCELLED";
@@ -248,6 +255,7 @@ export declare const CreateTradeOpenResponse: z.ZodObject<{
248
255
  bybit: "bybit";
249
256
  okx: "okx";
250
257
  lighter: "lighter";
258
+ lighter_rhc: "lighter_rhc";
251
259
  }>;
252
260
  status: z.ZodEnum<{
253
261
  PENDING: "PENDING";
@@ -290,6 +298,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
290
298
  bybit: "bybit";
291
299
  okx: "okx";
292
300
  lighter: "lighter";
301
+ lighter_rhc: "lighter_rhc";
293
302
  }>;
294
303
  status: z.ZodEnum<{
295
304
  CANCELLED: "CANCELLED";
@@ -309,6 +318,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
309
318
  bybit: "bybit";
310
319
  okx: "okx";
311
320
  lighter: "lighter";
321
+ lighter_rhc: "lighter_rhc";
312
322
  }>;
313
323
  status: z.ZodEnum<{
314
324
  PENDING: "PENDING";
@@ -370,6 +380,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
370
380
  bybit: "bybit";
371
381
  okx: "okx";
372
382
  lighter: "lighter";
383
+ lighter_rhc: "lighter_rhc";
373
384
  }>;
374
385
  status: z.ZodEnum<{
375
386
  CANCELLED: "CANCELLED";
@@ -389,6 +400,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
389
400
  bybit: "bybit";
390
401
  okx: "okx";
391
402
  lighter: "lighter";
403
+ lighter_rhc: "lighter_rhc";
392
404
  }>;
393
405
  status: z.ZodEnum<{
394
406
  PENDING: "PENDING";
@@ -454,6 +466,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
454
466
  bybit: "bybit";
455
467
  okx: "okx";
456
468
  lighter: "lighter";
469
+ lighter_rhc: "lighter_rhc";
457
470
  }>;
458
471
  status: z.ZodEnum<{
459
472
  CANCELLED: "CANCELLED";
@@ -473,6 +486,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
473
486
  bybit: "bybit";
474
487
  okx: "okx";
475
488
  lighter: "lighter";
489
+ lighter_rhc: "lighter_rhc";
476
490
  }>;
477
491
  status: z.ZodEnum<{
478
492
  PENDING: "PENDING";
@@ -511,6 +525,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
511
525
  bybit: "bybit";
512
526
  okx: "okx";
513
527
  lighter: "lighter";
528
+ lighter_rhc: "lighter_rhc";
514
529
  }>;
515
530
  status: z.ZodEnum<{
516
531
  CANCELLED: "CANCELLED";
@@ -530,6 +545,7 @@ export declare const CreateTradeAdjustResponse: z.ZodObject<{
530
545
  bybit: "bybit";
531
546
  okx: "okx";
532
547
  lighter: "lighter";
548
+ lighter_rhc: "lighter_rhc";
533
549
  }>;
534
550
  status: z.ZodEnum<{
535
551
  PENDING: "PENDING";
@@ -572,6 +588,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
572
588
  bybit: "bybit";
573
589
  okx: "okx";
574
590
  lighter: "lighter";
591
+ lighter_rhc: "lighter_rhc";
575
592
  }>;
576
593
  status: z.ZodEnum<{
577
594
  CANCELLED: "CANCELLED";
@@ -591,6 +608,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
591
608
  bybit: "bybit";
592
609
  okx: "okx";
593
610
  lighter: "lighter";
611
+ lighter_rhc: "lighter_rhc";
594
612
  }>;
595
613
  status: z.ZodEnum<{
596
614
  PENDING: "PENDING";
@@ -652,6 +670,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
652
670
  bybit: "bybit";
653
671
  okx: "okx";
654
672
  lighter: "lighter";
673
+ lighter_rhc: "lighter_rhc";
655
674
  }>;
656
675
  status: z.ZodEnum<{
657
676
  CANCELLED: "CANCELLED";
@@ -671,6 +690,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
671
690
  bybit: "bybit";
672
691
  okx: "okx";
673
692
  lighter: "lighter";
693
+ lighter_rhc: "lighter_rhc";
674
694
  }>;
675
695
  status: z.ZodEnum<{
676
696
  PENDING: "PENDING";
@@ -736,6 +756,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
736
756
  bybit: "bybit";
737
757
  okx: "okx";
738
758
  lighter: "lighter";
759
+ lighter_rhc: "lighter_rhc";
739
760
  }>;
740
761
  status: z.ZodEnum<{
741
762
  CANCELLED: "CANCELLED";
@@ -755,6 +776,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
755
776
  bybit: "bybit";
756
777
  okx: "okx";
757
778
  lighter: "lighter";
779
+ lighter_rhc: "lighter_rhc";
758
780
  }>;
759
781
  status: z.ZodEnum<{
760
782
  PENDING: "PENDING";
@@ -793,6 +815,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
793
815
  bybit: "bybit";
794
816
  okx: "okx";
795
817
  lighter: "lighter";
818
+ lighter_rhc: "lighter_rhc";
796
819
  }>;
797
820
  status: z.ZodEnum<{
798
821
  CANCELLED: "CANCELLED";
@@ -812,6 +835,7 @@ export declare const CreateTradeCloseResponse: z.ZodObject<{
812
835
  bybit: "bybit";
813
836
  okx: "okx";
814
837
  lighter: "lighter";
838
+ lighter_rhc: "lighter_rhc";
815
839
  }>;
816
840
  status: z.ZodEnum<{
817
841
  PENDING: "PENDING";
@@ -854,6 +878,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
854
878
  bybit: "bybit";
855
879
  okx: "okx";
856
880
  lighter: "lighter";
881
+ lighter_rhc: "lighter_rhc";
857
882
  }>;
858
883
  status: z.ZodEnum<{
859
884
  CANCELLED: "CANCELLED";
@@ -873,6 +898,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
873
898
  bybit: "bybit";
874
899
  okx: "okx";
875
900
  lighter: "lighter";
901
+ lighter_rhc: "lighter_rhc";
876
902
  }>;
877
903
  status: z.ZodEnum<{
878
904
  PENDING: "PENDING";
@@ -934,6 +960,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
934
960
  bybit: "bybit";
935
961
  okx: "okx";
936
962
  lighter: "lighter";
963
+ lighter_rhc: "lighter_rhc";
937
964
  }>;
938
965
  status: z.ZodEnum<{
939
966
  CANCELLED: "CANCELLED";
@@ -953,6 +980,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
953
980
  bybit: "bybit";
954
981
  okx: "okx";
955
982
  lighter: "lighter";
983
+ lighter_rhc: "lighter_rhc";
956
984
  }>;
957
985
  status: z.ZodEnum<{
958
986
  PENDING: "PENDING";
@@ -1018,6 +1046,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
1018
1046
  bybit: "bybit";
1019
1047
  okx: "okx";
1020
1048
  lighter: "lighter";
1049
+ lighter_rhc: "lighter_rhc";
1021
1050
  }>;
1022
1051
  status: z.ZodEnum<{
1023
1052
  CANCELLED: "CANCELLED";
@@ -1037,6 +1066,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
1037
1066
  bybit: "bybit";
1038
1067
  okx: "okx";
1039
1068
  lighter: "lighter";
1069
+ lighter_rhc: "lighter_rhc";
1040
1070
  }>;
1041
1071
  status: z.ZodEnum<{
1042
1072
  PENDING: "PENDING";
@@ -1075,6 +1105,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
1075
1105
  bybit: "bybit";
1076
1106
  okx: "okx";
1077
1107
  lighter: "lighter";
1108
+ lighter_rhc: "lighter_rhc";
1078
1109
  }>;
1079
1110
  status: z.ZodEnum<{
1080
1111
  CANCELLED: "CANCELLED";
@@ -1094,6 +1125,7 @@ export declare const CreateTradeReverseResponse: z.ZodObject<{
1094
1125
  bybit: "bybit";
1095
1126
  okx: "okx";
1096
1127
  lighter: "lighter";
1128
+ lighter_rhc: "lighter_rhc";
1097
1129
  }>;
1098
1130
  status: z.ZodEnum<{
1099
1131
  PENDING: "PENDING";
@@ -1136,6 +1168,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1136
1168
  bybit: "bybit";
1137
1169
  okx: "okx";
1138
1170
  lighter: "lighter";
1171
+ lighter_rhc: "lighter_rhc";
1139
1172
  }>;
1140
1173
  status: z.ZodEnum<{
1141
1174
  CANCELLED: "CANCELLED";
@@ -1155,6 +1188,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1155
1188
  bybit: "bybit";
1156
1189
  okx: "okx";
1157
1190
  lighter: "lighter";
1191
+ lighter_rhc: "lighter_rhc";
1158
1192
  }>;
1159
1193
  status: z.ZodEnum<{
1160
1194
  PENDING: "PENDING";
@@ -1216,6 +1250,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1216
1250
  bybit: "bybit";
1217
1251
  okx: "okx";
1218
1252
  lighter: "lighter";
1253
+ lighter_rhc: "lighter_rhc";
1219
1254
  }>;
1220
1255
  status: z.ZodEnum<{
1221
1256
  CANCELLED: "CANCELLED";
@@ -1235,6 +1270,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1235
1270
  bybit: "bybit";
1236
1271
  okx: "okx";
1237
1272
  lighter: "lighter";
1273
+ lighter_rhc: "lighter_rhc";
1238
1274
  }>;
1239
1275
  status: z.ZodEnum<{
1240
1276
  PENDING: "PENDING";
@@ -1300,6 +1336,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1300
1336
  bybit: "bybit";
1301
1337
  okx: "okx";
1302
1338
  lighter: "lighter";
1339
+ lighter_rhc: "lighter_rhc";
1303
1340
  }>;
1304
1341
  status: z.ZodEnum<{
1305
1342
  CANCELLED: "CANCELLED";
@@ -1319,6 +1356,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1319
1356
  bybit: "bybit";
1320
1357
  okx: "okx";
1321
1358
  lighter: "lighter";
1359
+ lighter_rhc: "lighter_rhc";
1322
1360
  }>;
1323
1361
  status: z.ZodEnum<{
1324
1362
  PENDING: "PENDING";
@@ -1357,6 +1395,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1357
1395
  bybit: "bybit";
1358
1396
  okx: "okx";
1359
1397
  lighter: "lighter";
1398
+ lighter_rhc: "lighter_rhc";
1360
1399
  }>;
1361
1400
  status: z.ZodEnum<{
1362
1401
  CANCELLED: "CANCELLED";
@@ -1376,6 +1415,7 @@ export declare const CreateTradeCloseAllResponse: z.ZodObject<{
1376
1415
  bybit: "bybit";
1377
1416
  okx: "okx";
1378
1417
  lighter: "lighter";
1418
+ lighter_rhc: "lighter_rhc";
1379
1419
  }>;
1380
1420
  status: z.ZodEnum<{
1381
1421
  PENDING: "PENDING";
@@ -1424,6 +1464,7 @@ export declare const TradeListResponse: z.ZodObject<{
1424
1464
  bybit: "bybit";
1425
1465
  okx: "okx";
1426
1466
  lighter: "lighter";
1467
+ lighter_rhc: "lighter_rhc";
1427
1468
  }>;
1428
1469
  at: z.ZodISODateTime;
1429
1470
  netCashflow: z.ZodPipe<z.ZodString, z.ZodTransform<`-${string}` | `+${string}`, string>>;
@@ -1437,6 +1478,7 @@ export declare const TradeListResponse: z.ZodObject<{
1437
1478
  bybit: "bybit";
1438
1479
  okx: "okx";
1439
1480
  lighter: "lighter";
1481
+ lighter_rhc: "lighter_rhc";
1440
1482
  }>;
1441
1483
  side: z.ZodEnum<{
1442
1484
  BUY: "BUY";
@@ -19,6 +19,7 @@ export declare const TradeAccount: z.ZodObject<{
19
19
  bybit: "bybit";
20
20
  okx: "okx";
21
21
  lighter: "lighter";
22
+ lighter_rhc: "lighter_rhc";
22
23
  }>;
23
24
  kind: z.ZodEnum<{
24
25
  vault: "vault";
@@ -108,6 +108,17 @@ export declare const CreateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
108
108
  metadata: z.ZodObject<{
109
109
  l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
110
110
  }, z.core.$strip>;
111
+ }, z.core.$strip>, z.ZodObject<{
112
+ alias: z.ZodString;
113
+ exchangeIdentifier: z.ZodString;
114
+ credentials: z.ZodObject<{
115
+ api_private_key: z.ZodString;
116
+ api_key_index: z.ZodNumber;
117
+ }, z.core.$strip>;
118
+ metadata: z.ZodObject<{
119
+ l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
120
+ }, z.core.$strip>;
121
+ connector: z.ZodLiteral<"lighter_rhc">;
111
122
  }, z.core.$strip>], "connector">;
112
123
  /**
113
124
  * Payload to create a Pear-vault-backed Hyperliquid trade account. The backend
@@ -174,6 +185,16 @@ export declare const UpdateTradeAccount: z.ZodDiscriminatedUnion<[z.ZodObject<{
174
185
  metadata: z.ZodOptional<z.ZodObject<{
175
186
  l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
176
187
  }, z.core.$strip>>;
188
+ }, z.core.$strip>, z.ZodObject<{
189
+ alias: z.ZodOptional<z.ZodString>;
190
+ credentials: z.ZodOptional<z.ZodObject<{
191
+ api_private_key: z.ZodString;
192
+ api_key_index: z.ZodNumber;
193
+ }, z.core.$strip>>;
194
+ metadata: z.ZodOptional<z.ZodObject<{
195
+ l1_address: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
196
+ }, z.core.$strip>>;
197
+ connector: z.ZodLiteral<"lighter_rhc">;
177
198
  }, z.core.$strip>], "connector">;
178
199
  export type CreateHyperliquidCredentials = z.infer<typeof CreateHyperliquidCredentials>;
179
200
  export type CreateHyperliquidMetadata = z.infer<typeof CreateHyperliquidMetadata>;
@@ -67,6 +67,9 @@ const CreateLighterAccount = z.object({
67
67
  credentials: CreateLighterCredentials,
68
68
  metadata: CreateLighterMetadata
69
69
  });
70
+ const CreateLighterRhcAccount = CreateLighterAccount.extend({
71
+ connector: z.literal("lighter_rhc")
72
+ });
70
73
  const UpdateHyperliquidAccount = z.object({
71
74
  connector: z.literal("hyperliquid"),
72
75
  alias: AccountAlias.optional(),
@@ -97,12 +100,16 @@ const UpdateLighterAccount = z.object({
97
100
  credentials: CreateLighterCredentials.optional(),
98
101
  metadata: CreateLighterMetadata.optional()
99
102
  });
103
+ const UpdateLighterRhcAccount = UpdateLighterAccount.extend({
104
+ connector: z.literal("lighter_rhc")
105
+ });
100
106
  const CreateTradeAccount = z.discriminatedUnion("connector", [
101
107
  CreateHyperliquidAccount,
102
108
  CreateBinanceAccount,
103
109
  CreateBybitAccount,
104
110
  CreateOkxAccount,
105
- CreateLighterAccount
111
+ CreateLighterAccount,
112
+ CreateLighterRhcAccount
106
113
  ]);
107
114
  const CreateVaultTradeAccount = z.object({
108
115
  vaultAddress: EthereumAddress,
@@ -118,7 +125,8 @@ const UpdateTradeAccount = z.discriminatedUnion("connector", [
118
125
  UpdateBinanceAccount,
119
126
  UpdateBybitAccount,
120
127
  UpdateOkxAccount,
121
- UpdateLighterAccount
128
+ UpdateLighterAccount,
129
+ UpdateLighterRhcAccount
122
130
  ]);
123
131
 
124
132
  export { CreateTradeAccount, CreateVaultTradeAccount, UpdateTradeAccount };
@@ -9,6 +9,7 @@ export declare const TradeAccountResponse: z.ZodObject<{
9
9
  bybit: "bybit";
10
10
  okx: "okx";
11
11
  lighter: "lighter";
12
+ lighter_rhc: "lighter_rhc";
12
13
  }>;
13
14
  kind: z.ZodEnum<{
14
15
  vault: "vault";
@@ -38,6 +39,7 @@ export declare const TradeAccountListResponse: z.ZodObject<{
38
39
  bybit: "bybit";
39
40
  okx: "okx";
40
41
  lighter: "lighter";
42
+ lighter_rhc: "lighter_rhc";
41
43
  }>;
42
44
  kind: z.ZodEnum<{
43
45
  vault: "vault";
@@ -76,6 +78,7 @@ export declare const VaultTradeAccountStatus: z.ZodDiscriminatedUnion<[z.ZodObje
76
78
  bybit: "bybit";
77
79
  okx: "okx";
78
80
  lighter: "lighter";
81
+ lighter_rhc: "lighter_rhc";
79
82
  }>;
80
83
  kind: z.ZodEnum<{
81
84
  vault: "vault";
@@ -110,6 +113,7 @@ export declare const VaultTradeAccountStatusResponse: z.ZodObject<{
110
113
  bybit: "bybit";
111
114
  okx: "okx";
112
115
  lighter: "lighter";
116
+ lighter_rhc: "lighter_rhc";
113
117
  }>;
114
118
  kind: z.ZodEnum<{
115
119
  vault: "vault";
@@ -141,6 +145,7 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
141
145
  bybit: "bybit";
142
146
  okx: "okx";
143
147
  lighter: "lighter";
148
+ lighter_rhc: "lighter_rhc";
144
149
  }>;
145
150
  kind: z.ZodEnum<{
146
151
  vault: "vault";
@@ -172,6 +177,7 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
172
177
  bybit: "bybit";
173
178
  okx: "okx";
174
179
  lighter: "lighter";
180
+ lighter_rhc: "lighter_rhc";
175
181
  }>;
176
182
  kind: z.ZodEnum<{
177
183
  vault: "vault";
@@ -210,6 +216,7 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
210
216
  bybit: "bybit";
211
217
  okx: "okx";
212
218
  lighter: "lighter";
219
+ lighter_rhc: "lighter_rhc";
213
220
  }>;
214
221
  kind: z.ZodEnum<{
215
222
  vault: "vault";
@@ -242,6 +249,7 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
242
249
  bybit: "bybit";
243
250
  okx: "okx";
244
251
  lighter: "lighter";
252
+ lighter_rhc: "lighter_rhc";
245
253
  }>;
246
254
  kind: z.ZodEnum<{
247
255
  vault: "vault";
@@ -275,6 +283,7 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
275
283
  bybit: "bybit";
276
284
  okx: "okx";
277
285
  lighter: "lighter";
286
+ lighter_rhc: "lighter_rhc";
278
287
  }>;
279
288
  kind: z.ZodEnum<{
280
289
  vault: "vault";
@@ -296,5 +305,38 @@ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.Zod
296
305
  api_private_key: z.ZodString;
297
306
  api_key_index: z.ZodNumber;
298
307
  }, z.core.$strip>;
308
+ }, z.core.$strip>, z.ZodObject<{
309
+ account: z.ZodObject<{
310
+ id: z.ZodUUID;
311
+ alias: z.ZodString;
312
+ connector: z.ZodEnum<{
313
+ hyperliquid: "hyperliquid";
314
+ binance: "binance";
315
+ bybit: "bybit";
316
+ okx: "okx";
317
+ lighter: "lighter";
318
+ lighter_rhc: "lighter_rhc";
319
+ }>;
320
+ kind: z.ZodEnum<{
321
+ vault: "vault";
322
+ eoa: "eoa";
323
+ }>;
324
+ exchangeIdentifier: z.ZodString;
325
+ metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
326
+ agentWalletAddress: z.ZodString;
327
+ isSubaccount: z.ZodBoolean;
328
+ mainAccountAddress: z.ZodString;
329
+ }, z.core.$strip>, z.ZodObject<{
330
+ l1_address: z.ZodString;
331
+ }, z.core.$strip>]>>;
332
+ createdAt: z.ZodString;
333
+ updatedAt: z.ZodString;
334
+ deletedAt: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$strip>;
336
+ credentials: z.ZodObject<{
337
+ api_private_key: z.ZodString;
338
+ api_key_index: z.ZodNumber;
339
+ }, z.core.$strip>;
340
+ connector: z.ZodLiteral<"lighter_rhc">;
299
341
  }, z.core.$strip>], "connector">;
300
342
  export type ExchangeCredentialsResponse = z.infer<typeof ExchangeCredentialsResponse>;
@@ -64,12 +64,16 @@ const LighterCredentialsResponse = z.object({
64
64
  api_key_index: z.number()
65
65
  })
66
66
  });
67
+ const LighterRhcCredentialsResponse = LighterCredentialsResponse.extend({
68
+ connector: z.literal("lighter_rhc")
69
+ });
67
70
  const ExchangeCredentialsResponse = z.discriminatedUnion("connector", [
68
71
  HyperliquidCredentialsResponse,
69
72
  BinanceCredentialsResponse,
70
73
  BybitCredentialsResponse,
71
74
  OkxCredentialsResponse,
72
- LighterCredentialsResponse
75
+ LighterCredentialsResponse,
76
+ LighterRhcCredentialsResponse
73
77
  ]);
74
78
 
75
79
  export { ExchangeCredentialsResponse, TradeAccountListResponse, TradeAccountResponse, VaultTradeAccountStatus, VaultTradeAccountStatusResponse };
@@ -103,6 +103,7 @@ declare const FundingRate: z.ZodObject<{
103
103
  bybit: "bybit";
104
104
  okx: "okx";
105
105
  lighter: "lighter";
106
+ lighter_rhc: "lighter_rhc";
106
107
  }>;
107
108
  symbol: z.ZodString;
108
109
  track: z.ZodEnum<{
@@ -262,6 +263,7 @@ export declare const TriggerConditionOpen: z.ZodDiscriminatedUnion<[z.ZodObject<
262
263
  bybit: "bybit";
263
264
  okx: "okx";
264
265
  lighter: "lighter";
266
+ lighter_rhc: "lighter_rhc";
265
267
  }>;
266
268
  symbol: z.ZodString;
267
269
  track: z.ZodEnum<{
@@ -393,6 +395,7 @@ export declare const TriggerConditionAdjust: z.ZodDiscriminatedUnion<[z.ZodObjec
393
395
  bybit: "bybit";
394
396
  okx: "okx";
395
397
  lighter: "lighter";
398
+ lighter_rhc: "lighter_rhc";
396
399
  }>;
397
400
  symbol: z.ZodString;
398
401
  track: z.ZodEnum<{
@@ -583,6 +586,7 @@ export declare const TriggerConditionClose: z.ZodDiscriminatedUnion<[z.ZodObject
583
586
  bybit: "bybit";
584
587
  okx: "okx";
585
588
  lighter: "lighter";
589
+ lighter_rhc: "lighter_rhc";
586
590
  }>;
587
591
  symbol: z.ZodString;
588
592
  track: z.ZodEnum<{