@ledgerhq/revault-api 1.40.2 → 1.42.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
@@ -11,8 +11,8 @@ import * as _trpc_server_unstable_core_do_not_import from '@trpc/server/unstable
11
11
  import * as fastify_types_type_provider from 'fastify/types/type-provider';
12
12
  import * as http from 'http';
13
13
  import * as fastify from 'fastify';
14
- import { C as CurrencyResponse, T as TokenResponse } from './app-types-Ce7ribhA.mjs';
15
- export { A as AccountFreshAddress, b as AccountResponse, c as AccountSortBy, p as ApiChallenge, H as HsmCertificate, P as PsdChallenge, q as PsdPairingData, r as PsdPairingInputData, s as PsdSignature, t as PubKey, R as RequestSortBy, a as TransactionResponse, M as UserChallengeResponse, U as UserRegistrationChallenge, u as UserRegistrationChallengeResponse, v as UserRegistrationDeviceData, V as VaultRequestCreateInput, J as VaultRequestResponse, N as genTransactionSchemas, z as zAccountFreshAddress, d as zAccountLiveDataResponse, e as zAccountResponse, f as zAccountSortBy, g as zBalance, m as zCurrencyCapabilitiesResponse, n as zCurrencyResponse, l as zEstimateFeesResponse, w as zPsdPairingData, x as zPsdPairingInputData, y as zPsdSignature, B as zPubKey, K as zRequestSortBy, h as zStake, i as zStakeSortBy, j as zStakingValidator, k as zStakingValidatorSortBy, o as zTokenResponse, L as zUserChallengeResponse, D as zUserRegistrationChallenge, E as zUserRegistrationChallengeResponse, F as zUserRegistrationDeviceData, G as zVaultRequestCreateInput, I as zVaultRequestResponse } from './app-types-Ce7ribhA.mjs';
14
+ import { A as AssetResponse } from './app-types-PqiC_I3p.mjs';
15
+ export { a as AccountFreshAddress, b as AccountResponse, c as AccountSortBy, r as ApiChallenge, C as CurrencyResponse, H as HsmCertificate, P as PsdChallenge, s as PsdPairingData, t as PsdPairingInputData, u as PsdSignature, v as PubKey, R as RequestSortBy, m as TokenResponse, T as TransactionResponse, O as UserChallengeResponse, U as UserRegistrationChallenge, w as UserRegistrationChallengeResponse, x as UserRegistrationDeviceData, V as VaultRequestCreateInput, L as VaultRequestResponse, Q as genTransactionSchemas, z as zAccountFreshAddress, d as zAccountLiveDataResponse, e as zAccountResponse, f as zAccountSortBy, n as zAssetCapabilitiesResponse, o as zAssetResponse, g as zBalance, p as zCurrencyResponse, l as zEstimateFeesResponse, y as zPsdPairingData, B as zPsdPairingInputData, D as zPsdSignature, E as zPubKey, M as zRequestSortBy, h as zStake, i as zStakeSortBy, j as zStakingValidator, k as zStakingValidatorSortBy, q as zTokenResponse, N as zUserChallengeResponse, F as zUserRegistrationChallenge, G as zUserRegistrationChallengeResponse, I as zUserRegistrationDeviceData, J as zVaultRequestCreateInput, K as zVaultRequestResponse } from './app-types-PqiC_I3p.mjs';
16
16
 
