@ledgerhq/revault-api 1.71.0 → 1.73.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/fakes.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { Fr as AccountResponse, J as RequestDataOf, Kr as AccountStakingFields, Ni as AccountType, Ui as MessageType, X as VaultRequestCreateInput, Z as VaultRequestResponse, Zr as TransactionDataOf, _n as GroupResponse, p as UserResponse, r as WebhookResponse, s as WhitelistResponse } from "./app-lib-DwyMsZ-w.mjs";
1
+ import { $i as MessageType, Gr as AccountResponse, I as VaultRequestCreateInput, L as VaultRequestResponse, P as RequestDataOf, Ui as AccountType, _n as GroupResponse, ni as AccountStakingFields, p as UserResponse, r as WebhookResponse, s as WhitelistResponse, si as TransactionDataOf } from "./app-lib-DZpVkmLE.mjs";
2
2
 
3
3
  //#region src/__fakes__/trpc/inputs.d.ts
4
4
  type RequestInputDataOf<T extends VaultRequestCreateInput["request"]["type"]> = Extract<VaultRequestCreateInput["request"], {
package/lib/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as zApproveVaultRequestInput, $i as ResourceType, $n as paginate, $r as TransactionType, $t as OnboardingSeedChallenge, A as zTradelinkSettlementWithAccountAndExchangeInfoResponse, Ai as NetworkFamily, An as zEntitySortBy, Ar as zUserRegistrationChallenge, At as zPortfolioName, B as zTradelinkNetworkBlueprintResponse, Bn as CurrencyResponse, Br as zAccountSortBy, Bt as zPortfolioAppliedState, C as TradelinkCustodianResponse, Ci as CANTON_SPEC, Cn as WorkspaceRulesResponse, Cr as UserRegistrationChallenge, Ct as PortfolioStatusFilter, D as zTradelinkCustodianResponse, Di as BitcoinLikeBalance, Dn as EntityResponse, Dr as zPsdPairingInputData, Dt as zPortfolioAdminResponse, E as TradelinkSettlementWithAccountAndExchangeInfoResponse, Ei as BITCOIN_SPEC, En as zWorkspaceRulesResponse, Er as zPsdPairingData, Et as PortfoliosByAccountIdsResponse, F as TradelinkOrgEntityResponse, Fi as AdminPermission, Fn as zOidcConfig, Fr as AccountResponse, Ft as zPortfoliosByAccountIdsInput, G as ApproveVaultRequestInput, Gi as OnboardingStep, Gn as zTokenResponse, Gr as zStakingValidatorSortBy, Gt as AllowedActionsResponse, H as zTradelinkWhitelist, Hn as zAssetCapabilitiesResponse, Hr as zStake, Ht as PolicySortBy, I as zCreateTradelinkNetworkBlueprintInput, Ii as AllowedAction, In as AuthResponse, Ir as AccountSortBy, It as zPortfoliosByAccountIdsResponse, J as RequestDataOf, Ji as PsdModel, Jn as Paginated, Jr as SendOnlyTransactionData, Jt as zAllowedResourcesResponse, K as ChallengeResponse, Ki as OutgoingTransactionStatus, Kn as CursorPaginated, Kr as AccountStakingFields, Kt as AllowedResourcesResponse, L as zCreateTradelinkOrgEntityInput, Li as AuditLogType, Ln as zAuthResponse, Lr as zAccountFreshAddress, Lt as PORTFOLIO_NAME_MAX_LENGTH, M as DeleteTradelinkExchangeInput, Mi as zTransactionStatus, Mn as zPsdAuthChallengeData, Mr as zUserRegistrationDeviceData, Mt as zPortfolioStatusFilter, N as PledgeResponse, Ni as AccountType, Nn as OidcConfig, Nr as AccountFreshAddress, Nt as zPortfolioSummary, O as zTradelinkEntityResponse, Oi as StakingProvisioning, On as EntitySortBy, Or as zPsdSignature, Ot as zPortfolioCreateInput, P as TradelinkNetworkBlueprintResponse, Pi as ActivationStatus, Pn as zExchangeCredentialsResponse, Pr as AccountLiveDataResponse, Pt as zPortfolioUpdateInput, Q as genTransactionSchemas, Qi as RequestType, Qn as fetchAllPages, Qr as TransactionResponse, Qt as OnboardingOpts, R as zDeleteTradelinkOrgEntityInput, Ri as ChallengeType, Rn as AppRouter, Rr as zAccountLiveDataResponse, Rt as PortfolioAppliedState, S as zApiUserCredentialsResponse, Si as CARDANO_SPEC, Sn as WorkspaceRuleResponse, Sr as PubKey, St as PortfolioSortBy, T as TradelinkNetworkResponse, Ti as zCantonTransferProposal, Tn as zWorkspaceRuleResponse, Tr as UserRegistrationDeviceData, Tt as PortfolioUpdateInput, U as ReviewStepWithUsers, Ui as MessageType, Un as zAssetResponse, Ur as zStakeSortBy, Ut as zPolicyResponse, V as zTradelinkOrgEntityResponse, Vi as HsmHostingMode, Vn as TokenResponse, Vr as zBalance, Vt as PolicyResponse, W as zReviewStepsArray, Wi as OnboardedUserRole, Wn as zCurrencyResponse, Wr as zStakingValidator, Wt as zPolicySortBy, X as VaultRequestCreateInput, Xi as RequestReviewStatus, Xn as emptyPage, Xr as TransactionData, Xt as DeviceClaim, Y as RequestSortBy, Yi as ReportStatus, Yn as SortOrder, Yr as StakingDataOf, Yt as zOpenApiResourceType, Z as VaultRequestResponse, Zi as RequestState, Zn as fetchAllCursorPages, Zr as TransactionDataOf, Zt as OnboardingFullState, _ as zUserSortBy, _i as POLKADOT_SPEC, _n as GroupResponse, _r as HsmCertificate, _t as zReportResponse, a as WorkspaceResponse, aa as zGovernableAction, ai as zEstimatedFees, an as zOnboardingFullState, ar as zPaginated, at as zSignMessageRequestInput, b as zUserRegistrationCreateInput, bi as GENERIC_SPEC, bn as zGroupSortBy, br as PsdPairingInputData, bt as PortfolioCreateInput, c as WhitelistSortBy, ci as zTransactionData, cn as zOnboardingSeedFragment, ct as Challenge, d as zWhitelistSortBy, di as TRON_SPEC, dn as zDeleteWebhookResponse, dr as zBitcoinUtxoResponse, dt as zEnsureNameAvailableOutput, ea as RevaultMode, ei as TransactionTypeOf, en as OnboardingSeedFragment, er as serializePage, et as zChallengeResponse, f as AdminResponse, fi as TEZOS_SPEC, fn as zWebhookResponse, fr as zCantonPreApprovalStateResponse, ft as ReportDownloadUrlResponse, g as zUserResponse, gi as RIPPLE_SPEC, gn as zAuditLogSortBy, gr as ApiChallenge, gt as zReportInput, h as zAdminResponse, hi as SOLANA_SPEC, hn as zAuditLogResponse, hr as zSignedMessageResponse, ht as zReportDownloadUrlResponse, i as WebhooksResponse, ia as WhitelistType, ii as zAccountStakingFields, in as zDeviceClaim, ir as zPageQuery, it as zSignDigestsRequestInput, j as CreateTradelinkOrgEntityInput, ji as zCommonLiveData, jn as PsdAuthChallengeData, jr as zUserRegistrationChallengeResponse, jt as zPortfolioSortBy, k as zTradelinkNetworkResponse, ki as zStakingProvisioning, kn as zEntityResponse, kr as zPubKey, kt as zPortfolioHistoryEntryResponse, l as zWhitelistAddressResponse, li as zTransactionResponse, ln as zWrappingKeyFragmentInput, lt as EnsureNameAvailableOutput, m as UserSortBy, mi as STELLAR_SPEC, mn as AuditLogSortBy, mr as zTransactionWithMetaResponse, mt as ReportResponse, n as DeleteWebhookResponse, na as UserDeviceType, ni as getTxHsmProps, nn as WrappingKeyProvisioningEphemeralPubKey, nr as zCursorPaginated, nt as zEnsureNameAvailableInput, o as zWorkspaceResponse, oi as zNetworkAssetFields, on as zOnboardingId, or as zSortOrder, ot as zVaultRequestCreateInput, p as UserResponse, pi as SUI_SPEC, pn as AuditLogResponse, pr as zCantonTransferProposalResponse, pt as ReportInput, q as EnsureNameAvailableInput, qi as PortfolioHistoryAction, qn as DEFAULT_PAGE_SIZE, qr as EstimatedFees, qt as zAllowedActionsResponse, r as WebhookResponse, ra as UserRole, ri as zAccountLiveData, rn as WrappingKeyResponse, rr as zCursorQuery, rt as zRequestSortBy, s as WhitelistResponse, si as zSendOnlyTransactionData, sn as zOnboardingOpts, st as zVaultRequestResponse, t as CreateWebhookPayload, ta as ReviewConfigType, ti as convertTxToGovernableIntent, tn as WrappingKeyFragmentInput, tr as stableOrdering, tt as zCreateClassicAccountWithPolicyIdInput, u as zWhitelistResponse, ui as zTransactionType, un as zCreateWebhookPayload, ur as TransactionWithMetaResponse, ut as SoftChallenge, v as UserRegistrationCreateInput, vi as HEDERA_SPEC, vn as GroupSortBy, vr as PsdChallenge, vt as zVisibleReportStatus, w as TradelinkEntityResponse, wi as CantonTransferProposal, wn as zRootWorkspaceRuleResponse, wr as UserRegistrationChallengeResponse, wt as PortfolioSummary, x as zUserRegistrationResponse, xi as ETHEREUM_SPEC, xn as RootWorkspaceRuleResponse, xr as PsdSignature, xt as PortfolioHistoryEntryResponse, y as UserRegistrationResponse, yi as isErc20Address, yn as zGroupResponse, yr as PsdPairingData, yt as PortfolioAdminResponse, z as zPledgeResponse, zi as ClaimedRole, zn as AssetResponse, zr as zAccountResponse, zt as normalizePortfolioName } from "./app-lib-DwyMsZ-w.mjs";
2
- export type { AccountFreshAddress, AccountLiveDataResponse, AccountResponse, AccountSortBy, AccountStakingFields, AccountType, ActivationStatus, AdminPermission, AdminResponse, AllowedAction, AllowedActionsResponse, AllowedResourcesResponse, ApiChallenge, AppRouter, ApproveVaultRequestInput, AssetResponse, AuditLogResponse, AuditLogSortBy, AuditLogType, AuthResponse, BITCOIN_SPEC, BitcoinLikeBalance, CANTON_SPEC, CARDANO_SPEC, CantonTransferProposal, Challenge, ChallengeResponse, ChallengeType, ClaimedRole, CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, CreateWebhookPayload, CurrencyResponse, CursorPaginated, DEFAULT_PAGE_SIZE, DeleteTradelinkExchangeInput, DeleteWebhookResponse, DeviceClaim, ETHEREUM_SPEC, EnsureNameAvailableInput, EnsureNameAvailableOutput, EntityResponse, EntitySortBy, EstimatedFees, GENERIC_SPEC, GroupResponse, GroupSortBy, HEDERA_SPEC, HsmCertificate, HsmHostingMode, MessageType, NetworkFamily, OidcConfig, OnboardedUserRole, OnboardingFullState as OnboardingFullStateResponse, OnboardingOpts, OnboardingSeedChallenge, OnboardingSeedFragment, OnboardingStep, OutgoingTransactionStatus, POLKADOT_SPEC, PORTFOLIO_NAME_MAX_LENGTH, Paginated, PledgeResponse, PolicyResponse, PolicySortBy, PortfolioAdminResponse, PortfolioAppliedState, PortfolioCreateInput, PortfolioHistoryAction, PortfolioHistoryEntryResponse, PortfolioSortBy, PortfolioStatusFilter, PortfolioSummary, PortfolioUpdateInput, PortfoliosByAccountIdsResponse, PsdAuthChallengeData as PsdAuthChallengeResponse, PsdChallenge, PsdModel, PsdPairingData, PsdPairingInputData, PsdSignature, PubKey, RIPPLE_SPEC, ReportDownloadUrlResponse, ReportInput, ReportResponse, ReportStatus, RequestDataOf, RequestReviewStatus, RequestSortBy, RequestState, RequestType, ResourceType, RevaultMode, ReviewConfigType, ReviewStepWithUsers, RootWorkspaceRuleResponse, SOLANA_SPEC, STELLAR_SPEC, SUI_SPEC, SendOnlyTransactionData, SoftChallenge, SortOrder, StakingDataOf, StakingProvisioning, TEZOS_SPEC, TRON_SPEC, TokenResponse, TradelinkCustodianResponse, TradelinkEntityResponse, TradelinkNetworkBlueprintResponse, TradelinkNetworkResponse, TradelinkOrgEntityResponse, TradelinkSettlementWithAccountAndExchangeInfoResponse, TransactionData, TransactionDataOf, TransactionResponse, TransactionType, TransactionTypeOf, TransactionWithMetaResponse, UserDeviceType, UserRegistrationChallenge, UserRegistrationChallengeResponse, UserRegistrationCreateInput, UserRegistrationDeviceData, UserRegistrationResponse, UserResponse, UserRole, UserSortBy, VaultRequestCreateInput, VaultRequestResponse, WebhookResponse, WebhooksResponse, WhitelistResponse, WhitelistSortBy, WhitelistType, WorkspaceResponse, WorkspaceRuleResponse, WorkspaceRulesResponse, WrappingKeyFragmentInput, WrappingKeyProvisioningEphemeralPubKey, WrappingKeyResponse, convertTxToGovernableIntent, emptyPage, fetchAllCursorPages, fetchAllPages, genTransactionSchemas, getTxHsmProps, isErc20Address, normalizePortfolioName, paginate, serializePage, stableOrdering, zAccountFreshAddress, zAccountLiveData, zAccountLiveDataResponse, zAccountResponse, zAccountSortBy, zAccountStakingFields, zAdminResponse, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zApproveVaultRequestInput, zAssetCapabilitiesResponse, zAssetResponse, zAuditLogResponse, zAuditLogSortBy, zAuthResponse, zBalance, zBitcoinUtxoResponse, zCantonPreApprovalStateResponse, zCantonTransferProposal, zCantonTransferProposalResponse, zChallengeResponse, zCommonLiveData, zCreateClassicAccountWithPolicyIdInput, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCreateWebhookPayload, zCurrencyResponse, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeleteWebhookResponse, zDeviceClaim, zEnsureNameAvailableInput, zEnsureNameAvailableOutput, zEntityResponse, zEntitySortBy, zEstimatedFees as zEstimateFeesResponse, zEstimatedFees, zExchangeCredentialsResponse, zGovernableAction, zGroupResponse, zGroupSortBy, zNetworkAssetFields, zOidcConfig, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOpenApiResourceType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPortfolioAdminResponse, zPortfolioAppliedState, zPortfolioCreateInput, zPortfolioHistoryEntryResponse, zPortfolioName, zPortfolioSortBy, zPortfolioStatusFilter, zPortfolioSummary, zPortfolioUpdateInput, zPortfoliosByAccountIdsInput, zPortfoliosByAccountIdsResponse, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zPsdPairingData, zPsdPairingInputData, zPsdSignature, zPubKey, zReportDownloadUrlResponse, zReportInput, zReportResponse, zRequestSortBy, zReviewStepsArray, zRootWorkspaceRuleResponse, zSendOnlyTransactionData, zSignDigestsRequestInput, zSignMessageRequestInput, zSignedMessageResponse, zSortOrder, zStake, zStakeSortBy, zStakingProvisioning, zStakingValidator, zStakingValidatorSortBy, zTokenResponse, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionData, zTransactionResponse, zTransactionStatus, zTransactionType, zTransactionWithMetaResponse, zUserRegistrationChallenge, zUserRegistrationChallengeResponse, zUserRegistrationCreateInput, zUserRegistrationDeviceData, zUserRegistrationResponse, zUserResponse, zUserSortBy, zVaultRequestCreateInput, zVaultRequestResponse, zVisibleReportStatus, zWebhookResponse, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWorkspaceRulesResponse, zWrappingKeyFragmentInput };
1
+ import { $ as zCreateTradelinkNetworkBlueprintInput, $i as MessageType, $n as zSortOrder, $r as zStakeSortBy, $t as OnboardingSeedChallenge, A as zTradelinkSettlementWithAccountAndExchangeInfoResponse, Ai as GENERIC_SPEC, An as zEntitySortBy, Ar as zPsdSignature, At as zPortfolioName, B as zChallengeResponse, Bi as NetworkFamily, Bn as DEFAULT_PAGE_SIZE, Br as ObjectsContentResponse, Bt as zPortfolioAppliedState, C as TradelinkCustodianResponse, Ci as SUI_SPEC, Cn as WorkspaceRulesResponse, Cr as RefreshPskData, Ct as PortfolioStatusFilter, D as zTradelinkCustodianResponse, Di as POLKADOT_SPEC, Dn as EntityResponse, Dr as UserRegistrationDeviceData, Dt as zPortfolioAdminResponse, E as TradelinkSettlementWithAccountAndExchangeInfoResponse, Ei as RIPPLE_SPEC, En as zWorkspaceRulesResponse, Er as UserRegistrationChallengeResponse, Et as PortfoliosByAccountIdsResponse, F as RequestSortBy, Fi as zCantonTransferProposal, Fn as zOidcConfig, Fr as zUserRegistrationChallengeResponse, Ft as zPortfoliosByAccountIdsInput, G as zSignMessageRequestInput, Gi as AdminPermission, Gn as fetchAllPages, Gr as AccountResponse, Gt as AllowedActionsResponse, H as zEnsureNameAvailableInput, Hi as zTransactionStatus, Hn as SortOrder, Hr as VersionedObjectInfo, Ht as PolicySortBy, I as VaultRequestCreateInput, Ii as BITCOIN_SPEC, In as AuthResponse, Ir as zUserRegistrationDeviceData, It as zPortfoliosByAccountIdsResponse, J as CreateTradelinkOrgEntityInput, Ji as ChallengeType, Jn as stableOrdering, Jr as zAccountLiveDataResponse, Jt as zAllowedResourcesResponse, K as zVaultRequestCreateInput, Ki as AllowedAction, Kn as paginate, Kr as AccountSortBy, Kt as AllowedResourcesResponse, L as VaultRequestResponse, Li as BitcoinLikeBalance, Ln as zAuthResponse, Lr as GetObjectsInfoResponse, Lt as PORTFOLIO_NAME_MAX_LENGTH, M as ChallengeResponse, Mi as CARDANO_SPEC, Mn as zPsdAuthChallengeData, Mr as zRefreshPskData, Mt as zPortfolioStatusFilter, N as EnsureNameAvailableInput, Ni as CANTON_SPEC, Nn as OidcConfig, Nr as zRefreshPskInputData, Nt as zPortfolioSummary, O as zTradelinkEntityResponse, Oi as HEDERA_SPEC, On as EntitySortBy, Or as zPsdPairingData, Ot as zPortfolioCreateInput, P as RequestDataOf, Pi as CantonTransferProposal, Pn as zExchangeCredentialsResponse, Pr as zUserRegistrationChallenge, Pt as zPortfolioUpdateInput, Q as TradelinkOrgEntityResponse, Qn as zPaginated, Qr as zStake, Qt as OnboardingOpts, R as genTransactionSchemas, Ri as StakingProvisioning, Rn as AppRouter, Rr as HSM_OBJECT_TYPES, Rt as PortfolioAppliedState, S as zApiUserCredentialsResponse, Si as TEZOS_SPEC, Sn as WorkspaceRuleResponse, Sr as PubKey, St as PortfolioSortBy, T as TradelinkNetworkResponse, Ti as SOLANA_SPEC, Tn as zWorkspaceRuleResponse, Tr as UserRegistrationChallenge, Tt as PortfolioUpdateInput, U as zRequestSortBy, Ui as AccountType, Un as emptyPage, Ur as AccountFreshAddress, Ut as zPolicyResponse, V as zCreateClassicAccountWithPolicyIdInput, Vi as zCommonLiveData, Vn as Paginated, Vr as ObjectsVersionResponse, Vt as PolicyResponse, W as zSignDigestsRequestInput, Wi as ActivationStatus, Wn as fetchAllCursorPages, Wr as AccountLiveDataResponse, Wt as zPolicySortBy, X as PledgeResponse, Xn as zCursorQuery, Xr as zAccountSortBy, Xt as DeviceClaim, Y as DeleteTradelinkExchangeInput, Yi as ClaimedRole, Yn as zCursorPaginated, Yr as zAccountResponse, Yt as zOpenApiResourceType, Z as TradelinkNetworkBlueprintResponse, Zi as HsmHostingMode, Zn as zPageQuery, Zr as zBalance, Zt as OnboardingFullState, _ as zUserSortBy, _i as zSendOnlyTransactionData, _n as GroupResponse, _r as HsmCertificate, _t as zReportResponse, a as WorkspaceResponse, aa as ReportStatus, ai as StakingDataOf, an as zOnboardingFullState, ar as zCurrencyResponse, at as zTradelinkWhitelist, b as zUserRegistrationCreateInput, bi as zTransactionType, bn as zGroupSortBy, br as PsdPairingInputData, bt as PortfolioCreateInput, c as WhitelistSortBy, ca as RequestType, ci as TransactionResponse, cn as zOnboardingSeedFragment, ct as Challenge, d as zWhitelistSortBy, da as ReviewConfigType, di as convertTxToGovernableIntent, dn as zDeleteWebhookResponse, dr as zBitcoinUtxoResponse, dt as zEnsureNameAvailableOutput, ea as OnboardedUserRole, ei as zStakingValidator, en as OnboardingSeedFragment, er as AssetResponse, et as zCreateTradelinkOrgEntityInput, f as AdminResponse, fa as UserDeviceType, fi as getTxHsmProps, fn as zWebhookResponse, fr as zCantonPreApprovalStateResponse, ft as ReportDownloadUrlResponse, g as zUserResponse, gi as zNetworkAssetFields, gn as zAuditLogSortBy, gr as ApiChallenge, gt as zReportInput, h as zAdminResponse, ha as zGovernableAction, hi as zEstimatedFees, hn as zAuditLogResponse, hr as zSignedMessageResponse, ht as zReportDownloadUrlResponse, i as WebhooksResponse, ia as PsdModel, ii as SendOnlyTransactionData, in as zDeviceClaim, ir as zAssetResponse, it as zTradelinkOrgEntityResponse, j as ApproveVaultRequestInput, ji as ETHEREUM_SPEC, jn as PsdAuthChallengeData, jr as zPubKey, jt as zPortfolioSortBy, k as zTradelinkNetworkResponse, ki as isErc20Address, kn as zEntityResponse, kr as zPsdPairingInputData, kt as zPortfolioHistoryEntryResponse, l as zWhitelistAddressResponse, la as ResourceType, li as TransactionType, ln as zWrappingKeyFragmentInput, lt as EnsureNameAvailableOutput, m as UserSortBy, ma as WhitelistType, mi as zAccountStakingFields, mn as AuditLogSortBy, mr as zTransactionWithMetaResponse, mt as ReportResponse, n as DeleteWebhookResponse, na as OutgoingTransactionStatus, ni as AccountStakingFields, nn as WrappingKeyProvisioningEphemeralPubKey, nr as TokenResponse, nt as zPledgeResponse, o as zWorkspaceResponse, oa as RequestReviewStatus, oi as TransactionData, on as zOnboardingId, or as zTokenResponse, ot as ReviewStepWithUsers, p as UserResponse, pa as UserRole, pi as zAccountLiveData, pn as AuditLogResponse, pr as zCantonTransferProposalResponse, pt as ReportInput, q as zVaultRequestResponse, qi as AuditLogType, qn as serializePage, qr as zAccountFreshAddress, qt as zAllowedActionsResponse, r as WebhookResponse, ra as PortfolioHistoryAction, ri as EstimatedFees, rn as WrappingKeyResponse, rr as zAssetCapabilitiesResponse, rt as zTradelinkNetworkBlueprintResponse, s as WhitelistResponse, sa as RequestState, si as TransactionDataOf, sn as zOnboardingOpts, st as zReviewStepsArray, t as CreateWebhookPayload, ta as OnboardingStep, ti as zStakingValidatorSortBy, tn as WrappingKeyFragmentInput, tr as CurrencyResponse, tt as zDeleteTradelinkOrgEntityInput, u as zWhitelistResponse, ua as RevaultMode, ui as TransactionTypeOf, un as zCreateWebhookPayload, ur as TransactionWithMetaResponse, ut as SoftChallenge, v as UserRegistrationCreateInput, vi as zTransactionData, vn as GroupSortBy, vr as PsdChallenge, vt as zVisibleReportStatus, w as TradelinkEntityResponse, wi as STELLAR_SPEC, wn as zRootWorkspaceRuleResponse, wr as RefreshPskInputData, wt as PortfolioSummary, x as zUserRegistrationResponse, xi as TRON_SPEC, xn as RootWorkspaceRuleResponse, xr as PsdSignature, xt as PortfolioHistoryEntryResponse, y as UserRegistrationResponse, yi as zTransactionResponse, yn as zGroupResponse, yr as PsdPairingData, yt as PortfolioAdminResponse, z as zApproveVaultRequestInput, zi as zStakingProvisioning, zn as CursorPaginated, zr as HsmObjectType, zt as normalizePortfolioName } from "./app-lib-DZpVkmLE.mjs";
2
+ export { type AccountFreshAddress, type AccountLiveDataResponse, type AccountResponse, type AccountSortBy, type AccountStakingFields, type AccountType, type ActivationStatus, type AdminPermission, type AdminResponse, 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, type EnsureNameAvailableInput, type EnsureNameAvailableOutput, type EntityResponse, type EntitySortBy, type EstimatedFees, type GENERIC_SPEC, type GetObjectsInfoResponse, type GroupResponse, type GroupSortBy, type HEDERA_SPEC, HSM_OBJECT_TYPES, type HsmCertificate, type HsmHostingMode, type HsmObjectType, 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 OutgoingTransactionStatus, type POLKADOT_SPEC, type PORTFOLIO_NAME_MAX_LENGTH, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PortfolioAdminResponse, type PortfolioAppliedState, type PortfolioCreateInput, type PortfolioHistoryAction, type PortfolioHistoryEntryResponse, type PortfolioSortBy, type PortfolioStatusFilter, type PortfolioSummary, type PortfolioUpdateInput, type PortfoliosByAccountIdsResponse, type PsdAuthChallengeData as PsdAuthChallengeResponse, type PsdChallenge, type PsdModel, type PsdPairingData, type PsdPairingInputData, type PsdSignature, type PubKey, type RIPPLE_SPEC, type RefreshPskData, type RefreshPskInputData, type ReportDownloadUrlResponse, type ReportInput, type ReportResponse, type ReportStatus, type RequestDataOf, type RequestReviewStatus, type RequestSortBy, type RequestState, type RequestType, type ResourceType, type RevaultMode, type ReviewConfigType, type ReviewStepWithUsers, type RootWorkspaceRuleResponse, type SOLANA_SPEC, type STELLAR_SPEC, type SUI_SPEC, type SendOnlyTransactionData, type SoftChallenge, type SortOrder, type StakingDataOf, type StakingProvisioning, type TEZOS_SPEC, type TRON_SPEC, type TokenResponse, 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 UserDeviceType, type UserRegistrationChallenge, type UserRegistrationChallengeResponse, type UserRegistrationCreateInput, type UserRegistrationDeviceData, type UserRegistrationResponse, type UserResponse, type UserRole, type UserSortBy, type VaultRequestCreateInput, type VaultRequestResponse, type VersionedObjectInfo, type WebhookResponse, type WebhooksResponse, type WhitelistResponse, type WhitelistSortBy, type WhitelistType, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, type convertTxToGovernableIntent, type emptyPage, type fetchAllCursorPages, type fetchAllPages, type genTransactionSchemas, type getTxHsmProps, type isErc20Address, type normalizePortfolioName, type paginate, type serializePage, type stableOrdering, type zAccountFreshAddress, type zAccountLiveData, type zAccountLiveDataResponse, type zAccountResponse, type zAccountSortBy, type zAccountStakingFields, type zAdminResponse, type zAllowedActionsResponse, type zAllowedResourcesResponse, type zApiUserCredentialsResponse, type zApproveVaultRequestInput, type zAssetCapabilitiesResponse, type zAssetResponse, type zAuditLogResponse, type zAuditLogSortBy, type zAuthResponse, type zBalance, type zBitcoinUtxoResponse, type zCantonPreApprovalStateResponse, type zCantonTransferProposal, type zCantonTransferProposalResponse, type zChallengeResponse, type zCommonLiveData, type zCreateClassicAccountWithPolicyIdInput, type zCreateTradelinkNetworkBlueprintInput, type zCreateTradelinkOrgEntityInput, type zCreateWebhookPayload, 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, type zExchangeCredentialsResponse, type zGovernableAction, type zGroupResponse, type zGroupSortBy, 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, type zPortfolioAdminResponse, type zPortfolioAppliedState, type zPortfolioCreateInput, type zPortfolioHistoryEntryResponse, type zPortfolioName, type zPortfolioSortBy, type zPortfolioStatusFilter, type zPortfolioSummary, type zPortfolioUpdateInput, type zPortfoliosByAccountIdsInput, type zPortfoliosByAccountIdsResponse, type zPsdAuthChallengeData as zPsdAuthChallengeResponse, type zPsdPairingData, type zPsdPairingInputData, type zPsdSignature, type zPubKey, type zRefreshPskData, type zRefreshPskInputData, type zReportDownloadUrlResponse, type zReportInput, type zReportResponse, type zRequestSortBy, type zReviewStepsArray, type zRootWorkspaceRuleResponse, type zSendOnlyTransactionData, type zSignDigestsRequestInput, type zSignMessageRequestInput, type zSignedMessageResponse, type zSortOrder, type zStake, type zStakeSortBy, type zStakingProvisioning, type zStakingValidator, type zStakingValidatorSortBy, type zTokenResponse, type zTradelinkCustodianResponse, type zTradelinkEntityResponse, type zTradelinkNetworkBlueprintResponse, type zTradelinkNetworkResponse, type zTradelinkOrgEntityResponse, type zTradelinkSettlementWithAccountAndExchangeInfoResponse, type zTradelinkWhitelist, type zTransactionData, type zTransactionResponse, type zTransactionStatus, type zTransactionType, type zTransactionWithMetaResponse, type zUserRegistrationChallenge, type zUserRegistrationChallengeResponse, type zUserRegistrationCreateInput, type zUserRegistrationDeviceData, type zUserRegistrationResponse, type zUserResponse, type zUserSortBy, type zVaultRequestCreateInput, type zVaultRequestResponse, type zVisibleReportStatus, type zWebhookResponse, type zWhitelistAddressResponse, type zWhitelistResponse, type zWhitelistSortBy, type zWorkspaceResponse, type zWorkspaceRuleResponse, type zWorkspaceRulesResponse, type zWrappingKeyFragmentInput };
package/lib/index.mjs CHANGED
@@ -1 +1,56 @@
1
- export {};
1
+ import z$1 from "zod";
2
+ //#region src/hsm/hsm-requests-types.ts
3
+ const HSM_OBJECT_TYPES = [
4
+ "Account",
5
+ "AdminGroup",
6
+ "AssetManager",
7
+ "Exchange",
8
+ "Group",
9
+ "Partition",
10
+ "PledgeState",
11
+ "Policy",
12
+ "AccountRuleSet",
13
+ "Tradelink",
14
+ "User",
15
+ "WalletAccountList",
16
+ "Whitelist"
17
+ ];
18
+ z$1.object({
19
+ cid: z$1.coerce.string(),
20
+ total_accounts: z$1.number(),
21
+ accounts_report: z$1.record(z$1.string(), z$1.number()),
22
+ total_objects: z$1.number(),
23
+ objects_report: z$1.record(z$1.string(), z$1.number())
24
+ });
25
+ const zVersionedObjectInfo = z$1.object({
26
+ uid: z$1.string(),
27
+ object_type: z$1.string(),
28
+ index: z$1.number(),
29
+ hsm_object_type_id: z$1.number(),
30
+ anti_replay_value: z$1.number(),
31
+ expected_anti_replay_value: z$1.number(),
32
+ schema_version: z$1.number()
33
+ });
34
+ z$1.object({
35
+ cid: z$1.coerce.string(),
36
+ uid: z$1.string().nullable(),
37
+ objects_count: z$1.number(),
38
+ hsm_requests_count: z$1.number(),
39
+ status: z$1.string(),
40
+ valid_objects: z$1.array(zVersionedObjectInfo),
41
+ invalid_objects: z$1.array(zVersionedObjectInfo),
42
+ objects_missing_merkle_tree_id: z$1.array(z$1.string())
43
+ });
44
+ z$1.object({
45
+ cid: z$1.coerce.string(),
46
+ uid: z$1.string().nullable(),
47
+ objects_count: z$1.number(),
48
+ hsm_requests_count: z$1.number(),
49
+ status: z$1.string(),
50
+ object_contents: z$1.array(z$1.unknown()),
51
+ objects_missing_merkle_tree_id: z$1.array(z$1.string())
52
+ });
53
+ //#endregion
54
+ export { HSM_OBJECT_TYPES };
55
+
56
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["z"],"sources":["../src/hsm/hsm-requests-types.ts"],"sourcesContent":["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"],"mappings":";;AAEA,MAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAIuCA,IAAE,OAAO;CAC9C,KAAKA,IAAE,OAAO,OAAO;CACrB,gBAAgBA,IAAE,OAAO;CACzB,iBAAiBA,IAAE,OAAOA,IAAE,OAAO,GAAGA,IAAE,OAAO,CAAC;CAChD,eAAeA,IAAE,OAAO;CACxB,gBAAgBA,IAAE,OAAOA,IAAE,OAAO,GAAGA,IAAE,OAAO,CAAC;AACjD,CAAC;AAID,MAAM,uBAAuBA,IAAE,OAAO;CACpC,KAAKA,IAAE,OAAO;CACd,aAAaA,IAAE,OAAO;CACtB,OAAOA,IAAE,OAAO;CAChB,oBAAoBA,IAAE,OAAO;CAC7B,mBAAmBA,IAAE,OAAO;CAC5B,4BAA4BA,IAAE,OAAO;CACrC,gBAAgBA,IAAE,OAAO;AAC3B,CAAC;AAIsCA,IAAE,OAAO;CAC9C,KAAKA,IAAE,OAAO,OAAO;CACrB,KAAKA,IAAE,OAAO,CAAC,CAAC,SAAS;CACzB,eAAeA,IAAE,OAAO;CACxB,oBAAoBA,IAAE,OAAO;CAC7B,QAAQA,IAAE,OAAO;CACjB,eAAeA,IAAE,MAAM,oBAAoB;CAC3C,iBAAiBA,IAAE,MAAM,oBAAoB;CAC7C,gCAAgCA,IAAE,MAAMA,IAAE,OAAO,CAAC;AACpD,CAAC;AAIsCA,IAAE,OAAO;CAC9C,KAAKA,IAAE,OAAO,OAAO;CACrB,KAAKA,IAAE,OAAO,CAAC,CAAC,SAAS;CACzB,eAAeA,IAAE,OAAO;CACxB,oBAAoBA,IAAE,OAAO;CAC7B,QAAQA,IAAE,OAAO;CAEjB,iBAAiBA,IAAE,MAAMA,IAAE,QAAQ,CAAC;CACpC,gCAAgCA,IAAE,MAAMA,IAAE,OAAO,CAAC;AACpD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Bi as GateUserType, Fn as zOidcConfig, Hi as MaintenanceMode, Pi as ActivationStatus, cr as ActivityTracer, ea as RevaultMode, lr as ExtendedPrismaClient, na as UserDeviceType, ra as UserRole, sr as RateLimitMetricsMeta } from "../app-lib-DwyMsZ-w.mjs";
1
+ import { Fn as zOidcConfig, Qi as MaintenanceMode, Wi as ActivationStatus, Xi as GateUserType, cr as ActivityTracer, fa as UserDeviceType, lr as ExtendedPrismaClient, pa as UserRole, sr as RateLimitMetricsMeta, ua as RevaultMode } from "../app-lib-DZpVkmLE.mjs";
2
2
  import z$1, { z } from "zod";
