@ledgerhq/revault-api 1.40.2 → 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-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-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";
@@ -22807,6 +22807,62 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22807
22807
  errorShape: _trpc_server.TRPCDefaultErrorShape;
22808
22808
  transformer: true;
22809
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
+ }>;
22810
22866
  currencies: _trpc_server.TRPCQueryProcedure<{
22811
22867
  input: {
22812
22868
  cursor?: string | undefined;
@@ -22817,6 +22873,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22817
22873
  results: {
22818
22874
  id: string;
22819
22875
  name: string;
22876
+ ticker: string;
22820
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";
22821
22878
  units: {
22822
22879
  code: string;
@@ -22857,6 +22914,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22857
22914
  results: {
22858
22915
  id: string;
22859
22916
  name: string;
22917
+ ticker: string;
22860
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";
22861
22919
  units: {
22862
22920
  code: string;
@@ -22891,8 +22949,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22891
22949
  all: _trpc_server.TRPCQueryProcedure<{
22892
22950
  input: void;
22893
22951
  output: {
22894
- currencies: CurrencyResponse[];
22895
- tokens: TokenResponse[];
22952
+ currencies: AssetResponse[];
22953
+ tokens: AssetResponse[];
22954
+ hash: string;
22896
22955
  };
22897
22956
  meta: {
22898
22957
  [x: string]: unknown;
@@ -22915,7 +22974,31 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
22915
22974
  };
22916
22975
  } & RateLimitMetricsMeta;
22917
22976
  }>;
22918
- 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<{
22919
23002
  input: {
22920
23003
  id: string;
22921
23004
  };
@@ -24880,4 +24963,4 @@ declare const emptyPage: <T>(paginationQuery: {
24880
24963
  declare const fetchAllPages: <T>(fetchPage: (page: number) => Promise<Paginated<T>>) => Promise<T[]>;
24881
24964
  declare const fetchAllCursorPages: <T>(fetchPage: (cursor: string | null) => Promise<CursorPaginated<T>>) => Promise<T[]>;
24882
24965
 
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 };
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.2",
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",