@ledgerhq/revault-api 1.71.0 → 1.72.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-DwyMsZ-w.d.mts → app-lib-DWFMCgpN.d.mts} +2259 -2180
- package/lib/fakes.d.mts +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +56 -1
- package/lib/index.mjs.map +1 -0
- package/lib/internal/app-lib.d.mts +186 -1
- package/package.json +1 -1
package/lib/fakes.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as VaultRequestCreateInput, L as VaultRequestResponse, P as RequestDataOf, Qr as AccountStakingFields, Vr as AccountResponse, Yi as MessageType, _n as GroupResponse, p as UserResponse, r as WebhookResponse, ri as TransactionDataOf, s as WhitelistResponse, zi as AccountType } from "./app-lib-DWFMCgpN.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
|
|
2
|
-
export type
|
|
1
|
+
import { $ as zCreateTradelinkNetworkBlueprintInput, $i as PortfolioHistoryAction, $n as zSortOrder, $r as EstimatedFees, $t as OnboardingSeedChallenge, A as zTradelinkSettlementWithAccountAndExchangeInfoResponse, Ai as CantonTransferProposal, An as zEntitySortBy, Ar as zUserRegistrationChallenge, At as zPortfolioName, B as zChallengeResponse, Bi as ActivationStatus, Bn as DEFAULT_PAGE_SIZE, Br as AccountLiveDataResponse, Bt as zPortfolioAppliedState, C as TradelinkCustodianResponse, Ci as POLKADOT_SPEC, Cn as WorkspaceRulesResponse, Cr as UserRegistrationChallenge, Ct as PortfolioStatusFilter, D as zTradelinkCustodianResponse, Di as ETHEREUM_SPEC, Dn as EntityResponse, Dr as zPsdPairingInputData, Dt as zPortfolioAdminResponse, E as TradelinkSettlementWithAccountAndExchangeInfoResponse, Ei as GENERIC_SPEC, En as zWorkspaceRulesResponse, Er as zPsdPairingData, Et as PortfoliosByAccountIdsResponse, F as RequestSortBy, Fi as zStakingProvisioning, Fn as zOidcConfig, Fr as HsmObjectType, Ft as zPortfoliosByAccountIdsInput, G as zSignMessageRequestInput, Gi as ClaimedRole, Gn as fetchAllPages, Gr as zAccountResponse, Gt as AllowedActionsResponse, H as zEnsureNameAvailableInput, Hi as AllowedAction, Hn as SortOrder, Hr as AccountSortBy, Ht as PolicySortBy, I as VaultRequestCreateInput, Ii as NetworkFamily, In as AuthResponse, Ir as ObjectsContentResponse, It as zPortfoliosByAccountIdsResponse, J as CreateTradelinkOrgEntityInput, Jn as stableOrdering, Jr as zStake, Jt as zAllowedResourcesResponse, K as zVaultRequestCreateInput, Kn as paginate, Kr as zAccountSortBy, Kt as AllowedResourcesResponse, L as VaultRequestResponse, Li as zCommonLiveData, Ln as zAuthResponse, Lr as ObjectsVersionResponse, Lt as PORTFOLIO_NAME_MAX_LENGTH, M as ChallengeResponse, Mi as BITCOIN_SPEC, Mn as zPsdAuthChallengeData, Mr as zUserRegistrationDeviceData, Mt as zPortfolioStatusFilter, N as EnsureNameAvailableInput, Ni as BitcoinLikeBalance, Nn as OidcConfig, Nr as GetObjectsInfoResponse, Nt as zPortfolioSummary, O as zTradelinkEntityResponse, Oi as CARDANO_SPEC, On as EntitySortBy, Or as zPsdSignature, Ot as zPortfolioCreateInput, P as RequestDataOf, Pi as StakingProvisioning, Pn as zExchangeCredentialsResponse, Pr as HSM_OBJECT_TYPES, Pt as zPortfolioUpdateInput, Q as TradelinkOrgEntityResponse, Qi as OutgoingTransactionStatus, Qn as zPaginated, Qr as AccountStakingFields, Qt as OnboardingOpts, R as genTransactionSchemas, Ri as zTransactionStatus, Rn as AppRouter, Rr as VersionedObjectInfo, Rt as PortfolioAppliedState, S as zApiUserCredentialsResponse, Si as RIPPLE_SPEC, Sn as WorkspaceRuleResponse, Sr as PubKey, St as PortfolioSortBy, T as TradelinkNetworkResponse, Ti as isErc20Address, Tn as zWorkspaceRuleResponse, Tr as UserRegistrationDeviceData, Tt as PortfolioUpdateInput, U as zRequestSortBy, Ui as AuditLogType, Un as emptyPage, Ur as zAccountFreshAddress, Ut as zPolicyResponse, V as zCreateClassicAccountWithPolicyIdInput, Vi as AdminPermission, Vn as Paginated, Vr as AccountResponse, Vt as PolicyResponse, W as zSignDigestsRequestInput, Wi as ChallengeType, Wn as fetchAllCursorPages, Wr as zAccountLiveDataResponse, Wt as zPolicySortBy, X as PledgeResponse, Xi as OnboardedUserRole, Xn as zCursorQuery, Xr as zStakingValidator, Xt as DeviceClaim, Y as DeleteTradelinkExchangeInput, Yi as MessageType, Yn as zCursorPaginated, Yr as zStakeSortBy, Yt as zOpenApiResourceType, Z as TradelinkNetworkBlueprintResponse, Zi as OnboardingStep, Zn as zPageQuery, Zr as zStakingValidatorSortBy, Zt as OnboardingFullState, _ as zUserSortBy, _i as TRON_SPEC, _n as GroupResponse, _r as HsmCertificate, _t as zReportResponse, a as WorkspaceResponse, aa as ResourceType, ai as TransactionType, an as zOnboardingFullState, ar as zCurrencyResponse, at as zTradelinkWhitelist, b as zUserRegistrationCreateInput, bi as STELLAR_SPEC, bn as zGroupSortBy, br as PsdPairingInputData, bt as PortfolioCreateInput, c as WhitelistSortBy, ca as UserDeviceType, ci as getTxHsmProps, cn as zOnboardingSeedFragment, ct as Challenge, d as zWhitelistSortBy, da as zGovernableAction, di as zEstimatedFees, dn as zDeleteWebhookResponse, dr as zBitcoinUtxoResponse, dt as zEnsureNameAvailableOutput, ea as PsdModel, ei as SendOnlyTransactionData, en as OnboardingSeedFragment, er as AssetResponse, et as zCreateTradelinkOrgEntityInput, f as AdminResponse, fi as zNetworkAssetFields, fn as zWebhookResponse, fr as zCantonPreApprovalStateResponse, ft as ReportDownloadUrlResponse, g as zUserResponse, gi as zTransactionType, gn as zAuditLogSortBy, gr as ApiChallenge, gt as zReportInput, h as zAdminResponse, hi as zTransactionResponse, hn as zAuditLogResponse, hr as zSignedMessageResponse, ht as zReportDownloadUrlResponse, i as WebhooksResponse, ia as RequestType, ii as TransactionResponse, in as zDeviceClaim, ir as zAssetResponse, it as zTradelinkOrgEntityResponse, j as ApproveVaultRequestInput, ji as zCantonTransferProposal, jn as PsdAuthChallengeData, jr as zUserRegistrationChallengeResponse, jt as zPortfolioSortBy, k as zTradelinkNetworkResponse, ki as CANTON_SPEC, kn as zEntityResponse, kr as zPubKey, kt as zPortfolioHistoryEntryResponse, l as zWhitelistAddressResponse, la as UserRole, li as zAccountLiveData, ln as zWrappingKeyFragmentInput, lt as EnsureNameAvailableOutput, m as UserSortBy, mi as zTransactionData, mn as AuditLogSortBy, mr as zTransactionWithMetaResponse, mt as ReportResponse, n as DeleteWebhookResponse, na as RequestReviewStatus, ni as TransactionData, nn as WrappingKeyProvisioningEphemeralPubKey, nr as TokenResponse, nt as zPledgeResponse, o as zWorkspaceResponse, oa as RevaultMode, oi as TransactionTypeOf, on as zOnboardingId, or as zTokenResponse, ot as ReviewStepWithUsers, p as UserResponse, pi as zSendOnlyTransactionData, pn as AuditLogResponse, pr as zCantonTransferProposalResponse, pt as ReportInput, q as zVaultRequestResponse, qi as HsmHostingMode, qn as serializePage, qr as zBalance, qt as zAllowedActionsResponse, r as WebhookResponse, ra as RequestState, ri as TransactionDataOf, rn as WrappingKeyResponse, rr as zAssetCapabilitiesResponse, rt as zTradelinkNetworkBlueprintResponse, s as WhitelistResponse, sa as ReviewConfigType, si as convertTxToGovernableIntent, sn as zOnboardingOpts, st as zReviewStepsArray, t as CreateWebhookPayload, ta as ReportStatus, ti as StakingDataOf, tn as WrappingKeyFragmentInput, tr as CurrencyResponse, tt as zDeleteTradelinkOrgEntityInput, u as zWhitelistResponse, ua as WhitelistType, ui as zAccountStakingFields, un as zCreateWebhookPayload, ur as TransactionWithMetaResponse, ut as SoftChallenge, v as UserRegistrationCreateInput, vi as TEZOS_SPEC, vn as GroupSortBy, vr as PsdChallenge, vt as zVisibleReportStatus, w as TradelinkEntityResponse, wi as HEDERA_SPEC, wn as zRootWorkspaceRuleResponse, wr as UserRegistrationChallengeResponse, wt as PortfolioSummary, x as zUserRegistrationResponse, xi as SOLANA_SPEC, xn as RootWorkspaceRuleResponse, xr as PsdSignature, xt as PortfolioHistoryEntryResponse, y as UserRegistrationResponse, yi as SUI_SPEC, yn as zGroupResponse, yr as PsdPairingData, yt as PortfolioAdminResponse, z as zApproveVaultRequestInput, zi as AccountType, zn as CursorPaginated, zr as AccountFreshAddress, zt as normalizePortfolioName } from "./app-lib-DWFMCgpN.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 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 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
|
-
|
|
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
|
|
1
|
+
import { Bi as ActivationStatus, Fn as zOidcConfig, Ji as MaintenanceMode, Ki as GateUserType, ca as UserDeviceType, cr as ActivityTracer, la as UserRole, lr as ExtendedPrismaClient, oa as RevaultMode, sr as RateLimitMetricsMeta } from "../app-lib-DWFMCgpN.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;
|
|
@@ -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;
|
|
@@ -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;
|