@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.
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-BuzfKOYN.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-BuzfKOYN.mjs';
14
+ import { A as AssetResponse } from './app-types-BCPeZhFD.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-BCPeZhFD.mjs';
16
16
 
17
17
  declare const zOperationType: z$1.ZodEnum<{
18
18
  SEND: "SEND";
@@ -394,6 +394,33 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
394
394
  content: z__default.ZodString;
395
395
  }, z__default.core.$strip>>;
396
396
  requestId: z__default.ZodNullable<z__default.ZodString>;
397
+ }, z__default.core.$strip> | z__default.ZodObject<{
398
+ id: z__default.ZodString;
399
+ hash: z__default.ZodString;
400
+ block: z__default.ZodObject<{
401
+ height: z__default.ZodNullable<z__default.ZodString>;
402
+ time: z__default.ZodNullable<z__default.ZodString>;
403
+ }, z__default.core.$strip>;
404
+ status: z__default.ZodEnum<{
405
+ SUCCESSFUL: "SUCCESSFUL";
406
+ FAILED: "FAILED";
407
+ }>;
408
+ confirmations: z__default.ZodString;
409
+ amount: z__default.ZodString;
410
+ fee: z__default.ZodString;
411
+ senders: z__default.ZodArray<z__default.ZodString>;
412
+ recipients: z__default.ZodArray<z__default.ZodString>;
413
+ type: z__default.ZodEnum<{
414
+ TRON_LIKE_SEND: "TRON_LIKE_SEND";
415
+ TRON_LIKE_RECEIVE: "TRON_LIKE_RECEIVE";
416
+ TRON_LIKE_SEND_TOKEN: "TRON_LIKE_SEND_TOKEN";
417
+ TRON_LIKE_RECEIVE_TOKEN: "TRON_LIKE_RECEIVE_TOKEN";
418
+ }>;
419
+ note: z__default.ZodNullable<z__default.ZodObject<{
420
+ title: z__default.ZodString;
421
+ content: z__default.ZodString;
422
+ }, z__default.core.$strip>>;
423
+ requestId: z__default.ZodNullable<z__default.ZodString>;
397
424
  }, z__default.core.$strip>, ...(z__default.ZodObject<{
398
425
  id: z__default.ZodString;
399
426
  hash: z__default.ZodString;
@@ -741,6 +768,33 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
741
768
  content: z__default.ZodString;
742
769
  }, z__default.core.$strip>>;
743
770
  requestId: z__default.ZodNullable<z__default.ZodString>;
771
+ }, z__default.core.$strip> | z__default.ZodObject<{
772
+ id: z__default.ZodString;
773
+ hash: z__default.ZodString;
774
+ block: z__default.ZodObject<{
775
+ height: z__default.ZodNullable<z__default.ZodString>;
776
+ time: z__default.ZodNullable<z__default.ZodString>;
777
+ }, z__default.core.$strip>;
778
+ status: z__default.ZodEnum<{
779
+ SUCCESSFUL: "SUCCESSFUL";
780
+ FAILED: "FAILED";
781
+ }>;
782
+ confirmations: z__default.ZodString;
783
+ amount: z__default.ZodString;
784
+ fee: z__default.ZodString;
785
+ senders: z__default.ZodArray<z__default.ZodString>;
786
+ recipients: z__default.ZodArray<z__default.ZodString>;
787
+ type: z__default.ZodEnum<{
788
+ TRON_LIKE_SEND: "TRON_LIKE_SEND";
789
+ TRON_LIKE_RECEIVE: "TRON_LIKE_RECEIVE";
790
+ TRON_LIKE_SEND_TOKEN: "TRON_LIKE_SEND_TOKEN";
791
+ TRON_LIKE_RECEIVE_TOKEN: "TRON_LIKE_RECEIVE_TOKEN";
792
+ }>;
793
+ note: z__default.ZodNullable<z__default.ZodObject<{
794
+ title: z__default.ZodString;
795
+ content: z__default.ZodString;
796
+ }, z__default.core.$strip>>;
797
+ requestId: z__default.ZodNullable<z__default.ZodString>;
744
798
  }, z__default.core.$strip>)[]], "type">;
