@ledgerhq/revault-api 1.33.0 → 1.34.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/index.d.mts CHANGED
@@ -10,7 +10,7 @@ import * as _trpc_server_unstable_core_do_not_import from '@trpc/server/unstable
10
10
  import * as fastify_types_type_provider from 'fastify/types/type-provider';
11
11
  import * as http from 'http';
12
12
  import * as fastify from 'fastify';
13
- export { A as AccountResponse, a as AccountSortBy, d as ApiChallenge, H as HsmCertificate, P as PsdChallenge, e as PsdPairingData, f as PsdPairingInputData, g as PsdSignature, h as PubKey, R as RequestSortBy, w as UserChallengeResponse, U as UserRegistrationChallenge, i as UserRegistrationChallengeResponse, j as UserRegistrationDeviceData, V as VaultRequestCreateInput, t as VaultRequestResponse, c as zAccountLiveData, z as zAccountResponse, b as zAccountSortBy, k as zPsdPairingData, l as zPsdPairingInputData, m as zPsdSignature, n as zPubKey, u as zRequestSortBy, v as zUserChallengeResponse, o as zUserRegistrationChallenge, p as zUserRegistrationChallengeResponse, q as zUserRegistrationDeviceData, r as zVaultRequestCreateInput, s as zVaultRequestResponse } from './app-types-cjzmhBDS.mjs';
13
+ export { A as AccountResponse, a as AccountSortBy, d as ApiChallenge, H as HsmCertificate, P as PsdChallenge, e as PsdPairingData, f as PsdPairingInputData, g as PsdSignature, h as PubKey, R as RequestSortBy, w as UserChallengeResponse, U as UserRegistrationChallenge, i as UserRegistrationChallengeResponse, j as UserRegistrationDeviceData, V as VaultRequestCreateInput, t as VaultRequestResponse, c as zAccountLiveData, z as zAccountResponse, b as zAccountSortBy, k as zPsdPairingData, l as zPsdPairingInputData, m as zPsdSignature, n as zPubKey, u as zRequestSortBy, v as zUserChallengeResponse, o as zUserRegistrationChallenge, p as zUserRegistrationChallengeResponse, q as zUserRegistrationDeviceData, r as zVaultRequestCreateInput, s as zVaultRequestResponse } from './app-types-CAcz9y3Z.mjs';
14
14
  export { CreateWebhookPayload, DeleteWebhookResponse, WebhookResponse, WebhooksResponse, zCreateWebhookPayload, zDeleteWebhookResponse, zWebhookResponse } from '@ledgerhq/revault-notifier-types/webhook';
15
15
 
16
16
  type RateLimitRouteMetricsConfig = {
@@ -1554,6 +1554,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1554
1554
  } | {
1555
1555
  type: "STELLAR_LIKE";
1556
1556
  address: string | null;
1557
+ } | {
1558
+ type: "SUI_LIKE";
1559
+ address: string | null;
1557
1560
  } | {
1558
1561
  type: "TEZOS_LIKE";
1559
1562
  address: string | null;
@@ -1636,6 +1639,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1636
1639
  } | {
1637
1640
  type: "STELLAR_LIKE";
1638
1641
  address: string | null;
1642
+ } | {
1643
+ type: "SUI_LIKE";
1644
+ address: string | null;
1639
1645
  } | {
1640
1646
  type: "TEZOS_LIKE";
1641
1647
  address: string | null;
@@ -1930,7 +1936,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1930
1936
  };
1931
1937
  } & RateLimitMetricsMeta;
1932
1938
  }>;
