@ledgerhq/revault-api 1.43.1 → 1.43.2
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-types-C5PTn2QL.d.mts → app-types-TiTgl5lF.d.mts} +143 -1
- package/lib/fakes.d.mts +23 -3
- package/lib/fakes.mjs +1064 -26
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +22 -157
- package/package.json +1 -2
package/lib/index.d.mts
CHANGED
|
@@ -11,8 +11,8 @@ import * as _trpc_server_unstable_core_do_not_import from '@trpc/server/unstable
|
|
|
11
11
|
import * as fastify_types_type_provider from 'fastify/types/type-provider';
|
|
12
12
|
import * as http from 'http';
|
|
13
13
|
import * as fastify from 'fastify';
|
|
14
|
-
import { A as AssetResponse } from './app-types-
|
|
15
|
-
export { a as AccountFreshAddress, b as AccountLiveDataResponse, c as AccountResponse, d as AccountSortBy,
|
|
14
|
+
import { A as AssetResponse } from './app-types-TiTgl5lF.mjs';
|
|
15
|
+
export { a as AccountFreshAddress, b as AccountLiveDataResponse, c as AccountResponse, d as AccountSortBy, L as AdminResponse, H as ApproveVaultRequestInput, I as Challenge, D as ChallengeResponse, C as CurrencyResponse, G as GroupResponse, u as GroupSortBy, R as RequestSortBy, S as SoftChallenge, n as TokenResponse, T as TransactionResponse, U as UserResponse, N as UserSortBy, V as VaultRequestCreateInput, x as VaultRequestResponse, W as WhitelistResponse, X as WhitelistSortBy, E as genTransactionSchemas, z as zAccountFreshAddress, e as zAccountLiveDataResponse, f as zAccountResponse, g as zAccountSortBy, K as zAdminResponse, F as zApproveVaultRequestInput, o as zAssetCapabilitiesResponse, p as zAssetResponse, h as zBalance, B as zChallengeResponse, q as zCurrencyResponse, m as zEstimateFeesResponse, s as zGroupResponse, t as zGroupSortBy, y as zRequestSortBy, i as zStake, j as zStakeSortBy, k as zStakingValidator, l as zStakingValidatorSortBy, r as zTokenResponse, J as zUserResponse, M as zUserSortBy, v as zVaultRequestCreateInput, w as zVaultRequestResponse, O as zWhitelistAddressResponse, P as zWhitelistResponse, Q as zWhitelistSortBy } from './app-types-TiTgl5lF.mjs';
|
|
16
16
|
|
|
17
17
|
declare const zGovernableAction: z$1.ZodEnum<{
|
|
18
18
|
SEND: "SEND";
|
|
@@ -1926,12 +1926,12 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1926
1926
|
getAllowedActions: _trpc_server.TRPCQueryProcedure<{
|
|
1927
1927
|
input: {
|
|
1928
1928
|
userId?: string | undefined;
|
|
1929
|
-
resourceType?: "
|
|
1929
|
+
resourceType?: "Account" | "Entity" | "Group" | "WorkspaceRule" | "Policy" | "Whitelist" | "User" | "Workspace" | "TradelinkCustodian" | "TradelinkEntity" | "TradelinkPledge" | undefined;
|
|
1930
1930
|
resourceId?: string | undefined;
|
|
1931
1931
|
};
|
|
1932
1932
|
output: {
|
|
1933
1933
|
userId: string;
|
|
1934
|
-
allowedActions: ("SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "ACTIVATE_TOKEN" | "RECEIVE" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "TRADELINK_FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "CREATE_ACCOUNT_WITH_POLICY" | "
|
|
1934
|
+
allowedActions: ("SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "ACTIVATE_TOKEN" | "RECEIVE" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "TRADELINK_FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "CREATE_ACCOUNT_WITH_POLICY" | "READ" | "EDIT" | "TRADELINK_PLEDGE" | "TRADELINK_SETTLE")[];
|
|
1935
1935
|
};
|
|
1936
1936
|
meta: {
|
|
1937
1937
|
[x: string]: unknown;
|
|
@@ -1956,15 +1956,15 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1956
1956
|
}>;
|
|
1957
1957
|
findAllowedResources: _trpc_server.TRPCQueryProcedure<{
|
|
1958
1958
|
input: {
|
|
1959
|
-
action: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "ACTIVATE_TOKEN" | "RECEIVE" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "TRADELINK_FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "CREATE_ACCOUNT_WITH_POLICY" | "
|
|
1959
|
+
action: "SEND" | "STAKE" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "ACTIVATE_TOKEN" | "RECEIVE" | "SIGN_MESSAGE" | "SIGN_DIGESTS" | "TRADELINK_FORCE_UNPLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_WITHDRAW" | "TRADELINK_REPLEDGE" | "CREATE_ACCOUNT_WITH_POLICY" | "READ" | "EDIT" | "TRADELINK_PLEDGE" | "TRADELINK_SETTLE";
|
|
1960
1960
|
userId?: string | undefined;
|
|
1961
|
-
resourceType?: "
|
|
1961
|
+
resourceType?: "Account" | "Entity" | "Group" | "WorkspaceRule" | "Policy" | "Whitelist" | "User" | "Workspace" | "TradelinkCustodian" | "TradelinkEntity" | "TradelinkPledge" | undefined;
|
|
1962
1962
|
};
|
|
1963
1963
|
output: {
|
|
1964
1964
|
userId: string;
|
|
1965
1965
|
action: string;
|
|
1966
1966
|
resources: {
|
|
1967
|
-
resourceType: "
|
|
1967
|
+
resourceType: "Account" | "Entity" | "Group" | "WorkspaceRule" | "Policy" | "Whitelist" | "User" | "Workspace" | "TradelinkCustodian" | "TradelinkEntity" | "TradelinkPledge";
|
|
1968
1968
|
resourceId: string;
|
|
1969
1969
|
}[];
|
|
1970
1970
|
};
|
|
@@ -3605,6 +3605,9 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3605
3605
|
};
|
|
3606
3606
|
};
|
|
3607
3607
|
output: {
|
|
3608
|
+
type: "BITCOIN_LIKE";
|
|
3609
|
+
fee: string;
|
|
3610
|
+
} | {
|
|
3608
3611
|
type: "ETHEREUM_LIKE";
|
|
3609
3612
|
baseFees: string;
|
|
3610
3613
|
gasLimit: string;
|
|
@@ -27762,53 +27765,6 @@ declare const zWorkspaceRulesResponse: z__default.ZodObject<{
|
|
|
27762
27765
|
}, z__default.core.$strip>;
|
|
27763
27766
|
type WorkspaceRulesResponse = z__default.infer<typeof zWorkspaceRulesResponse>;
|
|
27764
27767
|
|
|
27765
|
-
declare const zGroupResponse: z__default.ZodObject<{
|
|
27766
|
-
id: z__default.ZodString;
|
|
27767
|
-
legacyId: z__default.ZodNumber;
|
|
27768
|
-
name: z__default.ZodString;
|
|
27769
|
-
description: z__default.ZodNullable<z__default.ZodString>;
|
|
27770
|
-
status: z__default.ZodEnum<{
|
|
27771
|
-
ACTIVE: "ACTIVE";
|
|
27772
|
-
INACTIVE: "INACTIVE";
|
|
27773
|
-
}>;
|
|
27774
|
-
members: z__default.ZodArray<z__default.ZodObject<{
|
|
27775
|
-
id: z__default.ZodString;
|
|
27776
|
-
legacyId: z__default.ZodNumber;
|
|
27777
|
-
legacyViewAll: z__default.ZodBoolean;
|
|
27778
|
-
workspaceName: z__default.ZodString;
|
|
27779
|
-
name: z__default.ZodString;
|
|
27780
|
-
deviceUserId: z__default.ZodNullable<z__default.ZodString>;
|
|
27781
|
-
deviceType: z__default.ZodEnum<{
|
|
27782
|
-
PSD: "PSD";
|
|
27783
|
-
SOFT_PSD: "SOFT_PSD";
|
|
27784
|
-
API: "API";
|
|
27785
|
-
}>;
|
|
27786
|
-
role: z__default.ZodEnum<{
|
|
27787
|
-
ADMIN: "ADMIN";
|
|
27788
|
-
OPERATOR: "OPERATOR";
|
|
27789
|
-
READ_ONLY_API_KEY: "READ_ONLY_API_KEY";
|
|
27790
|
-
}>;
|
|
27791
|
-
pubKey: z__default.ZodString;
|
|
27792
|
-
status: z__default.ZodEnum<{
|
|
27793
|
-
ACTIVE: "ACTIVE";
|
|
27794
|
-
INACTIVE: "INACTIVE";
|
|
27795
|
-
}>;
|
|
27796
|
-
isSuspended: z__default.ZodBoolean;
|
|
27797
|
-
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
27798
|
-
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
27799
|
-
}, z__default.core.$strip>>;
|
|
27800
|
-
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
27801
|
-
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
27802
|
-
}, z__default.core.$strip>;
|
|
27803
|
-
type GroupResponse = z__default.infer<typeof zGroupResponse>;
|
|
27804
|
-
declare const zGroupSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
27805
|
-
status: "status";
|
|
27806
|
-
name: "name";
|
|
27807
|
-
createdAt: "createdAt";
|
|
27808
|
-
updatedAt: "updatedAt";
|
|
27809
|
-
}>>;
|
|
27810
|
-
type GroupSortBy = z__default.infer<typeof zGroupSortBy>;
|
|
27811
|
-
|
|
27812
27768
|
/** Options to start an onboarding. */
|
|
27813
27769
|
declare const zOnboardingOpts: z$1.ZodObject<{
|
|
27814
27770
|
workspaceName: z$1.ZodString;
|
|
@@ -28131,16 +28087,17 @@ declare const zAllowedResourcesResponse: z$1.ZodObject<{
|
|
|
28131
28087
|
action: z$1.ZodString;
|
|
28132
28088
|
resources: z$1.ZodArray<z$1.ZodObject<{
|
|
28133
28089
|
resourceType: z$1.ZodEnum<{
|
|
28134
|
-
|
|
28135
|
-
|
|
28136
|
-
|
|
28137
|
-
|
|
28138
|
-
|
|
28139
|
-
|
|
28140
|
-
|
|
28141
|
-
|
|
28142
|
-
|
|
28143
|
-
|
|
28090
|
+
Account: "Account";
|
|
28091
|
+
Entity: "Entity";
|
|
28092
|
+
Group: "Group";
|
|
28093
|
+
Policy: "Policy";
|
|
28094
|
+
Whitelist: "Whitelist";
|
|
28095
|
+
TradelinkCustodian: "TradelinkCustodian";
|
|
28096
|
+
TradelinkEntity: "TradelinkEntity";
|
|
28097
|
+
TradelinkPledge: "TradelinkPledge";
|
|
28098
|
+
User: "User";
|
|
28099
|
+
Workspace: "Workspace";
|
|
28100
|
+
WorkspaceRule: "WorkspaceRule";
|
|
28144
28101
|
}>;
|
|
28145
28102
|
resourceId: z$1.ZodString;
|
|
28146
28103
|
}, z$1.core.$strip>>;
|
|
@@ -28496,98 +28453,6 @@ declare const zUserRegistrationResponse: z$1.ZodObject<{
|
|
|
28496
28453
|
}, z$1.core.$strip>;
|
|
28497
28454
|
type UserRegistrationResponse = z$1.infer<typeof zUserRegistrationResponse>;
|
|
28498
28455
|
|
|
28499
|
-
declare const zUserResponse: z__default.ZodObject<{
|
|
28500
|
-
id: z__default.ZodString;
|
|
28501
|
-
legacyId: z__default.ZodNumber;
|
|
28502
|
-
legacyViewAll: z__default.ZodBoolean;
|
|
28503
|
-
workspaceName: z__default.ZodString;
|
|
28504
|
-
name: z__default.ZodString;
|
|
28505
|
-
deviceUserId: z__default.ZodNullable<z__default.ZodString>;
|
|
28506
|
-
deviceType: z__default.ZodEnum<{
|
|
28507
|
-
PSD: "PSD";
|
|
28508
|
-
SOFT_PSD: "SOFT_PSD";
|
|
28509
|
-
API: "API";
|
|
28510
|
-
}>;
|
|
28511
|
-
role: z__default.ZodEnum<{
|
|
28512
|
-
ADMIN: "ADMIN";
|
|
28513
|
-
OPERATOR: "OPERATOR";
|
|
28514
|
-
READ_ONLY_API_KEY: "READ_ONLY_API_KEY";
|
|
28515
|
-
}>;
|
|
28516
|
-
pubKey: z__default.ZodString;
|
|
28517
|
-
status: z__default.ZodEnum<{
|
|
28518
|
-
ACTIVE: "ACTIVE";
|
|
28519
|
-
INACTIVE: "INACTIVE";
|
|
28520
|
-
}>;
|
|
28521
|
-
isSuspended: z__default.ZodBoolean;
|
|
28522
|
-
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
28523
|
-
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
28524
|
-
}, z__default.core.$strip>;
|
|
28525
|
-
type UserResponse = z__default.infer<typeof zUserResponse>;
|
|
28526
|
-
declare const zAdminResponse: z__default.ZodObject<{
|
|
28527
|
-
id: z__default.ZodString;
|
|
28528
|
-
legacyId: z__default.ZodNumber;
|
|
28529
|
-
legacyViewAll: z__default.ZodBoolean;
|
|
28530
|
-
workspaceName: z__default.ZodString;
|
|
28531
|
-
name: z__default.ZodString;
|
|
28532
|
-
deviceUserId: z__default.ZodNullable<z__default.ZodString>;
|
|
28533
|
-
deviceType: z__default.ZodEnum<{
|
|
28534
|
-
PSD: "PSD";
|
|
28535
|
-
SOFT_PSD: "SOFT_PSD";
|
|
28536
|
-
API: "API";
|
|
28537
|
-
}>;
|
|
28538
|
-
pubKey: z__default.ZodString;
|
|
28539
|
-
status: z__default.ZodEnum<{
|
|
28540
|
-
ACTIVE: "ACTIVE";
|
|
28541
|
-
INACTIVE: "INACTIVE";
|
|
28542
|
-
}>;
|
|
28543
|
-
isSuspended: z__default.ZodBoolean;
|
|
28544
|
-
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
28545
|
-
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
28546
|
-
role: z__default.ZodLiteral<"ADMIN">;
|
|
28547
|
-
}, z__default.core.$strip>;
|
|
28548
|
-
type AdminResponse = z__default.infer<typeof zAdminResponse>;
|
|
28549
|
-
declare const zUserSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
28550
|
-
status: "status";
|
|
28551
|
-
name: "name";
|
|
28552
|
-
createdAt: "createdAt";
|
|
28553
|
-
updatedAt: "updatedAt";
|
|
28554
|
-
role: "role";
|
|
28555
|
-
}>>;
|
|
28556
|
-
type UserSortBy = z__default.infer<typeof zUserSortBy>;
|
|
28557
|
-
|
|
28558
|
-
declare const zWhitelistAddressResponse: z__default.ZodObject<{
|
|
28559
|
-
name: z__default.ZodString;
|
|
28560
|
-
currency: z__default.ZodString;
|
|
28561
|
-
address: z__default.ZodString;
|
|
28562
|
-
destinationTags: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
|
|
28563
|
-
}, z__default.core.$strip>;
|
|
28564
|
-
declare const zWhitelistResponse: z__default.ZodObject<{
|
|
28565
|
-
id: z__default.ZodString;
|
|
28566
|
-
legacyId: z__default.ZodNumber;
|
|
28567
|
-
name: z__default.ZodString;
|
|
28568
|
-
status: z__default.ZodEnum<{
|
|
28569
|
-
ACTIVE: "ACTIVE";
|
|
28570
|
-
INACTIVE: "INACTIVE";
|
|
28571
|
-
}>;
|
|
28572
|
-
addresses: z__default.ZodArray<z__default.ZodObject<{
|
|
28573
|
-
name: z__default.ZodString;
|
|
28574
|
-
currency: z__default.ZodString;
|
|
28575
|
-
address: z__default.ZodString;
|
|
28576
|
-
destinationTags: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
|
|
28577
|
-
}, z__default.core.$strip>>;
|
|
28578
|
-
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
28579
|
-
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
28580
|
-
description: z__default.ZodNullable<z__default.ZodString>;
|
|
28581
|
-
}, z__default.core.$strip>;
|
|
28582
|
-
type WhitelistResponse = z__default.infer<typeof zWhitelistResponse>;
|
|
28583
|
-
declare const zWhitelistSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
28584
|
-
status: "status";
|
|
28585
|
-
name: "name";
|
|
28586
|
-
createdAt: "createdAt";
|
|
28587
|
-
updatedAt: "updatedAt";
|
|
28588
|
-
}>>;
|
|
28589
|
-
type WhitelistSortBy = z__default.infer<typeof zWhitelistSortBy>;
|
|
28590
|
-
|
|
28591
28456
|
declare const zWorkspaceResponse: z__default.ZodObject<{
|
|
28592
28457
|
name: z__default.ZodString;
|
|
28593
28458
|
createdAt: z__default.ZodDate;
|
|
@@ -28654,4 +28519,4 @@ declare const emptyPage: <T>(paginationQuery: {
|
|
|
28654
28519
|
declare const fetchAllPages: <T>(fetchPage: (page: number) => Promise<Paginated<T>>) => Promise<T[]>;
|
|
28655
28520
|
declare const fetchAllCursorPages: <T>(fetchPage: (cursor: string | null) => Promise<CursorPaginated<T>>) => Promise<T[]>;
|
|
28656
28521
|
|
|
28657
|
-
export { type
|
|
28522
|
+
export { type AllowedActionsResponse, type AllowedResourcesResponse, type ApiChallenge, type AppRouter, AssetResponse, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeviceClaim, type EntityResponse, type EntitySortBy, type HsmCertificate, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type PsdChallenge, type PsdPairingData, type PsdPairingInputData, type PsdSignature, type PubKey, type ReviewStepWithUsers, type RootWorkspaceRuleResponse, type SortOrder, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionWithMetaResponse, type UserRegistrationChallenge, type UserRegistrationChallengeResponse, type UserRegistrationCreateInput, type UserRegistrationDeviceData, type UserRegistrationResponse, type WorkspaceResponse, type WorkspaceRuleResponse, type WorkspaceRulesResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, emptyPage, fetchAllCursorPages, fetchAllPages, paginate, serializePage, stableOrdering, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCantonPreApprovalStateResponse, zCantonTransferProposalResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeviceClaim, zEntityResponse, zEntitySortBy, zGovernableAction, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zPsdPairingData, zPsdPairingInputData, zPsdSignature, zPubKey, zReviewStepsArray, zRootWorkspaceRuleResponse, zSignedMessageResponse, zSortOrder, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationChallenge, zUserRegistrationChallengeResponse, zUserRegistrationCreateInput, zUserRegistrationDeviceData, zUserRegistrationResponse, zWorkspaceResponse, zWorkspaceRuleResponse, zWorkspaceRulesResponse, zWrappingKeyFragmentInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/revault-api",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
"@faker-js/faker": "^9.9.0",
|
|
24
24
|
"fastify": "^5.6.2",
|
|
25
25
|
"invariant": "^2.2.4",
|
|
26
|
-
"lodash": "^4.17.21",
|
|
27
26
|
"socket.io": "^4.8.1",
|
|
28
27
|
"@trpc/server": "11.7.2",
|
|
29
28
|
"trpc-to-openapi": "^3.1.0",
|