17
17
  declare const zOperationType: z$1.ZodEnum<{
18
18
  SEND: "SEND";
@@ -66,6 +66,8 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
66
66
  type: z__default.ZodEnum<{
67
67
  CANTON_LIKE_SEND: "CANTON_LIKE_SEND";
68
68
  CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
69
+ CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
70
+ CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
69
71
  }>;
70
72
  note: z__default.ZodNullable<z__default.ZodObject<{
71
73
  title: z__default.ZodString;
@@ -440,6 +442,8 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
440
442
  type: z__default.ZodEnum<{
441
443
  CANTON_LIKE_SEND: "CANTON_LIKE_SEND";
442
444
  CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
445
+ CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
446
+ CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
443
447
  }>;
444
448
  note: z__default.ZodNullable<z__default.ZodObject<{
445
449
  title: z__default.ZodString;
@@ -2648,7 +2652,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2648
2652
  fee: string;
2649
2653
  senders: string[];
2650
2654
  recipients: string[];
2651
- type: "CANTON_LIKE_SEND" | "CANTON_LIKE_RECEIVE";
2655
+ type: "CANTON_LIKE_SEND" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_PRE_APPROVAL" | "CANTON_LIKE_TAP";
2652
2656
  note: {
2653
2657
  title: string;
2654
2658
  content: string;
@@ -2927,12 +2931,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2927
2931
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
2928
2932
  feePerByte?: string | null | undefined;
2929
2933
  };
2934
+ } | {
2935
+ currency: string;
2936
+ recipient: string;
2937
+ amount: string;
2938
+ type: "CANTON_LIKE_SEND";
2939
+ } | {
2940
+ currency: string;
2941
+ recipient: string;
2942
+ type: "CANTON_LIKE_PRE_APPROVAL";
2930
2943
  } | {
2931
2944
  amount: string;
2932
2945
  currency: string;
2933
2946
  maxFee: string | null;
2934
2947
  recipient: string;
2935
- type: "CANTON_LIKE_SEND";
2948
+ type: "CANTON_LIKE_TAP";
2936
2949
  } | {
2937
2950
  amount: string;
2938
2951
  currency: string;
@@ -5319,10 +5332,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
5319
5332
  feePerByte?: string | null | undefined;
5320
5333
  };
5321
5334
  } | {
5322
- amount: string;
5323
5335
  currency: string;
5324
- maxFee: string | null;
5325
5336
  recipient: string;
5337
+ amount: string;
5326
5338
  type: "CANTON_LIKE_SEND";
5327
5339
  } | {
5328
5340
  amount: string;
@@ -5496,10 +5508,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
5496
5508
  feePerByte?: string | null | undefined;
5497
5509
  };
5498
5510
  } | {
5499
- amount: string;
5500
5511
  currency: string;
5501
- maxFee: string | null;
5502
5512
  recipient: string;
5513
+ amount: string;
5503
5514
  type: "CANTON_LIKE_SEND";
5504
5515
  } | {
5505
5516
  amount: string;
@@ -5637,10 +5648,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
5637
5648
  feePerByte?: string | null | undefined;
5638
5649
  };
5639
5650
  } | {
5640
- amount: string;
5641
5651
  currency: string;
5642
- maxFee: string | null;
5643
5652
  recipient: string;
5653
+ amount: string;
5644
5654
  type: "CANTON_LIKE_SEND";
5645
5655
  } | {
5646
5656
  amount: string;
@@ -5812,12 +5822,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
5812
5822
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
5813
5823
  feePerByte?: string | null | undefined;
5814
5824
  };
5825
+ } | {
5826
+ currency: string;
5827
+ recipient: string;
5828
+ amount: string;
5829
+ type: "CANTON_LIKE_SEND";
5830
+ } | {
5831
+ currency: string;
5832
+ recipient: string;
5833
+ type: "CANTON_LIKE_PRE_APPROVAL";
5815
5834
  } | {
5816
5835
  amount: string;
5817
5836
  currency: string;
5818
5837
  maxFee: string | null;
5819
5838
  recipient: string;
5820
- type: "CANTON_LIKE_SEND";
5839
+ type: "CANTON_LIKE_TAP";
5821
5840
  } | {
5822
5841
  amount: string;
5823
5842
  currency: string;
@@ -7672,10 +7691,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
7672
7691
  feePerByte?: string | null | undefined;
7673
7692
  };
7674
7693
  } | {
7675
- amount: string;
7676
7694
  currency: string;
7677
- maxFee: string | null;
7678
7695
  recipient: string;
7696
+ amount: string;
7679
7697
  type: "CANTON_LIKE_SEND";
7680
7698
  } | {
7681
7699
  amount: string;
@@ -7849,10 +7867,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
7849
7867
  feePerByte?: string | null | undefined;
7850
7868
  };
7851
7869
  } | {
7852
- amount: string;
7853
7870
  currency: string;
7854
- maxFee: string | null;
7855
7871
  recipient: string;
7872
+ amount: string;
7856
7873
  type: "CANTON_LIKE_SEND";
7857
7874
  } | {
7858
7875
  amount: string;
@@ -7990,10 +8007,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
7990
8007
  feePerByte?: string | null | undefined;
7991
8008
  };
7992
8009
  } | {
7993
- amount: string;
7994
8010
  currency: string;
7995
- maxFee: string | null;
7996
8011
  recipient: string;
8012
+ amount: string;
7997
8013
  type: "CANTON_LIKE_SEND";
7998
8014
  } | {
7999
8015
  amount: string;
@@ -8165,12 +8181,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
8165
8181
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
8166
8182
  feePerByte?: string | null | undefined;
8167
8183
  };
8184
+ } | {
8185
+ currency: string;
8186
+ recipient: string;
8187
+ amount: string;
8188
+ type: "CANTON_LIKE_SEND";
8189
+ } | {
8190
+ currency: string;
8191
+ recipient: string;
8192
+ type: "CANTON_LIKE_PRE_APPROVAL";
8168
8193
  } | {
8169
8194
  amount: string;
8170
8195
  currency: string;
8171
8196
  maxFee: string | null;
8172
8197
  recipient: string;
8173
- type: "CANTON_LIKE_SEND";
8198
+ type: "CANTON_LIKE_TAP";
8174
8199
  } | {
8175
8200
  amount: string;
8176
8201
  currency: string;
@@ -9837,10 +9862,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
9837
9862
  feePerByte?: string | null | undefined;
9838
9863
  };
9839
9864
  } | {
9840
- amount: string;
9841
9865
  currency: string;
9842
- maxFee: string | null;
9843
9866
  recipient: string;
9867
+ amount: string;
9844
9868
  type: "CANTON_LIKE_SEND";
9845
9869
  } | {
9846
9870
  amount: string;
@@ -9962,10 +9986,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
9962
9986
  feePerByte?: string | null | undefined;
9963
9987
  };
9964
9988
  } | {
9965
- amount: string;
9966
9989
  currency: string;
9967
- maxFee: string | null;
9968
9990
  recipient: string;
9991
+ amount: string;
9969
9992
  type: "CANTON_LIKE_SEND";
9970
9993
  } | {
9971
9994
  amount: string;
@@ -10077,10 +10100,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
10077
10100
  feePerByte?: string | null | undefined;
10078
10101
  };
10079
10102
  } | {
10080
- amount: string;
10081
10103
  currency: string;
10082
- maxFee: string | null;
10083
10104
  recipient: string;
10105
+ amount: string;
10084
10106
  type: "CANTON_LIKE_SEND";
10085
10107
  } | {
10086
10108
  amount: string;
@@ -10200,12 +10222,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
10200
10222
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
10201
10223
  feePerByte?: string | null | undefined;
10202
10224
  };
10225
+ } | {
10226
+ currency: string;
10227
+ recipient: string;
10228
+ amount: string;
10229
+ type: "CANTON_LIKE_SEND";
10230
+ } | {
10231
+ currency: string;
10232
+ recipient: string;
10233
+ type: "CANTON_LIKE_PRE_APPROVAL";
10203
10234
  } | {
10204
10235
  amount: string;
10205
10236
  currency: string;
10206
10237
  maxFee: string | null;
10207
10238
  recipient: string;
10208
- type: "CANTON_LIKE_SEND";
10239
+ type: "CANTON_LIKE_TAP";
10209
10240
  } | {
10210
10241
  amount: string;
10211
10242
  currency: string;
@@ -11226,10 +11257,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
11226
11257
  feePerByte?: string | null | undefined;
11227
11258
  };
11228
11259
  } | {
11229
- amount: string;
11230
11260
  currency: string;
11231
- maxFee: string | null;
11232
11261
  recipient: string;
11262
+ amount: string;
11233
11263
  type: "CANTON_LIKE_SEND";
11234
11264
  } | {
11235
11265
  amount: string;
@@ -11403,10 +11433,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
11403
11433
  feePerByte?: string | null | undefined;
11404
11434
  };
11405
11435
  } | {
11406
- amount: string;
11407
11436
  currency: string;
11408
- maxFee: string | null;
11409
11437
  recipient: string;
11438
+ amount: string;
11410
11439
  type: "CANTON_LIKE_SEND";
11411
11440
  } | {
11412
11441
  amount: string;
@@ -11544,10 +11573,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
11544
11573
  feePerByte?: string | null | undefined;
11545
11574
  };
