@ledgerhq/revault-api 1.78.0 → 1.79.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/app-lib-Dewndpdf.d.mts +31198 -0
- package/lib/fakes.d.mts +1 -2
- package/lib/fakes.mjs +19 -12
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +32 -32
- package/lib/index.mjs.map +1 -1
- package/lib/internal/app-lib.d.mts +426 -5730
- package/package.json +3 -3
- package/lib/app-lib-D_o7oP_j.d.mts +0 -139171
package/lib/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type AccountAllowedActionsResponse, type AccountFreshAddress, type AccountLiveDataResponse, type AccountNetworkInfoFields, 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 Validator, 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 zAccountAllowedActionsResponse, type zAccountFreshAddress, type zAccountLiveData, type zAccountLiveDataResponse, type zAccountNetworkInfoFields, 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 zRippleDestinationTag, 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 };
|
|
1
|
+
import { $ as zPortfolioStatusFilter, $i as AccountStakingFields, $n as zReviewStepsArray, $r as UserDeviceType, $t as GroupResponse, A as zTradelinkEntityResponse, Aa as ETHEREUM_SPEC, Ai as zUserRegistrationChallenge, An as zSignMessageRequestInput, Ar as AccountType, At as zWrappingKeyFragmentInput, B as PortfolioAdminResponse, Ba as zStakingProvisioning, Bi as AccountLiveDataResponse, Bn as zDeleteTradelinkOrgEntityInput, Br as MessageType, Bt as SubProcessorsResponse, C as zUserRegistrationCreateInput, Ca as SOLANA_SPEC, Ci as UserRegistrationDeviceData, Cn as genTransactionSchemas, Cr as zExchangeCredentialsResponse, Ct as WrappingKeyProvisioningEphemeralPubKey, D as TradelinkNetworkResponse, Da as HEDERA_SPEC, Di as zPubKey, Dn as zEnsureNameAvailableInput, Dr as zApiUserCredentialsResponse, Dt as zOnboardingId, E as TradelinkEntityResponse, Ea as POLKADOT_SPEC, Ei as zPsdSignature, En as zCreateClassicAccountWithPolicyIdInput, Er as zAuthResponse, Et as zOnboardingFullState, F as ReportResponse, Fa as BITCOIN_SPEC, Fi as HsmObjectType, Fn as PledgeResponse, Fr as ChallengeType, Ft as LegalInline, G as PortfolioSummary, Gi as zAccountResponse, Gn as AssetResponse, Gr as PsdModel, Gt as zPrivacyNoticeSection, H as PortfolioHistoryEntryResponse, Ha as zCommonLiveData, Hi as AccountSortBy, Hn as zTradelinkNetworkBlueprintResponse, Hr as OnboardingStep, Ht as zLegalInline, I as zReportDownloadUrlResponse, Ia as BitcoinLikeBalance, Ii as ObjectsContentResponse, In as TradelinkNetworkBlueprintResponse, Ir as ClaimedRole, It as LegalInlineContent, J as zPortfolioAdminResponse, Ji as zStake, Jn as zAssetCapabilitiesResponse, Jr as RequestState, Jt as zSubProcessorsResponse, K as PortfolioUpdateInput, Ki as zAccountSortBy, Kn as CurrencyResponse, Kr as ReportStatus, Kt as zPrivacyNoticeSectionId, L as zReportInput, La as EthereumLikeStakingProvider, Li as ObjectsVersionResponse, Ln as TradelinkOrgEntityResponse, Lt as PrivacyNoticeResponse, M as zTradelinkSettlementWithAccountAndExchangeInfoResponse, Ma as CANTON_SPEC, Mi as zUserRegistrationDeviceData, Mn as zVaultRequestResponse, Mr as AdminPermission, Mt as zDeleteWebhookResponse, N as ReportDownloadUrlResponse, Na as CantonTransferProposal, Ni as GetObjectsInfoResponse, Nn as CreateTradelinkOrgEntityInput, Nr as AllowedAction, Nt as zWebhookResponse, O as TradelinkSettlementWithAccountAndExchangeInfoResponse, Oa as isErc20Address, Oi as zRefreshPskData, On as zRequestSortBy, Ot as zOnboardingOpts, P as ReportInput, Pa as zCantonTransferProposal, Pi as HSM_OBJECT_TYPES, Pn as DeleteTradelinkExchangeInput, Pr as AuditLogType, Pt as LegalContentBlock, Q as zPortfolioSortBy, Qi as AccountNetworkInfoFields, Qn as ReviewStepWithUsers, Qr as ReviewConfigType, Qt as zAuditLogSortBy, R as zReportResponse, Ra as StakingProvisioning, Ri as VersionedObjectInfo, Rn as zCreateTradelinkNetworkBlueprintInput, Rr as HsmHostingMode, Rt as PrivacyNoticeSection, S as UserRegistrationResponse, Sa as STELLAR_SPEC, Si as UserRegistrationChallengeResponse, Sn as VaultRequestResponseBase, Sr as OidcConfig, St as WrappingKeyFragmentInput, T as TradelinkCustodianResponse, Ta as zRippleDestinationTag, Ti as zPsdPairingInputData, Tn as zChallengeResponse, Tr as AuthResponse, Tt as zDeviceClaim, U as PortfolioSortBy, Ua as zTransactionStatus, Ui as zAccountFreshAddress, Un as zTradelinkOrgEntityResponse, Ur as OutgoingTransactionStatus, Ut as zLegalInlineContent, V as PortfolioCreateInput, Va as NetworkFamily, Vi as AccountResponse, Vn as zPledgeResponse, Vr as OnboardedUserRole, Vt as zLegalContentBlock, W as PortfolioStatusFilter, Wa as zGovernableAction, Wi as zAccountLiveDataResponse, Wn as zTradelinkWhitelist, Wr as PortfolioHistoryAction, Wt as zPrivacyNoticeResponse, X as zPortfolioHistoryEntryResponse, Xi as zStakingValidator, Xn as zCurrencyResponse, Xr as ResourceType, Xt as AuditLogSortBy, Y as zPortfolioCreateInput, Yi as zStakeSortBy, Yn as zAssetResponse, Yr as RequestType, Yt as AuditLogResponse, Z as zPortfolioName, Zi as zStakingValidatorSortBy, Zn as zTokenResponse, Zr as RevaultMode, Zt as zAuditLogResponse, _ as UserSortBy, _a as zTransactionResponse, _i as PsdSignature, _n as RequestDataOf, _r as SoftChallenge, _t as DeviceClaim, a as WorkspaceResponse, aa as TransactionResponse, ai as TransactionWithMetaResponse, an as WorkspaceRulesResponse, ar as fetchAllCursorPages, at as PortfolioAppliedState, b as zUserSortBy, ba as TEZOS_SPEC, bi as RefreshPskInputData, bn as VaultRequestCreateInput, br as PsdAuthChallengeData, bt as OnboardingSeedChallenge, c as WhitelistAddressSortBy, ca as convertTxToGovernableIntent, ci as zCantonPreApprovalStateResponse, cn as zWorkspaceRulesResponse, cr as serializePage, ct as PolicyResponse, d as zWhitelistAddressResponse, da as zAccountNetworkInfoFields, di as zSignedMessageResponse, dn as zEntityResponse, dr as zCursorQuery, dt as zPolicySortBy, ea as EstimatedFees, ei as UserRole, en as GroupSortBy, er as CursorPaginated, et as zPortfolioSummary, f as zWhitelistAddressSortBy, fa as zAccountStakingFields, fi as ApiChallenge, fn as zEntitySortBy, fr as zPageQuery, ft as AllowedActionsResponse, g as UserResponse, ga as zTransactionData, gi as PsdPairingInputData, gn as EnsureNameAvailableInput, gr as EnsureNameAvailableOutput, gt as zOpenApiResourceType, h as AdminResponse, ha as zSendOnlyTransactionData, hi as PsdPairingData, hn as ChallengeResponse, hr as Challenge, ht as zAllowedResourcesResponse, i as WebhooksResponse, ia as TransactionDataOf, ii as AccountAllowedActionsResponse, in as WorkspaceRuleResponse, ir as emptyPage, it as PORTFOLIO_NAME_MAX_LENGTH, j as zTradelinkNetworkResponse, ja as CARDANO_SPEC, ji as zUserRegistrationChallengeResponse, jn as zVaultRequestCreateInput, jr as ActivationStatus, jt as zCreateWebhookPayload, k as zTradelinkCustodianResponse, ka as GENERIC_SPEC, ki as zRefreshPskInputData, kn as zSignDigestsRequestInput, kt as zOnboardingSeedFragment, l as WhitelistResponse, la as getTxHsmProps, li as zCantonTransferProposalResponse, ln as EntityResponse, lr as stableOrdering, lt as PolicySortBy, m as zWhitelistSortBy, ma as zNetworkAssetFields, mi as PsdChallenge, mn as ApproveVaultRequestInput, mr as zSortOrder, mt as zAllowedActionsResponse, n as DeleteWebhookResponse, na as StakingDataOf, nn as zGroupSortBy, nr as Paginated, nt as zPortfoliosByAccountIdsInput, o as zWorkspaceResponse, oa as TransactionType, oi as zAccountAllowedActionsResponse, on as zRootWorkspaceRuleResponse, or as fetchAllPages, ot as normalizePortfolioName, p as zWhitelistResponse, pa as zEstimatedFees, pi as HsmCertificate, pn as AppRouter, pr as zPaginated, pt as AllowedResourcesResponse, q as PortfoliosByAccountIdsResponse, qi as zBalance, qn as TokenResponse, qr as RequestReviewStatus, qt as zSubProcessorRow, r as WebhookResponse, ra as TransactionData, rn as RootWorkspaceRuleResponse, rr as SortOrder, rt as zPortfoliosByAccountIdsResponse, s as WhitelistAddressResponse, sa as TransactionTypeOf, si as zBitcoinUtxoResponse, sn as zWorkspaceRuleResponse, sr as paginate, st as zPortfolioAppliedState, t as CreateWebhookPayload, ta as SendOnlyTransactionData, ti as WhitelistType, tn as zGroupResponse, tr as DEFAULT_PAGE_SIZE, tt as zPortfolioUpdateInput, u as WhitelistSortBy, ua as zAccountLiveData, ui as zTransactionWithMetaResponse, un as EntitySortBy, ur as zCursorPaginated, ut as zPolicyResponse, v as zAdminResponse, va as zTransactionType, vi as PubKey, vn as RequestReview, vr as zEnsureNameAvailableOutput, vt as OnboardingFullState, w as zUserRegistrationResponse, wa as RIPPLE_SPEC, wi as zPsdPairingData, wn as zApproveVaultRequestInput, wr as zOidcConfig, wt as WrappingKeyResponse, x as UserRegistrationCreateInput, xa as SUI_SPEC, xi as UserRegistrationChallenge, xn as VaultRequestResponse, xr as zPsdAuthChallengeData, xt as OnboardingSeedFragment, y as zUserResponse, ya as TRON_SPEC, yi as RefreshPskData, yn as RequestSortBy, yt as OnboardingOpts, z as zVisibleReportStatus, za as Validator, zi as AccountFreshAddress, zn as zCreateTradelinkOrgEntityInput, zt as SubProcessorRow } from "./app-lib-Dewndpdf.mjs";
|
|
2
|
+
export { type AccountAllowedActionsResponse, type AccountFreshAddress, type AccountLiveDataResponse, type AccountNetworkInfoFields, 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 EthereumLikeStakingProvider, type GENERIC_SPEC, type GetObjectsInfoResponse, type GroupResponse, type GroupSortBy, type HEDERA_SPEC, HSM_OBJECT_TYPES, type HsmCertificate, type HsmHostingMode, type HsmObjectType, type LegalContentBlock, type LegalInline, type LegalInlineContent, 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 PrivacyNoticeResponse, type PrivacyNoticeSection, 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 RequestReview, 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 SubProcessorRow, type SubProcessorsResponse, 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 Validator, type VaultRequestCreateInput, type VaultRequestResponse, type VaultRequestResponseBase, type VersionedObjectInfo, type WebhookResponse, type WebhooksResponse, type WhitelistAddressResponse, type WhitelistAddressSortBy, 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 zAccountAllowedActionsResponse, type zAccountFreshAddress, type zAccountLiveData, type zAccountLiveDataResponse, type zAccountNetworkInfoFields, 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 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, type zPortfolioAdminResponse, type zPortfolioAppliedState, type zPortfolioCreateInput, type zPortfolioHistoryEntryResponse, type zPortfolioName, type zPortfolioSortBy, type zPortfolioStatusFilter, type zPortfolioSummary, type zPortfolioUpdateInput, type zPortfoliosByAccountIdsInput, type zPortfoliosByAccountIdsResponse, type zPrivacyNoticeResponse, type zPrivacyNoticeSection, type zPrivacyNoticeSectionId, 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 zRippleDestinationTag, type zRootWorkspaceRuleResponse, type zSendOnlyTransactionData, type zSignDigestsRequestInput, type zSignMessageRequestInput, type zSignedMessageResponse, type zSortOrder, type zStake, type zStakeSortBy, type zStakingProvisioning, type zStakingValidator, type zStakingValidatorSortBy, type zSubProcessorRow, type zSubProcessorsResponse, 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 zWhitelistAddressSortBy, type zWhitelistResponse, type zWhitelistSortBy, type zWorkspaceResponse, type zWorkspaceRuleResponse, type zWorkspaceRulesResponse, type zWrappingKeyFragmentInput };
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z
|
|
1
|
+
import z from "zod";
|
|
2
2
|
//#region src/hsm/hsm-requests-types.ts
|
|
3
3
|
const HSM_OBJECT_TYPES = [
|
|
4
4
|
"Account",
|
|
@@ -15,40 +15,40 @@ const HSM_OBJECT_TYPES = [
|
|
|
15
15
|
"WalletAccountList",
|
|
16
16
|
"Whitelist"
|
|
17
17
|
];
|
|
18
|
-
z
|
|
19
|
-
cid: z
|
|
20
|
-
total_accounts: z
|
|
21
|
-
accounts_report: z
|
|
22
|
-
total_objects: z
|
|
23
|
-
objects_report: z
|
|
18
|
+
z.object({
|
|
19
|
+
cid: z.coerce.string(),
|
|
20
|
+
total_accounts: z.number(),
|
|
21
|
+
accounts_report: z.record(z.string(), z.number()),
|
|
22
|
+
total_objects: z.number(),
|
|
23
|
+
objects_report: z.record(z.string(), z.number())
|
|
24
24
|
});
|
|
25
|
-
const zVersionedObjectInfo = z
|
|
26
|
-
uid: z
|
|
27
|
-
object_type: z
|
|
28
|
-
index: z
|
|
29
|
-
hsm_object_type_id: z
|
|
30
|
-
anti_replay_value: z
|
|
31
|
-
expected_anti_replay_value: z
|
|
32
|
-
schema_version: z
|
|
25
|
+
const zVersionedObjectInfo = z.object({
|
|
26
|
+
uid: z.string(),
|
|
27
|
+
object_type: z.string(),
|
|
28
|
+
index: z.number(),
|
|
29
|
+
hsm_object_type_id: z.number(),
|
|
30
|
+
anti_replay_value: z.number(),
|
|
31
|
+
expected_anti_replay_value: z.number(),
|
|
32
|
+
schema_version: z.number()
|
|
33
33
|
});
|
|
34
|
-
z
|
|
35
|
-
cid: z
|
|
36
|
-
uid: z
|
|
37
|
-
objects_count: z
|
|
38
|
-
hsm_requests_count: z
|
|
39
|
-
status: z
|
|
40
|
-
valid_objects: z
|
|
41
|
-
invalid_objects: z
|
|
42
|
-
objects_missing_merkle_tree_id: z
|
|
34
|
+
z.object({
|
|
35
|
+
cid: z.coerce.string(),
|
|
36
|
+
uid: z.string().nullable(),
|
|
37
|
+
objects_count: z.number(),
|
|
38
|
+
hsm_requests_count: z.number(),
|
|
39
|
+
status: z.string(),
|
|
40
|
+
valid_objects: z.array(zVersionedObjectInfo),
|
|
41
|
+
invalid_objects: z.array(zVersionedObjectInfo),
|
|
42
|
+
objects_missing_merkle_tree_id: z.array(z.string())
|
|
43
43
|
});
|
|
44
|
-
z
|
|
45
|
-
cid: z
|
|
46
|
-
uid: z
|
|
47
|
-
objects_count: z
|
|
48
|
-
hsm_requests_count: z
|
|
49
|
-
status: z
|
|
50
|
-
object_contents: z
|
|
51
|
-
objects_missing_merkle_tree_id: z
|
|
44
|
+
z.object({
|
|
45
|
+
cid: z.coerce.string(),
|
|
46
|
+
uid: z.string().nullable(),
|
|
47
|
+
objects_count: z.number(),
|
|
48
|
+
hsm_requests_count: z.number(),
|
|
49
|
+
status: z.string(),
|
|
50
|
+
object_contents: z.array(z.unknown()),
|
|
51
|
+
objects_missing_merkle_tree_id: z.array(z.string())
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { HSM_OBJECT_TYPES };
|
package/lib/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"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;AAIuC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,OAAO;CACrB,gBAAgB,EAAE,OAAO;CACzB,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC;CAChD,eAAe,EAAE,OAAO;CACxB,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC;AACjD,CAAC;AAID,MAAM,uBAAuB,EAAE,OAAO;CACpC,KAAK,EAAE,OAAO;CACd,aAAa,EAAE,OAAO;CACtB,OAAO,EAAE,OAAO;CAChB,oBAAoB,EAAE,OAAO;CAC7B,mBAAmB,EAAE,OAAO;CAC5B,4BAA4B,EAAE,OAAO;CACrC,gBAAgB,EAAE,OAAO;AAC3B,CAAC;AAIsC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,OAAO;CACrB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS;CACzB,eAAe,EAAE,OAAO;CACxB,oBAAoB,EAAE,OAAO;CAC7B,QAAQ,EAAE,OAAO;CACjB,eAAe,EAAE,MAAM,oBAAoB;CAC3C,iBAAiB,EAAE,MAAM,oBAAoB;CAC7C,gCAAgC,EAAE,MAAM,EAAE,OAAO,CAAC;AACpD,CAAC;AAIsC,EAAE,OAAO;CAC9C,KAAK,EAAE,OAAO,OAAO;CACrB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS;CACzB,eAAe,EAAE,OAAO;CACxB,oBAAoB,EAAE,OAAO;CAC7B,QAAQ,EAAE,OAAO;CAEjB,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC;CACpC,gCAAgC,EAAE,MAAM,EAAE,OAAO,CAAC;AACpD,CAAC"}
|