@ledgerhq/revault-api 1.40.1 → 1.41.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.
@@ -184,6 +184,10 @@ declare const zTransactionData: z__default.ZodDiscriminatedUnion<[z__default.Zod
184
184
  maxFeePerGas: z__default.ZodString;
185
185
  gasLimit: z__default.ZodString;
186
186
  }, z__default.core.$strip>]>;
187
+ }, z__default.core.$strip>, z__default.ZodObject<{
188
+ type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
189
+ currency: z__default.ZodString;
190
+ rawTx: z__default.ZodString;
187
191
  }, z__default.core.$strip>, z__default.ZodObject<{
188
192
  type: z__default.ZodLiteral<"POLKADOT_LIKE_ADDPROXY">;
189
193
  currency: z__default.ZodString;
@@ -537,10 +541,6 @@ declare const zTransactionData: z__default.ZodDiscriminatedUnion<[z__default.Zod
537
541
  FAST: "FAST";
538
542
  }>;
539
543
  }, z__default.core.$strip>;
540
- }, z__default.core.$strip>, z__default.ZodObject<{
541
- type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
542
- currency: z__default.ZodString;
543
- rawTx: z__default.ZodString;
544
544
  }, z__default.core.$strip>], "type">;
545
545
  type TransactionData = z__default.infer<typeof zTransactionData>;
546
546
  declare const zTransactionResponse: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
@@ -830,6 +830,28 @@ declare const zTransactionResponse: z__default.ZodDiscriminatedUnion<[z__default
830
830
  TEZOS_LIKE_DELEGATE: "TEZOS_LIKE_DELEGATE";
831
831
  TEZOS_LIKE_UNDELEGATE: "TEZOS_LIKE_UNDELEGATE";
832
832
  }>;
833
+ }, z__default.core.$strip>, z__default.ZodObject<{
834
+ id: z__default.ZodString;
835
+ hash: z__default.ZodString;
836
+ block: z__default.ZodObject<{
837
+ height: z__default.ZodNullable<z__default.ZodString>;
838
+ time: z__default.ZodNullable<z__default.ZodString>;
839
+ }, z__default.core.$strip>;
840
+ status: z__default.ZodEnum<{
841
+ SUCCESSFUL: "SUCCESSFUL";
842
+ FAILED: "FAILED";
843
+ }>;
844
+ confirmations: z__default.ZodString;
845
+ amount: z__default.ZodString;
846
+ fee: z__default.ZodString;
847
+ senders: z__default.ZodArray<z__default.ZodString>;
848
+ recipients: z__default.ZodArray<z__default.ZodString>;
849
+ type: z__default.ZodEnum<{
850
+ TRON_LIKE_SEND: "TRON_LIKE_SEND";
851
+ TRON_LIKE_RECEIVE: "TRON_LIKE_RECEIVE";
852
+ TRON_LIKE_SEND_TOKEN: "TRON_LIKE_SEND_TOKEN";
853
+ TRON_LIKE_RECEIVE_TOKEN: "TRON_LIKE_RECEIVE_TOKEN";
854
+ }>;
833
855
  }, z__default.core.$strip>], "type">;
834
856
  type TransactionResponse = z__default.infer<typeof zTransactionResponse>;
835
857
 