3
3
  //#region src/workspaces/schemas.d.ts
4
4
  declare const zWorkspaceName: z$1.ZodString;
@@ -362,10 +362,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
362
362
  };
363
363
  validatorPubKey: string;
364
364
  executionFee: string;
365
- } | {
366
- type: "GENERIC_TRANSACTION";
367
- currency: string;
368
- rawTx: string;
369
365
  } | {
370
366
  amount: string;
371
367
  currency: string;
@@ -392,6 +388,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
392
388
  feeStrategy: {
393
389
  type: "FAST" | "NORMAL" | "SLOW";
394
390
  };
391
+ } | {
392
+ type: "GENERIC_TRANSACTION";
393
+ currency: string;
394
+ rawTx: string;
395
395
  } | {
396
396
  type: "POLKADOT_LIKE_ADDPROXY";
397
397
  currency: string;
@@ -4242,6 +4242,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4242
4242
  } & {
4243
4243
  workspaceName: import("zod").output<typeof zWorkspaceName>;
4244
4244
  lesWalletId: string | null;
4245
+ hsmId: string;
4245
4246
  })[];
4246
4247
  };
4247
4248
  meta: {
@@ -4343,6 +4344,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4343
4344
  } & {
4344
4345
  workspaceName: string;
4345
4346
  lesWalletId: string | null;
4347
+ hsmId: string;
4346
4348
  };