11546
11575
  } | {
11547
- amount: string;
11548
11576
  currency: string;
11549
- maxFee: string | null;
11550
11577
  recipient: string;
11578
+ amount: string;
11551
11579
  type: "CANTON_LIKE_SEND";
11552
11580
  } | {
11553
11581
  amount: string;
@@ -11719,12 +11747,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
11719
11747
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
11720
11748
  feePerByte?: string | null | undefined;
11721
11749
  };
11750
+ } | {
11751
+ currency: string;
11752
+ recipient: string;
11753
+ amount: string;
11754
+ type: "CANTON_LIKE_SEND";
11755
+ } | {
11756
+ currency: string;
11757
+ recipient: string;
11758
+ type: "CANTON_LIKE_PRE_APPROVAL";
11722
11759
  } | {
11723
11760
  amount: string;
11724
11761
  currency: string;
11725
11762
  maxFee: string | null;
11726
11763
  recipient: string;
11727
- type: "CANTON_LIKE_SEND";
11764
+ type: "CANTON_LIKE_TAP";
11728
11765
  } | {
11729
11766
  amount: string;
11730
11767
  currency: string;
@@ -13802,10 +13839,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
13802
13839
  feePerByte?: string | null | undefined;
13803
13840
  };
13804
13841
  } | {
13805
- amount: string;
13806
13842
  currency: string;
13807
- maxFee: string | null;
13808
13843
  recipient: string;
13844
+ amount: string;
13809
13845
  type: "CANTON_LIKE_SEND";
13810
13846
  } | {
13811
13847
  amount: string;
@@ -13979,10 +14015,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
13979
14015
  feePerByte?: string | null | undefined;
13980
14016
  };
13981
14017
  } | {
13982
- amount: string;
13983
14018
  currency: string;
13984
- maxFee: string | null;
13985
14019
  recipient: string;
14020
+ amount: string;
13986
14021
  type: "CANTON_LIKE_SEND";
13987
14022
  } | {
13988
14023
  amount: string;
@@ -14120,10 +14155,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
14120
14155
  feePerByte?: string | null | undefined;
14121
14156
  };
14122
14157
  } | {
14123
- amount: string;
14124
14158
  currency: string;
14125
- maxFee: string | null;
14126
14159
  recipient: string;
14160
+ amount: string;
14127
14161
  type: "CANTON_LIKE_SEND";
14128
14162
  } | {
14129
14163
  amount: string;
@@ -14295,12 +14329,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
14295
14329
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
14296
14330
  feePerByte?: string | null | undefined;
14297
14331
  };
14332
+ } | {
14333
+ currency: string;
14334
+ recipient: string;
14335
+ amount: string;
14336
+ type: "CANTON_LIKE_SEND";
14337
+ } | {
14338
+ currency: string;
14339
+ recipient: string;
14340
+ type: "CANTON_LIKE_PRE_APPROVAL";
14298
14341
  } | {
14299
14342
  amount: string;
14300
14343
  currency: string;
14301
14344
  maxFee: string | null;
14302
14345
  recipient: string;
14303
- type: "CANTON_LIKE_SEND";
14346
+ type: "CANTON_LIKE_TAP";
14304
14347
  } | {
14305
14348
  amount: string;
14306
14349
  currency: string;
@@ -16157,10 +16200,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
16157
16200
  feePerByte?: string | null | undefined;
16158
16201
  };
16159
16202
  } | {
16160
- amount: string;
16161
16203
  currency: string;
16162
- maxFee: string | null;
16163
16204
  recipient: string;
16205
+ amount: string;
16164
16206
  type: "CANTON_LIKE_SEND";
16165
16207
  } | {
16166
16208
  amount: string;
@@ -16334,10 +16376,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
16334
16376
  feePerByte?: string | null | undefined;
16335
16377
  };
16336
16378
  } | {
16337
- amount: string;
16338
16379
  currency: string;
16339
- maxFee: string | null;
16340
16380
  recipient: string;
16381
+ amount: string;
16341
16382
  type: "CANTON_LIKE_SEND";
16342
16383
  } | {
16343
16384
  amount: string;
@@ -16475,10 +16516,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
16475
16516
  feePerByte?: string | null | undefined;
16476
16517
  };
16477
16518
  } | {
16478
- amount: string;
16479
16519
  currency: string;
16480
- maxFee: string | null;
16481
16520
  recipient: string;
16521
+ amount: string;
16482
16522
  type: "CANTON_LIKE_SEND";
16483
16523
  } | {
16484
16524
  amount: string;
@@ -16650,12 +16690,21 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
16650
16690
  type: "SLOW" | "NORMAL" | "FAST" | "CUSTOM";
16651
16691
  feePerByte?: string | null | undefined;
16652
16692
  };
16693
+ } | {
16694
+ currency: string;
16695
+ recipient: string;
16696
+ amount: string;
16697
+ type: "CANTON_LIKE_SEND";
16698
+ } | {
16699
+ currency: string;
16700
+ recipient: string;
16701
+ type: "CANTON_LIKE_PRE_APPROVAL";
16653
16702
  } | {
16654
16703
  amount: string;
16655
16704
  currency: string;
16656
16705
  maxFee: string | null;
16657
16706
  recipient: string;
16658
- type: "CANTON_LIKE_SEND";
16707
+ type: "CANTON_LIKE_TAP";
16659
16708
  } | {
16660
16709
  amount: string;
16661
16710
  currency: string;
@@ -22807,6 +22856,62 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22807
22856
  errorShape: _trpc_server.TRPCDefaultErrorShape;
22808
22857
  transformer: true;
22809
22858
  }, _trpc_server.TRPCDecorateCreateRouterOptions<{
22859
+ nativeCurrencies: _trpc_server.TRPCQueryProcedure<{
22860
+ input: {
22861
+ cursor?: string | undefined;
22862
+ search?: string | undefined;
22863
+ };
22864
+ output: {
22865
+ next: string | null;
22866
+ results: ({
22867
+ id: string;
22868
+ name: string;
22869
+ ticker: string;
22870
+ family: string;
22871
+ units: {
22872
+ code: string;
22873
+ name: string;
22874
+ magnitude: number;
22875
+ }[];
22876
+ network: string;
22877
+ assetType: "NATIVE";
22878
+ } | {
22879
+ id: string;
22880
+ name: string;
22881
+ ticker: string;
22882
+ family: string;
22883
+ units: {
22884
+ code: string;
22885
+ name: string;
22886
+ magnitude: number;
22887
+ }[];
22888
+ network: string;
22889
+ assetType: "TOKEN";
22890
+ contractAddress: string;
22891
+ metaCurrencyId: string | null;
22892
+ })[];
22893
+ };
22894
+ meta: {
22895
+ [x: string]: unknown;
22896
+ } & {
22897
+ openapi?: {
22898
+ enabled?: boolean;
22899
+ method: trpc_to_openapi.OpenApiMethod;
22900
+ path: `/${string}`;
22901
+ operationId?: string;
22902
+ summary?: string;
22903
+ description?: string;
22904
+ protect?: boolean;
22905
+ tags?: string[];
22906
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
22907
+ deprecated?: boolean;
22908
+ requestHeaders?: z.ZodObject;
22909
+ responseHeaders?: z.ZodObject;
22910
+ successDescription?: string;
22911
+ errorResponses?: number[] | Record<number, string>;
22912
+ };
22913
+ } & RateLimitMetricsMeta;
22914
+ }>;
22810
22915
  currencies: _trpc_server.TRPCQueryProcedure<{
22811
22916
  input: {
22812
22917
  cursor?: string | undefined;
@@ -22817,6 +22922,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22817
22922
  results: {
22818
22923
  id: string;
22819
22924
  name: string;
22925
+ ticker: string;
22820
22926
  type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
22821
22927
  units: {
22822
22928
  code: string;
@@ -22857,6 +22963,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22857
22963
  results: {
22858
22964
  id: string;
22859
22965
  name: string;
22966
+ ticker: string;
22860
22967
  type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
22861
22968
  units: {
22862
22969
  code: string;
@@ -22891,8 +22998,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22891
22998
  all: _trpc_server.TRPCQueryProcedure<{
22892
22999
  input: void;
22893
23000
  output: {
22894
- currencies: CurrencyResponse[];
22895
- tokens: TokenResponse[];
23001
+ currencies: AssetResponse[];
23002
+ tokens: AssetResponse[];
23003
+ hash: string;
22896
23004
  };
22897
23005
  meta: {
22898
23006
  [x: string]: unknown;
@@ -22915,7 +23023,31 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22915
23023
  };
22916
23024
  } & RateLimitMetricsMeta;
22917
23025
  }>;
22918
- currencyCapabilities: _trpc_server.TRPCQueryProcedure<{
23026
+ allAssetsHash: _trpc_server.TRPCQueryProcedure<{
23027
+ input: void;
23028
+ output: string;
23029
+ meta: {
23030
+ [x: string]: unknown;
23031
+ } & {
23032
+ openapi?: {
23033
+ enabled?: boolean;
23034
+ method: trpc_to_openapi.OpenApiMethod;
23035
+ path: `/${string}`;
23036
+ operationId?: string;
23037
+ summary?: string;
23038
+ description?: string;
23039
+ protect?: boolean;
23040
+ tags?: string[];
23041
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
23042
+ deprecated?: boolean;
23043
+ requestHeaders?: z.ZodObject;
23044
+ responseHeaders?: z.ZodObject;
23045
+ successDescription?: string;
23046
+ errorResponses?: number[] | Record<number, string>;
23047
+ };
23048
+ } & RateLimitMetricsMeta;
23049
+ }>;
23050
+ assetCapabilities: _trpc_server.TRPCQueryProcedure<{
22919
23051
  input: {
22920
23052
  id: string;
22921
23053
  };
@@ -24880,4 +25012,4 @@ declare const emptyPage: <T>(paginationQuery: {
24880
25012
  declare const fetchAllPages: <T>(fetchPage: (page: number) => Promise<Paginated<T>>) => Promise<T[]>;
24881
25013
  declare const fetchAllCursorPages: <T>(fetchPage: (cursor: string | null) => Promise<CursorPaginated<T>>) => Promise<T[]>;
24882
25014
 
24883
- export { type AdminResponse, type AllowedActionsResponse, type AllowedResourcesResponse, type AppRouter, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, CurrencyResponse, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type GroupResponse, type GroupSortBy, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type ReviewStepWithUsers, type RootWorkspaceRuleResponse, type SortOrder, TokenResponse, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionWithMetaResponse, type UserRegistrationCreateInput, type UserRegistrationResponse, type UserResponse, type UserSortBy, type WhitelistResponse, type WhitelistSortBy, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, emptyPage, fetchAllCursorPages, fetchAllPages, paginate, serializePage, stableOrdering, zAdminResponse, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zGroupResponse, zGroupSortBy, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOperationType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zReviewStepsArray, zRootWorkspaceRuleResponse, zSignedMessageResponse, zSortOrder, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationCreateInput, zUserRegistrationResponse, zUserResponse, zUserSortBy, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWorkspaceRulesResponse, zWrappingKeyFragmentInput };
25015
+ export { type AdminResponse, type AllowedActionsResponse, type AllowedResourcesResponse, type AppRouter, AssetResponse, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type GroupResponse, type GroupSortBy, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type ReviewStepWithUsers, type RootWorkspaceRuleResponse, type SortOrder, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionWithMetaResponse, type UserRegistrationCreateInput, type UserRegistrationResponse, type UserResponse, type UserSortBy, type WhitelistResponse, type WhitelistSortBy, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, emptyPage, fetchAllCursorPages, fetchAllPages, paginate, serializePage, stableOrdering, zAdminResponse, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zGroupResponse, zGroupSortBy, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOperationType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zReviewStepsArray, zRootWorkspaceRuleResponse, zSignedMessageResponse, zSortOrder, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationCreateInput, zUserRegistrationResponse, zUserResponse, zUserSortBy, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWorkspaceRulesResponse, zWrappingKeyFragmentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.40.2",
3
+ "version": "1.42.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@faker-js/faker": "^9.9.0",
24
- "fastify": "^5.6.1",
24
+ "fastify": "^5.6.2",
25
25
  "invariant": "^2.2.4",
26
26
  "lodash": "^4.17.21",
27
27
  "socket.io": "^4.8.1",