@@ -879,10 +901,10 @@ declare const zAccountResponse: z__default.ZodObject<{
879
901
  type: z__default.ZodLiteral<"STELLAR_LIKE">;
880
902
  address: z__default.ZodNullable<z__default.ZodString>;
881
903
  }, z__default.core.$strip>, z__default.ZodObject<{
882
- type: z__default.ZodLiteral<"TEZOS_LIKE">;
904
+ type: z__default.ZodLiteral<"SUI_LIKE">;
883
905
  address: z__default.ZodNullable<z__default.ZodString>;
884
906
  }, z__default.core.$strip>, z__default.ZodObject<{
885
- type: z__default.ZodLiteral<"SUI_LIKE">;
907
+ type: z__default.ZodLiteral<"TEZOS_LIKE">;
886
908
  address: z__default.ZodNullable<z__default.ZodString>;
887
909
  }, z__default.core.$strip>, z__default.ZodObject<{
888
910
  type: z__default.ZodLiteral<"TRON_LIKE">;
@@ -905,9 +927,9 @@ declare const zAccountResponse: z__default.ZodObject<{
905
927
  type AccountResponse = z__default.infer<typeof zAccountResponse>;
906
928
  declare const zAccountSortBy: z__default.ZodDefault<z__default.ZodEnum<{
907
929
  currency: "currency";
908
- createdAt: "createdAt";
909
- index: "index";
910
930
  name: "name";
931
+ index: "index";
932
+ createdAt: "createdAt";
911
933
  updatedAt: "updatedAt";
912
934
  }>>;
913
935
  type AccountSortBy = z__default.infer<typeof zAccountSortBy>;
@@ -1117,9 +1139,9 @@ declare const zStake: z__default.ZodObject<{
1117
1139
  id: z__default.ZodString;
1118
1140
  validator: z__default.ZodString;
1119
1141
  state: z__default.ZodEnum<{
1120
- UNKNOWN: "UNKNOWN";
1121
1142
  ACTIVE: "ACTIVE";
1122
1143
  INACTIVE: "INACTIVE";
1144
+ UNKNOWN: "UNKNOWN";
1123
1145
  ACTIVATING: "ACTIVATING";
1124
1146
  DEACTIVATING: "DEACTIVATING";
1125
1147
  }>;
@@ -1280,9 +1302,47 @@ declare const zPsdPairingData: z.ZodObject<{
1280
1302
  }, z.core.$strip>;
1281
1303
  type PsdPairingData = z.infer<typeof zPsdPairingData>;
1282
1304
 
1305
+ declare const zAssetResponse: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
1306
+ id: z__default.ZodString;
1307
+ name: z__default.ZodString;
1308
+ ticker: z__default.ZodString;
1309
+ family: z__default.ZodString;
1310
+ units: z__default.ZodArray<z__default.ZodObject<{
1311
+ code: z__default.ZodString;
1312
+ name: z__default.ZodString;
1313
+ magnitude: z__default.ZodNumber;
1314
+ }, z__default.core.$strip>>;
1315
+ network: z__default.ZodString;
1316
+ assetType: z__default.ZodLiteral<"NATIVE">;
1317
+ }, z__default.core.$strip>, z__default.ZodObject<{
1318
+ id: z__default.ZodString;
1319
+ name: z__default.ZodString;
1320
+ ticker: z__default.ZodString;
1321
+ family: z__default.ZodString;
1322
+ units: z__default.ZodArray<z__default.ZodObject<{
1323
+ code: z__default.ZodString;
1324
+ name: z__default.ZodString;
1325
+ magnitude: z__default.ZodNumber;
1326
+ }, z__default.core.$strip>>;
1327
+ network: z__default.ZodString;
1328
+ assetType: z__default.ZodLiteral<"TOKEN">;
1329
+ contractAddress: z__default.ZodString;
1330
+ metaCurrencyId: z__default.ZodNullable<z__default.ZodString>;
1331
+ }, z__default.core.$strip>], "assetType">;
1332
+ type AssetResponse = z__default.infer<typeof zAssetResponse>;
1333
+ declare const zAssetCapabilitiesResponse: z__default.ZodObject<{
1334
+ SEND: z__default.ZodBoolean;
1335
+ STAKE: z__default.ZodBoolean;
1336
+ EXECUTE_CONTRACT: z__default.ZodBoolean;
1337
+ SIGN_MESSAGE: z__default.ZodBoolean;
1338
+ DEPLOY_CONTRACT: z__default.ZodBoolean;
1339
+ ACTIVATE_TOKEN: z__default.ZodBoolean;
1340
+ RECEIVE: z__default.ZodBoolean;
1341
+ }, z__default.core.$strip>;
1283
1342
  declare const zCurrencyResponse: z__default.ZodObject<{
1284
1343
  id: z__default.ZodString;
1285
1344
  name: z__default.ZodString;
1345
+ ticker: z__default.ZodString;
1286
1346
  type: z__default.ZodEnum<{
1287
1347
  BITCOIN_LIKE: "BITCOIN_LIKE";
1288
1348
  CANTON_LIKE: "CANTON_LIKE";
@@ -1308,6 +1368,7 @@ type CurrencyResponse = z__default.infer<typeof zCurrencyResponse>;
1308
1368
  declare const zTokenResponse: z__default.ZodObject<{
1309
1369
  id: z__default.ZodString;
1310
1370
  name: z__default.ZodString;
1371
+ ticker: z__default.ZodString;
1311
1372
  type: z__default.ZodEnum<{
1312
1373
  BITCOIN_LIKE: "BITCOIN_LIKE";
1313
1374
  CANTON_LIKE: "CANTON_LIKE";
@@ -1332,15 +1393,6 @@ declare const zTokenResponse: z__default.ZodObject<{
1332
1393
  currency: z__default.ZodString;
1333
1394
  }, z__default.core.$strip>;
1334
1395
  type TokenResponse = z__default.infer<typeof zTokenResponse>;
1335
- declare const zCurrencyCapabilitiesResponse: z__default.ZodObject<{
1336
- SEND: z__default.ZodBoolean;
1337
- STAKE: z__default.ZodBoolean;
1338
- EXECUTE_CONTRACT: z__default.ZodBoolean;
1339
- SIGN_MESSAGE: z__default.ZodBoolean;
1340
- DEPLOY_CONTRACT: z__default.ZodBoolean;
1341
- ACTIVATE_TOKEN: z__default.ZodBoolean;
1342
- RECEIVE: z__default.ZodBoolean;
1343
- }, z__default.core.$strip>;
1344
1396
 
1345
1397
  declare const zVaultRequestCreateInput: z__default.ZodObject<{
1346
1398
  request: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
@@ -2142,6 +2194,10 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
2142
2194
  maxFeePerGas: z__default.ZodString;
2143
2195
  gasLimit: z__default.ZodString;
2144
2196
  }, z__default.core.$strip>]>;
2197
+ }, z__default.core.$strip>, z__default.ZodObject<{
2198
+ type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
2199
+ currency: z__default.ZodString;
2200
+ rawTx: z__default.ZodString;
2145
2201
  }, z__default.core.$strip>, z__default.ZodObject<{
2146
2202
  type: z__default.ZodLiteral<"POLKADOT_LIKE_ADDPROXY">;
2147
2203
  currency: z__default.ZodString;
@@ -2495,10 +2551,6 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
2495
2551
  FAST: "FAST";
2496
2552
  }>;
2497
2553
  }, z__default.core.$strip>;
2498
- }, z__default.core.$strip>, z__default.ZodObject<{
2499
- type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
2500
- currency: z__default.ZodString;
2501
- rawTx: z__default.ZodString;
2502
2554
  }, z__default.core.$strip>], "type">;
2503
2555
  }, z__default.core.$strip>;
2504
2556
  meta: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodObject<{
@@ -3619,6 +3671,10 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
3619
3671
  maxFeePerGas: z__default.ZodString;
3620
3672
  gasLimit: z__default.ZodString;
3621
3673
  }, z__default.core.$strip>]>;
3674
+ }, z__default.core.$strip>, z__default.ZodObject<{
3675
+ type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
3676
+ currency: z__default.ZodString;
3677
+ rawTx: z__default.ZodString;
3622
3678
  }, z__default.core.$strip>, z__default.ZodObject<{
3623
3679
  type: z__default.ZodLiteral<"POLKADOT_LIKE_ADDPROXY">;
3624
3680
  currency: z__default.ZodString;
@@ -3972,10 +4028,6 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
3972
4028
  FAST: "FAST";
3973
4029
  }>;
3974
4030
  }, z__default.core.$strip>;
3975
- }, z__default.core.$strip>, z__default.ZodObject<{
3976
- type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
3977
- currency: z__default.ZodString;
3978
- rawTx: z__default.ZodString;
3979
4031
  }, z__default.core.$strip>], "type">;
3980
4032
  }, z__default.core.$strip>;
3981
4033
  meta: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodObject<{
@@ -5697,6 +5749,10 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
5697
5749
  maxFeePerGas: z__default.ZodString;
5698
5750
  gasLimit: z__default.ZodString;
5699
5751
  }, z__default.core.$strip>]>;
5752
+ }, z__default.core.$strip>, z__default.ZodObject<{
5753
+ type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
5754
+ currency: z__default.ZodString;
5755
+ rawTx: z__default.ZodString;
5700
5756
  }, z__default.core.$strip>, z__default.ZodObject<{
5701
5757
  type: z__default.ZodLiteral<"POLKADOT_LIKE_ADDPROXY">;
5702
5758
  currency: z__default.ZodString;
@@ -6050,10 +6106,6 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
6050
6106
  FAST: "FAST";
6051
6107
  }>;
6052
6108
  }, z__default.core.$strip>;
6053
- }, z__default.core.$strip>, z__default.ZodObject<{
6054
- type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
6055
- currency: z__default.ZodString;
6056
- rawTx: z__default.ZodString;
6057
6109
  }, z__default.core.$strip>], "type">;
6058
6110
  }, z__default.core.$strip>;
6059
6111
  meta: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodObject<{
@@ -9044,6 +9096,10 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
9044
9096
  maxFeePerGas: z__default.ZodString;
9045
9097
  gasLimit: z__default.ZodString;
9046
9098
  }, z__default.core.$strip>]>;
9099
+ }, z__default.core.$strip>, z__default.ZodObject<{
9100
+ type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
9101
+ currency: z__default.ZodString;
9102
+ rawTx: z__default.ZodString;
9047
9103
  }, z__default.core.$strip>, z__default.ZodObject<{
9048
9104
  type: z__default.ZodLiteral<"POLKADOT_LIKE_ADDPROXY">;
9049
9105
  currency: z__default.ZodString;
@@ -9397,10 +9453,6 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
9397
9453
  FAST: "FAST";
9398
9454
  }>;
9399
9455
  }, z__default.core.$strip>;
9400
- }, z__default.core.$strip>, z__default.ZodObject<{
9401
- type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
9402
- currency: z__default.ZodString;
9403
- rawTx: z__default.ZodString;
9404
9456
  }, z__default.core.$strip>], "type">;
9405
9457
  }, z__default.core.$strip>;
9406
9458
  meta: z__default.ZodNullable<z__default.ZodOptional<z__default.ZodObject<{
@@ -11090,4 +11142,4 @@ declare const genTransactionSchemas: <T extends TransactionData>(innerSchema: z_
11090
11142
  }, z__default.core.$strip>;
11091
11143
  };
11092
11144
 
