@ledgerhq/revault-api 1.91.4 → 1.92.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.
@@ -1,4 +1,4 @@
1
- import { $n as ReportStatus$1, An as ActivationStatus$1, Bi as BackofficeAuditLogInput, Bn as GatePolicyType, Dt as VaultRequestResponse, Gn as HsmHostingMode, Hi as RequestListFilters, Hn as GateUserType, In as ClaimedRole, Jn as OnboardedUserRole, Kn as MaintenanceMode, Ln as EventAction$1, Lo as HsmCertificate, Mn as AdminPermission$1, On as AccountGovernanceType, Pn as AuditLogType$1, Qn as PsdModel, Rn as GateAccountType, Ui as startOnboarding, Un as GateWhitelistType, Vi as WhitelistSortBy, Vn as GateReviewConfigType, Wn as GateWorkspaceRuleType, X as RuntimeApiCapabilities, Xn as OutgoingTransactionStatus$1, Y as TrpcMeta, Yn as OnboardingStep, _o as SortOrder, aa as HsmComparator, ar as RevaultMode, as as LesWalletRegistrationScope, cr as UserRegistrationState, da as RequestView, dr as WebhookStatus$1, ds as BackofficePermission, er as ReportType$1, fr as WhitelistType, ga as SendOnlyTransactionData, ht as ActivityTracer, jn as AddressDerivationMode, kn as AccountType$1, la as HsmWorkspaceComparison, lr as UserRole, na as AccountWorkspaceScope, or as ReviewConfigType, os as BackofficeClaims, rr as RequestType$1, rs as LesWalletRegistrableSummary, sr as UserDeviceType, ss as ExtendedPrismaClient, ta as AccountAssetFilter, ua as WebhookDeliveryStats, uo as Note, ur as WebhookRetryStrategy$1, us as zOidcConfig, va as TransactionData, wt as RequestReview, zn as GateGroupType } from "../../app-lib-B04nx6Kj.mjs";
1
+ import { $n as ReportStatus$1, An as ActivationStatus$1, Bi as BackofficeAuditLogInput, Bn as GatePolicyType, Dt as VaultRequestResponse, Gn as HsmHostingMode, Hi as RequestListFilters, Hn as GateUserType, In as ClaimedRole, Jn as OnboardedUserRole, Kn as MaintenanceMode, Ln as EventAction$1, Lo as HsmCertificate, Mn as AdminPermission$1, On as AccountGovernanceType, Pn as AuditLogType$1, Qn as PsdModel, Rn as GateAccountType, Ui as startOnboarding, Un as GateWhitelistType, Vi as WhitelistSortBy, Vn as GateReviewConfigType, Wn as GateWorkspaceRuleType, X as RuntimeApiCapabilities, Xn as OutgoingTransactionStatus$1, Y as TrpcMeta, Yn as OnboardingStep, _o as SortOrder, aa as HsmComparator, ar as RevaultMode, as as NatsEventBackfillPreview, cr as UserRegistrationState, da as RequestView, dr as WebhookStatus$1, ds as LesWalletRegistrableSummary, er as ReportType$1, fr as WhitelistType, ga as SendOnlyTransactionData, hs as ExtendedPrismaClient, ht as ActivityTracer, jn as AddressDerivationMode, kn as AccountType$1, la as HsmWorkspaceComparison, lr as UserRole, ms as BackofficeClaims, na as AccountWorkspaceScope, or as ReviewConfigType, os as NatsEventBackfillReport, ps as LesWalletRegistrationScope, rr as RequestType$1, sr as UserDeviceType, ss as NatsEventBackfillScope, ta as AccountAssetFilter, ua as WebhookDeliveryStats, uo as Note, ur as WebhookRetryStrategy$1, va as TransactionData, vs as zOidcConfig, wt as RequestReview, ys as BackofficePermission, zn as GateGroupType } from "../../app-lib--GeOqNKr.mjs";
2
2
  import z from "zod";
3
3
  import { AllowedAction, PrismaClient } from "@/generated/prisma/client";
4
4
  import "trpc-to-openapi";
@@ -317,7 +317,11 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
317
317
  tokenIdentifier: string | null;
318
318
  };
319
319
  accountTypeFields: {
320
- type: "RAW_SIGNING";
320
+ type: "TRON_LIKE";
321
+ address: string | null;
322
+ } | {
323
+ type: "SOLANA_LIKE";
324
+ address: string | null;
321
325
  } | {
322
326
  type: "BITCOIN_LIKE";
323
327
  xpub: string;
@@ -343,9 +347,6 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
343
347
  } | {
344
348
  type: "RIPPLE_LIKE";
345
349
  address: string | null;
346
- } | {
347
- type: "SOLANA_LIKE";
348
- address: string | null;
349
350
  } | {
350
351
  type: "STELLAR_LIKE";
351
352
  address: string | null;
@@ -356,8 +357,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
356
357
  type: "TEZOS_LIKE";
357
358
  address: string | null;
358
359
  } | {
359
- type: "TRON_LIKE";
360
- address: string | null;
360
+ type: "RAW_SIGNING";
361
361
  };
362
362
  index: number;
363
363
  derivationPath: string;
@@ -461,6 +461,13 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
461
461
  };
462
462
  }>;
463
463
  };