1933
- estimateFees: _trpc_server.TRPCQueryProcedure<{
1939
+ estimateFees: _trpc_server.TRPCMutationProcedure<{
1934
1940
  input: {
1935
1941
  id: string;
1936
1942
  transaction: {
@@ -2317,7 +2323,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2317
2323
  };
2318
2324
  } & RateLimitMetricsMeta;
2319
2325
  }>;
2320
- getAccountAddressChallengeForPsd: _trpc_server.TRPCQueryProcedure<{
2326
+ getAccountAddressChallengeForPsd: _trpc_server.TRPCMutationProcedure<{
2321
2327
  input: {
2322
2328
  id: string;
2323
2329
  accountType: "EOA";
@@ -2514,6 +2520,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2514
2520
  total: string;
2515
2521
  pending: string;
2516
2522
  };
2523
+ } | {
2524
+ type: "SUI_LIKE";
2525
+ id: string;
2526
+ balance: {
2527
+ total: string;
2528
+ pending: string;
2529
+ };
2517
2530
  } | {
2518
2531
  type: "TEZOS_LIKE";
2519
2532
  id: string;
@@ -2703,6 +2716,13 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2703
2716
  total: string;
2704
2717
  pending: string;
2705
2718
  };
2719
+ } | {
2720
+ type: "SUI_LIKE";
2721
+ id: string;
2722
+ balance: {
2723
+ total: string;
2724
+ pending: string;
2725
+ };
2706
2726
  } | {
2707
2727
  type: "TEZOS_LIKE";
2708
2728
  id: string;
@@ -5032,7 +5052,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
5032
5052
  id: string;
5033
5053
  data: {
5034
5054
  name: string;
5035
- 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";
5055
+ 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";
5036
5056
  derivationPath: string;
5037
5057
  currency: string;
5038
5058
  index: number;
@@ -7281,7 +7301,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
7281
7301
  id: string;
7282
7302
  data: {
7283
7303
  name: string;
7284
- 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";
7304
+ 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";
7285
7305
  derivationPath: string;
7286
7306
  currency: string;
7287
7307
  index: number;
@@ -10608,7 +10628,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
10608
10628
  id: string;
10609
10629
  data: {
10610
10630
  name: string;
10611
- 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";
10631
+ 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";
10612
10632
  derivationPath: string;
10613
10633
  currency: string;
10614
10634
  index: number;
@@ -12859,7 +12879,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
12859
12879
  id: string;
12860
12880
  data: {
12861
12881
  name: string;
12862
- 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";
12882
+ 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";
12863
12883
  derivationPath: string;
12864
12884
  currency: string;
12865
12885
  index: number;
@@ -15110,7 +15130,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
15110
15130
  id: string;
15111
15131
  data: {
15112
15132
  name: string;
15113
- 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";
15133
+ 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";
15114
15134
  derivationPath: string;
15115
15135
  currency: string;
15116
15136
  index: number;
@@ -20386,7 +20406,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
20386
20406
  next: string | null;
20387
20407
  results: {
20388
20408
  name: string;
20389
- 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";
20409
+ 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";
20390
20410
  id: string;
20391
20411
  units: {
20392
20412
  name: string;
@@ -20425,7 +20445,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
20425
20445
  next: string | null;
20426
20446
  results: {
20427
20447
  name: string;
20428
- 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";
20448
+ 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";
20429
20449
  id: string;
20430
20450
  currency: string;
20431
20451
  contractAddress: string;
@@ -23439,6 +23459,7 @@ declare const zCurrencyResponse: z__default.ZodObject<{
23439
23459
  TRC20_LIKE: "TRC20_LIKE";
23440
23460
  GENERIC_LIKE: "GENERIC_LIKE";
23441
23461
  RAW_SIGNING: "RAW_SIGNING";
23462
+ SUI_LIKE: "SUI_LIKE";
23442
23463
  }>;
23443
23464
  units: z__default.ZodArray<z__default.ZodObject<{
23444
23465
  code: z__default.ZodString;
@@ -23455,7 +23476,7 @@ declare const zCurrencyResponse: z__default.ZodObject<{
23455
23476
  }>, "many">;
23456
23477
  }, "strip", z__default.ZodTypeAny, {
23457
23478
  name: string;
23458
- 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";
23479
+ 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";
23459
23480
  id: string;
23460
23481
  units: {
23461
23482
  name: string;
@@ -23464,7 +23485,7 @@ declare const zCurrencyResponse: z__default.ZodObject<{
23464
23485
  }[];
23465
23486
  }, {
23466
23487
  name: string;
23467
- 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";
23488
+ 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";
23468
23489
  id: string;
23469
23490
  units: {
23470
23491
  name: string;
@@ -23490,6 +23511,7 @@ declare const zTokenResponse: z__default.ZodObject<{
23490
23511
  TRC20_LIKE: "TRC20_LIKE";
23491
23512
  GENERIC_LIKE: "GENERIC_LIKE";
23492
23513
  RAW_SIGNING: "RAW_SIGNING";
23514
+ SUI_LIKE: "SUI_LIKE";
23493
23515
  }>;
23494
23516
  units: z__default.ZodArray<z__default.ZodObject<{
23495
23517
  code: z__default.ZodString;
@@ -23509,7 +23531,7 @@ declare const zTokenResponse: z__default.ZodObject<{
23509
23531
  currency: z__default.ZodString;
23510
23532
  }, "strip", z__default.ZodTypeAny, {
23511
23533
  name: string;
23512
- 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";
23534
+ 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";
23513
23535
  id: string;
23514
23536
  currency: string;
23515
23537
  contractAddress: string;
@@ -23520,7 +23542,7 @@ declare const zTokenResponse: z__default.ZodObject<{
23520
23542
  }[];
23521
23543
  }, {
23522
23544
  name: string;
23523
- 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";
23545
+ 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";
23524
23546
  id: string;
23525
23547
  currency: string;
23526
23548
  contractAddress: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.33.0",
3
+ "version": "1.34.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [