@ledgerhq/revault-api 1.35.0 → 1.37.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.
package/lib/fakes.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { RequestType, VaultRequest, VaultRequestReview, Account } from '@prisma/client';
2
- import { y as UserChallenge, A as AccountResponse, u as VaultRequestResponse } from './app-types-DVWgnjvj.mjs';
2
+ import { C as CurrencyResponse, T as TokenResponse, I as UserChallenge, A as AccountResponse, D as VaultRequestResponse } from './app-types-BiULyctM.mjs';
3
3
  import z__default from 'zod';
4
4
 
5
5
  /**
@@ -882,7 +882,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
882
882
  maxFee: z__default.ZodNullable<z__default.ZodString>;
883
883
  recipient: z__default.ZodString;
884
884
  } & {
885
- type: z__default.ZodLiteral<"SOLANA_LIKE_FUND_TOKEN">;
885
+ type: z__default.ZodLiteral<"SOLANA_LIKE_FUND_AND_SEND_TOKEN">;
886
886
  feeStrategy: z__default.ZodObject<{
887
887
  type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
888
888
  }, "strip", z__default.ZodTypeAny, {
@@ -891,7 +891,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
891
891
  type: "FAST" | "NORMAL" | "SLOW";
892
892
  }>;
893
893
  }, "strip", z__default.ZodTypeAny, {
894
- type: "SOLANA_LIKE_FUND_TOKEN";
894
+ type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
895
895
  currency: string;
896
896
  recipient: string;
897
897
  amount: string;
@@ -900,7 +900,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
900
900
  type: "FAST" | "NORMAL" | "SLOW";
901
901
  };
902
902
  }, {
903
- type: "SOLANA_LIKE_FUND_TOKEN";
903
+ type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
904
904
  currency: string;
905
905
  recipient: string;
906
906
  amount: string;
@@ -908,6 +908,28 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
908
908
  feeStrategy: {
909
909
  type: "FAST" | "NORMAL" | "SLOW";
910
910
  };
911
+ }>, z__default.ZodObject<{
912
+ type: z__default.ZodLiteral<"SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT">;
913
+ currency: z__default.ZodString;
914
+ feeStrategy: z__default.ZodObject<{
915
+ type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
916
+ }, "strip", z__default.ZodTypeAny, {
917
+ type: "FAST" | "NORMAL" | "SLOW";
918
+ }, {
919
+ type: "FAST" | "NORMAL" | "SLOW";
920
+ }>;
921
+ }, "strip", z__default.ZodTypeAny, {
922
+ type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
923
+ currency: string;
924
+ feeStrategy: {
925
+ type: "FAST" | "NORMAL" | "SLOW";
926
+ };
927
+ }, {
928
+ type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
929
+ currency: string;
930
+ feeStrategy: {
931
+ type: "FAST" | "NORMAL" | "SLOW";
932
+ };
911
933
  }>, z__default.ZodObject<{
912
934
  amount: z__default.ZodString;
913
935
  currency: z__default.ZodString;
@@ -1021,7 +1043,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1021
1043
  maxFee: z__default.ZodNullable<z__default.ZodString>;
1022
1044
  recipient: z__default.ZodString;
1023
1045
  } & {
1024
- type: z__default.ZodLiteral<"SUI_LIKE_TRANSFER_TOKEN">;
1046
+ type: z__default.ZodLiteral<"SUI_LIKE_SEND_TOKEN">;
1025
1047
  feeStrategy: z__default.ZodObject<{
1026
1048
  type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
1027
1049
  }, "strip", z__default.ZodTypeAny, {
@@ -1030,7 +1052,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1030
1052
  type: "FAST" | "NORMAL" | "SLOW";
1031
1053
  }>;
1032
1054
  }, "strip", z__default.ZodTypeAny, {
1033
- type: "SUI_LIKE_TRANSFER_TOKEN";
1055
+ type: "SUI_LIKE_SEND_TOKEN";
1034
1056
  currency: string;
1035
1057
  recipient: string;
1036
1058
  amount: string;
@@ -1039,7 +1061,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1039
1061
  type: "FAST" | "NORMAL" | "SLOW";
1040
1062
  };
1041
1063
  }, {
1042
- type: "SUI_LIKE_TRANSFER_TOKEN";
1064
+ type: "SUI_LIKE_SEND_TOKEN";
1043
1065
  currency: string;
1044
1066
  recipient: string;
1045
1067
  amount: string;
@@ -1048,11 +1070,12 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1048
1070
  type: "FAST" | "NORMAL" | "SLOW";
1049
1071
  };
1050
1072
  }>, z__default.ZodObject<{
1051
- type: z__default.ZodLiteral<"TEZOS_LIKE_DELEGATE">;
1052
- amount: z__default.ZodOptional<z__default.ZodString>;
1073
+ amount: z__default.ZodString;
1053
1074
  currency: z__default.ZodString;
1054
1075
  maxFee: z__default.ZodNullable<z__default.ZodString>;
1055
1076
  recipient: z__default.ZodString;
1077
+ } & {
1078
+ type: z__default.ZodLiteral<"TEZOS_LIKE_SEND">;
1056
1079
  feeStrategy: z__default.ZodObject<{
1057
1080
  type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST", "CUSTOM"]>;
1058
1081
  } & {
@@ -1068,34 +1091,33 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1068
1091
  storageLimit: string | null;
1069
1092
  }>;
1070
1093
  }, "strip", z__default.ZodTypeAny, {
1071
- type: "TEZOS_LIKE_DELEGATE";
1094
+ type: "TEZOS_LIKE_SEND";
1072
1095
  currency: string;
1073
1096
  recipient: string;
1097
+ amount: string;
1074
1098
  maxFee: string | null;
1075
1099
  feeStrategy: {
1076
1100
  type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
1077
1101
  gasLimit: string;
1078
1102
  storageLimit: string | null;
1079
1103
  };
1080
- amount?: string | undefined;
1081
1104
  }, {
1082
- type: "TEZOS_LIKE_DELEGATE";
1105
+ type: "TEZOS_LIKE_SEND";
1083
1106
  currency: string;
1084
1107
  recipient: string;
1108
+ amount: string;
1085
1109
  maxFee: string | null;
1086
1110
  feeStrategy: {
1087
1111
  type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
1088
1112
  gasLimit: string;
1089
1113
  storageLimit: string | null;
1090
1114
  };
1091
- amount?: string | undefined;
1092
1115
  }>, z__default.ZodObject<{
1093
- amount: z__default.ZodString;
1116
+ type: z__default.ZodLiteral<"TEZOS_LIKE_DELEGATE">;
1117
+ amount: z__default.ZodOptional<z__default.ZodString>;
1094
1118
  currency: z__default.ZodString;
1095
1119
  maxFee: z__default.ZodNullable<z__default.ZodString>;
1096
1120
  recipient: z__default.ZodString;
1097
- } & {
1098
- type: z__default.ZodLiteral<"TEZOS_LIKE_SEND">;
1099
1121
  feeStrategy: z__default.ZodObject<{
1100
1122
  type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST", "CUSTOM"]>;
1101
1123
  } & {
@@ -1111,27 +1133,27 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1111
1133
  storageLimit: string | null;
1112
1134
  }>;
1113
1135
  }, "strip", z__default.ZodTypeAny, {
1114
- type: "TEZOS_LIKE_SEND";
1136
+ type: "TEZOS_LIKE_DELEGATE";
1115
1137
  currency: string;
1116
1138
  recipient: string;
1117
- amount: string;
1118
1139
  maxFee: string | null;
1119
1140
  feeStrategy: {
1120
1141
  type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
1121
1142
  gasLimit: string;
1122
1143
  storageLimit: string | null;
1123
1144
  };
1145
+ amount?: string | undefined;
1124
1146
  }, {
1125
- type: "TEZOS_LIKE_SEND";
1147
+ type: "TEZOS_LIKE_DELEGATE";
1126
1148
  currency: string;
1127
1149
  recipient: string;
1128
- amount: string;
1129
1150
  maxFee: string | null;
1130
1151
  feeStrategy: {
1131
1152
  type: "FAST" | "NORMAL" | "SLOW" | "CUSTOM";
1132
1153
  gasLimit: string;
1133
1154
  storageLimit: string | null;
1134
1155
  };
1156
+ amount?: string | undefined;
1135
1157
  }>, z__default.ZodObject<{
1136
1158
  type: z__default.ZodLiteral<"TEZOS_LIKE_UNDELEGATE">;
1137
1159
  amount: z__default.ZodOptional<z__default.ZodString>;
@@ -1174,6 +1196,70 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1174
1196
  };
1175
1197
  recipient?: string | undefined;
1176
1198
  amount?: string | undefined;
1199
+ }>, z__default.ZodObject<{
1200
+ amount: z__default.ZodString;
1201
+ currency: z__default.ZodString;
1202
+ maxFee: z__default.ZodNullable<z__default.ZodString>;
1203
+ recipient: z__default.ZodString;
1204
+ } & {
1205
+ type: z__default.ZodLiteral<"TRON_LIKE_SEND">;
1206
+ feeStrategy: z__default.ZodObject<{
1207
+ type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
1208
+ }, "strip", z__default.ZodTypeAny, {
1209
+ type: "FAST" | "NORMAL" | "SLOW";
1210
+ }, {
1211
+ type: "FAST" | "NORMAL" | "SLOW";
1212
+ }>;
1213
+ }, "strip", z__default.ZodTypeAny, {
1214
+ type: "TRON_LIKE_SEND";
1215
+ currency: string;
1216
+ recipient: string;
1217
+ amount: string;
1218
+ maxFee: string | null;
1219
+ feeStrategy: {
1220
+ type: "FAST" | "NORMAL" | "SLOW";
1221
+ };
1222
+ }, {
1223
+ type: "TRON_LIKE_SEND";
1224
+ currency: string;
1225
+ recipient: string;
1226
+ amount: string;
1227
+ maxFee: string | null;
1228
+ feeStrategy: {
1229
+ type: "FAST" | "NORMAL" | "SLOW";
1230
+ };
1231
+ }>, z__default.ZodObject<{
1232
+ amount: z__default.ZodString;
1233
+ currency: z__default.ZodString;
1234
+ maxFee: z__default.ZodNullable<z__default.ZodString>;
1235
+ recipient: z__default.ZodString;
1236
+ } & {
1237
+ type: z__default.ZodLiteral<"TRON_LIKE_SEND_TOKEN">;
1238
+ feeStrategy: z__default.ZodObject<{
1239
+ type: z__default.ZodEnum<["SLOW", "NORMAL", "FAST"]>;
1240
+ }, "strip", z__default.ZodTypeAny, {
1241
+ type: "FAST" | "NORMAL" | "SLOW";
1242
+ }, {
1243
+ type: "FAST" | "NORMAL" | "SLOW";
1244
+ }>;
1245
+ }, "strip", z__default.ZodTypeAny, {
1246
+ type: "TRON_LIKE_SEND_TOKEN";
1247
+ currency: string;
1248
+ recipient: string;
1249
+ amount: string;
1250
+ maxFee: string | null;
1251
+ feeStrategy: {
1252
+ type: "FAST" | "NORMAL" | "SLOW";
1253
+ };
1254
+ }, {
1255
+ type: "TRON_LIKE_SEND_TOKEN";
1256
+ currency: string;
1257
+ recipient: string;
1258
+ amount: string;
1259
+ maxFee: string | null;
1260
+ feeStrategy: {
1261
+ type: "FAST" | "NORMAL" | "SLOW";
1262
+ };
1177
1263
  }>]>;
1178
1264
  }, "strip", z__default.ZodTypeAny, {
1179
1265
  accountId: string;
@@ -1428,7 +1514,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1428
1514
  type: "FAST" | "NORMAL" | "SLOW";
1429
1515
  };
1430
1516
  } | {
1431
- type: "SOLANA_LIKE_FUND_TOKEN";
1517
+ type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
1432
1518
  currency: string;
1433
1519
  recipient: string;
1434
1520
  amount: string;
@@ -1436,6 +1522,12 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1436
1522
  feeStrategy: {
1437
1523
  type: "FAST" | "NORMAL" | "SLOW";
1438
1524
  };
1525
+ } | {
1526
+ type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
1527
+ currency: string;
1528
+ feeStrategy: {
1529
+ type: "FAST" | "NORMAL" | "SLOW";
1530
+ };
1439
1531
  } | {
1440
1532
  type: "CARDANO_LIKE_SEND";
1441
1533
  currency: string;
@@ -1487,7 +1579,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1487
1579
  type: "FAST" | "NORMAL" | "SLOW";
1488
1580
  };
1489
1581
  } | {
1490
- type: "SUI_LIKE_TRANSFER_TOKEN";
1582
+ type: "SUI_LIKE_SEND_TOKEN";
1491
1583
  currency: string;
1492
1584
  recipient: string;
1493
1585
  amount: string;
@@ -1499,6 +1591,24 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1499
1591
  type: "GENERIC_TRANSACTION";
1500
1592
  currency: string;
1501
1593
  rawTx: string;
1594
+ } | {
1595
+ type: "TRON_LIKE_SEND";
1596
+ currency: string;
1597
+ recipient: string;
1598
+ amount: string;
1599
+ maxFee: string | null;
1600
+ feeStrategy: {
1601
+ type: "FAST" | "NORMAL" | "SLOW";
1602
+ };
1603
+ } | {
1604
+ type: "TRON_LIKE_SEND_TOKEN";
1605
+ currency: string;
1606
+ recipient: string;
1607
+ amount: string;
1608
+ maxFee: string | null;
1609
+ feeStrategy: {
1610
+ type: "FAST" | "NORMAL" | "SLOW";
1611
+ };
1502
1612
  };
1503
1613
  }, {
1504
1614
  accountId: string;
@@ -1753,7 +1863,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1753
1863
  type: "FAST" | "NORMAL" | "SLOW";
1754
1864
  };
1755
1865
  } | {
1756
- type: "SOLANA_LIKE_FUND_TOKEN";
1866
+ type: "SOLANA_LIKE_FUND_AND_SEND_TOKEN";
1757
1867
  currency: string;
1758
1868
  recipient: string;
1759
1869
  amount: string;
@@ -1761,6 +1871,12 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1761
1871
  feeStrategy: {
1762
1872
  type: "FAST" | "NORMAL" | "SLOW";
1763
1873
  };
1874
+ } | {
1875
+ type: "SOLANA_LIKE_CREATE_SPL_TOKEN_ACCOUNT";
1876
+ currency: string;
1877
+ feeStrategy: {
1878
+ type: "FAST" | "NORMAL" | "SLOW";
1879
+ };
1764
1880
  } | {
1765
1881
  type: "CARDANO_LIKE_SEND";
1766
1882
  currency: string;
@@ -1812,7 +1928,7 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1812
1928
  type: "FAST" | "NORMAL" | "SLOW";
1813
1929
  };
1814
1930
  } | {
1815
- type: "SUI_LIKE_TRANSFER_TOKEN";
1931
+ type: "SUI_LIKE_SEND_TOKEN";
1816
1932
  currency: string;
1817
1933
  recipient: string;
1818
1934
  amount: string;
@@ -1824,6 +1940,24 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
1824
1940
  type: "GENERIC_TRANSACTION";
1825
1941
  currency: string;
1826
1942
  rawTx: string;
1943
+ } | {
1944
+ type: "TRON_LIKE_SEND";
1945
+ currency: string;
1946
+ recipient: string;
1947
+ amount: string;
1948
+ maxFee: string | null;
1949
+ feeStrategy: {
1950
+ type: "FAST" | "NORMAL" | "SLOW";
1951
+ };
1952
+ } | {
1953
+ type: "TRON_LIKE_SEND_TOKEN";
1954
+ currency: string;
1955
+ recipient: string;
1956
+ amount: string;
1957
+ maxFee: string | null;
1958
+ feeStrategy: {
1959
+ type: "FAST" | "NORMAL" | "SLOW";
1960
+ };
1827
1961
  };
1828
1962
  }>;
1829
1963
  type CreateTransactionRequestData = z__default.infer<typeof zCreateTransactionRequestData>;
@@ -2134,6 +2268,14 @@ declare const zEditPublicPolicyRequestData: z__default.ZodObject<{
2134
2268
  }>;
2135
2269
  type EditPublicPolicyRequestData = z__default.infer<typeof zEditPublicPolicyRequestData>;
2136
2270
 
2271
+ type AllAssets = {
2272
+ currencies: CurrencyResponse[];
2273
+ tokens: TokenResponse[];
2274
+ };
2275
+ declare global {
2276
+ var _allAssetsPromise: Promise<AllAssets> | undefined;
2277
+ }
2278
+
2137
2279
  declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
2138
2280
  name: z__default.ZodString;
2139
2281
  currency: z__default.ZodString;
@@ -2403,10 +2545,11 @@ declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
2403
2545
  GENERIC_LIKE: "GENERIC_LIKE";
2404
2546
  RAW_SIGNING: "RAW_SIGNING";
2405
2547
  SUI_LIKE: "SUI_LIKE";
2548
+ TRON_LIKE: "TRON_LIKE";
2406
2549
  }>;
2407
2550
  }, "strip", z__default.ZodTypeAny, {
2408
2551
  name: string;
2409
- type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
2552
+ type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE" | "TRON_LIKE";
2410
2553
  derivationPath: string;
2411
2554
  currency: string;
2412
2555
  index: number;
@@ -2454,7 +2597,7 @@ declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
2454
2597
  contractAddress?: string | undefined;
2455
2598
  }, {
2456
2599
  name: string;
2457
- type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
2600
+ type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE" | "TRON_LIKE";
2458
2601
  derivationPath: string;
2459
2602
  currency: string;
2460
2603
  index: number;