464
+ natsEventBackfill: {
465
+ preview: (scope: NatsEventBackfillScope) => Promise<NatsEventBackfillPreview>;
466
+ run: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
467
+ scope: NatsEventBackfillScope;
468
+ concurrency: number;
469
+ }) => Promise<NatsEventBackfillReport>;
470
+ };
464
471
  users: {
465
472
  list: (input: ({
466
473
  page: number;
@@ -2908,6 +2915,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2908
2915
  createdAt: Date;
2909
2916
  updatedAt: Date;
2910
2917
  asset: {
2918
+ type: "TRON_LIKE";
2919
+ address: string | null;
2920
+ } | {
2921
+ type: "SOLANA_LIKE";
2922
+ address: string | null;
2923
+ } | {
2911
2924
  type: "BITCOIN_LIKE";
2912
2925
  xpub: string;
2913
2926
  addressDerivationMode: "NEW" | "STATIC";
@@ -2932,9 +2945,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2932
2945
  } | {
2933
2946
  type: "RIPPLE_LIKE";
2934
2947
  address: string | null;
2935
- } | {
2936
- type: "SOLANA_LIKE";
2937
- address: string | null;
2938
2948
  } | {
2939
2949
  type: "STELLAR_LIKE";
2940
2950
  address: string | null;
@@ -2944,9 +2954,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2944
2954
  } | {
2945
2955
  type: "TEZOS_LIKE";
2946
2956
  address: string | null;
2947
- } | {
2948
- type: "TRON_LIKE";
2949
- address: string | null;
2950
2957
  } | {
2951
2958
  type: "RAW_SIGNING";
2952
2959
  };
@@ -2991,6 +2998,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2991
2998
  createdAt: Date;
2992
2999
  updatedAt: Date;
2993
3000
  asset: {
3001
+ type: "TRON_LIKE";
3002
+ address: string | null;
3003
+ } | {
3004
+ type: "SOLANA_LIKE";
3005
+ address: string | null;
3006
+ } | {
2994
3007
  type: "BITCOIN_LIKE";
2995
3008
  xpub: string;
2996
3009
  addressDerivationMode: "NEW" | "STATIC";
@@ -3015,9 +3028,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3015
3028
  } | {
3016
3029
  type: "RIPPLE_LIKE";
3017
3030
  address: string | null;
3018
- } | {
3019
- type: "SOLANA_LIKE";
3020
- address: string | null;
3021
3031
  } | {
3022
3032
  type: "STELLAR_LIKE";
3023
3033
  address: string | null;
@@ -3027,9 +3037,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3027
3037
  } | {
3028
3038
  type: "TEZOS_LIKE";
3029
3039
  address: string | null;
3030
- } | {
3031
- type: "TRON_LIKE";
3032
- address: string | null;
3033
3040
  } | {
3034
3041
  type: "RAW_SIGNING";
3035
3042
  };
@@ -6328,6 +6335,79 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6328
6335
  meta: TrpcMeta;
6329
6336
  }>;
6330
6337
  }>>;
6338
+ natsEventBackfill: import("@trpc/server").TRPCBuiltRouter<{
6339
+ ctx: {
6340
+ req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
6341
+ res?: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("node:http").ServerResponse<import("node:http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> | undefined;
6342
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
6343
+ debugAuthToken?: string;
6344
+ rootAuthToken?: string;
6345
+ backofficeRequiredPermission?: BackofficePermission;
6346
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
6347
+ user: {
6348
+ id: string;
6349
+ workspaceName: string;
6350
+ name: string;
6351
+ authUserId: string | null;
6352
+ pubKey: string;
6353
+ deviceType: UserDeviceType;
6354
+ deviceUserId: string | null;
6355
+ hsmId: string | null;
6356
+ u2fKeyHandle: string | null;
6357
+ u2fPubKey: string | null;
6358
+ legacyViewAll: boolean;
6359
+ role: UserRole;
6360
+ status: ActivationStatus$1;
6361
+ isSuspended: boolean;
6362
+ gateType: GateUserType | null;
6363
+ gateId: number;
6364
+ syncId: string;
6365
+ createdAt: Date;
6366
+ updatedAt: Date;
6367
+ } | null;
6368
+ authorization: string | null;
6369
+ readOnly: boolean;
6370
+ activityTracer: ActivityTracer;
6371
+ core: RuntimeInternalApiCapabilityProvider;
6372
+ };
6373
+ meta: TrpcMeta;
6374
+ errorShape: {
6375
+ message: string;
6376
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
6377
+ data: {
6378
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
6379
+ httpStatus: number;
6380
+ path?: string;
6381
+ stack?: string;
6382
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
6383
+ maintenance?: boolean | undefined;
6384
+ errorCode?: string | undefined;
6385
+ errorContext?: Record<string, string> | undefined;
6386
+ };
6387
+ };
6388
+ transformer: true;
6389
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6390
+ preview: import("@trpc/server").TRPCQueryProcedure<{
6391
+ input: {
6392
+ eventType: "AccountCreated" | "WorkspaceCreated";
6393
+ workspaceNames?: string[] | undefined;
6394
+ network?: string | undefined;
6395
+ };
6396
+ output: NatsEventBackfillPreview;
6397
+ meta: TrpcMeta;
6398
+ }>;
6399
+ run: import("@trpc/server").TRPCMutationProcedure<{
6400
+ input: {
6401
+ eventType: "AccountCreated" | "WorkspaceCreated";
6402
+ workspaceNames?: string[] | undefined;
6403
+ network?: string | undefined;
6404
+ } & {
6405
+ concurrency: number;
6406
+ };
6407
+ output: NatsEventBackfillReport;
6408
+ meta: TrpcMeta;
6409
+ }>;
6410
+ }>>;
6331
6411
  configCatPromotions: import("@trpc/server").TRPCBuiltRouter<{
6332
6412
  ctx: {
6333
6413
  req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
package/lib/fakes.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Ai as WebhookResponse, Ct as RequestDataOf, Dt as VaultRequestResponse, Et as VaultRequestCreateInput, b as UserResponse, ii as AccountResponse, kn as AccountType, ma as AccountStakingFields, qn as MessageType, u as WhitelistResponse, ya as TransactionDataOf, zr as GroupResponse } from "./app-lib-B04nx6Kj.mjs";
1
+ import { Ai as WebhookResponse, Ct as RequestDataOf, Dt as VaultRequestResponse, Et as VaultRequestCreateInput, b as UserResponse, ii as AccountResponse, kn as AccountType, ma as AccountStakingFields, qn as MessageType, u as WhitelistResponse, ya as TransactionDataOf, zr as GroupResponse } from "./app-lib--GeOqNKr.mjs";
2
2
  //#region src/__fakes__/trpc/inputs.d.ts
3
3
  type RequestInputDataOf<T extends VaultRequestCreateInput["request"]["type"]> = Extract<VaultRequestCreateInput["request"], {
4
4
  type: T;
package/lib/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as TokenizationDeploymentEstimateInput, $a as BITCOIN_SPEC, $i as zOnboardingOpts, $n as ReportStatus, $o as zRefreshPskInputData, $r as PsdAuthChallengeData, $t as zReportDownloadUrlResponse, A as zUserRegistrationResponse, Aa as zSendOnlyTransactionData, Ai as WebhookResponse, An as ActivationStatus, Ao as GetObjectsInfoResponse, Ar as zLegalContentBlock, As as zIndexedReceiveAddressSelection, At as genTransactionSchemas, B as zTradelinkSettlementWithAccountAndExchangeInfoResponse, Ba as SOLANA_SPEC, Bo as PsdPairingInputData, Br as GroupSortBy, Bt as zVaultRequestCreateInput, C as zQuorumAccountEntryResponse, Ca as convertTxToGovernableIntent, Ci as zAssetResponse, Cn as zPortfoliosByAccountIdsResponse, Co as stableOrdering, Cr as LegalContentBlock, Cs as IndexedSelectionCapability, Ct as RequestDataOf, D as UserRegistrationCreateInput, Da as zAccountStakingFields, Di as DeleteWebhookResponse, Dn as zPortfolioAppliedState, Do as zPaginated, Dr as PrivacyNoticeSection, Ds as zBalance, Dt as VaultRequestResponse, E as zUserSortBy, Ea as zAccountNetworkInfoFields, Ei as CreateWebhookPayload, En as normalizePortfolioName, Eo as zPageQuery, Er as PrivacyNoticeResponse, Es as zAddressIndex, Et as VaultRequestCreateInput, F as TradelinkNetworkResponse, Fa as TEZOS_SPEC, Fi as zRotateWebhookSecretResponse, Fn as ChallengeType, Fo as VersionedObjectInfo, Fr as zPrivacyNoticeSectionId, Fs as zStakingValidator, Ft as zPotentialDuplicateTransactionsInput, G as zTokenizationCreateDeploymentRequestInput, Ga as HEDERA_SPEC, Gi as OnboardingFullState, Gn as HsmHostingMode, Go as UserRegistrationChallenge, Gr as WorkspaceRulesResponse, Gt as OperationMetadataResponse, H as TokenizationEstimateDeploymentFeeInput, Ha as RIPPLE_SPEC, Ho as PubKey, Hr as zGroupSortBy, Ht as zWebVaultRequestResponse, I as TradelinkSettlementWithAccountAndExchangeInfoResponse, Ia as SUI_SPEC, Ii as zUpdateWebhookPayload, In as ClaimedRole, Io as ApiChallenge, Ir as zSubProcessorRow, Is as zStakingValidatorSortBy, It as zPotentialDuplicateTransactionsResponse, J as zTokenizationEstimateDeploymentFeeResponse, Ja as ETHEREUM_SPEC, Ji as OnboardingSeedFragment, Jn as OnboardedUserRole, Jo as zPsdPairingData, Jr as zWorkspaceRulesResponse, Jt as SoftChallenge, K as zTokenizationCreateDeploymentRequestResponse, Ka as isErc20Address, Ki as OnboardingOpts, Kn as MaintenanceMode, Ko as UserRegistrationChallengeResponse, Kr as zRootWorkspaceRuleResponse, Kt as Challenge, L as zTradelinkCustodianResponse, La as STELLAR_SPEC, Li as zWebhookDeliveryResponse, Lo as HsmCertificate, Lr as zSubProcessorsResponse, Lt as zRequestSortBy, M as OperationMilestoneResponse, Ma as zTransactionResponse, Mi as zCreateWebhookResponse, Mn as AdminPermission, Mo as HsmObjectType, Mr as zLegalInlineContent, Ms as zStake, Mt as zChallengeResponse, N as TradelinkCustodianResponse, Na as zTransactionType, Ni as zDeleteWebhookResponse, Nn as AllowedAction, No as ObjectsContentResponse, Nr as zPrivacyNoticeResponse, Ns as zStakeState, Nt as zCreateClassicAccountWithPolicyIdInput, O as UserRegistrationResponse, Oa as zEstimatedFees, Oi as UpdateWebhookPayload, Oo as zSortOrder, Or as SubProcessorRow, Os as zFreshReceiveAddress, Ot as VaultRequestResponseBase, P as TradelinkEntityResponse, Pa as TRON_SPEC, Pi as zReplayFailedResponse, Pn as AuditLogType, Po as ObjectsVersionResponse, Pr as zPrivacyNoticeSection, Ps as zStakesPage, Pt as zEnsureNameAvailableInput, Q as TokenizationCreateDeploymentRequestInput, Qa as zCantonTransferProposal, Qi as zOnboardingId, Qn as PsdModel, Qo as zRefreshPskData, Qr as zEntitySortBy, Qt as ReportResponse, R as zTradelinkEntityResponse, Ra as StellarMemo, Ri as zWebhookDetailResponse, Ro as PsdChallenge, Rr as zGroupSortByField, Rt as zSignDigestsRequestInput, S as zAdminResponse, Sa as TransactionTypeOf, Si as zAssetCapabilitiesResponse, Sn as zPortfoliosByAccountIdsInput, So as serializePage, Sr as zOpenApiResourceType, Ss as IndexedReceiveAddressSelection, St as PotentialDuplicateTransactionsResponse, T as zUserResponse, Ta as zAccountLiveData, Ti as zTokenResponse, Tn as PortfolioAppliedState, To as zCursorQuery, Tr as LegalInlineContent, Ts as zAccountLiveDataResponse, Tt as RequestSortBy, U as zTokenTemplateListResponse, Ua as zRippleDestinationTag, Uo as RefreshPskData, Ur as RootWorkspaceRuleResponse, Ut as OutgoingTransactionMeta, V as AppRouter, Va as isSplTokenTransaction, Vo as PsdSignature, Vr as zGroupResponse, Vt as zVaultRequestResponse, W as zTokenTemplateResponse, Wa as POLKADOT_SPEC, Wi as DeviceClaim, Wo as RefreshPskInputData, Wr as WorkspaceRuleResponse, Wt as RequestMeta, Xa as CANTON_SPEC, Xi as zDeviceClaim, Xn as OutgoingTransactionStatus, Xo as zPsdSignature, Xr as EntitySortBy, Xt as ReportDownloadUrlResponse, Ya as CARDANO_SPEC, Yi as WrappingKeyResponse, Yn as OnboardingStep, Yo as zPsdPairingInputData, Yr as EntityResponse, Yt as zEnsureNameAvailableOutput, Z as TokenTemplateResponse, Za as CantonTransferProposal, Zi as zOnboardingFullState, Zn as PortfolioHistoryAction, Zo as zPubKey, Zr as zEntityResponse, Zt as ReportInput, _ as AdminResponse, _a as StakingDataOf, _i as AllAssetsResponse, _n as zPortfolioName, _o as SortOrder, _r as zPolicySortBy, _s as isEthereumStakingNetwork, _t as ApproveVaultRequestInput, a as WorkspaceResponse, aa as HsmComparator, ai as AccountSortBy, an as PortfolioCreateInput, ao as zStakingProvisioning, ar as RevaultMode, at as PledgeResponse, b as UserResponse, ba as TransactionResponse, bi as TokenResponse, bn as zPortfolioSummary, bo as fetchAllPages, br as zAllowedActionsResponse, bs as FreshReceiveAddress, bt as PotentialDuplicateTransaction, c as WhitelistAddressResponse, ca as HsmCompareReason, ci as zAccountCommonFields, cn as PortfolioSortBy, co as zTransactionStatus, cs as OidcConfig, ct as zCreateTradelinkNetworkBlueprintInput, d as WhitelistSortBy, di as zCantonPreApprovalStateResponse, dn as PortfolioUpdateInput, do as zTransactionScanSummary, dt as zPledgeResponse, ea as zOnboardingSeedFragment, ei as zPsdAuthChallengeData, en as zReportInput, eo as BitcoinLikeBalance, es as zUserRegistrationChallenge, et as TokenizationFeeEstimate, f as zWhitelistAddressResponse, fa as isTransactionCheckSupportedType, fi as zCantonTransferProposalResponse, fn as PortfoliosByAccountIdsResponse, fo as CursorPaginated, fr as WhitelistType, fs as AuthResponse, ft as zTradelinkNetworkBlueprintResponse, g as zUserSortByField, ga as SendOnlyTransactionData, gi as zSignedMessageResponse, gn as zPortfolioHistoryEntryResponse, go as Paginated, gr as zPolicyResponse, gs as EthereumStakingNetwork, gt as zRequestSortByField, h as zWhitelistSortBy, ha as EstimatedFees, hi as zUtxosPageResponse, hn as zPortfolioCurrentUserAccessResponse, ho as PageQuery, hr as PolicySortBy, hs as ETHEREUM_STAKING_NETWORKS, i as zAuditLogSortBy, ia as HSM_COMPARE_REASONS, ii as AccountResponse, in as PortfolioAdminResponse, io as zEthereumLikeEip1559FeeStrategy, ir as ResourceType, is as LesWalletRegistrationResult, it as DeleteTradelinkExchangeInput, j as OperationHistoryResponse, ja as zTransactionData, ji as zCreateWebhookPayload, jo as HSM_OBJECT_TYPES, jr as zLegalInline, js as zIndexedSelectionCapability, jt as zApproveVaultRequestInput, k as zUserRegistrationCreateInput, ka as zNetworkAssetFields, ki as WebhookDetailResponse, kn as AccountType, ko as RiskLevel, kr as SubProcessorsResponse, ks as zIndexedReceiveAddressInput, kt as WebVaultRequestResponse, l as WhitelistAddressSortBy, la as HsmWorkspaceComparison, li as zAccountResponse, ln as PortfolioStatusFilter, lo as zGovernableAction, lr as UserRole, ls as zExchangeCredentialsResponse, lt as zCreateTradelinkOrgEntityInput, m as zWhitelistResponse, ma as AccountStakingFields, mi as zTransactionWithMetaResponse, mn as zPortfolioCreateInput, mo as MAX_PAGE_SIZE, mr as PolicyResponse, ms as zAuthResponse, mt as zTradelinkWhitelist, n as AuditLogSortBy, ni as zStakeSortByField, nn as zVisibleReportStatus, no as StakingProvisioning, nr as RequestState, ns as zUserRegistrationDeviceData, nt as zReviewStepsArray, o as zWorkspaceResponse, oa as HsmCompareAnomaly, oi as TransactionWithMetaResponse, on as PortfolioCurrentUserAccessResponse, oo as NetworkFamily, or as ReviewConfigType, ot as TradelinkNetworkBlueprintResponse, p as zWhitelistAddressSortBy, pa as AccountNetworkInfoFields, pi as zStakeSortBy, pn as zPortfolioAdminResponse, po as DEFAULT_PAGE_SIZE, pr as zPolicySortByField, ps as zApiUserCredentialsResponse, pt as zTradelinkOrgEntityResponse, q as zTokenizationEstimateDeploymentFeeInput, qa as GENERIC_SPEC, qi as OnboardingSeedChallenge, qn as MessageType, qo as UserRegistrationDeviceData, qr as zWorkspaceRuleResponse, qt as EnsureNameAvailableOutput, r as zAuditLogResponse, ra as HSM_COMPARATORS, ri as AccountAllowedActionsResponse, rn as zPortfolioSortByField, ro as Validator, rr as RequestType, rt as CreateTradelinkOrgEntityInput, s as zWhitelistSortByField, sa as HsmCompareDetail, si as zAccountAllowedActionsResponse, sn as PortfolioHistoryEntryResponse, so as zCommonLiveData, sr as UserDeviceType, st as TradelinkOrgEntityResponse, t as AuditLogResponse, ti as zAccountSortByField, tn as zReportResponse, to as EthereumLikeEip1559FeeStrategy, tr as RequestReviewStatus, ts as zUserRegistrationChallengeResponse, tt as ReviewStepWithUsers, u as WhitelistResponse, ui as zAccountSortBy, un as PortfolioSummary, us as zOidcConfig, ut as zDeleteTradelinkOrgEntityInput, v as QuorumAccountEntryResponse, va as TransactionData, vi as AssetResponse, vn as zPortfolioSortBy, vo as emptyPage, vr as AllowedActionsResponse, vs as admitsStakeOperation, vt as ChallengeResponse, w as zQuorumAccountSourceResponse, wa as getTxHsmProps, wi as zCurrencyResponse, wn as PORTFOLIO_NAME_MAX_LENGTH, wo as zCursorPaginated, wr as LegalInline, ws as ReceiveAddressSelection, wt as RequestReview, x as UserSortBy, xa as TransactionType, xi as zAllAssetsResponse, xn as zPortfolioUpdateInput, xo as paginate, xr as zAllowedResourcesResponse, xs as IndexedReceiveAddressInput, xt as PotentialDuplicateTransactionsInput, y as QuorumAccountSourceResponse, ya as TransactionDataOf, yi as CurrencyResponse, yn as zPortfolioStatusFilter, yo as fetchAllCursorPages, yr as AllowedResourcesResponse, ys as AccountLiveDataResponse, yt as EnsureNameAvailableInput, z as zTradelinkNetworkResponse, za as zStellarMemo, zi as zWebhookResponse, zo as PsdPairingData, zr as GroupResponse, zt as zSignMessageRequestInput } from "./app-lib-B04nx6Kj.mjs";
2
- export { type AccountAllowedActionsResponse, type AccountLiveDataResponse, type AccountNetworkInfoFields, type AccountResponse, type AccountSortBy, type AccountStakingFields, type AccountType, type ActivationStatus, type AdminPermission, type AdminResponse, type AllAssetsResponse, type AllowedAction, type AllowedActionsResponse, type AllowedResourcesResponse, type ApiChallenge, type AppRouter, type ApproveVaultRequestInput, type AssetResponse, type AuditLogResponse, type AuditLogSortBy, type AuditLogType, type AuthResponse, type BITCOIN_SPEC, type BitcoinLikeBalance, type CANTON_SPEC, type CARDANO_SPEC, type CantonTransferProposal, type Challenge, type ChallengeResponse, type ChallengeType, type ClaimedRole, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CreateWebhookPayload, type CurrencyResponse, type CursorPaginated, type DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeleteWebhookResponse, type DeviceClaim, type ETHEREUM_SPEC, ETHEREUM_STAKING_NETWORKS, type EnsureNameAvailableInput, type EnsureNameAvailableOutput, type EntityResponse, type EntitySortBy, type EstimatedFees, type EthereumLikeEip1559FeeStrategy, type EthereumStakingNetwork, type FreshReceiveAddress, type GENERIC_SPEC, type GetObjectsInfoResponse, type GroupResponse, type GroupSortBy, type HEDERA_SPEC, HSM_COMPARATORS, HSM_COMPARE_REASONS, HSM_OBJECT_TYPES, type HsmCertificate, type HsmComparator, type HsmCompareAnomaly, type HsmCompareDetail, type HsmCompareReason, type HsmHostingMode, type HsmObjectType, type HsmWorkspaceComparison, type IndexedReceiveAddressInput, type IndexedReceiveAddressSelection, type IndexedSelectionCapability, type LegalContentBlock, type LegalInline, type LegalInlineContent, type LesWalletRegistrationResult, type MAX_PAGE_SIZE, type MaintenanceMode, type MessageType, type NetworkFamily, type ObjectsContentResponse, type ObjectsVersionResponse, type OidcConfig, type OnboardedUserRole, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type OnboardingStep, type OperationHistoryResponse, type OperationMetadataResponse, type OperationMilestoneResponse, type OutgoingTransactionMeta, type OutgoingTransactionStatus, type POLKADOT_SPEC, type PORTFOLIO_NAME_MAX_LENGTH, type PageQuery, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PortfolioAdminResponse, type PortfolioAppliedState, type PortfolioCreateInput, type PortfolioCurrentUserAccessResponse, type PortfolioHistoryAction, type PortfolioHistoryEntryResponse, type PortfolioSortBy, type PortfolioStatusFilter, type PortfolioSummary, type PortfolioUpdateInput, type PortfoliosByAccountIdsResponse, type PotentialDuplicateTransaction, type PotentialDuplicateTransactionsInput, type PotentialDuplicateTransactionsResponse, type PrivacyNoticeResponse, type PrivacyNoticeSection, type PsdAuthChallengeData as PsdAuthChallengeResponse, type PsdChallenge, type PsdModel, type PsdPairingData, type PsdPairingInputData, type PsdSignature, type PubKey, type QuorumAccountEntryResponse, type QuorumAccountSourceResponse, type RIPPLE_SPEC, type ReceiveAddressSelection, type RefreshPskData, type RefreshPskInputData, type ReportDownloadUrlResponse, type ReportInput, type ReportResponse, type ReportStatus, type RequestDataOf, type RequestMeta, type RequestReview, type RequestReviewStatus, type RequestSortBy, type RequestState, type RequestType, type ResourceType, type RevaultMode, type ReviewConfigType, type ReviewStepWithUsers, type RiskLevel, type RootWorkspaceRuleResponse, type SOLANA_SPEC, type STELLAR_SPEC, type SUI_SPEC, type SendOnlyTransactionData, type SoftChallenge, type SortOrder, type StakingDataOf, type StakingProvisioning, type StellarMemo, type SubProcessorRow, type SubProcessorsResponse, type TEZOS_SPEC, type TRON_SPEC, type TokenResponse, type TokenTemplateResponse, type TokenizationCreateDeploymentRequestInput, type TokenizationDeploymentEstimateInput, type TokenizationEstimateDeploymentFeeInput, type TokenizationFeeEstimate, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionData, type TransactionDataOf, type TransactionResponse, type TransactionType, type TransactionTypeOf, type TransactionWithMetaResponse, type UpdateWebhookPayload, type UserDeviceType, type UserRegistrationChallenge, type UserRegistrationChallengeResponse, type UserRegistrationCreateInput, type UserRegistrationDeviceData, type UserRegistrationResponse, type UserResponse, type UserRole, type UserSortBy, type Validator, type VaultRequestCreateInput, type VaultRequestResponse, type VaultRequestResponseBase, type VersionedObjectInfo, type WebVaultRequestResponse, type WebhookDetailResponse, type WebhookResponse, type WhitelistAddressResponse, type WhitelistAddressSortBy, type WhitelistResponse, type WhitelistSortBy, type WhitelistType, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyResponse, admitsStakeOperation, type convertTxToGovernableIntent, type emptyPage, type fetchAllCursorPages, type fetchAllPages, type genTransactionSchemas, type getTxHsmProps, type isErc20Address, isEthereumStakingNetwork, type isSplTokenTransaction, isTransactionCheckSupportedType, type normalizePortfolioName, type paginate, type serializePage, type stableOrdering, type zAccountAllowedActionsResponse, type zAccountCommonFields, type zAccountLiveData, type zAccountLiveDataResponse, type zAccountNetworkInfoFields, type zAccountResponse, type zAccountSortBy, zAccountSortByField, type zAccountStakingFields, type zAddressIndex, type zAdminResponse, type zAllAssetsResponse, type zAllowedActionsResponse, type zAllowedResourcesResponse, type zApiUserCredentialsResponse, type zApproveVaultRequestInput, type zAssetCapabilitiesResponse, type zAssetResponse, type zAuditLogResponse, type zAuditLogSortBy, type zAuthResponse, type zBalance, type zCantonPreApprovalStateResponse, type zCantonTransferProposal, type zCantonTransferProposalResponse, type zChallengeResponse, type zCommonLiveData, type zCreateClassicAccountWithPolicyIdInput, type zCreateTradelinkNetworkBlueprintInput, type zCreateTradelinkOrgEntityInput, type zCreateWebhookPayload, type zCreateWebhookResponse, type zCurrencyResponse, type zCursorPaginated, type zCursorQuery, type zDeleteTradelinkOrgEntityInput, type zDeleteWebhookResponse, type zDeviceClaim, type zEnsureNameAvailableInput, type zEnsureNameAvailableOutput, type zEntityResponse, type zEntitySortBy, type zEstimatedFees as zEstimateFeesResponse, type zEstimatedFees, zEthereumLikeEip1559FeeStrategy, type zExchangeCredentialsResponse, type zFreshReceiveAddress, type zGovernableAction, type zGroupResponse, type zGroupSortBy, zGroupSortByField, type zIndexedReceiveAddressInput, type zIndexedReceiveAddressSelection, type zIndexedSelectionCapability, type zLegalContentBlock, type zLegalInline, type zLegalInlineContent, type zNetworkAssetFields, type zOidcConfig, type zOnboardingFullState as zOnboardingFullStateResponse, type zOnboardingId, type zOnboardingOpts, type zOnboardingSeedFragment, type zOpenApiResourceType, type zPageQuery, type zPaginated, type zPledgeResponse, type zPolicyResponse, type zPolicySortBy, zPolicySortByField, type zPortfolioAdminResponse, type zPortfolioAppliedState, type zPortfolioCreateInput, type zPortfolioCurrentUserAccessResponse, type zPortfolioHistoryEntryResponse, type zPortfolioName, type zPortfolioSortBy, zPortfolioSortByField, type zPortfolioStatusFilter, type zPortfolioSummary, type zPortfolioUpdateInput, type zPortfoliosByAccountIdsInput, type zPortfoliosByAccountIdsResponse, type zPotentialDuplicateTransactionsInput, type zPotentialDuplicateTransactionsResponse, type zPrivacyNoticeResponse, type zPrivacyNoticeSection, type zPrivacyNoticeSectionId, type zPsdAuthChallengeData as zPsdAuthChallengeResponse, type zPsdPairingData, type zPsdPairingInputData, type zPsdSignature, type zPubKey, type zQuorumAccountEntryResponse, type zQuorumAccountSourceResponse, type zRefreshPskData, type zRefreshPskInputData, type zReplayFailedResponse, type zReportDownloadUrlResponse, type zReportInput, type zReportResponse, type zRequestSortBy, zRequestSortByField, type zReviewStepsArray, type zRippleDestinationTag, type zRootWorkspaceRuleResponse, type zRotateWebhookSecretResponse, type zSendOnlyTransactionData, type zSignDigestsRequestInput, type zSignMessageRequestInput, type zSignedMessageResponse, type zSortOrder, type zStake, type zStakeSortBy, zStakeSortByField, type zStakeState, type zStakesPage, type zStakingProvisioning, type zStakingValidator, type zStakingValidatorSortBy, type zStellarMemo, type zSubProcessorRow, type zSubProcessorsResponse, type zTokenResponse, type zTokenTemplateListResponse, type zTokenTemplateResponse, type zTokenizationCreateDeploymentRequestInput, type zTokenizationCreateDeploymentRequestResponse, type zTokenizationEstimateDeploymentFeeInput, type zTokenizationEstimateDeploymentFeeResponse, type zTradelinkCustodianResponse, type zTradelinkEntityResponse, type zTradelinkNetworkBlueprintResponse, type zTradelinkNetworkResponse, type zTradelinkOrgEntityResponse, type zTradelinkSettlementWithAccountAndExchangeInfoResponse, type zTradelinkWhitelist, type zTransactionData, type zTransactionResponse, type zTransactionScanSummary, type zTransactionStatus, type zTransactionType, type zTransactionWithMetaResponse, type zUpdateWebhookPayload, type zUserRegistrationChallenge, type zUserRegistrationChallengeResponse, type zUserRegistrationCreateInput, type zUserRegistrationDeviceData, type zUserRegistrationResponse, type zUserResponse, type zUserSortBy, zUserSortByField, type zUtxosPageResponse, type zVaultRequestCreateInput, type zVaultRequestResponse, type zVisibleReportStatus, type zWebVaultRequestResponse, type zWebhookDeliveryResponse, type zWebhookDetailResponse, type zWebhookResponse, type zWhitelistAddressResponse, type zWhitelistAddressSortBy, type zWhitelistResponse, type zWhitelistSortBy, zWhitelistSortByField, type zWorkspaceResponse, type zWorkspaceRuleResponse, type zWorkspaceRulesResponse };
1
+ import { $ as TokenizationDeploymentEstimateInput, $a as BITCOIN_SPEC, $i as zOnboardingOpts, $n as ReportStatus, $o as zRefreshPskInputData, $r as PsdAuthChallengeData, $t as zReportDownloadUrlResponse, A as zUserRegistrationResponse, Aa as zSendOnlyTransactionData, Ai as WebhookResponse, An as ActivationStatus, Ao as GetObjectsInfoResponse, Ar as zLegalContentBlock, As as IndexedReceiveAddressSelection, At as genTransactionSchemas, B as zTradelinkSettlementWithAccountAndExchangeInfoResponse, Ba as SOLANA_SPEC, Bo as PsdPairingInputData, Br as GroupSortBy, Bs as zStake, Bt as zVaultRequestCreateInput, C as zQuorumAccountEntryResponse, Ca as convertTxToGovernableIntent, Ci as zAssetResponse, Cn as zPortfoliosByAccountIdsResponse, Co as stableOrdering, Cr as LegalContentBlock, Cs as ETHEREUM_STAKING_NETWORKS, Ct as RequestDataOf, D as UserRegistrationCreateInput, Da as zAccountStakingFields, Di as DeleteWebhookResponse, Dn as zPortfolioAppliedState, Do as zPaginated, Dr as PrivacyNoticeSection, Ds as AccountLiveDataResponse, Dt as VaultRequestResponse, E as zUserSortBy, Ea as zAccountNetworkInfoFields, Ei as CreateWebhookPayload, En as normalizePortfolioName, Eo as zPageQuery, Er as PrivacyNoticeResponse, Es as admitsStakeOperation, Et as VaultRequestCreateInput, F as TradelinkNetworkResponse, Fa as TEZOS_SPEC, Fi as zRotateWebhookSecretResponse, Fn as ChallengeType, Fo as VersionedObjectInfo, Fr as zPrivacyNoticeSectionId, Fs as zBalance, Ft as zPotentialDuplicateTransactionsInput, G as zTokenizationCreateDeploymentRequestInput, Ga as HEDERA_SPEC, Gi as OnboardingFullState, Gn as HsmHostingMode, Go as UserRegistrationChallenge, Gr as WorkspaceRulesResponse, Gt as OperationMetadataResponse, H as TokenizationEstimateDeploymentFeeInput, Ha as RIPPLE_SPEC, Ho as PubKey, Hr as zGroupSortBy, Hs as zStakesPage, Ht as zWebVaultRequestResponse, I as TradelinkSettlementWithAccountAndExchangeInfoResponse, Ia as SUI_SPEC, Ii as zUpdateWebhookPayload, In as ClaimedRole, Io as ApiChallenge, Ir as zSubProcessorRow, Is as zFreshReceiveAddress, It as zPotentialDuplicateTransactionsResponse, J as zTokenizationEstimateDeploymentFeeResponse, Ja as ETHEREUM_SPEC, Ji as OnboardingSeedFragment, Jn as OnboardedUserRole, Jo as zPsdPairingData, Jr as zWorkspaceRulesResponse, Jt as SoftChallenge, K as zTokenizationCreateDeploymentRequestResponse, Ka as isErc20Address, Ki as OnboardingOpts, Kn as MaintenanceMode, Ko as UserRegistrationChallengeResponse, Kr as zRootWorkspaceRuleResponse, Kt as Challenge, L as zTradelinkCustodianResponse, La as STELLAR_SPEC, Li as zWebhookDeliveryResponse, Lo as HsmCertificate, Lr as zSubProcessorsResponse, Ls as zIndexedReceiveAddressInput, Lt as zRequestSortBy, M as OperationMilestoneResponse, Ma as zTransactionResponse, Mi as zCreateWebhookResponse, Mn as AdminPermission, Mo as HsmObjectType, Mr as zLegalInlineContent, Ms as ReceiveAddressSelection, Mt as zChallengeResponse, N as TradelinkCustodianResponse, Na as zTransactionType, Ni as zDeleteWebhookResponse, Nn as AllowedAction, No as ObjectsContentResponse, Nr as zPrivacyNoticeResponse, Ns as zAccountLiveDataResponse, Nt as zCreateClassicAccountWithPolicyIdInput, O as UserRegistrationResponse, Oa as zEstimatedFees, Oi as UpdateWebhookPayload, Oo as zSortOrder, Or as SubProcessorRow, Os as FreshReceiveAddress, Ot as VaultRequestResponseBase, P as TradelinkEntityResponse, Pa as TRON_SPEC, Pi as zReplayFailedResponse, Pn as AuditLogType, Po as ObjectsVersionResponse, Pr as zPrivacyNoticeSection, Ps as zAddressIndex, Pt as zEnsureNameAvailableInput, Q as TokenizationCreateDeploymentRequestInput, Qa as zCantonTransferProposal, Qi as zOnboardingId, Qn as PsdModel, Qo as zRefreshPskData, Qr as zEntitySortBy, Qt as ReportResponse, R as zTradelinkEntityResponse, Ra as StellarMemo, Ri as zWebhookDetailResponse, Ro as PsdChallenge, Rr as zGroupSortByField, Rs as zIndexedReceiveAddressSelection, Rt as zSignDigestsRequestInput, S as zAdminResponse, Sa as TransactionTypeOf, Si as zAssetCapabilitiesResponse, Sn as zPortfoliosByAccountIdsInput, So as serializePage, Sr as zOpenApiResourceType, Ss as zAuthResponse, St as PotentialDuplicateTransactionsResponse, T as zUserResponse, Ta as zAccountLiveData, Ti as zTokenResponse, Tn as PortfolioAppliedState, To as zCursorQuery, Tr as LegalInlineContent, Ts as isEthereumStakingNetwork, Tt as RequestSortBy, U as zTokenTemplateListResponse, Ua as zRippleDestinationTag, Uo as RefreshPskData, Ur as RootWorkspaceRuleResponse, Us as zStakingValidator, Ut as OutgoingTransactionMeta, V as AppRouter, Va as isSplTokenTransaction, Vo as PsdSignature, Vr as zGroupResponse, Vs as zStakeState, Vt as zVaultRequestResponse, W as zTokenTemplateResponse, Wa as POLKADOT_SPEC, Wi as DeviceClaim, Wo as RefreshPskInputData, Wr as WorkspaceRuleResponse, Ws as zStakingValidatorSortBy, Wt as RequestMeta, Xa as CANTON_SPEC, Xi as zDeviceClaim, Xn as OutgoingTransactionStatus, Xo as zPsdSignature, Xr as EntitySortBy, Xt as ReportDownloadUrlResponse, Ya as CARDANO_SPEC, Yi as WrappingKeyResponse, Yn as OnboardingStep, Yo as zPsdPairingInputData, Yr as EntityResponse, Yt as zEnsureNameAvailableOutput, Z as TokenTemplateResponse, Za as CantonTransferProposal, Zi as zOnboardingFullState, Zn as PortfolioHistoryAction, Zo as zPubKey, Zr as zEntityResponse, Zt as ReportInput, _ as AdminResponse, _a as StakingDataOf, _i as AllAssetsResponse, _n as zPortfolioName, _o as SortOrder, _r as zPolicySortBy, _s as zExchangeCredentialsResponse, _t as ApproveVaultRequestInput, a as WorkspaceResponse, aa as HsmComparator, ai as AccountSortBy, an as PortfolioCreateInput, ao as zStakingProvisioning, ar as RevaultMode, as as NatsEventBackfillPreview, at as PledgeResponse, b as UserResponse, ba as TransactionResponse, bi as TokenResponse, bn as zPortfolioSummary, bo as fetchAllPages, br as zAllowedActionsResponse, bs as AuthResponse, bt as PotentialDuplicateTransaction, c as WhitelistAddressResponse, ca as HsmCompareReason, ci as zAccountCommonFields, cn as PortfolioSortBy, co as zTransactionStatus, cs as NATS_EVENT_BACKFILL_EVENT_TYPES, ct as zCreateTradelinkNetworkBlueprintInput, d as WhitelistSortBy, di as zCantonPreApprovalStateResponse, dn as PortfolioUpdateInput, do as zTransactionScanSummary, dt as zPledgeResponse, ea as zOnboardingSeedFragment, ei as zPsdAuthChallengeData, en as zReportInput, eo as BitcoinLikeBalance, es as zUserRegistrationChallenge, et as TokenizationFeeEstimate, f as zWhitelistAddressResponse, fa as isTransactionCheckSupportedType, fi as zCantonTransferProposalResponse, fn as PortfoliosByAccountIdsResponse, fo as CursorPaginated, fr as WhitelistType, fs as LesWalletRegistrationResult, ft as zTradelinkNetworkBlueprintResponse, g as zUserSortByField, ga as SendOnlyTransactionData, gi as zSignedMessageResponse, gn as zPortfolioHistoryEntryResponse, go as Paginated, gr as zPolicyResponse, gs as OidcConfig, gt as zRequestSortByField, h as zWhitelistSortBy, ha as EstimatedFees, hi as zUtxosPageResponse, hn as zPortfolioCurrentUserAccessResponse, ho as PageQuery, hr as PolicySortBy, i as zAuditLogSortBy, ia as HSM_COMPARE_REASONS, ii as AccountResponse, in as PortfolioAdminResponse, io as zEthereumLikeEip1559FeeStrategy, ir as ResourceType, is as NatsEventBackfillItem, it as DeleteTradelinkExchangeInput, j as OperationHistoryResponse, ja as zTransactionData, ji as zCreateWebhookPayload, jo as HSM_OBJECT_TYPES, jr as zLegalInline, js as IndexedSelectionCapability, jt as zApproveVaultRequestInput, k as zUserRegistrationCreateInput, ka as zNetworkAssetFields, ki as WebhookDetailResponse, kn as AccountType, ko as RiskLevel, kr as SubProcessorsResponse, ks as IndexedReceiveAddressInput, kt as WebVaultRequestResponse, l as WhitelistAddressSortBy, la as HsmWorkspaceComparison, li as zAccountResponse, ln as PortfolioStatusFilter, lo as zGovernableAction, lr as UserRole, ls as NATS_EVENT_BACKFILL_LIST_LIMIT, lt as zCreateTradelinkOrgEntityInput, m as zWhitelistResponse, ma as AccountStakingFields, mi as zTransactionWithMetaResponse, mn as zPortfolioCreateInput, mo as MAX_PAGE_SIZE, mr as PolicyResponse, mt as zTradelinkWhitelist, n as AuditLogSortBy, ni as zStakeSortByField, nn as zVisibleReportStatus, no as StakingProvisioning, nr as RequestState, ns as zUserRegistrationDeviceData, nt as zReviewStepsArray, o as zWorkspaceResponse, oa as HsmCompareAnomaly, oi as TransactionWithMetaResponse, on as PortfolioCurrentUserAccessResponse, oo as NetworkFamily, or as ReviewConfigType, os as NatsEventBackfillReport, ot as TradelinkNetworkBlueprintResponse, p as zWhitelistAddressSortBy, pa as AccountNetworkInfoFields, pi as zStakeSortBy, pn as zPortfolioAdminResponse, po as DEFAULT_PAGE_SIZE, pr as zPolicySortByField, pt as zTradelinkOrgEntityResponse, q as zTokenizationEstimateDeploymentFeeInput, qa as GENERIC_SPEC, qi as OnboardingSeedChallenge, qn as MessageType, qo as UserRegistrationDeviceData, qr as zWorkspaceRuleResponse, qt as EnsureNameAvailableOutput, r as zAuditLogResponse, ra as HSM_COMPARATORS, ri as AccountAllowedActionsResponse, rn as zPortfolioSortByField, ro as Validator, rr as RequestType, rs as NatsEventBackfillFailure, rt as CreateTradelinkOrgEntityInput, s as zWhitelistSortByField, sa as HsmCompareDetail, si as zAccountAllowedActionsResponse, sn as PortfolioHistoryEntryResponse, so as zCommonLiveData, sr as UserDeviceType, st as TradelinkOrgEntityResponse, t as AuditLogResponse, ti as zAccountSortByField, tn as zReportResponse, to as EthereumLikeEip1559FeeStrategy, tr as RequestReviewStatus, ts as zUserRegistrationChallengeResponse, tt as ReviewStepWithUsers, u as WhitelistResponse, ui as zAccountSortBy, un as PortfolioSummary, us as NatsEventBackfillEventType, ut as zDeleteTradelinkOrgEntityInput, v as QuorumAccountEntryResponse, va as TransactionData, vi as AssetResponse, vn as zPortfolioSortBy, vo as emptyPage, vr as AllowedActionsResponse, vs as zOidcConfig, vt as ChallengeResponse, w as zQuorumAccountSourceResponse, wa as getTxHsmProps, wi as zCurrencyResponse, wn as PORTFOLIO_NAME_MAX_LENGTH, wo as zCursorPaginated, wr as LegalInline, ws as EthereumStakingNetwork, wt as RequestReview, x as UserSortBy, xa as TransactionType, xi as zAllAssetsResponse, xn as zPortfolioUpdateInput, xo as paginate, xr as zAllowedResourcesResponse, xs as zApiUserCredentialsResponse, xt as PotentialDuplicateTransactionsInput, y as QuorumAccountSourceResponse, ya as TransactionDataOf, yi as CurrencyResponse, yn as zPortfolioStatusFilter, yo as fetchAllCursorPages, yr as AllowedResourcesResponse, yt as EnsureNameAvailableInput, z as zTradelinkNetworkResponse, za as zStellarMemo, zi as zWebhookResponse, zo as PsdPairingData, zr as GroupResponse, zs as zIndexedSelectionCapability, zt as zSignMessageRequestInput } from "./app-lib--GeOqNKr.mjs";
2
+ export { type AccountAllowedActionsResponse, type AccountLiveDataResponse, type AccountNetworkInfoFields, type AccountResponse, type AccountSortBy, type AccountStakingFields, type AccountType, type ActivationStatus, type AdminPermission, type AdminResponse, type AllAssetsResponse, type AllowedAction, type AllowedActionsResponse, type AllowedResourcesResponse, type ApiChallenge, type AppRouter, type ApproveVaultRequestInput, type AssetResponse, type AuditLogResponse, type AuditLogSortBy, type AuditLogType, type AuthResponse, type BITCOIN_SPEC, type BitcoinLikeBalance, type CANTON_SPEC, type CARDANO_SPEC, type CantonTransferProposal, type Challenge, type ChallengeResponse, type ChallengeType, type ClaimedRole, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CreateWebhookPayload, type CurrencyResponse, type CursorPaginated, type DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeleteWebhookResponse, type DeviceClaim, type ETHEREUM_SPEC, ETHEREUM_STAKING_NETWORKS, type EnsureNameAvailableInput, type EnsureNameAvailableOutput, type EntityResponse, type EntitySortBy, type EstimatedFees, type EthereumLikeEip1559FeeStrategy, type EthereumStakingNetwork, type FreshReceiveAddress, type GENERIC_SPEC, type GetObjectsInfoResponse, type GroupResponse, type GroupSortBy, type HEDERA_SPEC, HSM_COMPARATORS, HSM_COMPARE_REASONS, HSM_OBJECT_TYPES, type HsmCertificate, type HsmComparator, type HsmCompareAnomaly, type HsmCompareDetail, type HsmCompareReason, type HsmHostingMode, type HsmObjectType, type HsmWorkspaceComparison, type IndexedReceiveAddressInput, type IndexedReceiveAddressSelection, type IndexedSelectionCapability, type LegalContentBlock, type LegalInline, type LegalInlineContent, type LesWalletRegistrationResult, type MAX_PAGE_SIZE, type MaintenanceMode, type MessageType, NATS_EVENT_BACKFILL_EVENT_TYPES, NATS_EVENT_BACKFILL_LIST_LIMIT, type NatsEventBackfillEventType, type NatsEventBackfillFailure, type NatsEventBackfillItem, type NatsEventBackfillPreview, type NatsEventBackfillReport, type NetworkFamily, type ObjectsContentResponse, type ObjectsVersionResponse, type OidcConfig, type OnboardedUserRole, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type OnboardingStep, type OperationHistoryResponse, type OperationMetadataResponse, type OperationMilestoneResponse, type OutgoingTransactionMeta, type OutgoingTransactionStatus, type POLKADOT_SPEC, type PORTFOLIO_NAME_MAX_LENGTH, type PageQuery, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PortfolioAdminResponse, type PortfolioAppliedState, type PortfolioCreateInput, type PortfolioCurrentUserAccessResponse, type PortfolioHistoryAction, type PortfolioHistoryEntryResponse, type PortfolioSortBy, type PortfolioStatusFilter, type PortfolioSummary, type PortfolioUpdateInput, type PortfoliosByAccountIdsResponse, type PotentialDuplicateTransaction, type PotentialDuplicateTransactionsInput, type PotentialDuplicateTransactionsResponse, type PrivacyNoticeResponse, type PrivacyNoticeSection, type PsdAuthChallengeData as PsdAuthChallengeResponse, type PsdChallenge, type PsdModel, type PsdPairingData, type PsdPairingInputData, type PsdSignature, type PubKey, type QuorumAccountEntryResponse, type QuorumAccountSourceResponse, type RIPPLE_SPEC, type ReceiveAddressSelection, type RefreshPskData, type RefreshPskInputData, type ReportDownloadUrlResponse, type ReportInput, type ReportResponse, type ReportStatus, type RequestDataOf, type RequestMeta, type RequestReview, type RequestReviewStatus, type RequestSortBy, type RequestState, type RequestType, type ResourceType, type RevaultMode, type ReviewConfigType, type ReviewStepWithUsers, type RiskLevel, type RootWorkspaceRuleResponse, type SOLANA_SPEC, type STELLAR_SPEC, type SUI_SPEC, type SendOnlyTransactionData, type SoftChallenge, type SortOrder, type StakingDataOf, type StakingProvisioning, type StellarMemo, type SubProcessorRow, type SubProcessorsResponse, type TEZOS_SPEC, type TRON_SPEC, type TokenResponse, type TokenTemplateResponse, type TokenizationCreateDeploymentRequestInput, type TokenizationDeploymentEstimateInput, type TokenizationEstimateDeploymentFeeInput, type TokenizationFeeEstimate, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionData, type TransactionDataOf, type TransactionResponse, type TransactionType, type TransactionTypeOf, type TransactionWithMetaResponse, type UpdateWebhookPayload, type UserDeviceType, type UserRegistrationChallenge, type UserRegistrationChallengeResponse, type UserRegistrationCreateInput, type UserRegistrationDeviceData, type UserRegistrationResponse, type UserResponse, type UserRole, type UserSortBy, type Validator, type VaultRequestCreateInput, type VaultRequestResponse, type VaultRequestResponseBase, type VersionedObjectInfo, type WebVaultRequestResponse, type WebhookDetailResponse, type WebhookResponse, type WhitelistAddressResponse, type WhitelistAddressSortBy, type WhitelistResponse, type WhitelistSortBy, type WhitelistType, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyResponse, admitsStakeOperation, type convertTxToGovernableIntent, type emptyPage, type fetchAllCursorPages, type fetchAllPages, type genTransactionSchemas, type getTxHsmProps, type isErc20Address, isEthereumStakingNetwork, type isSplTokenTransaction, isTransactionCheckSupportedType, type normalizePortfolioName, type paginate, type serializePage, type stableOrdering, type zAccountAllowedActionsResponse, type zAccountCommonFields, type zAccountLiveData, type zAccountLiveDataResponse, type zAccountNetworkInfoFields, type zAccountResponse, type zAccountSortBy, zAccountSortByField, type zAccountStakingFields, type zAddressIndex, type zAdminResponse, type zAllAssetsResponse, type zAllowedActionsResponse, type zAllowedResourcesResponse, type zApiUserCredentialsResponse, type zApproveVaultRequestInput, type zAssetCapabilitiesResponse, type zAssetResponse, type zAuditLogResponse, type zAuditLogSortBy, type zAuthResponse, type zBalance, type zCantonPreApprovalStateResponse, type zCantonTransferProposal, type zCantonTransferProposalResponse, type zChallengeResponse, type zCommonLiveData, type zCreateClassicAccountWithPolicyIdInput, type zCreateTradelinkNetworkBlueprintInput, type zCreateTradelinkOrgEntityInput, type zCreateWebhookPayload, type zCreateWebhookResponse, type zCurrencyResponse, type zCursorPaginated, type zCursorQuery, type zDeleteTradelinkOrgEntityInput, type zDeleteWebhookResponse, type zDeviceClaim, type zEnsureNameAvailableInput, type zEnsureNameAvailableOutput, type zEntityResponse, type zEntitySortBy, type zEstimatedFees as zEstimateFeesResponse, type zEstimatedFees, zEthereumLikeEip1559FeeStrategy, type zExchangeCredentialsResponse, type zFreshReceiveAddress, type zGovernableAction, type zGroupResponse, type zGroupSortBy, zGroupSortByField, type zIndexedReceiveAddressInput, type zIndexedReceiveAddressSelection, type zIndexedSelectionCapability, type zLegalContentBlock, type zLegalInline, type zLegalInlineContent, type zNetworkAssetFields, type zOidcConfig, type zOnboardingFullState as zOnboardingFullStateResponse, type zOnboardingId, type zOnboardingOpts, type zOnboardingSeedFragment, type zOpenApiResourceType, type zPageQuery, type zPaginated, type zPledgeResponse, type zPolicyResponse, type zPolicySortBy, zPolicySortByField, type zPortfolioAdminResponse, type zPortfolioAppliedState, type zPortfolioCreateInput, type zPortfolioCurrentUserAccessResponse, type zPortfolioHistoryEntryResponse, type zPortfolioName, type zPortfolioSortBy, zPortfolioSortByField, type zPortfolioStatusFilter, type zPortfolioSummary, type zPortfolioUpdateInput, type zPortfoliosByAccountIdsInput, type zPortfoliosByAccountIdsResponse, type zPotentialDuplicateTransactionsInput, type zPotentialDuplicateTransactionsResponse, type zPrivacyNoticeResponse, type zPrivacyNoticeSection, type zPrivacyNoticeSectionId, type zPsdAuthChallengeData as zPsdAuthChallengeResponse, type zPsdPairingData, type zPsdPairingInputData, type zPsdSignature, type zPubKey, type zQuorumAccountEntryResponse, type zQuorumAccountSourceResponse, type zRefreshPskData, type zRefreshPskInputData, type zReplayFailedResponse, type zReportDownloadUrlResponse, type zReportInput, type zReportResponse, type zRequestSortBy, zRequestSortByField, type zReviewStepsArray, type zRippleDestinationTag, type zRootWorkspaceRuleResponse, type zRotateWebhookSecretResponse, type zSendOnlyTransactionData, type zSignDigestsRequestInput, type zSignMessageRequestInput, type zSignedMessageResponse, type zSortOrder, type zStake, type zStakeSortBy, zStakeSortByField, type zStakeState, type zStakesPage, type zStakingProvisioning, type zStakingValidator, type zStakingValidatorSortBy, type zStellarMemo, type zSubProcessorRow, type zSubProcessorsResponse, type zTokenResponse, type zTokenTemplateListResponse, type zTokenTemplateResponse, type zTokenizationCreateDeploymentRequestInput, type zTokenizationCreateDeploymentRequestResponse, type zTokenizationEstimateDeploymentFeeInput, type zTokenizationEstimateDeploymentFeeResponse, type zTradelinkCustodianResponse, type zTradelinkEntityResponse, type zTradelinkNetworkBlueprintResponse, type zTradelinkNetworkResponse, type zTradelinkOrgEntityResponse, type zTradelinkSettlementWithAccountAndExchangeInfoResponse, type zTradelinkWhitelist, type zTransactionData, type zTransactionResponse, type zTransactionScanSummary, type zTransactionStatus, type zTransactionType, type zTransactionWithMetaResponse, type zUpdateWebhookPayload, type zUserRegistrationChallenge, type zUserRegistrationChallengeResponse, type zUserRegistrationCreateInput, type zUserRegistrationDeviceData, type zUserRegistrationResponse, type zUserResponse, type zUserSortBy, zUserSortByField, type zUtxosPageResponse, type zVaultRequestCreateInput, type zVaultRequestResponse, type zVisibleReportStatus, type zWebVaultRequestResponse, type zWebhookDeliveryResponse, type zWebhookDetailResponse, type zWebhookResponse, type zWhitelistAddressResponse, type zWhitelistAddressSortBy, type zWhitelistResponse, type zWhitelistSortBy, zWhitelistSortByField, type zWorkspaceResponse, type zWorkspaceRuleResponse, type zWorkspaceRulesResponse };
package/lib/index.mjs CHANGED
@@ -506,6 +506,11 @@ const zWhitelistSortByField = z$1.enum([
506
506
  "updatedAt"
507
507
  ]);
508
508
  //#endregion
509
- export { ETHEREUM_STAKING_NETWORKS, HSM_COMPARATORS, HSM_COMPARE_REASONS, HSM_OBJECT_TYPES, admitsStakeOperation, isEthereumStakingNetwork, isTransactionCheckSupportedType, zAccountSortByField, zEthereumLikeEip1559FeeStrategy, zGroupSortByField, zPolicySortByField, zPortfolioSortByField, zRequestSortByField, zStakeSortByField, zUserSortByField, zWhitelistSortByField };
509
+ //#region src/shared/nats-event-backfill.ts
510
+ const NATS_EVENT_BACKFILL_EVENT_TYPES = ["AccountCreated", "WorkspaceCreated"];
511
+ /** Rows a preview or a failure list carries. The totals beside them stay exact. */
512
+ const NATS_EVENT_BACKFILL_LIST_LIMIT = 100;
513
+ //#endregion
514
+ export { ETHEREUM_STAKING_NETWORKS, HSM_COMPARATORS, HSM_COMPARE_REASONS, HSM_OBJECT_TYPES, NATS_EVENT_BACKFILL_EVENT_TYPES, NATS_EVENT_BACKFILL_LIST_LIMIT, admitsStakeOperation, isEthereumStakingNetwork, isTransactionCheckSupportedType, zAccountSortByField, zEthereumLikeEip1559FeeStrategy, zGroupSortByField, zPolicySortByField, zPortfolioSortByField, zRequestSortByField, zStakeSortByField, zUserSortByField, zWhitelistSortByField };
510
515
 
511
516
  //# sourceMappingURL=index.mjs.map
package/lib/index.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["z","z","z","z","z","z","z","z"],"sources":["../src/core/accounts/stake-admission.ts","../src/core/accounts/staking-networks.ts","../src/core/hsm-comparison.ts","../src/shared/zod-utils.ts","../src/core/networks/common.ts","../src/core/networks/ethereum/schemas.ts","../src/core/scan/supported-types.ts","../src/core/accounts/stake-sort.ts","../src/entrypoints/api/accounts/sort.ts","../src/entrypoints/api/groups/sort.ts","../src/services/hsm/hsm-requests-types.ts","../src/entrypoints/api/policies/sort.ts","../src/entrypoints/api/portfolios/sort.ts","../src/entrypoints/api/requests/sort.ts","../src/entrypoints/api/users/sort.ts","../src/entrypoints/api/whitelists/sort.ts"],"sourcesContent":["import type { Stake, StakeOperation } from \"./read-models\";\n\n/**\n * Whether `operation` may still be started on this position, per the backend that enforces the\n * blocking matrix. Shared with the front-end so the rule has one reading, and kept trivial on\n * purpose: the verdict is computed where the matrix lives, not here.\n *\n * A null `admissibleOperations` means admission is not reported — an older backend, or a chain\n * that has no such notion — and is deliberately permissive: refusing every action on a missing\n * verdict would disable a whole account, while the broadcast 409 remains the backstop. A pending\n * credential upgrade is still honoured then: it is reported, not missing, and locks the position.\n *\n * Lives apart from `read-models` so `app-lib` can publish it without the bundler following that\n * module's runtime imports into every consumer of this package. The imports here are types only,\n * and erased.\n */\nexport const admitsStakeOperation = (\n // Optional so callers passing only `admissibleOperations` keep compiling.\n position: Pick<Stake, \"admissibleOperations\"> & Partial<Pick<Stake, \"pendingOperations\">>,\n operation: StakeOperation,\n): boolean =>\n position.admissibleOperations == null\n ? !position.pendingOperations?.some((_) => _.kind === \"CREDENTIAL_UPGRADE\")\n : position.admissibleOperations.includes(operation);\n","/**\n * Networks where Ethereum staking is served. `ETHEREUM_LIKE` covers every EVM chain, so this list\n * is what separates a chain the product stakes on from Polygon, BSC and the rest — including the\n * testnets LAMA would answer for but the product does not offer. Published through `app-lib` so\n * the front-end gates its Staking UI on the same list.\n */\nexport const ETHEREUM_STAKING_NETWORKS = [\"ethereum\", \"ethereum_hoodi\"] as const;\n\nexport type EthereumStakingNetwork = (typeof ETHEREUM_STAKING_NETWORKS)[number];\n\nexport const isEthereumStakingNetwork = (network: string): network is EthereumStakingNetwork =>\n (ETHEREUM_STAKING_NETWORKS as readonly string[]).includes(network);\n","/** Comparators offered by the backoffice \"Compare with HSM\" diagnostic, one run at a time. */\nexport const HSM_COMPARATORS = [\"whitelists\", \"workspace-name\"] as const;\n\nexport type HsmComparator = (typeof HSM_COMPARATORS)[number];\n\n/**\n * Why a compared object diverges. Reasons are comparator-specific, but they share a single enum so\n * the backoffice can count and group anomalies without knowing which comparator produced them.\n */\nexport const HSM_COMPARE_REASONS = [\n \"has-diffs\",\n \"missing-in-hsm\",\n \"missing-in-revault\",\n \"fetch-failed\",\n \"name-mismatch\",\n \"no-partition-found\",\n \"multiple-partitions-found\",\n] as const;\n\nexport type HsmCompareReason = (typeof HSM_COMPARE_REASONS)[number];\n\n/**\n * One line of evidence under an anomaly. Values are stringified here rather than formatted, so the\n * backoffice owns how a divergence reads on screen.\n */\nexport type HsmCompareDetail =\n | {\n kind: \"field-diff\";\n /** Entry the field belongs to, or null when the field is on the object itself. */\n scope: string | null;\n field: string;\n revault: string;\n hsm: string;\n }\n | { kind: \"only-in-revault\"; entry: string }\n | { kind: \"only-in-hsm\"; entry: string };\n\nexport type HsmCompareAnomaly = {\n reason: HsmCompareReason;\n /** HSM object id, null for anomalies that are not about a single identified object. */\n hsmId: string | null;\n /** Revault-side name, null when only the HSM knows the object. */\n name: string | null;\n details: HsmCompareDetail[];\n};\n\nexport type HsmWorkspaceComparison = {\n workspaceName: string;\n /** Objects actually compared on both sides. Zero means there was nothing to compare. */\n checked: number;\n anomalies: HsmCompareAnomaly[];\n};\n","import { z } from \"zod\";\n\nexport const zHexString = z.string().regex(/^[0-9a-fA-F]+$/);\n\nexport const zIntString = z\n .string()\n .nonempty()\n .regex(/^(-?[1-9]\\d*|0)$/);\n\nexport const zUnsignedIntString = z\n .string()\n .nonempty()\n .regex(/^([1-9]\\d*|0)$/);\n\nexport const zCurrencyString = z\n .string()\n .nonempty()\n .max(40)\n .regex(/^\\w+$/)\n .meta({ description: \"Will be deprecated soon, use network instead. Currency\" });\n\nexport const zNetwork = z\n .string()\n .nonempty()\n .max(40)\n .regex(/^\\w+$/)\n .meta({ description: \"Network identifier\" });\n\nexport const zCurrency = z.object({\n network: zNetwork,\n contractAddress: z.string().nonempty().nullable().meta({ description: \"Token issuer\" }),\n tokenIdentifier: z.string().nonempty().nullable().meta({ description: \"Token identifier\" }),\n});\n\nexport const zObjectId = z\n .string()\n .regex(/^[\\w-]+$/) // UUID, GUID, NanoID, CUID... or just a slug\n .nonempty();\n\nexport type ObjectId = z.infer<typeof zObjectId>;\n\nexport const zHsmObjectId = z\n .string()\n .regex(/^[\\w-]+$/) // TODO: what is the exact format of an HSM ID?\n .nonempty();\n\nexport type HsmObjectId = z.infer<typeof zHsmObjectId>;\n\nexport const zHsmObjectName = z.string().min(1).max(45).meta({ description: \"HSM object name\" });\n\n/** DNS hostname or label conforming to RFC 1123. */\nexport const zDns1123Label = z\n .string()\n .min(1)\n .max(63)\n .regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/);\n\n/* v8 ignore next -- @preserve */\nexport const zDateCodec = z.codec(z.iso.datetime(), z.date(), {\n decode: (isoString) => new Date(isoString), // ISO string → Date\n encode: (date) => date.toISOString(), // Date → ISO string\n});\n","import z from \"zod\";\n\nimport type { AccountType } from \"@/generated/prisma/client\";\nimport { zCurrencyString, zUnsignedIntString } from \"@/shared/zod-utils\";\n\n// #region ---------- Utils -----------------------------------------------------------------------\n\nexport type NetworkFamily = Exclude<AccountType, \"RAW_SIGNING\">;\n\nexport const NetworkFamily = {\n BITCOIN_LIKE: \"BITCOIN_LIKE\",\n CANTON_LIKE: \"CANTON_LIKE\",\n CARDANO_LIKE: \"CARDANO_LIKE\",\n ETHEREUM_LIKE: \"ETHEREUM_LIKE\",\n GENERIC_LIKE: \"GENERIC_LIKE\",\n HEDERA_LIKE: \"HEDERA_LIKE\",\n POLKADOT_LIKE: \"POLKADOT_LIKE\",\n RIPPLE_LIKE: \"RIPPLE_LIKE\",\n SOLANA_LIKE: \"SOLANA_LIKE\",\n STELLAR_LIKE: \"STELLAR_LIKE\",\n SUI_LIKE: \"SUI_LIKE\",\n TEZOS_LIKE: \"TEZOS_LIKE\",\n TRON_LIKE: \"TRON_LIKE\",\n} satisfies Record<NetworkFamily, NetworkFamily>;\n\n/**\n * Ensure that this is a hex string and transform it to lowercase with 0x prefix.\n * Not to be used for EIP-55 addresses or other attributes where letter casing is important!\n */\n/* v8 ignore next -- @preserve */\nexport const zHexDataString = z.codec(z.string().regex(/^(?:0x|0X)?[a-fA-F0-9]+$/), z.string(), {\n decode: (hex) => `0x${hex.toLowerCase().replace(\"0x\", \"\")}`,\n encode: (hex) => hex,\n});\n\n// #endregion\n\n// #region ---------- Live Data -------------------------------------------------------------------\n\nexport const zCommonLiveData = z.object({\n id: z.string().meta({ description: \"Account internal unique identifier\" }),\n balance: z\n .object({\n total: z.string().meta({ description: \"Total balance\" }),\n pending: z.string().meta({ description: \"Pending balance\" }),\n reserved: z\n .string()\n .meta({ description: \"Minimum balance the account must always keep (0 if none)\" }),\n })\n .meta({ description: \"Balance fields\" }),\n});\n\n// #endregion\n\n// #region ---------- Transaction Data ------------------------------------------------------------\n\n/**\n * Schema of `Request.data.transaction`\n */\nexport const zCommonTransactionData = z.object({\n amount: zUnsignedIntString.meta({ description: \"Transaction amount\" }),\n currency: zCurrencyString.meta({\n description: \"Will be deprecated soon, use Account.network. Transaction currency\",\n }), // TODO: to remove, use account.network instead\n maxFee: zUnsignedIntString.nullable().meta({ description: \"Transaction max fee\" }),\n recipient: z.string().nonempty().meta({ description: \"Transaction recipient\" }),\n});\n\nexport const zFeeStrategyCustom = z.object({\n type: z.enum([\"SLOW\", \"NORMAL\", \"FAST\", \"CUSTOM\"]),\n});\n\nexport const zFeeStrategy = z.object({\n type: z.enum([\"SLOW\", \"NORMAL\", \"FAST\"]),\n});\n\n// #endregion\n\n// #region ---------- Transaction Response --------------------------------------------------------\n\nexport const zTransactionStatus = z.enum([\"SUCCESSFUL\", \"FAILED\", \"PENDING\", \"UNKNOWN\"]);\n\nexport const zCommonTransactionResponse = z.object({\n id: z.string().meta({ description: \"Internal unique identifier\" }),\n hash: z.string().meta({ description: \"Transaction hash\" }),\n block: z.object({\n height: z.string().nullable().meta({ description: \"Transaction block height\" }),\n time: z.string().nullable().meta({ description: \"Transaction block time\" }),\n }),\n status: zTransactionStatus.meta({ description: \"Transaction status\" }),\n confirmations: z.string().meta({ description: \"Block confirmations\" }),\n amount: z.string().meta({ description: \"Transaction amount\" }),\n fee: z.string().meta({ description: \"Transaction fee\" }),\n senders: z\n .array(z.string())\n .meta({ description: \"Senders (can be multiple for UTXOs-based accounts)\" }),\n recipients: z\n .array(z.string())\n .meta({ description: \"Recipients (can be multiple for multi-output transactions)\" }),\n});\n\n// #endregion\n","import z from \"zod\";\n\nimport { zIntString, zUnsignedIntString } from \"@/shared/zod-utils\";\n\nimport {\n NetworkFamily,\n zCommonLiveData,\n zCommonTransactionData,\n zCommonTransactionResponse,\n zFeeStrategyCustom,\n zHexDataString,\n} from \"../common\";\n\n// #region ---------- Asset Fields ----------------------------------------------------------------\n\nexport const zEthereumLikeAssetFields = z\n .object({\n type: z.literal(NetworkFamily.ETHEREUM_LIKE).meta({ description: \"Account type\" }),\n address: z.string().nullable().meta({ description: \"Account address\" }),\n })\n .meta({ description: \"Ethereum-like\" });\n\n// #endregion\n\n// #region ---------- Live Data -------------------------------------------------------------------\n\nconst zEthereumLikeConsolidationTarget = z.object({\n id: z.string().nonempty().meta({ description: \"Staking position ID\" }),\n staked: z.string().meta({ description: \"Staked amount of that position\" }),\n});\n\nconst zEthereumLikeStakingData = z\n .object({\n totalStaking: z.string().meta({ description: \"Total staked amount\" }),\n totalRewards: z.string().meta({ description: \"Total of rewards\" }),\n availableRewards: z.string().meta({ description: \"Available rewards\" }).optional(),\n networkApy: z.number().meta({ description: \"Network APY\" }).optional(),\n consolidationTargets: z\n .array(zEthereumLikeConsolidationTarget)\n .max(2)\n .optional()\n .meta({\n description:\n \"The smallest positions a stake can be consolidated into, ascending. Only the \" +\n \"smallest target can have room for a given source, so these are enough to decide \" +\n \"any position's eligibility without listing the account. Two entries rather than \" +\n \"one because a position is never its own target. Absent on accounts whose staking \" +\n \"data does not come from position listing.\",\n }),\n })\n .nullable()\n .meta({ description: \"Ethereum-like staking data\" });\n\nexport const zEthereumLikeStakingFields = z.object({\n type: z.literal(NetworkFamily.ETHEREUM_LIKE).meta({ description: \"Account type\" }),\n staking: zEthereumLikeStakingData.optional(),\n});\n\nexport const zEthereumLikeLiveData = zCommonLiveData\n .extend(zEthereumLikeStakingFields.shape)\n .meta({ description: \"Ethereum-like\" });\n\n// #endregion\n\n// #region ---------- Estimated Fee ---------------------------------------------------------------\n\nexport const zEthereumLikeEstimatedFees = z\n .object({\n type: z.literal(NetworkFamily.ETHEREUM_LIKE),\n baseFees: zIntString,\n gasLimit: zIntString,\n nonce: z.string(),\n priorityFees: zIntString,\n executionFees: zIntString.nullish(),\n maxExecutionFees: zIntString.nullish(),\n })\n .meta({ description: \"Ethereum-like fees\" });\n\n// #endregion\n\n// #region ---------- Transaction Type ------------------------------------------------------------\n\nconst zEthereumLikeTransferTransactionType = z\n .enum([\"ETHEREUM_LIKE_SEND\", \"ETHEREUM_LIKE_RECEIVE\"])\n .meta({ description: \"Ethereum-like transaction type\" });\n\nconst zEthereumLikeContractTransactionType = z\n .enum([\"ETHEREUM_LIKE_EXECUTE_CONTRACT\", \"ETHEREUM_LIKE_DEPLOY_CONTRACT\"])\n .meta({ description: \"Ethereum-like transaction type\" });\n\nconst zEthereumLikeStakingTransactionType = z\n .enum([\n \"ETHEREUM_LIKE_STAKE_DEPOSIT\",\n \"ETHEREUM_LIKE_STAKE_TOP_UP\",\n \"ETHEREUM_LIKE_STAKE_WITHDRAW\",\n \"ETHEREUM_LIKE_STAKE_CONSOLIDATE\",\n \"ETHEREUM_LIKE_STAKE_UPGRADE\",\n ])\n .meta({ description: \"Ethereum-like staking transaction type\" });\n\nexport const zEthereumLikeTransactionType = z\n .enum([\n ...zEthereumLikeTransferTransactionType.options,\n ...zEthereumLikeContractTransactionType.options,\n ...zEthereumLikeStakingTransactionType.options,\n ])\n .meta({\n description: \"Ethereum-like transaction type\",\n });\n\nexport type EthereumLikeTransactionType = z.infer<typeof zEthereumLikeTransactionType>;\n\n// #endregion\n\n// #region ---------- Transaction Data ------------------------------------------------------------\n\nconst zEthereumLikeLegacyFeeStrategy = zFeeStrategyCustom\n .extend({\n gasPrice: zUnsignedIntString.meta({ description: \"Gas price\" }),\n gasLimit: zUnsignedIntString.meta({ description: \"Gas limit\" }),\n })\n .meta({ description: \"Ethereum-like legacy fee strategy\" });\n\nexport const zEthereumLikeEip1559FeeStrategy = zFeeStrategyCustom\n .extend({\n maxPriorityFeePerGas: zUnsignedIntString.meta({ description: \"Maximum priority fee per gas\" }),\n maxFeePerGas: zUnsignedIntString.meta({ description: \"Maximum fee per gas (base + priority)\" }),\n gasLimit: zUnsignedIntString.meta({ description: \"Gas limit\" }),\n })\n .meta({ description: \"Ethereum-like EIP-1559 fee strategy\" });\n\nexport type EthereumLikeEip1559FeeStrategy = z.infer<typeof zEthereumLikeEip1559FeeStrategy>;\n\nconst zEthereumLikeFeeStrategy = z\n .union([zEthereumLikeLegacyFeeStrategy, zEthereumLikeEip1559FeeStrategy])\n .meta({\n description: \"Ethereum-like fee strategy\",\n id: \"EthereumLikeFeeStrategy\",\n });\n\nconst zEthereumCommonTransactionData = zCommonTransactionData.extend({\n replacingTxHash: z.string().optional().meta({\n description:\n \"Hash of the original transaction to replace. If provided, the new transaction will replace the one matching this hash.\",\n }),\n});\n\nconst zEthereumLikeDeployContractData = zEthereumCommonTransactionData\n .extend({\n type: z.literal(zEthereumLikeContractTransactionType.enum.ETHEREUM_LIKE_DEPLOY_CONTRACT),\n recipient: z.literal(\"\"), // force an empty string\n contractData: zHexDataString.meta({ description: \"Contract data in hexadecimal format\" }),\n feeStrategy: zEthereumLikeFeeStrategy,\n })\n .meta({\n description: \"Ethereum-like deploy contract data\",\n id: \"EthereumLikeDeployContractData\",\n });\n\nconst zEthereumLikeExecuteContractData = zEthereumCommonTransactionData\n .extend({\n type: z.literal(zEthereumLikeContractTransactionType.enum.ETHEREUM_LIKE_EXECUTE_CONTRACT),\n contractData: zHexDataString.meta({ description: \"Contract call data in hexadecimal format\" }),\n feeStrategy: zEthereumLikeFeeStrategy,\n })\n .meta({\n description: \"Ethereum-like execute contract data\",\n id: \"EthereumLikeExecuteContractData\",\n });\n\nexport const zEthereumLikeSendData = zEthereumCommonTransactionData\n .extend({\n type: z.literal(zEthereumLikeTransferTransactionType.enum.ETHEREUM_LIKE_SEND),\n feeStrategy: zEthereumLikeFeeStrategy,\n })\n .meta({\n description: \"Ethereum-like send data\",\n id: \"EthereumLikeSendData\",\n });\n\n// Upper bound enforced by les-wallet batch provisioning (Kiln caps at 150 validators per request).\nconst MAX_VALIDATORS_PER_BATCH = 150;\n\nconst zEthereumLikeStakingProvider = z.string().nonempty().meta({\n description: \"Staking provider to use, as identified by the staking validators endpoint\",\n});\n\nconst zEthereumLikeStakingDepositData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_DEPOSIT),\n feeStrategy: zEthereumLikeFeeStrategy,\n amountPerValidator: zUnsignedIntString.meta({\n description:\n \"Amount to stake per validator, in wei. Must be a multiple of the provider's \" +\n \"`options.stakeAmountStepWei` from the staking validators endpoint (1 gwei when absent).\",\n }),\n numberOfValidators: zUnsignedIntString\n .refine(\n (v) => {\n const n = BigInt(v);\n return n >= 1n && n <= BigInt(MAX_VALIDATORS_PER_BATCH);\n },\n { message: `Number of validators must be between 1 and ${MAX_VALIDATORS_PER_BATCH}` },\n )\n .meta({\n description: \"Number of validators to stake with\",\n }),\n stakingProvider: zEthereumLikeStakingProvider,\n withdrawalAddress: z\n .string()\n .regex(/^0x[a-fA-F0-9]{40}$/, { message: \"Withdrawal address must be 20 bytes\" })\n .meta({ description: \"Execution-layer withdrawal address in hexadecimal format (20 bytes)\" }),\n })\n .meta({\n description: \"Ethereum-like staking deposit data\",\n id: \"EthereumLikeStakingDepositData\",\n });\n\nconst zEthereumLikeStakingTopUpData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_TOP_UP),\n feeStrategy: zEthereumLikeFeeStrategy,\n validators: z\n .array(\n z.object({\n validatorPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Validator public key must be 48 bytes\",\n })\n .meta({ description: \"Validator public key in hexadecimal format (48 bytes)\" }),\n amount: zUnsignedIntString.meta({ description: \"Amount to stake per validator\" }),\n }),\n )\n .min(1, { message: \"A top-up must include at least one validator\" }),\n })\n .meta({\n description: \"Ethereum-like staking top-up deposit data\",\n id: \"EthereumLikeStakingTopUpData\",\n });\n\nconst zEthereumLikeStakingWithdrawData = zEthereumCommonTransactionData\n .omit({ recipient: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_WITHDRAW),\n feeStrategy: zEthereumLikeFeeStrategy,\n validatorPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Validator public key must be 48 bytes\",\n })\n .meta({ description: \"Validator public key in hexadecimal format (48 bytes)\" }),\n maxExecutionFees: zUnsignedIntString\n .meta({\n description: \"Max execution fee for the withdrawal transaction (in wei)\",\n })\n .optional(),\n })\n .meta({\n description: \"Ethereum-like staking withdraw data\",\n id: \"EthereumLikeStakingWithdrawData\",\n });\n\nconst zEthereumLikeStakingConsolidateData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_CONSOLIDATE),\n feeStrategy: zEthereumLikeFeeStrategy,\n sourcePubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Source validator public key must be 48 bytes\",\n })\n .meta({ description: \"Source validator public key in hexadecimal format (48 bytes)\" }),\n targetPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Target validator public key must be 48 bytes\",\n })\n .meta({ description: \"Target validator public key in hexadecimal format (48 bytes)\" }),\n maxExecutionFees: zUnsignedIntString\n .meta({\n description: \"Max execution fee for the consolidation transaction (in wei)\",\n })\n .optional(),\n sourceStakedAmount: zUnsignedIntString\n .meta({\n description:\n \"Staked balance of the source validator when the request was created, in wei. \" +\n \"Display only: the consolidation moves it on the consensus layer and never sends it.\",\n })\n .optional(),\n })\n .meta({\n description: \"Ethereum-like staking consolidate data\",\n id: \"EthereumLikeStakingConsolidateData\",\n });\n\nconst zEthereumLikeStakingUpgradeData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_UPGRADE),\n feeStrategy: zEthereumLikeFeeStrategy,\n validatorPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Validator public key must be 48 bytes\",\n })\n .meta({ description: \"Validator public key in hexadecimal format (48 bytes)\" }),\n maxExecutionFees: zUnsignedIntString\n .meta({\n description: \"Max execution fee for the upgrade transaction (in wei)\",\n })\n .optional(),\n })\n .meta({\n description: \"Ethereum-like staking upgrade data\",\n id: \"EthereumLikeStakingUpgradeData\",\n });\n\nexport const zEthereumLikeTransactionData = z.discriminatedUnion(\"type\", [\n zEthereumLikeDeployContractData,\n zEthereumLikeExecuteContractData,\n zEthereumLikeSendData,\n zEthereumLikeStakingDepositData,\n zEthereumLikeStakingTopUpData,\n zEthereumLikeStakingWithdrawData,\n zEthereumLikeStakingConsolidateData,\n zEthereumLikeStakingUpgradeData,\n]);\n\nexport type EthereumLikeTransactionData = z.infer<typeof zEthereumLikeTransactionData>;\n\n// #endregion\n\n// #region ---------- Staking Provisioning --------------------------------------------------------\n\nconst zValidator = z.object({\n pubkey: z.string(),\n depositAmount: zUnsignedIntString,\n signature: z.string(),\n depositDataRoot: z.string(),\n});\n\nexport type Validator = z.infer<typeof zValidator>;\n\nexport const zStakingProvisioning = z.object({\n contractAddress: z.string(),\n validators: z.array(zValidator),\n});\n\nexport type StakingProvisioning = z.infer<typeof zStakingProvisioning>;\n\n// #endregion\n\n// #region ---------- Transaction Response --------------------------------------------------------\n\nconst zEthereumLikeTransferCoinFields = z.object({\n type: zEthereumLikeTransferTransactionType,\n gasPrice: z.string(),\n gasLimit: z.string(),\n nonce: z.string(),\n});\n\nconst zEthereumLikeContractCoinFields = zEthereumLikeTransferCoinFields.extend({\n type: zEthereumLikeContractTransactionType,\n contractData: z.string().meta({ description: \"Contract deployment or contract execution data\" }),\n});\n\nconst zEthereumLikeStakingCoinFields = zEthereumLikeContractCoinFields.extend({\n type: zEthereumLikeStakingTransactionType,\n});\n\nconst zEthereumLikeStakeDepositValidatorResponse = z.object({\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n withdrawalCredentials: zHexDataString.meta({ description: \"Validator withdrawal credentials\" }),\n withdrawalAddress: z\n .string()\n .nullable()\n .meta({ description: \"Execution withdrawal address, when encoded by the credentials\" }),\n signature: zHexDataString.meta({ description: \"BLS deposit signature\" }),\n depositDataRoot: zHexDataString.meta({ description: \"Beacon deposit data root\" }),\n amount: zUnsignedIntString.meta({ description: \"Validator deposit amount in wei\" }),\n});\n\nconst zEthereumLikeStakeTopUpValidatorResponse = z.object({\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n amount: zUnsignedIntString.meta({ description: \"Validator top-up amount in wei\" }),\n});\n\nconst zEthereumLikeStakeDepositResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_DEPOSIT),\n validators: z.array(zEthereumLikeStakeDepositValidatorResponse),\n});\n\nconst zEthereumLikeStakeTopUpResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_TOP_UP),\n validators: z.array(zEthereumLikeStakeTopUpValidatorResponse),\n});\n\nconst zEthereumLikeStakeWithdrawResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_WITHDRAW),\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n withdrawalAmount: zUnsignedIntString.meta({ description: \"Requested withdrawal amount in wei\" }),\n isFullExit: z.boolean().meta({ description: \"Whether the zero amount requests a full exit\" }),\n executionFee: zUnsignedIntString.meta({ description: \"EIP-7002 request fee in wei\" }),\n});\n\nconst zEthereumLikeStakeConsolidateResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_CONSOLIDATE),\n sourcePubKey: zHexDataString.meta({ description: \"Source validator public key\" }),\n sourceStakingProvider: zEthereumLikeStakingProvider.nullable().meta({\n description: \"Staking provider inferred from the source validator public key, when known\",\n }),\n targetPubKey: zHexDataString.meta({ description: \"Target validator public key\" }),\n targetStakingProvider: zEthereumLikeStakingProvider.nullable().meta({\n description: \"Staking provider inferred from the target validator public key, when known\",\n }),\n executionFee: zUnsignedIntString.meta({ description: \"EIP-7251 request fee in wei\" }),\n});\n\nconst zEthereumLikeStakeUpgradeResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_UPGRADE),\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n executionFee: zUnsignedIntString.meta({ description: \"EIP-7251 request fee in wei\" }),\n});\n\nexport const zEthereumLikeTransactionResponse = z\n .discriminatedUnion(\"type\", [\n zCommonTransactionResponse\n .extend(zEthereumLikeTransferCoinFields.shape)\n .meta({ description: \"Ethereum-like transfer transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeContractCoinFields.shape)\n .meta({ description: \"Ethereum-like contract transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeDepositResponseFields.shape)\n .meta({ description: \"Ethereum validator deposit transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeTopUpResponseFields.shape)\n .meta({ description: \"Ethereum validator top-up transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeWithdrawResponseFields.shape)\n .meta({ description: \"Ethereum validator withdrawal request transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeConsolidateResponseFields.shape)\n .meta({ description: \"Ethereum validator consolidation request transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeUpgradeResponseFields.shape)\n .meta({ description: \"Ethereum validator credential upgrade transaction\" }),\n ])\n .meta({ description: \"Ethereum-like transaction\" });\n\n// #endregion\n","import type { TransactionType } from \"@/core/networks\";\n\nconst TRANSACTION_CHECK_SUPPORTED_TYPES = [\n \"ETHEREUM_LIKE_SEND\",\n \"ETHEREUM_LIKE_EXECUTE_CONTRACT\",\n \"ETHEREUM_LIKE_STAKE_DEPOSIT\",\n \"ETHEREUM_LIKE_STAKE_TOP_UP\",\n \"ETHEREUM_LIKE_STAKE_WITHDRAW\",\n \"ETHEREUM_LIKE_STAKE_CONSOLIDATE\",\n \"ETHEREUM_LIKE_STAKE_UPGRADE\",\n] as const satisfies readonly TransactionType[];\n\n/**\n * Whether Transaction Check applies to this exact transaction type. This is only the type half of\n * the scope: API code that has the account must use `isInTransactionCheckScope` from\n * `@/core/accounts/transactions`, which also checks that les-wallet can scan the account.\n *\n * Kept free of runtime imports: `@ledgerhq/revault-api` publishes it to clients.\n */\nexport const isTransactionCheckSupportedType = (type: TransactionType): boolean =>\n TRANSACTION_CHECK_SUPPORTED_TYPES.some((supportedType) => supportedType === type);\n","// The attributes stakes can be sorted by.\n// It lives apart from `read-models.ts` so the entrypoint sort module avoids that module's runtime imports.\nexport const STAKE_SORT_BY_FIELDS = [\"staked\", \"rewards\", \"total\"] as const;\n\nexport type StakeSortBy = (typeof STAKE_SORT_BY_FIELDS)[number];\n","import { z } from \"zod\";\n\nimport { STAKE_SORT_BY_FIELDS } from \"@/core/accounts/stake-sort\";\n\nimport type { AccountResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zAccountSortByField = z.enum([\n \"name\",\n \"currency\",\n \"index\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof AccountResponse)[]);\n\nexport const zStakeSortByField = z.enum(STAKE_SORT_BY_FIELDS);\n","import { z } from \"zod\";\n\nimport type { GroupResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zGroupSortByField = z.enum([\n \"name\",\n \"status\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof GroupResponse)[]);\n","import z from \"zod\";\n\nexport const HSM_OBJECT_TYPES = [\n \"Account\",\n \"AdminGroup\",\n \"AssetManager\",\n \"Exchange\",\n \"Group\",\n \"Partition\",\n \"PledgeState\",\n \"Policy\",\n \"AccountRuleSet\",\n \"Tradelink\",\n \"User\",\n \"WalletAccountList\",\n \"Whitelist\",\n] as const;\n\nexport type HsmObjectType = (typeof HSM_OBJECT_TYPES)[number];\n\nexport const zObjectsVersionResponse = z.object({\n cid: z.coerce.string(),\n total_accounts: z.number(),\n accounts_report: z.record(z.string(), z.number()),\n total_objects: z.number(),\n objects_report: z.record(z.string(), z.number()),\n});\n\nexport type ObjectsVersionResponse = z.infer<typeof zObjectsVersionResponse>;\n\nconst zVersionedObjectInfo = z.object({\n uid: z.string(),\n object_type: z.string(),\n index: z.number(),\n hsm_object_type_id: z.number(),\n anti_replay_value: z.number(),\n expected_anti_replay_value: z.number(),\n schema_version: z.number(),\n});\n\nexport type VersionedObjectInfo = z.infer<typeof zVersionedObjectInfo>;\n\nexport const zGetObjectsInfoResponse = z.object({\n cid: z.coerce.string(),\n uid: z.string().nullable(),\n objects_count: z.number(),\n hsm_requests_count: z.number(),\n status: z.string(),\n valid_objects: z.array(zVersionedObjectInfo),\n invalid_objects: z.array(zVersionedObjectInfo),\n objects_missing_merkle_tree_id: z.array(z.string()),\n});\n\nexport type GetObjectsInfoResponse = z.infer<typeof zGetObjectsInfoResponse>;\n\nexport const zObjectsContentResponse = z.object({\n cid: z.coerce.string(),\n uid: z.string().nullable(),\n objects_count: z.number(),\n hsm_requests_count: z.number(),\n status: z.string(),\n // Structure varies by object type; intentionally untyped for raw dump display.\n object_contents: z.array(z.unknown()),\n objects_missing_merkle_tree_id: z.array(z.string()),\n});\n\nexport type ObjectsContentResponse = z.infer<typeof zObjectsContentResponse>;\n","import { z } from \"zod\";\n\nimport type { PolicyResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zPolicySortByField = z.enum([\n \"name\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof PolicyResponse)[]);\n","import { z } from \"zod\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zPortfolioSortByField = z.enum([\n \"name\",\n \"accountCount\",\n \"memberCount\",\n \"createdAt\",\n \"updatedAt\",\n]);\n","import { z } from \"zod\";\n\nimport type { VaultRequestResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zRequestSortByField = z.enum([\n \"state\",\n \"expiresAt\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof VaultRequestResponse)[]);\n","import { z } from \"zod\";\n\nimport type { UserResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zUserSortByField = z.enum([\n \"name\",\n \"role\",\n \"status\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof UserResponse)[]);\n","import { z } from \"zod\";\n\nimport type { WhitelistResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zWhitelistSortByField = z.enum([\n \"name\",\n \"status\",\n \"addressCount\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof WhitelistResponse)[]);\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAa,wBAEX,UACA,cAEA,SAAS,wBAAwB,OAC7B,CAAC,SAAS,mBAAmB,MAAM,MAAM,EAAE,SAAS,oBAAoB,IACxE,SAAS,qBAAqB,SAAS,SAAS;;;;;;;;;ACjBtD,MAAa,4BAA4B,CAAC,YAAY,gBAAgB;AAItE,MAAa,4BAA4B,YACtC,0BAAgD,SAAS,OAAO;;;;ACVnE,MAAa,kBAAkB,CAAC,cAAc,gBAAgB;;;;;AAQ9D,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;AACF;ACf0BA,IAAE,OAAO,CAAC,CAAC,MAAM,gBAAgB;AAE3D,MAAa,aAAaA,IACvB,OAAO,CAAC,CACR,SAAS,CAAC,CACV,MAAM,kBAAkB;AAE3B,MAAa,qBAAqBA,IAC/B,OAAO,CAAC,CACR,SAAS,CAAC,CACV,MAAM,gBAAgB;AAEzB,MAAa,kBAAkBA,IAC5B,OAAO,CAAC,CACR,SAAS,CAAC,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,EAAE,OAAO,CAAC;AACpD,CAAC;;;AC1DD,MAAa,qBAAqBC,IAAE,KAAK;CACvC;CACA;CACA;AACF,CAA6C;;;ACN7C,MAAa,wBAAwBC,IAAE,KAAK;CAC1C;CACA;CACA;CACA;CACA;AACF,CAAC;;;ACJD,MAAa,sBAAsBC,IAAE,KAAK;CACxC;CACA;CACA;CACA;AACF,CAAmD;;;ACLnD,MAAa,mBAAmBC,IAAE,KAAK;CACrC;CACA;CACA;CACA;CACA;AACF,CAA2C;;;ACN3C,MAAa,wBAAwBC,IAAE,KAAK;CAC1C;CACA;CACA;CACA;CACA;AACF,CAAgD"}
1
+ {"version":3,"file":"index.mjs","names":["z","z","z","z","z","z","z","z"],"sources":["../src/core/accounts/stake-admission.ts","../src/core/accounts/staking-networks.ts","../src/core/hsm-comparison.ts","../src/shared/zod-utils.ts","../src/core/networks/common.ts","../src/core/networks/ethereum/schemas.ts","../src/core/scan/supported-types.ts","../src/core/accounts/stake-sort.ts","../src/entrypoints/api/accounts/sort.ts","../src/entrypoints/api/groups/sort.ts","../src/services/hsm/hsm-requests-types.ts","../src/entrypoints/api/policies/sort.ts","../src/entrypoints/api/portfolios/sort.ts","../src/entrypoints/api/requests/sort.ts","../src/entrypoints/api/users/sort.ts","../src/entrypoints/api/whitelists/sort.ts","../src/shared/nats-event-backfill.ts"],"sourcesContent":["import type { Stake, StakeOperation } from \"./read-models\";\n\n/**\n * Whether `operation` may still be started on this position, per the backend that enforces the\n * blocking matrix. Shared with the front-end so the rule has one reading, and kept trivial on\n * purpose: the verdict is computed where the matrix lives, not here.\n *\n * A null `admissibleOperations` means admission is not reported — an older backend, or a chain\n * that has no such notion — and is deliberately permissive: refusing every action on a missing\n * verdict would disable a whole account, while the broadcast 409 remains the backstop. A pending\n * credential upgrade is still honoured then: it is reported, not missing, and locks the position.\n *\n * Lives apart from `read-models` so `app-lib` can publish it without the bundler following that\n * module's runtime imports into every consumer of this package. The imports here are types only,\n * and erased.\n */\nexport const admitsStakeOperation = (\n // Optional so callers passing only `admissibleOperations` keep compiling.\n position: Pick<Stake, \"admissibleOperations\"> & Partial<Pick<Stake, \"pendingOperations\">>,\n operation: StakeOperation,\n): boolean =>\n position.admissibleOperations == null\n ? !position.pendingOperations?.some((_) => _.kind === \"CREDENTIAL_UPGRADE\")\n : position.admissibleOperations.includes(operation);\n","/**\n * Networks where Ethereum staking is served. `ETHEREUM_LIKE` covers every EVM chain, so this list\n * is what separates a chain the product stakes on from Polygon, BSC and the rest — including the\n * testnets LAMA would answer for but the product does not offer. Published through `app-lib` so\n * the front-end gates its Staking UI on the same list.\n */\nexport const ETHEREUM_STAKING_NETWORKS = [\"ethereum\", \"ethereum_hoodi\"] as const;\n\nexport type EthereumStakingNetwork = (typeof ETHEREUM_STAKING_NETWORKS)[number];\n\nexport const isEthereumStakingNetwork = (network: string): network is EthereumStakingNetwork =>\n (ETHEREUM_STAKING_NETWORKS as readonly string[]).includes(network);\n","/** Comparators offered by the backoffice \"Compare with HSM\" diagnostic, one run at a time. */\nexport const HSM_COMPARATORS = [\"whitelists\", \"workspace-name\"] as const;\n\nexport type HsmComparator = (typeof HSM_COMPARATORS)[number];\n\n/**\n * Why a compared object diverges. Reasons are comparator-specific, but they share a single enum so\n * the backoffice can count and group anomalies without knowing which comparator produced them.\n */\nexport const HSM_COMPARE_REASONS = [\n \"has-diffs\",\n \"missing-in-hsm\",\n \"missing-in-revault\",\n \"fetch-failed\",\n \"name-mismatch\",\n \"no-partition-found\",\n \"multiple-partitions-found\",\n] as const;\n\nexport type HsmCompareReason = (typeof HSM_COMPARE_REASONS)[number];\n\n/**\n * One line of evidence under an anomaly. Values are stringified here rather than formatted, so the\n * backoffice owns how a divergence reads on screen.\n */\nexport type HsmCompareDetail =\n | {\n kind: \"field-diff\";\n /** Entry the field belongs to, or null when the field is on the object itself. */\n scope: string | null;\n field: string;\n revault: string;\n hsm: string;\n }\n | { kind: \"only-in-revault\"; entry: string }\n | { kind: \"only-in-hsm\"; entry: string };\n\nexport type HsmCompareAnomaly = {\n reason: HsmCompareReason;\n /** HSM object id, null for anomalies that are not about a single identified object. */\n hsmId: string | null;\n /** Revault-side name, null when only the HSM knows the object. */\n name: string | null;\n details: HsmCompareDetail[];\n};\n\nexport type HsmWorkspaceComparison = {\n workspaceName: string;\n /** Objects actually compared on both sides. Zero means there was nothing to compare. */\n checked: number;\n anomalies: HsmCompareAnomaly[];\n};\n","import { z } from \"zod\";\n\nexport const zHexString = z.string().regex(/^[0-9a-fA-F]+$/);\n\nexport const zIntString = z\n .string()\n .nonempty()\n .regex(/^(-?[1-9]\\d*|0)$/);\n\nexport const zUnsignedIntString = z\n .string()\n .nonempty()\n .regex(/^([1-9]\\d*|0)$/);\n\nexport const zCurrencyString = z\n .string()\n .nonempty()\n .max(40)\n .regex(/^\\w+$/)\n .meta({ description: \"Will be deprecated soon, use network instead. Currency\" });\n\nexport const zNetwork = z\n .string()\n .nonempty()\n .max(40)\n .regex(/^\\w+$/)\n .meta({ description: \"Network identifier\" });\n\nexport const zCurrency = z.object({\n network: zNetwork,\n contractAddress: z.string().nonempty().nullable().meta({ description: \"Token issuer\" }),\n tokenIdentifier: z.string().nonempty().nullable().meta({ description: \"Token identifier\" }),\n});\n\nexport const zObjectId = z\n .string()\n .regex(/^[\\w-]+$/) // UUID, GUID, NanoID, CUID... or just a slug\n .nonempty();\n\nexport type ObjectId = z.infer<typeof zObjectId>;\n\nexport const zHsmObjectId = z\n .string()\n .regex(/^[\\w-]+$/) // TODO: what is the exact format of an HSM ID?\n .nonempty();\n\nexport type HsmObjectId = z.infer<typeof zHsmObjectId>;\n\nexport const zHsmObjectName = z.string().min(1).max(45).meta({ description: \"HSM object name\" });\n\n/** DNS hostname or label conforming to RFC 1123. */\nexport const zDns1123Label = z\n .string()\n .min(1)\n .max(63)\n .regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/);\n\n/* v8 ignore next -- @preserve */\nexport const zDateCodec = z.codec(z.iso.datetime(), z.date(), {\n decode: (isoString) => new Date(isoString), // ISO string → Date\n encode: (date) => date.toISOString(), // Date → ISO string\n});\n","import z from \"zod\";\n\nimport type { AccountType } from \"@/generated/prisma/client\";\nimport { zCurrencyString, zUnsignedIntString } from \"@/shared/zod-utils\";\n\n// #region ---------- Utils -----------------------------------------------------------------------\n\nexport type NetworkFamily = Exclude<AccountType, \"RAW_SIGNING\">;\n\nexport const NetworkFamily = {\n BITCOIN_LIKE: \"BITCOIN_LIKE\",\n CANTON_LIKE: \"CANTON_LIKE\",\n CARDANO_LIKE: \"CARDANO_LIKE\",\n ETHEREUM_LIKE: \"ETHEREUM_LIKE\",\n GENERIC_LIKE: \"GENERIC_LIKE\",\n HEDERA_LIKE: \"HEDERA_LIKE\",\n POLKADOT_LIKE: \"POLKADOT_LIKE\",\n RIPPLE_LIKE: \"RIPPLE_LIKE\",\n SOLANA_LIKE: \"SOLANA_LIKE\",\n STELLAR_LIKE: \"STELLAR_LIKE\",\n SUI_LIKE: \"SUI_LIKE\",\n TEZOS_LIKE: \"TEZOS_LIKE\",\n TRON_LIKE: \"TRON_LIKE\",\n} satisfies Record<NetworkFamily, NetworkFamily>;\n\n/**\n * Ensure that this is a hex string and transform it to lowercase with 0x prefix.\n * Not to be used for EIP-55 addresses or other attributes where letter casing is important!\n */\n/* v8 ignore next -- @preserve */\nexport const zHexDataString = z.codec(z.string().regex(/^(?:0x|0X)?[a-fA-F0-9]+$/), z.string(), {\n decode: (hex) => `0x${hex.toLowerCase().replace(\"0x\", \"\")}`,\n encode: (hex) => hex,\n});\n\n// #endregion\n\n// #region ---------- Live Data -------------------------------------------------------------------\n\nexport const zCommonLiveData = z.object({\n id: z.string().meta({ description: \"Account internal unique identifier\" }),\n balance: z\n .object({\n total: z.string().meta({ description: \"Total balance\" }),\n pending: z.string().meta({ description: \"Pending balance\" }),\n reserved: z\n .string()\n .meta({ description: \"Minimum balance the account must always keep (0 if none)\" }),\n })\n .meta({ description: \"Balance fields\" }),\n});\n\n// #endregion\n\n// #region ---------- Transaction Data ------------------------------------------------------------\n\n/**\n * Schema of `Request.data.transaction`\n */\nexport const zCommonTransactionData = z.object({\n amount: zUnsignedIntString.meta({ description: \"Transaction amount\" }),\n currency: zCurrencyString.meta({\n description: \"Will be deprecated soon, use Account.network. Transaction currency\",\n }), // TODO: to remove, use account.network instead\n maxFee: zUnsignedIntString.nullable().meta({ description: \"Transaction max fee\" }),\n recipient: z.string().nonempty().meta({ description: \"Transaction recipient\" }),\n});\n\nexport const zFeeStrategyCustom = z.object({\n type: z.enum([\"SLOW\", \"NORMAL\", \"FAST\", \"CUSTOM\"]),\n});\n\nexport const zFeeStrategy = z.object({\n type: z.enum([\"SLOW\", \"NORMAL\", \"FAST\"]),\n});\n\n// #endregion\n\n// #region ---------- Transaction Response --------------------------------------------------------\n\nexport const zTransactionStatus = z.enum([\"SUCCESSFUL\", \"FAILED\", \"PENDING\", \"UNKNOWN\"]);\n\nexport const zCommonTransactionResponse = z.object({\n id: z.string().meta({ description: \"Internal unique identifier\" }),\n hash: z.string().meta({ description: \"Transaction hash\" }),\n block: z.object({\n height: z.string().nullable().meta({ description: \"Transaction block height\" }),\n time: z.string().nullable().meta({ description: \"Transaction block time\" }),\n }),\n status: zTransactionStatus.meta({ description: \"Transaction status\" }),\n confirmations: z.string().meta({ description: \"Block confirmations\" }),\n amount: z.string().meta({ description: \"Transaction amount\" }),\n fee: z.string().meta({ description: \"Transaction fee\" }),\n senders: z\n .array(z.string())\n .meta({ description: \"Senders (can be multiple for UTXOs-based accounts)\" }),\n recipients: z\n .array(z.string())\n .meta({ description: \"Recipients (can be multiple for multi-output transactions)\" }),\n});\n\n// #endregion\n","import z from \"zod\";\n\nimport { zIntString, zUnsignedIntString } from \"@/shared/zod-utils\";\n\nimport {\n NetworkFamily,\n zCommonLiveData,\n zCommonTransactionData,\n zCommonTransactionResponse,\n zFeeStrategyCustom,\n zHexDataString,\n} from \"../common\";\n\n// #region ---------- Asset Fields ----------------------------------------------------------------\n\nexport const zEthereumLikeAssetFields = z\n .object({\n type: z.literal(NetworkFamily.ETHEREUM_LIKE).meta({ description: \"Account type\" }),\n address: z.string().nullable().meta({ description: \"Account address\" }),\n })\n .meta({ description: \"Ethereum-like\" });\n\n// #endregion\n\n// #region ---------- Live Data -------------------------------------------------------------------\n\nconst zEthereumLikeConsolidationTarget = z.object({\n id: z.string().nonempty().meta({ description: \"Staking position ID\" }),\n staked: z.string().meta({ description: \"Staked amount of that position\" }),\n});\n\nconst zEthereumLikeStakingData = z\n .object({\n totalStaking: z.string().meta({ description: \"Total staked amount\" }),\n totalRewards: z.string().meta({ description: \"Total of rewards\" }),\n availableRewards: z.string().meta({ description: \"Available rewards\" }).optional(),\n networkApy: z.number().meta({ description: \"Network APY\" }).optional(),\n consolidationTargets: z\n .array(zEthereumLikeConsolidationTarget)\n .max(2)\n .optional()\n .meta({\n description:\n \"The smallest positions a stake can be consolidated into, ascending. Only the \" +\n \"smallest target can have room for a given source, so these are enough to decide \" +\n \"any position's eligibility without listing the account. Two entries rather than \" +\n \"one because a position is never its own target. Absent on accounts whose staking \" +\n \"data does not come from position listing.\",\n }),\n })\n .nullable()\n .meta({ description: \"Ethereum-like staking data\" });\n\nexport const zEthereumLikeStakingFields = z.object({\n type: z.literal(NetworkFamily.ETHEREUM_LIKE).meta({ description: \"Account type\" }),\n staking: zEthereumLikeStakingData.optional(),\n});\n\nexport const zEthereumLikeLiveData = zCommonLiveData\n .extend(zEthereumLikeStakingFields.shape)\n .meta({ description: \"Ethereum-like\" });\n\n// #endregion\n\n// #region ---------- Estimated Fee ---------------------------------------------------------------\n\nexport const zEthereumLikeEstimatedFees = z\n .object({\n type: z.literal(NetworkFamily.ETHEREUM_LIKE),\n baseFees: zIntString,\n gasLimit: zIntString,\n nonce: z.string(),\n priorityFees: zIntString,\n executionFees: zIntString.nullish(),\n maxExecutionFees: zIntString.nullish(),\n })\n .meta({ description: \"Ethereum-like fees\" });\n\n// #endregion\n\n// #region ---------- Transaction Type ------------------------------------------------------------\n\nconst zEthereumLikeTransferTransactionType = z\n .enum([\"ETHEREUM_LIKE_SEND\", \"ETHEREUM_LIKE_RECEIVE\"])\n .meta({ description: \"Ethereum-like transaction type\" });\n\nconst zEthereumLikeContractTransactionType = z\n .enum([\"ETHEREUM_LIKE_EXECUTE_CONTRACT\", \"ETHEREUM_LIKE_DEPLOY_CONTRACT\"])\n .meta({ description: \"Ethereum-like transaction type\" });\n\nconst zEthereumLikeStakingTransactionType = z\n .enum([\n \"ETHEREUM_LIKE_STAKE_DEPOSIT\",\n \"ETHEREUM_LIKE_STAKE_TOP_UP\",\n \"ETHEREUM_LIKE_STAKE_WITHDRAW\",\n \"ETHEREUM_LIKE_STAKE_CONSOLIDATE\",\n \"ETHEREUM_LIKE_STAKE_UPGRADE\",\n ])\n .meta({ description: \"Ethereum-like staking transaction type\" });\n\nexport const zEthereumLikeTransactionType = z\n .enum([\n ...zEthereumLikeTransferTransactionType.options,\n ...zEthereumLikeContractTransactionType.options,\n ...zEthereumLikeStakingTransactionType.options,\n ])\n .meta({\n description: \"Ethereum-like transaction type\",\n });\n\nexport type EthereumLikeTransactionType = z.infer<typeof zEthereumLikeTransactionType>;\n\n// #endregion\n\n// #region ---------- Transaction Data ------------------------------------------------------------\n\nconst zEthereumLikeLegacyFeeStrategy = zFeeStrategyCustom\n .extend({\n gasPrice: zUnsignedIntString.meta({ description: \"Gas price\" }),\n gasLimit: zUnsignedIntString.meta({ description: \"Gas limit\" }),\n })\n .meta({ description: \"Ethereum-like legacy fee strategy\" });\n\nexport const zEthereumLikeEip1559FeeStrategy = zFeeStrategyCustom\n .extend({\n maxPriorityFeePerGas: zUnsignedIntString.meta({ description: \"Maximum priority fee per gas\" }),\n maxFeePerGas: zUnsignedIntString.meta({ description: \"Maximum fee per gas (base + priority)\" }),\n gasLimit: zUnsignedIntString.meta({ description: \"Gas limit\" }),\n })\n .meta({ description: \"Ethereum-like EIP-1559 fee strategy\" });\n\nexport type EthereumLikeEip1559FeeStrategy = z.infer<typeof zEthereumLikeEip1559FeeStrategy>;\n\nconst zEthereumLikeFeeStrategy = z\n .union([zEthereumLikeLegacyFeeStrategy, zEthereumLikeEip1559FeeStrategy])\n .meta({\n description: \"Ethereum-like fee strategy\",\n id: \"EthereumLikeFeeStrategy\",\n });\n\nconst zEthereumCommonTransactionData = zCommonTransactionData.extend({\n replacingTxHash: z.string().optional().meta({\n description:\n \"Hash of the original transaction to replace. If provided, the new transaction will replace the one matching this hash.\",\n }),\n});\n\nconst zEthereumLikeDeployContractData = zEthereumCommonTransactionData\n .extend({\n type: z.literal(zEthereumLikeContractTransactionType.enum.ETHEREUM_LIKE_DEPLOY_CONTRACT),\n recipient: z.literal(\"\"), // force an empty string\n contractData: zHexDataString.meta({ description: \"Contract data in hexadecimal format\" }),\n feeStrategy: zEthereumLikeFeeStrategy,\n })\n .meta({\n description: \"Ethereum-like deploy contract data\",\n id: \"EthereumLikeDeployContractData\",\n });\n\nconst zEthereumLikeExecuteContractData = zEthereumCommonTransactionData\n .extend({\n type: z.literal(zEthereumLikeContractTransactionType.enum.ETHEREUM_LIKE_EXECUTE_CONTRACT),\n contractData: zHexDataString.meta({ description: \"Contract call data in hexadecimal format\" }),\n feeStrategy: zEthereumLikeFeeStrategy,\n })\n .meta({\n description: \"Ethereum-like execute contract data\",\n id: \"EthereumLikeExecuteContractData\",\n });\n\nexport const zEthereumLikeSendData = zEthereumCommonTransactionData\n .extend({\n type: z.literal(zEthereumLikeTransferTransactionType.enum.ETHEREUM_LIKE_SEND),\n feeStrategy: zEthereumLikeFeeStrategy,\n })\n .meta({\n description: \"Ethereum-like send data\",\n id: \"EthereumLikeSendData\",\n });\n\n// Upper bound enforced by les-wallet batch provisioning (Kiln caps at 150 validators per request).\nconst MAX_VALIDATORS_PER_BATCH = 150;\n\nconst zEthereumLikeStakingProvider = z.string().nonempty().meta({\n description: \"Staking provider to use, as identified by the staking validators endpoint\",\n});\n\nconst zEthereumLikeStakingDepositData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_DEPOSIT),\n feeStrategy: zEthereumLikeFeeStrategy,\n amountPerValidator: zUnsignedIntString.meta({\n description:\n \"Amount to stake per validator, in wei. Must be a multiple of the provider's \" +\n \"`options.stakeAmountStepWei` from the staking validators endpoint (1 gwei when absent).\",\n }),\n numberOfValidators: zUnsignedIntString\n .refine(\n (v) => {\n const n = BigInt(v);\n return n >= 1n && n <= BigInt(MAX_VALIDATORS_PER_BATCH);\n },\n { message: `Number of validators must be between 1 and ${MAX_VALIDATORS_PER_BATCH}` },\n )\n .meta({\n description: \"Number of validators to stake with\",\n }),\n stakingProvider: zEthereumLikeStakingProvider,\n withdrawalAddress: z\n .string()\n .regex(/^0x[a-fA-F0-9]{40}$/, { message: \"Withdrawal address must be 20 bytes\" })\n .meta({ description: \"Execution-layer withdrawal address in hexadecimal format (20 bytes)\" }),\n })\n .meta({\n description: \"Ethereum-like staking deposit data\",\n id: \"EthereumLikeStakingDepositData\",\n });\n\nconst zEthereumLikeStakingTopUpData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_TOP_UP),\n feeStrategy: zEthereumLikeFeeStrategy,\n validators: z\n .array(\n z.object({\n validatorPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Validator public key must be 48 bytes\",\n })\n .meta({ description: \"Validator public key in hexadecimal format (48 bytes)\" }),\n amount: zUnsignedIntString.meta({ description: \"Amount to stake per validator\" }),\n }),\n )\n .min(1, { message: \"A top-up must include at least one validator\" }),\n })\n .meta({\n description: \"Ethereum-like staking top-up deposit data\",\n id: \"EthereumLikeStakingTopUpData\",\n });\n\nconst zEthereumLikeStakingWithdrawData = zEthereumCommonTransactionData\n .omit({ recipient: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_WITHDRAW),\n feeStrategy: zEthereumLikeFeeStrategy,\n validatorPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Validator public key must be 48 bytes\",\n })\n .meta({ description: \"Validator public key in hexadecimal format (48 bytes)\" }),\n maxExecutionFees: zUnsignedIntString\n .meta({\n description: \"Max execution fee for the withdrawal transaction (in wei)\",\n })\n .optional(),\n })\n .meta({\n description: \"Ethereum-like staking withdraw data\",\n id: \"EthereumLikeStakingWithdrawData\",\n });\n\nconst zEthereumLikeStakingConsolidateData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_CONSOLIDATE),\n feeStrategy: zEthereumLikeFeeStrategy,\n sourcePubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Source validator public key must be 48 bytes\",\n })\n .meta({ description: \"Source validator public key in hexadecimal format (48 bytes)\" }),\n targetPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Target validator public key must be 48 bytes\",\n })\n .meta({ description: \"Target validator public key in hexadecimal format (48 bytes)\" }),\n maxExecutionFees: zUnsignedIntString\n .meta({\n description: \"Max execution fee for the consolidation transaction (in wei)\",\n })\n .optional(),\n sourceStakedAmount: zUnsignedIntString\n .meta({\n description:\n \"Staked balance of the source validator when the request was created, in wei. \" +\n \"Display only: the consolidation moves it on the consensus layer and never sends it.\",\n })\n .optional(),\n })\n .meta({\n description: \"Ethereum-like staking consolidate data\",\n id: \"EthereumLikeStakingConsolidateData\",\n });\n\nconst zEthereumLikeStakingUpgradeData = zEthereumCommonTransactionData\n .omit({ recipient: true, amount: true })\n .extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_UPGRADE),\n feeStrategy: zEthereumLikeFeeStrategy,\n validatorPubKey: zHexDataString\n .refine((v) => v.length === 2 + 2 * 48, {\n message: \"Validator public key must be 48 bytes\",\n })\n .meta({ description: \"Validator public key in hexadecimal format (48 bytes)\" }),\n maxExecutionFees: zUnsignedIntString\n .meta({\n description: \"Max execution fee for the upgrade transaction (in wei)\",\n })\n .optional(),\n })\n .meta({\n description: \"Ethereum-like staking upgrade data\",\n id: \"EthereumLikeStakingUpgradeData\",\n });\n\nexport const zEthereumLikeTransactionData = z.discriminatedUnion(\"type\", [\n zEthereumLikeDeployContractData,\n zEthereumLikeExecuteContractData,\n zEthereumLikeSendData,\n zEthereumLikeStakingDepositData,\n zEthereumLikeStakingTopUpData,\n zEthereumLikeStakingWithdrawData,\n zEthereumLikeStakingConsolidateData,\n zEthereumLikeStakingUpgradeData,\n]);\n\nexport type EthereumLikeTransactionData = z.infer<typeof zEthereumLikeTransactionData>;\n\n// #endregion\n\n// #region ---------- Staking Provisioning --------------------------------------------------------\n\nconst zValidator = z.object({\n pubkey: z.string(),\n depositAmount: zUnsignedIntString,\n signature: z.string(),\n depositDataRoot: z.string(),\n});\n\nexport type Validator = z.infer<typeof zValidator>;\n\nexport const zStakingProvisioning = z.object({\n contractAddress: z.string(),\n validators: z.array(zValidator),\n});\n\nexport type StakingProvisioning = z.infer<typeof zStakingProvisioning>;\n\n// #endregion\n\n// #region ---------- Transaction Response --------------------------------------------------------\n\nconst zEthereumLikeTransferCoinFields = z.object({\n type: zEthereumLikeTransferTransactionType,\n gasPrice: z.string(),\n gasLimit: z.string(),\n nonce: z.string(),\n});\n\nconst zEthereumLikeContractCoinFields = zEthereumLikeTransferCoinFields.extend({\n type: zEthereumLikeContractTransactionType,\n contractData: z.string().meta({ description: \"Contract deployment or contract execution data\" }),\n});\n\nconst zEthereumLikeStakingCoinFields = zEthereumLikeContractCoinFields.extend({\n type: zEthereumLikeStakingTransactionType,\n});\n\nconst zEthereumLikeStakeDepositValidatorResponse = z.object({\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n withdrawalCredentials: zHexDataString.meta({ description: \"Validator withdrawal credentials\" }),\n withdrawalAddress: z\n .string()\n .nullable()\n .meta({ description: \"Execution withdrawal address, when encoded by the credentials\" }),\n signature: zHexDataString.meta({ description: \"BLS deposit signature\" }),\n depositDataRoot: zHexDataString.meta({ description: \"Beacon deposit data root\" }),\n amount: zUnsignedIntString.meta({ description: \"Validator deposit amount in wei\" }),\n});\n\nconst zEthereumLikeStakeTopUpValidatorResponse = z.object({\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n amount: zUnsignedIntString.meta({ description: \"Validator top-up amount in wei\" }),\n});\n\nconst zEthereumLikeStakeDepositResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_DEPOSIT),\n validators: z.array(zEthereumLikeStakeDepositValidatorResponse),\n});\n\nconst zEthereumLikeStakeTopUpResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_TOP_UP),\n validators: z.array(zEthereumLikeStakeTopUpValidatorResponse),\n});\n\nconst zEthereumLikeStakeWithdrawResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_WITHDRAW),\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n withdrawalAmount: zUnsignedIntString.meta({ description: \"Requested withdrawal amount in wei\" }),\n isFullExit: z.boolean().meta({ description: \"Whether the zero amount requests a full exit\" }),\n executionFee: zUnsignedIntString.meta({ description: \"EIP-7002 request fee in wei\" }),\n});\n\nconst zEthereumLikeStakeConsolidateResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_CONSOLIDATE),\n sourcePubKey: zHexDataString.meta({ description: \"Source validator public key\" }),\n sourceStakingProvider: zEthereumLikeStakingProvider.nullable().meta({\n description: \"Staking provider inferred from the source validator public key, when known\",\n }),\n targetPubKey: zHexDataString.meta({ description: \"Target validator public key\" }),\n targetStakingProvider: zEthereumLikeStakingProvider.nullable().meta({\n description: \"Staking provider inferred from the target validator public key, when known\",\n }),\n executionFee: zUnsignedIntString.meta({ description: \"EIP-7251 request fee in wei\" }),\n});\n\nconst zEthereumLikeStakeUpgradeResponseFields = zEthereumLikeStakingCoinFields.extend({\n type: z.literal(zEthereumLikeStakingTransactionType.enum.ETHEREUM_LIKE_STAKE_UPGRADE),\n validatorPubKey: zHexDataString.meta({ description: \"Validator public key\" }),\n stakingProvider: zEthereumLikeStakingProvider\n .nullable()\n .meta({ description: \"Staking provider inferred from the validator public key, when known\" }),\n executionFee: zUnsignedIntString.meta({ description: \"EIP-7251 request fee in wei\" }),\n});\n\nexport const zEthereumLikeTransactionResponse = z\n .discriminatedUnion(\"type\", [\n zCommonTransactionResponse\n .extend(zEthereumLikeTransferCoinFields.shape)\n .meta({ description: \"Ethereum-like transfer transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeContractCoinFields.shape)\n .meta({ description: \"Ethereum-like contract transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeDepositResponseFields.shape)\n .meta({ description: \"Ethereum validator deposit transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeTopUpResponseFields.shape)\n .meta({ description: \"Ethereum validator top-up transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeWithdrawResponseFields.shape)\n .meta({ description: \"Ethereum validator withdrawal request transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeConsolidateResponseFields.shape)\n .meta({ description: \"Ethereum validator consolidation request transaction\" }),\n zCommonTransactionResponse\n .extend(zEthereumLikeStakeUpgradeResponseFields.shape)\n .meta({ description: \"Ethereum validator credential upgrade transaction\" }),\n ])\n .meta({ description: \"Ethereum-like transaction\" });\n\n// #endregion\n","import type { TransactionType } from \"@/core/networks\";\n\nconst TRANSACTION_CHECK_SUPPORTED_TYPES = [\n \"ETHEREUM_LIKE_SEND\",\n \"ETHEREUM_LIKE_EXECUTE_CONTRACT\",\n \"ETHEREUM_LIKE_STAKE_DEPOSIT\",\n \"ETHEREUM_LIKE_STAKE_TOP_UP\",\n \"ETHEREUM_LIKE_STAKE_WITHDRAW\",\n \"ETHEREUM_LIKE_STAKE_CONSOLIDATE\",\n \"ETHEREUM_LIKE_STAKE_UPGRADE\",\n] as const satisfies readonly TransactionType[];\n\n/**\n * Whether Transaction Check applies to this exact transaction type. This is only the type half of\n * the scope: API code that has the account must use `isInTransactionCheckScope` from\n * `@/core/accounts/transactions`, which also checks that les-wallet can scan the account.\n *\n * Kept free of runtime imports: `@ledgerhq/revault-api` publishes it to clients.\n */\nexport const isTransactionCheckSupportedType = (type: TransactionType): boolean =>\n TRANSACTION_CHECK_SUPPORTED_TYPES.some((supportedType) => supportedType === type);\n","// The attributes stakes can be sorted by.\n// It lives apart from `read-models.ts` so the entrypoint sort module avoids that module's runtime imports.\nexport const STAKE_SORT_BY_FIELDS = [\"staked\", \"rewards\", \"total\"] as const;\n\nexport type StakeSortBy = (typeof STAKE_SORT_BY_FIELDS)[number];\n","import { z } from \"zod\";\n\nimport { STAKE_SORT_BY_FIELDS } from \"@/core/accounts/stake-sort\";\n\nimport type { AccountResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zAccountSortByField = z.enum([\n \"name\",\n \"currency\",\n \"index\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof AccountResponse)[]);\n\nexport const zStakeSortByField = z.enum(STAKE_SORT_BY_FIELDS);\n","import { z } from \"zod\";\n\nimport type { GroupResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zGroupSortByField = z.enum([\n \"name\",\n \"status\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof GroupResponse)[]);\n","import z from \"zod\";\n\nexport const HSM_OBJECT_TYPES = [\n \"Account\",\n \"AdminGroup\",\n \"AssetManager\",\n \"Exchange\",\n \"Group\",\n \"Partition\",\n \"PledgeState\",\n \"Policy\",\n \"AccountRuleSet\",\n \"Tradelink\",\n \"User\",\n \"WalletAccountList\",\n \"Whitelist\",\n] as const;\n\nexport type HsmObjectType = (typeof HSM_OBJECT_TYPES)[number];\n\nexport const zObjectsVersionResponse = z.object({\n cid: z.coerce.string(),\n total_accounts: z.number(),\n accounts_report: z.record(z.string(), z.number()),\n total_objects: z.number(),\n objects_report: z.record(z.string(), z.number()),\n});\n\nexport type ObjectsVersionResponse = z.infer<typeof zObjectsVersionResponse>;\n\nconst zVersionedObjectInfo = z.object({\n uid: z.string(),\n object_type: z.string(),\n index: z.number(),\n hsm_object_type_id: z.number(),\n anti_replay_value: z.number(),\n expected_anti_replay_value: z.number(),\n schema_version: z.number(),\n});\n\nexport type VersionedObjectInfo = z.infer<typeof zVersionedObjectInfo>;\n\nexport const zGetObjectsInfoResponse = z.object({\n cid: z.coerce.string(),\n uid: z.string().nullable(),\n objects_count: z.number(),\n hsm_requests_count: z.number(),\n status: z.string(),\n valid_objects: z.array(zVersionedObjectInfo),\n invalid_objects: z.array(zVersionedObjectInfo),\n objects_missing_merkle_tree_id: z.array(z.string()),\n});\n\nexport type GetObjectsInfoResponse = z.infer<typeof zGetObjectsInfoResponse>;\n\nexport const zObjectsContentResponse = z.object({\n cid: z.coerce.string(),\n uid: z.string().nullable(),\n objects_count: z.number(),\n hsm_requests_count: z.number(),\n status: z.string(),\n // Structure varies by object type; intentionally untyped for raw dump display.\n object_contents: z.array(z.unknown()),\n objects_missing_merkle_tree_id: z.array(z.string()),\n});\n\nexport type ObjectsContentResponse = z.infer<typeof zObjectsContentResponse>;\n","import { z } from \"zod\";\n\nimport type { PolicyResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zPolicySortByField = z.enum([\n \"name\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof PolicyResponse)[]);\n","import { z } from \"zod\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zPortfolioSortByField = z.enum([\n \"name\",\n \"accountCount\",\n \"memberCount\",\n \"createdAt\",\n \"updatedAt\",\n]);\n","import { z } from \"zod\";\n\nimport type { VaultRequestResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zRequestSortByField = z.enum([\n \"state\",\n \"expiresAt\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof VaultRequestResponse)[]);\n","import { z } from \"zod\";\n\nimport type { UserResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zUserSortByField = z.enum([\n \"name\",\n \"role\",\n \"status\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof UserResponse)[]);\n","import { z } from \"zod\";\n\nimport type { WhitelistResponse } from \"./schemas\";\n\n// A bare enum, without the API default, so that Web can validate its URL `sortBy` with it.\n// It lives apart from `schemas.ts` so `app-lib` can publish it without that module's runtime imports.\nexport const zWhitelistSortByField = z.enum([\n \"name\",\n \"status\",\n \"addressCount\",\n \"createdAt\",\n \"updatedAt\",\n] as const satisfies (keyof WhitelistResponse)[]);\n","// The NATS event backfill's published constants, in the light `shared` layer so the backoffice can\n// import them through `app-lib.ts` without the bundler shipping `core/administration`'s NATS and\n// Prisma graph to it.\n\nexport const NATS_EVENT_BACKFILL_EVENT_TYPES = [\"AccountCreated\", \"WorkspaceCreated\"] as const;\nexport type NatsEventBackfillEventType = (typeof NATS_EVENT_BACKFILL_EVENT_TYPES)[number];\n\n/** Rows a preview or a failure list carries. The totals beside them stay exact. */\nexport const NATS_EVENT_BACKFILL_LIST_LIMIT = 100;\n\n/** Largest concurrency a single call may use. Bounds the publishes in flight, nothing else. */\nexport const MAX_NATS_EVENT_BACKFILL_CONCURRENCY = 200;\n"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAa,wBAEX,UACA,cAEA,SAAS,wBAAwB,OAC7B,CAAC,SAAS,mBAAmB,MAAM,MAAM,EAAE,SAAS,oBAAoB,IACxE,SAAS,qBAAqB,SAAS,SAAS;;;;;;;;;ACjBtD,MAAa,4BAA4B,CAAC,YAAY,gBAAgB;AAItE,MAAa,4BAA4B,YACtC,0BAAgD,SAAS,OAAO;;;;ACVnE,MAAa,kBAAkB,CAAC,cAAc,gBAAgB;;;;;AAQ9D,MAAa,sBAAsB;CACjC;CACA;CACA;CACA;CACA;CACA;CACA;AACF;ACf0BA,IAAE,OAAO,CAAC,CAAC,MAAM,gBAAgB;AAE3D,MAAa,aAAaA,IACvB,OAAO,CAAC,CACR,SAAS,CAAC,CACV,MAAM,kBAAkB;AAE3B,MAAa,qBAAqBA,IAC/B,OAAO,CAAC,CACR,SAAS,CAAC,CACV,MAAM,gBAAgB;AAEzB,MAAa,kBAAkBA,IAC5B,OAAO,CAAC,CACR,SAAS,CAAC,CACV,IAAI,EAAE,CAAC,CACP,MAAM,OAAO,CAAC,CACd,KAAK,EAAE,aAAa,yDAAyD,CAAC;AAEjF,MAAa,WAAWA,IACrB,OAAO,CAAC,CACR,SAAS,CAAC,CACV,IAAI,EAAE,CAAC,CACP,MAAM,OAAO,CAAC,C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sBAAsBC,IAAE,KAAK;CACxC;CACA;CACA;CACA;AACF,CAAmD;;;ACLnD,MAAa,mBAAmBC,IAAE,KAAK;CACrC;CACA;CACA;CACA;CACA;AACF,CAA2C;;;ACN3C,MAAa,wBAAwBC,IAAE,KAAK;CAC1C;CACA;CACA;CACA;CACA;AACF,CAAgD;;;ACRhD,MAAa,kCAAkC,CAAC,kBAAkB,kBAAkB;;AAIpF,MAAa,iCAAiC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.91.4",
3
+ "version": "1.92.0",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,