745
799
  type TransactionWithMetaResponse = z__default.infer<typeof zTransactionWithMetaResponse>;
746
800
 
@@ -1150,7 +1204,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1150
1204
  role?: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY" | undefined;
1151
1205
  deviceType?: "PSD" | "API" | "SOFT_PSD" | undefined;
1152
1206
  status?: "ACTIVE" | "INACTIVE" | undefined;
1153
- sortBy?: "status" | "createdAt" | "name" | "role" | "updatedAt" | undefined;
1207
+ sortBy?: "status" | "name" | "createdAt" | "updatedAt" | "role" | undefined;
1154
1208
  sortOrder?: "asc" | "desc" | undefined;
1155
1209
  ids?: string[] | undefined;
1156
1210
  };
@@ -1778,7 +1832,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1778
1832
  workspaceName?: string | undefined;
1779
1833
  role?: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY" | undefined;
1780
1834
  status?: "ACTIVE" | "INACTIVE" | undefined;
1781
- sortBy?: "status" | "createdAt" | "name" | "role" | "updatedAt" | undefined;
1835
+ sortBy?: "status" | "name" | "createdAt" | "updatedAt" | "role" | undefined;
1782
1836
  sortOrder?: "asc" | "desc" | undefined;
1783
1837
  };
1784
1838
  output: {
@@ -1920,7 +1974,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1920
1974
  role: "ADMIN";
1921
1975
  }[];
1922
1976
  };
1923
- mode: "READ_ONLY" | "GATE_COMPAT" | "STANDALONE";
1977
+ mode: "GATE_COMPAT" | "STANDALONE";
1924
1978
  status: "ACTIVE" | "INACTIVE";
1925
1979
  orgApiWorkspaceConfig: {
1926
1980
  hsmDriverName: string;
@@ -1973,7 +2027,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1973
2027
  role: "ADMIN";
1974
2028
  }[];
1975
2029
  };
1976
- mode: "READ_ONLY" | "GATE_COMPAT" | "STANDALONE";
2030
+ mode: "GATE_COMPAT" | "STANDALONE";
1977
2031
  status: "ACTIVE" | "INACTIVE";
1978
2032
  orgApiWorkspaceConfig: {
1979
2033
  hsmDriverName: string;
@@ -2003,7 +2057,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2003
2057
  editWorkspace: _trpc_server.TRPCMutationProcedure<{
2004
2058
  input: {
2005
2059
  name: string;
2006
- mode: "READ_ONLY" | "GATE_COMPAT" | "STANDALONE";
2060
+ mode: "GATE_COMPAT" | "STANDALONE";
2007
2061
  status?: "ACTIVE" | "INACTIVE" | undefined;
2008
2062
  };
2009
2063
  output: {
@@ -2028,7 +2082,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2028
2082
  role: "ADMIN";
2029
2083
  }[];
2030
2084
  };
2031
- mode: "READ_ONLY" | "GATE_COMPAT" | "STANDALONE";
2085
+ mode: "GATE_COMPAT" | "STANDALONE";
2032
2086
  status: "ACTIVE" | "INACTIVE";
2033
2087
  orgApiWorkspaceConfig: {
2034
2088
  hsmDriverName: string;
@@ -2334,7 +2388,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2334
2388
  name?: string | undefined;
2335
2389
  governanceType?: "RAW_SIGNING" | "CLASSIC" | "TRADELINK" | undefined;
2336
2390
  allowedAction?: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "ACTIVATE_TOKEN" | "RECEIVE" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | undefined;
2337
- sortBy?: "currency" | "createdAt" | "index" | "name" | "updatedAt" | undefined;
2391
+ sortBy?: "currency" | "name" | "index" | "createdAt" | "updatedAt" | undefined;
2338
2392
  sortOrder?: "asc" | "desc" | undefined;
2339
2393
  currency?: string | undefined;
2340
2394
  index?: number | undefined;
@@ -2388,10 +2442,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2388
2442
  type: "STELLAR_LIKE";
2389
2443
  address: string | null;
2390
2444
  } | {
2391
- type: "TEZOS_LIKE";
2445
+ type: "SUI_LIKE";
2392
2446
  address: string | null;
2393
2447
  } | {
2394
- type: "SUI_LIKE";
2448
+ type: "TEZOS_LIKE";
2395
2449
  address: string | null;
2396
2450
  } | {
2397
2451
  type: "TRON_LIKE";
@@ -2480,10 +2534,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2480
2534
  type: "STELLAR_LIKE";
2481
2535
  address: string | null;
2482
2536
  } | {
2483
- type: "TEZOS_LIKE";
2537
+ type: "SUI_LIKE";
2484
2538
  address: string | null;
2485
2539
  } | {
2486
- type: "SUI_LIKE";
2540
+ type: "TEZOS_LIKE";
2487
2541
  address: string | null;
2488
2542
  } | {
2489
2543
  type: "TRON_LIKE";
@@ -2818,6 +2872,25 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2818
2872
  content: string;
2819
2873
  } | null;
2820
2874
  requestId: string | null;
2875
+ } | {
2876
+ id: string;
2877
+ hash: string;
2878
+ block: {
2879
+ height: string | null;
2880
+ time: string | null;
2881
+ };
2882
+ status: "SUCCESSFUL" | "FAILED";
2883
+ confirmations: string;
2884
+ amount: string;
2885
+ fee: string;
2886
+ senders: string[];
2887
+ recipients: string[];
2888
+ type: "TRON_LIKE_SEND" | "TRON_LIKE_RECEIVE" | "TRON_LIKE_SEND_TOKEN" | "TRON_LIKE_RECEIVE_TOKEN";
2889
+ note: {
2890
+ title: string;
2891
+ content: string;
2892
+ } | null;
2893
+ requestId: string | null;
2821
2894
  })[];
2822
2895
  };
2823
2896
  meta: {
@@ -2951,6 +3024,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2951
3024
  maxFeePerGas: string;
2952
3025
  gasLimit: string;
2953
3026
  };
3027
+ } | {
3028
+ type: "GENERIC_TRANSACTION";
3029
+ currency: string;
3030
+ rawTx: string;
2954
3031
  } | {
2955
3032
  type: "POLKADOT_LIKE_ADDPROXY";
2956
3033
  currency: string;
@@ -3206,10 +3283,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
3206
3283
  feeStrategy: {
3207
3284
  type: "SLOW" | "NORMAL" | "FAST";
3208
3285
  };
3209
- } | {
3210
- type: "GENERIC_TRANSACTION";
3211
- currency: string;
3212
- rawTx: string;
3213
3286
  };
3214
3287
  };
3215
3288
  output: {
@@ -3839,7 +3912,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
3839
3912
  results: {
3840
3913
  id: string;
3841
3914
  validator: string;
3842
- state: "UNKNOWN" | "ACTIVE" | "INACTIVE" | "ACTIVATING" | "DEACTIVATING";
3915
+ state: "ACTIVE" | "INACTIVE" | "UNKNOWN" | "ACTIVATING" | "DEACTIVATING";
3843
3916
  staked: string;
3844
3917
  rewards: {
3845
3918
  total: string;
@@ -4224,7 +4297,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
4224
4297
  page?: number | undefined;
4225
4298
  pageSize?: number | undefined;
4226
4299
  status?: "ACTIVE" | "INACTIVE" | undefined;
4227
- sortBy?: "status" | "createdAt" | "name" | "updatedAt" | undefined;
4300
+ sortBy?: "status" | "name" | "createdAt" | "updatedAt" | undefined;
4228
4301
  sortOrder?: "asc" | "desc" | undefined;
4229
4302
  };
4230
4303
  output: {
@@ -4370,7 +4443,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
4370
4443
  page?: number | undefined;
4371
4444
  pageSize?: number | undefined;
4372
4445
  status?: "ACTIVE" | "INACTIVE" | undefined;
4373
- sortBy?: "status" | "createdAt" | "name" | "updatedAt" | undefined;
4446
+ sortBy?: "status" | "name" | "createdAt" | "updatedAt" | undefined;
4374
4447
  sortOrder?: "asc" | "desc" | undefined;
4375
4448
  };
4376
4449
  output: {
@@ -4499,7 +4572,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
4499
4572
  pageSize?: number | undefined;
4500
4573
  name?: string | undefined;
4501
4574
  isPrivate?: boolean | undefined;
4502
- sortBy?: "createdAt" | "name" | "updatedAt" | undefined;
4575
+ sortBy?: "name" | "createdAt" | "updatedAt" | undefined;
4503
4576
  sortOrder?: "asc" | "desc" | undefined;
4504
4577
  };
4505
4578
  output: {
@@ -4565,8 +4638,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
4565
4638
  id: string;
4566
4639
  description: string | null;
4567
4640
  status: "ACTIVE" | "INACTIVE";
4568
- createdAt: Date;
4569
4641
  name: string;
4642
+ createdAt: Date;
4570
4643
  updatedAt: Date;
4571
4644
  legacyId: number;
4572
4645
  }[];
@@ -4656,8 +4729,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
4656
4729
  id: string;
4657
4730
  description: string | null;
4658
4731
  status: "ACTIVE" | "INACTIVE";
4659
- createdAt: Date;
4660
4732
  name: string;
4733
+ createdAt: Date;
4661
4734
  updatedAt: Date;
4662
4735
  legacyId: number;
4663
4736
  }[];
@@ -4727,7 +4800,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
4727
4800
  page?: number | undefined;
4728
4801
  pageSize?: number | undefined;
4729
4802
  status?: "ACTIVE" | "INACTIVE" | undefined;
4730
- sortBy?: "status" | "createdAt" | "name" | "updatedAt" | undefined;
4803
+ sortBy?: "status" | "name" | "createdAt" | "updatedAt" | undefined;
4731
4804
  sortOrder?: "asc" | "desc" | undefined;
4732
4805
  };
4733
4806
  output: {
@@ -5836,6 +5909,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
5836
5909
  maxFeePerGas: string;
5837
5910
  gasLimit: string;
5838
5911
  };
5912
+ } | {
5913
+ type: "GENERIC_TRANSACTION";
5914
+ currency: string;
5915
+ rawTx: string;
5839
5916
  } | {
5840
5917
  type: "POLKADOT_LIKE_ADDPROXY";
5841
5918
  currency: string;
@@ -6091,10 +6168,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
6091
6168
  feeStrategy: {
6092
6169
  type: "SLOW" | "NORMAL" | "FAST";
6093
6170
  };
6094
- } | {
6095
- type: "GENERIC_TRANSACTION";
6096
- currency: string;
6097
- rawTx: string;
6098
6171
  };
6099
6172
  };
6100
6173
  id: string;
@@ -8189,6 +8262,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
8189
8262
  maxFeePerGas: string;
8190
8263
  gasLimit: string;
8191
8264
  };
8265
+ } | {
8266
+ type: "GENERIC_TRANSACTION";
8267
+ currency: string;
8268
+ rawTx: string;
8192
8269
  } | {
8193
8270
  type: "POLKADOT_LIKE_ADDPROXY";
8194
8271
  currency: string;
@@ -8444,10 +8521,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
8444
8521
  feeStrategy: {
8445
8522
  type: "SLOW" | "NORMAL" | "FAST";
8446
8523
  };
8447
- } | {
8448
- type: "GENERIC_TRANSACTION";
8449
- currency: string;
8450
- rawTx: string;
8451
8524
  };
8452
8525
  };
8453
8526
  id: string;
@@ -10224,6 +10297,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
10224
10297
  maxFeePerGas: string;
10225
10298
  gasLimit: string;
10226
10299
  };
10300
+ } | {
10301
+ type: "GENERIC_TRANSACTION";
10302
+ currency: string;
10303
+ rawTx: string;
10227
10304
  } | {
10228
10305
  type: "POLKADOT_LIKE_ADDPROXY";
10229
10306
  currency: string;
@@ -10479,10 +10556,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
10479
10556
  feeStrategy: {
10480
10557
  type: "SLOW" | "NORMAL" | "FAST";
10481
10558
  };
10482
- } | {
10483
- type: "GENERIC_TRANSACTION";
10484
- currency: string;
10485
- rawTx: string;
10486
10559
  };
10487
10560
  };
10488
10561
  meta?: {
@@ -11743,6 +11816,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
11743
11816
  maxFeePerGas: string;
11744
11817
  gasLimit: string;
11745
11818
  };
11819
+ } | {
11820
+ type: "GENERIC_TRANSACTION";
11821
+ currency: string;
11822
+ rawTx: string;
11746
11823
  } | {
11747
11824
  type: "POLKADOT_LIKE_ADDPROXY";
11748
11825
  currency: string;
@@ -11998,10 +12075,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
11998
12075
  feeStrategy: {
11999
12076
  type: "SLOW" | "NORMAL" | "FAST";
12000
12077
  };
12001
- } | {
12002
- type: "GENERIC_TRANSACTION";
12003
- currency: string;
12004
- rawTx: string;
12005
12078
  };
12006
12079
  };
12007
12080
  id: string;
@@ -14319,6 +14392,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
14319
14392
  maxFeePerGas: string;
14320
14393
  gasLimit: string;
14321
14394
  };
14395
+ } | {
14396
+ type: "GENERIC_TRANSACTION";
14397
+ currency: string;
14398
+ rawTx: string;
14322
14399
  } | {
14323
14400
  type: "POLKADOT_LIKE_ADDPROXY";
14324
14401
  currency: string;
@@ -14574,10 +14651,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
14574
14651
  feeStrategy: {
14575
14652
  type: "SLOW" | "NORMAL" | "FAST";
14576
14653
  };
14577
- } | {
14578
- type: "GENERIC_TRANSACTION";
14579
- currency: string;
14580
- rawTx: string;
14581
14654
  };
14582
14655
  };
14583
14656
  id: string;
@@ -16674,6 +16747,10 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
16674
16747
  maxFeePerGas: string;
16675
16748
  gasLimit: string;
16676
16749
  };
16750
+ } | {
16751
+ type: "GENERIC_TRANSACTION";
16752
+ currency: string;
16753
+ rawTx: string;
16677
16754
  } | {
16678
16755
  type: "POLKADOT_LIKE_ADDPROXY";
16679
16756
  currency: string;
@@ -16929,10 +17006,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
16929
17006
  feeStrategy: {
16930
17007
  type: "SLOW" | "NORMAL" | "FAST";
16931
17008
  };
16932
- } | {
16933
- type: "GENERIC_TRANSACTION";
16934
- currency: string;
16935
- rawTx: string;
16936
17009
  };
16937
17010
  };
16938
17011
  id: string;
@@ -18273,7 +18346,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
18273
18346
  workspaceName: string;
18274
18347
  compartmentId: number;
18275
18348
  hsmScriptsVersion: string;
18276
- mode?: "READ_ONLY" | "GATE_COMPAT" | "STANDALONE" | undefined;
18349
+ mode?: "GATE_COMPAT" | "STANDALONE" | undefined;
18277
18350
  };
18278
18351
  output: {
18279
18352
  id: string;
@@ -22734,6 +22807,62 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22734
22807
  errorShape: _trpc_server.TRPCDefaultErrorShape;
22735
22808
  transformer: true;
22736
22809
  }, _trpc_server.TRPCDecorateCreateRouterOptions<{
22810
+ nativeCurrencies: _trpc_server.TRPCQueryProcedure<{
22811
+ input: {
22812
+ cursor?: string | undefined;
22813
+ search?: string | undefined;
22814
+ };
22815
+ output: {
22816
+ next: string | null;
22817
+ results: ({
22818
+ id: string;
22819
+ name: string;
22820
+ ticker: string;
22821
+ family: string;
22822
+ units: {
22823
+ code: string;
22824
+ name: string;
22825
+ magnitude: number;
22826
+ }[];
22827
+ network: string;
22828
+ assetType: "NATIVE";
22829
+ } | {
22830
+ id: string;
22831
+ name: string;
22832
+ ticker: string;
22833
+ family: string;
22834
+ units: {
22835
+ code: string;
22836
+ name: string;
22837
+ magnitude: number;
22838
+ }[];
22839
+ network: string;
22840
+ assetType: "TOKEN";
22841
+ contractAddress: string;
22842
+ metaCurrencyId: string | null;
22843
+ })[];
22844
+ };
22845
+ meta: {
22846
+ [x: string]: unknown;
22847
+ } & {
22848
+ openapi?: {
22849
+ enabled?: boolean;
22850
+ method: trpc_to_openapi.OpenApiMethod;
22851
+ path: `/${string}`;
22852
+ operationId?: string;
22853
+ summary?: string;
22854
+ description?: string;
22855
+ protect?: boolean;
22856
+ tags?: string[];
22857
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
22858
+ deprecated?: boolean;
22859
+ requestHeaders?: z.ZodObject;
22860
+ responseHeaders?: z.ZodObject;
22861
+ successDescription?: string;
22862
+ errorResponses?: number[] | Record<number, string>;
22863
+ };
22864
+ } & RateLimitMetricsMeta;
22865
+ }>;
22737
22866
  currencies: _trpc_server.TRPCQueryProcedure<{
22738
22867
  input: {
22739
22868
  cursor?: string | undefined;
@@ -22744,6 +22873,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22744
22873
  results: {
22745
22874
  id: string;
22746
22875
  name: string;
22876
+ ticker: string;
22747
22877
  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";
22748
22878
  units: {
22749
22879
  code: string;
@@ -22784,6 +22914,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22784
22914
  results: {
22785
22915
  id: string;
22786
22916
  name: string;
22917
+ ticker: string;
22787
22918
  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";
22788
22919
  units: {
22789
22920
  code: string;
@@ -22818,8 +22949,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22818
22949
  all: _trpc_server.TRPCQueryProcedure<{
22819
22950
  input: void;
22820
22951
  output: {
22821
- currencies: CurrencyResponse[];
22822
- tokens: TokenResponse[];
22952
+ currencies: AssetResponse[];
22953
+ tokens: AssetResponse[];
22954
+ hash: string;
22823
22955
  };
22824
22956
  meta: {
22825
22957
  [x: string]: unknown;
@@ -22842,7 +22974,31 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22842
22974
  };
22843
22975
  } & RateLimitMetricsMeta;
22844
22976
  }>;
22845
- currencyCapabilities: _trpc_server.TRPCQueryProcedure<{
22977
+ allAssetsHash: _trpc_server.TRPCQueryProcedure<{
22978
+ input: void;
22979
+ output: string;
22980
+ meta: {
22981
+ [x: string]: unknown;
22982
+ } & {
22983
+ openapi?: {
22984
+ enabled?: boolean;
22985
+ method: trpc_to_openapi.OpenApiMethod;
22986
+ path: `/${string}`;
22987
+ operationId?: string;
22988
+ summary?: string;
22989
+ description?: string;
22990
+ protect?: boolean;
22991
+ tags?: string[];
22992
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
22993
+ deprecated?: boolean;
22994
+ requestHeaders?: z.ZodObject;
22995
+ responseHeaders?: z.ZodObject;
22996
+ successDescription?: string;
22997
+ errorResponses?: number[] | Record<number, string>;
22998
+ };
22999
+ } & RateLimitMetricsMeta;
23000
+ }>;
23001
+ assetCapabilities: _trpc_server.TRPCQueryProcedure<{
22846
23002
  input: {
22847
23003
  id: string;
22848
23004
  };
@@ -23858,8 +24014,8 @@ declare const zEntityResponse: z__default.ZodObject<{
23858
24014
  type EntityResponse = z__default.infer<typeof zEntityResponse>;
23859
24015
  declare const zEntitySortBy: z__default.ZodDefault<z__default.ZodEnum<{
23860
24016
  status: "status";
23861
- createdAt: "createdAt";
23862
24017
  name: "name";
24018
+ createdAt: "createdAt";
23863
24019
  updatedAt: "updatedAt";
23864
24020
  }>>;
23865
24021
  type EntitySortBy = z__default.infer<typeof zEntitySortBy>;
@@ -23956,8 +24112,8 @@ declare const zGroupResponse: z__default.ZodObject<{
23956
24112
  type GroupResponse = z__default.infer<typeof zGroupResponse>;
23957
24113
  declare const zGroupSortBy: z__default.ZodDefault<z__default.ZodEnum<{
23958
24114
  status: "status";
23959
- createdAt: "createdAt";
23960
24115
  name: "name";
24116
+ createdAt: "createdAt";
23961
24117
  updatedAt: "updatedAt";
23962
24118
  }>>;
23963
24119
  type GroupSortBy = z__default.infer<typeof zGroupSortBy>;
@@ -23968,7 +24124,6 @@ declare const zOnboardingOpts: z$1.ZodObject<{
23968
24124
  compartmentId: z$1.ZodNumber;
23969
24125
  hsmScriptsVersion: z$1.ZodString;
23970
24126
  mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
23971
- READ_ONLY: "READ_ONLY";
23972
24127
  GATE_COMPAT: "GATE_COMPAT";
23973
24128
  STANDALONE: "STANDALONE";
23974
24129
  }>>>;
@@ -24384,8 +24539,8 @@ declare const zPolicyResponse: z$1.ZodObject<{
24384
24539
  ACTIVE: "ACTIVE";
24385
24540
  INACTIVE: "INACTIVE";
24386
24541
  }>;
24387
- createdAt: z$1.ZodCoercedDate<unknown>;
24388
24542
  name: z$1.ZodString;
24543
+ createdAt: z$1.ZodCoercedDate<unknown>;
24389
24544
  updatedAt: z$1.ZodCoercedDate<unknown>;
24390
24545
  legacyId: z$1.ZodNumber;
24391
24546
  }, z$1.core.$strip>>;
@@ -24394,8 +24549,8 @@ declare const zPolicyResponse: z$1.ZodObject<{
24394
24549
  }, z$1.core.$strip>;
24395
24550
  type PolicyResponse = z$1.infer<typeof zPolicyResponse>;
24396
24551
  declare const zPolicySortBy: z$1.ZodDefault<z$1.ZodEnum<{
24397
- createdAt: "createdAt";
24398
24552
  name: "name";
24553
+ createdAt: "createdAt";
24399
24554
  updatedAt: "updatedAt";
24400
24555
  }>>;
24401
24556
  type PolicySortBy = z$1.infer<typeof zPolicySortBy>;
@@ -24702,10 +24857,10 @@ declare const zAdminResponse: z__default.ZodObject<{
24702
24857
  type AdminResponse = z__default.infer<typeof zAdminResponse>;
24703
24858
  declare const zUserSortBy: z__default.ZodDefault<z__default.ZodEnum<{
24704
24859
  status: "status";
24705
- createdAt: "createdAt";
24706
24860
  name: "name";
24707
- role: "role";
24861
+ createdAt: "createdAt";
24708
24862
  updatedAt: "updatedAt";
24863
+ role: "role";
24709
24864
  }>>;
24710
24865
  type UserSortBy = z__default.infer<typeof zUserSortBy>;
24711
24866
 
@@ -24736,8 +24891,8 @@ declare const zWhitelistResponse: z__default.ZodObject<{
24736
24891
  type WhitelistResponse = z__default.infer<typeof zWhitelistResponse>;
24737
24892
  declare const zWhitelistSortBy: z__default.ZodDefault<z__default.ZodEnum<{
24738
24893
  status: "status";
24739
- createdAt: "createdAt";
24740
24894
  name: "name";
24895
+ createdAt: "createdAt";
24741
24896
  updatedAt: "updatedAt";
24742
24897
  }>>;
24743
24898
  type WhitelistSortBy = z__default.infer<typeof zWhitelistSortBy>;
@@ -24808,4 +24963,4 @@ declare const emptyPage: <T>(paginationQuery: {
24808
24963
  declare const fetchAllPages: <T>(fetchPage: (page: number) => Promise<Paginated<T>>) => Promise<T[]>;
24809
24964
  declare const fetchAllCursorPages: <T>(fetchPage: (cursor: string | null) => Promise<CursorPaginated<T>>) => Promise<T[]>;
24810
24965
 
24811
- 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 };
24966
+ 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.1",
3
+ "version": "1.41.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",