11093
- export { type AccountFreshAddress as A, zPubKey as B, type CurrencyResponse as C, zUserRegistrationChallenge as D, zUserRegistrationChallengeResponse as E, zUserRegistrationDeviceData as F, zVaultRequestCreateInput as G, type HsmCertificate as H, zVaultRequestResponse as I, type VaultRequestResponse as J, zRequestSortBy as K, zUserChallengeResponse as L, type UserChallengeResponse as M, genTransactionSchemas as N, type UserChallenge as O, type PsdChallenge as P, type RequestSortBy as R, type TokenResponse as T, type UserRegistrationChallenge as U, type VaultRequestCreateInput as V, type TransactionResponse as a, type AccountResponse as b, type AccountSortBy as c, zAccountLiveDataResponse as d, zAccountResponse as e, zAccountSortBy as f, zBalance as g, zStake as h, zStakeSortBy as i, zStakingValidator as j, zStakingValidatorSortBy as k, zEstimatedFees as l, zCurrencyCapabilitiesResponse as m, zCurrencyResponse as n, zTokenResponse as o, type ApiChallenge as p, type PsdPairingData as q, type PsdPairingInputData as r, type PsdSignature as s, type PubKey as t, type UserRegistrationChallengeResponse as u, type UserRegistrationDeviceData as v, zPsdPairingData as w, zPsdPairingInputData as x, zPsdSignature as y, zAccountFreshAddress as z };
11145
+ export { type AssetResponse as A, zPsdPairingInputData as B, type CurrencyResponse as C, zPsdSignature as D, zPubKey as E, zUserRegistrationChallenge as F, zUserRegistrationChallengeResponse as G, type HsmCertificate as H, zUserRegistrationDeviceData as I, zVaultRequestCreateInput as J, zVaultRequestResponse as K, type VaultRequestResponse as L, zRequestSortBy as M, zUserChallengeResponse as N, type UserChallengeResponse as O, type PsdChallenge as P, genTransactionSchemas as Q, type RequestSortBy as R, type UserChallenge as S, type TransactionResponse as T, type UserRegistrationChallenge as U, type VaultRequestCreateInput as V, type AccountFreshAddress as a, type AccountResponse as b, type AccountSortBy as c, zAccountLiveDataResponse as d, zAccountResponse as e, zAccountSortBy as f, zBalance as g, zStake as h, zStakeSortBy as i, zStakingValidator as j, zStakingValidatorSortBy as k, zEstimatedFees as l, type TokenResponse as m, zAssetCapabilitiesResponse as n, zAssetResponse as o, zCurrencyResponse as p, zTokenResponse as q, type ApiChallenge as r, type PsdPairingData as s, type PsdPairingInputData as t, type PsdSignature as u, type PubKey as v, type UserRegistrationChallengeResponse as w, type UserRegistrationDeviceData as x, zPsdPairingData as y, zAccountFreshAddress as z };
package/lib/fakes.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as CurrencyResponse, T as TokenResponse, O as UserChallenge, b as AccountResponse, J as VaultRequestResponse } from './app-types-BuzfKOYN.mjs';
1
+ import { A as AssetResponse, S as UserChallenge, b as AccountResponse, L as VaultRequestResponse } from './app-types-BCPeZhFD.mjs';
2
2
  import { VaultRequestReview, RequestType, VaultRequest, Account } from '@prisma/client';
3
3
  import z__default from 'zod';
4
4
 
@@ -169,6 +169,10 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
169
169
  maxFeePerGas: z__default.ZodString;
170
170
  gasLimit: z__default.ZodString;
171
171
  }, z__default.core.$strip>]>;
172
+ }, z__default.core.$strip>, z__default.ZodObject<{
173
+ type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
174
+ currency: z__default.ZodString;
175
+ rawTx: z__default.ZodString;
172
176
  }, z__default.core.$strip>, z__default.ZodObject<{
173
177
  type: z__default.ZodLiteral<"POLKADOT_LIKE_ADDPROXY">;
174
178
  currency: z__default.ZodString;
@@ -522,10 +526,6 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
522
526
  FAST: "FAST";
523
527
  }>;
524
528
  }, z__default.core.$strip>;
525
- }, z__default.core.$strip>, z__default.ZodObject<{
526
- type: z__default.ZodLiteral<"GENERIC_TRANSACTION">;
527
- currency: z__default.ZodString;
528
- rawTx: z__default.ZodString;
529
529
  }, z__default.core.$strip>], "type">;
530
530
  }, z__default.core.$strip>;
531
531
  type CreateTransactionRequestData = z__default.infer<typeof zCreateTransactionRequestData>;
@@ -751,8 +751,9 @@ declare const zEditSciConfigRequestData: z__default.ZodObject<{
751
751
  type EditSciConfigRequestData = z__default.infer<typeof zEditSciConfigRequestData>;
752
752
 
753
753
  type AllAssets = {
754
- currencies: CurrencyResponse[];
755
- tokens: TokenResponse[];
754
+ currencies: AssetResponse[];
755
+ tokens: AssetResponse[];
756
+ hash: string;
756
757
  };
757
758
  declare global {
758
759
  var _allAssetsPromise: Promise<AllAssets> | undefined;