4347
4349
  meta: {
4348
4350
  [x: string]: unknown;
@@ -4463,6 +4465,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4463
4465
  updatedAt: Date;
4464
4466
  } & {
4465
4467
  workspaceName: import("zod").output<typeof zWorkspaceName>;
4468
+ hsmId: string;
4466
4469
  })[];
4467
4470
  };
4468
4471
  meta: {
@@ -4515,6 +4518,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4515
4518
  updatedAt: Date;
4516
4519
  } & {
4517
4520
  workspaceName: string;
4521
+ hsmId: string;
4518
4522
  };
4519
4523
  meta: {
4520
4524
  [x: string]: unknown;
@@ -4628,6 +4632,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4628
4632
  description: string | null;
4629
4633
  } & {
4630
4634
  workspaceName: import("zod").output<typeof zWorkspaceName>;
4635
+ hsmId: string;
4631
4636
  })[];
4632
4637
  };
4633
4638
  meta: {
@@ -4672,6 +4677,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4672
4677
  description: string | null;
4673
4678
  } & {
4674
4679
  workspaceName: string;
4680
+ hsmId: string;
4675
4681
  };
4676
4682
  meta: {
4677
4683
  [x: string]: unknown;
@@ -5668,10 +5674,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5668
5674
  };
5669
5675
  validatorPubKey: string;
5670
5676
  executionFee: string;
5671
- } | {
5672
- type: "GENERIC_TRANSACTION";
5673
- currency: string;
5674
- rawTx: string;
5675
5677
  } | {
5676
5678
  amount: string;
5677
5679
  currency: string;
@@ -5698,6 +5700,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5698
5700
  feeStrategy: {
5699
5701
  type: "FAST" | "NORMAL" | "SLOW";
5700
5702
  };
5703
+ } | {
5704
+ type: "GENERIC_TRANSACTION";
5705
+ currency: string;
5706
+ rawTx: string;
5701
5707
  } | {
5702
5708
  type: "POLKADOT_LIKE_ADDPROXY";
5703
5709
  currency: string;
@@ -8186,10 +8192,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
8186
8192
  };
8187
8193
  validatorPubKey: string;
8188
8194
  executionFee: string;
8189
- } | {
8190
- type: "GENERIC_TRANSACTION";
8191
- currency: string;
8192
- rawTx: string;
8193
8195
  } | {
8194
8196
  amount: string;
8195
8197
  currency: string;
@@ -8216,6 +8218,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
8216
8218
  feeStrategy: {
8217
8219
  type: "FAST" | "NORMAL" | "SLOW";
8218
8220
  };
8221
+ } | {
8222
+ type: "GENERIC_TRANSACTION";
8223
+ currency: string;
8224
+ rawTx: string;
8219
8225
  } | {
8220
8226
  type: "POLKADOT_LIKE_ADDPROXY";
8221
8227
  currency: string;
@@ -10806,6 +10812,185 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
10806
10812
  } & RateLimitMetricsMeta;
10807
10813
  }>;
10808
10814
  }>>;
10815
+ hsmRequests: import("@trpc/server").TRPCBuiltRouter<{
10816
+ ctx: {
10817
+ 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;
10818
+ 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;
10819
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
10820
+ debugAuthToken?: string;
10821
+ rootAuthToken?: string;
10822
+ prisma: ExtendedPrismaClient;
10823
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
10824
+ user: {
10825
+ id: string;
10826
+ workspaceName: string;
10827
+ name: string;
10828
+ authUserId: string | null;
10829
+ pubKey: string;
10830
+ deviceType: UserDeviceType;
10831
+ deviceUserId: string | null;
10832
+ hsmId: string | null;
10833
+ u2fKeyHandle: string | null;
10834
+ u2fPubKey: string | null;
10835
+ legacyViewAll: boolean;
10836
+ role: UserRole;
10837
+ status: ActivationStatus;
10838
+ isSuspended: boolean;
10839
+ gateType: GateUserType | null;
10840
+ gateId: number;
10841
+ syncId: string;
10842
+ createdAt: Date;
10843
+ updatedAt: Date;
10844
+ } | null;
10845
+ authorization: string | null;
10846
+ readOnly: boolean;
10847
+ activityTracer: ActivityTracer;
10848
+ };
10849
+ meta: {
10850
+ [x: string]: unknown;
10851
+ } & {
10852
+ openapi?: {
10853
+ enabled?: boolean;
10854
+ method: import("trpc-to-openapi").OpenApiMethod;
10855
+ path: `/${string}`;
10856
+ operationId?: string;
10857
+ summary?: string;
10858
+ description?: string;
10859
+ protect?: boolean;
10860
+ tags?: string[];
10861
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10862
+ deprecated?: boolean;
10863
+ requestHeaders?: import("zod").ZodObject;
10864
+ responseHeaders?: import("zod").ZodObject;
10865
+ successDescription?: string;
10866
+ errorResponses?: number[] | Record<number, string>;
10867
+ };
10868
+ } & RateLimitMetricsMeta;
10869
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
10870
+ transformer: true;
10871
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
10872
+ objectsVersion: import("@trpc/server").TRPCQueryProcedure<{
10873
+ input: {
10874
+ workspaceName: string;
10875
+ };
10876
+ output: {
10877
+ cid: string;
10878
+ total_accounts: number;
10879
+ accounts_report: Record<string, number>;
10880
+ total_objects: number;
10881
+ objects_report: Record<string, number>;
10882
+ };
10883
+ meta: {
10884
+ [x: string]: unknown;
10885
+ } & {
10886
+ openapi?: {
10887
+ enabled?: boolean;
10888
+ method: import("trpc-to-openapi").OpenApiMethod;
10889
+ path: `/${string}`;
10890
+ operationId?: string;
10891
+ summary?: string;
10892
+ description?: string;
10893
+ protect?: boolean;
10894
+ tags?: string[];
10895
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10896
+ deprecated?: boolean;
10897
+ requestHeaders?: import("zod").ZodObject;
10898
+ responseHeaders?: import("zod").ZodObject;
10899
+ successDescription?: string;
10900
+ errorResponses?: number[] | Record<number, string>;
10901
+ };
10902
+ } & RateLimitMetricsMeta;
10903
+ }>;
10904
+ objectsInfo: import("@trpc/server").TRPCQueryProcedure<{
10905
+ input: {
10906
+ workspaceName: string;
10907
+ uid?: string | undefined;
10908
+ objectTypes?: ("Account" | "AccountRuleSet" | "AdminGroup" | "AssetManager" | "Exchange" | "Group" | "Partition" | "PledgeState" | "Policy" | "Tradelink" | "User" | "WalletAccountList" | "Whitelist")[] | undefined;
10909
+ };
10910
+ output: {
10911
+ cid: string;
10912
+ uid: string | null;
10913
+ objects_count: number;
10914
+ hsm_requests_count: number;
10915
+ status: string;
10916
+ valid_objects: {
10917
+ uid: string;
10918
+ object_type: string;
10919
+ index: number;
10920
+ hsm_object_type_id: number;
10921
+ anti_replay_value: number;
10922
+ expected_anti_replay_value: number;
10923
+ schema_version: number;
10924
+ }[];
10925
+ invalid_objects: {
10926
+ uid: string;
10927
+ object_type: string;
10928
+ index: number;
10929
+ hsm_object_type_id: number;
10930
+ anti_replay_value: number;
10931
+ expected_anti_replay_value: number;
10932
+ schema_version: number;
10933
+ }[];
10934
+ objects_missing_merkle_tree_id: string[];
10935
+ };
10936
+ meta: {
10937
+ [x: string]: unknown;
10938
+ } & {
10939
+ openapi?: {
10940
+ enabled?: boolean;
10941
+ method: import("trpc-to-openapi").OpenApiMethod;
10942
+ path: `/${string}`;
10943
+ operationId?: string;
10944
+ summary?: string;
10945
+ description?: string;
10946
+ protect?: boolean;
10947
+ tags?: string[];
10948
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10949
+ deprecated?: boolean;
10950
+ requestHeaders?: import("zod").ZodObject;
10951
+ responseHeaders?: import("zod").ZodObject;
10952
+ successDescription?: string;
10953
+ errorResponses?: number[] | Record<number, string>;
10954
+ };
10955
+ } & RateLimitMetricsMeta;
10956
+ }>;
10957
+ objectsContent: import("@trpc/server").TRPCQueryProcedure<{
10958
+ input: {
10959
+ workspaceName: string;
10960
+ uid?: string | undefined;
10961
+ objectTypes?: ("Account" | "AccountRuleSet" | "AdminGroup" | "AssetManager" | "Exchange" | "Group" | "Partition" | "PledgeState" | "Policy" | "Tradelink" | "User" | "WalletAccountList" | "Whitelist")[] | undefined;
10962
+ };
10963
+ output: {
10964
+ cid: string;
10965
+ uid: string | null;
10966
+ objects_count: number;
10967
+ hsm_requests_count: number;
10968
+ status: string;
10969
+ object_contents: unknown[];
10970
+ objects_missing_merkle_tree_id: string[];
10971
+ };
10972
+ meta: {
10973
+ [x: string]: unknown;
10974
+ } & {
10975
+ openapi?: {
10976
+ enabled?: boolean;
10977
+ method: import("trpc-to-openapi").OpenApiMethod;
10978
+ path: `/${string}`;
10979
+ operationId?: string;
10980
+ summary?: string;
10981
+ description?: string;
10982
+ protect?: boolean;
10983
+ tags?: string[];
10984
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
10985
+ deprecated?: boolean;
10986
+ requestHeaders?: import("zod").ZodObject;
10987
+ responseHeaders?: import("zod").ZodObject;
10988
+ successDescription?: string;
10989
+ errorResponses?: number[] | Record<number, string>;
10990
+ };
10991
+ } & RateLimitMetricsMeta;
10992
+ }>;
10993
+ }>>;
10809
10994
  }>>;
10810
10995
  }>>;
10811
10996
  type InternalAppRouter = typeof internalAppRouter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.71.0",
3
+ "version": "1.73.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [