@ledgerhq/revault-api 1.49.0 → 1.51.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-types-CPQeirCC.d.mts → app-types-C_8ozawx.d.mts} +18 -32
- package/lib/fakes.d.mts +1 -7
- package/lib/fakes.mjs +21 -28
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +236 -83
- package/package.json +4 -4
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-C_8ozawx.mjs';
|
|
15
|
+
export { a as AccountFreshAddress, b as AccountLiveDataResponse, c as AccountResponse, d as AccountSortBy, Q as AdminResponse, H as ApproveVaultRequestInput, L as Challenge, D as ChallengeResponse, C as CurrencyResponse, K as EnsureNameAvailableInput, M as EnsureNameAvailableOutput, G as GroupResponse, u as GroupSortBy, R as RequestSortBy, S as SoftChallenge, n as TokenResponse, T as TransactionResponse, U as UserResponse, X as UserSortBy, V as VaultRequestCreateInput, x as VaultRequestResponse, _ as WhitelistResponse, a0 as WhitelistSortBy, E as genTransactionSchemas, z as zAccountFreshAddress, e as zAccountLiveDataResponse, f as zAccountResponse, g as zAccountSortBy, P as zAdminResponse, F as zApproveVaultRequestInput, o as zAssetCapabilitiesResponse, p as zAssetResponse, h as zBalance, B as zChallengeResponse, q as zCurrencyResponse, J as zEnsureNameAvailableInput, N as zEnsureNameAvailableOutput, m as zEstimateFeesResponse, s as zGroupResponse, t as zGroupSortBy, y as zRequestSortBy, I as zRequestTaskResponse, i as zStake, j as zStakeSortBy, k as zStakingValidator, l as zStakingValidatorSortBy, r as zTokenResponse, O as zUserResponse, W as zUserSortBy, v as zVaultRequestCreateInput, w as zVaultRequestResponse, Y as zWhitelistAddressResponse, Z as zWhitelistResponse, $ as zWhitelistSortBy } from './app-types-C_8ozawx.mjs';
|
|
16
16
|
|
|
17
17
|
declare const zGovernableAction: z$1.ZodEnum<{
|
|
18
18
|
SEND: "SEND";
|
|
@@ -202,7 +202,6 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
|
|
|
202
202
|
CANTON_LIKE_WITHDRAW: "CANTON_LIKE_WITHDRAW";
|
|
203
203
|
CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
|
|
204
204
|
CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
|
|
205
|
-
CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
|
|
206
205
|
}>;
|
|
207
206
|
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
208
207
|
note: z__default.ZodNullable<z__default.ZodObject<{
|
|
@@ -367,6 +366,7 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
|
|
|
367
366
|
HEDERA_LIKE_SEND_TOKEN: "HEDERA_LIKE_SEND_TOKEN";
|
|
368
367
|
HEDERA_LIKE_RECEIVE_TOKEN: "HEDERA_LIKE_RECEIVE_TOKEN";
|
|
369
368
|
HEDERA_LIKE_STAKE: "HEDERA_LIKE_STAKE";
|
|
369
|
+
HEDERA_LIKE_UNSTAKE: "HEDERA_LIKE_UNSTAKE";
|
|
370
370
|
}>;
|
|
371
371
|
note: z__default.ZodNullable<z__default.ZodObject<{
|
|
372
372
|
title: z__default.ZodString;
|
|
@@ -609,7 +609,6 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
|
|
|
609
609
|
CANTON_LIKE_WITHDRAW: "CANTON_LIKE_WITHDRAW";
|
|
610
610
|
CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
|
|
611
611
|
CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
|
|
612
|
-
CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
|
|
613
612
|
}>;
|
|
614
613
|
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
615
614
|
note: z__default.ZodNullable<z__default.ZodObject<{
|
|
@@ -774,6 +773,7 @@ declare const zTransactionWithMetaResponse: z__default.ZodDiscriminatedUnion<[z_
|
|
|
774
773
|
HEDERA_LIKE_SEND_TOKEN: "HEDERA_LIKE_SEND_TOKEN";
|
|
775
774
|
HEDERA_LIKE_RECEIVE_TOKEN: "HEDERA_LIKE_RECEIVE_TOKEN";
|
|
776
775
|
HEDERA_LIKE_STAKE: "HEDERA_LIKE_STAKE";
|
|
776
|
+
HEDERA_LIKE_UNSTAKE: "HEDERA_LIKE_UNSTAKE";
|
|
777
777
|
}>;
|
|
778
778
|
note: z__default.ZodNullable<z__default.ZodObject<{
|
|
779
779
|
title: z__default.ZodString;
|
|
@@ -1639,7 +1639,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1639
1639
|
deviceUserId: string;
|
|
1640
1640
|
id: string;
|
|
1641
1641
|
workspaceName: string;
|
|
1642
|
-
state: "INITIAL" | "PENDING" | "COMPLETED";
|
|
1642
|
+
state: "INITIAL" | "PENDING" | "COMPLETED" | "CONSUMED";
|
|
1643
1643
|
}[];
|
|
1644
1644
|
meta: {
|
|
1645
1645
|
[x: string]: unknown;
|
|
@@ -1676,7 +1676,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1676
1676
|
deviceUserId: string;
|
|
1677
1677
|
id: string;
|
|
1678
1678
|
workspaceName: string;
|
|
1679
|
-
state: "INITIAL" | "PENDING" | "COMPLETED";
|
|
1679
|
+
state: "INITIAL" | "PENDING" | "COMPLETED" | "CONSUMED";
|
|
1680
1680
|
};
|
|
1681
1681
|
meta: {
|
|
1682
1682
|
[x: string]: unknown;
|
|
@@ -1783,7 +1783,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1783
1783
|
deviceUserId: string;
|
|
1784
1784
|
id: string;
|
|
1785
1785
|
workspaceName: string;
|
|
1786
|
-
state: "INITIAL" | "PENDING" | "COMPLETED";
|
|
1786
|
+
state: "INITIAL" | "PENDING" | "COMPLETED" | "CONSUMED";
|
|
1787
1787
|
};
|
|
1788
1788
|
meta: {
|
|
1789
1789
|
[x: string]: unknown;
|
|
@@ -1846,7 +1846,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1846
1846
|
deviceUserId: string;
|
|
1847
1847
|
id: string;
|
|
1848
1848
|
workspaceName: string;
|
|
1849
|
-
state: "INITIAL" | "PENDING" | "COMPLETED";
|
|
1849
|
+
state: "INITIAL" | "PENDING" | "COMPLETED" | "CONSUMED";
|
|
1850
1850
|
};
|
|
1851
1851
|
meta: {
|
|
1852
1852
|
[x: string]: unknown;
|
|
@@ -1880,7 +1880,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
1880
1880
|
deviceUserId: string;
|
|
1881
1881
|
id: string;
|
|
1882
1882
|
workspaceName: string;
|
|
1883
|
-
state: "INITIAL" | "PENDING" | "COMPLETED";
|
|
1883
|
+
state: "INITIAL" | "PENDING" | "COMPLETED" | "CONSUMED";
|
|
1884
1884
|
}[];
|
|
1885
1885
|
meta: {
|
|
1886
1886
|
[x: string]: unknown;
|
|
@@ -2912,7 +2912,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
2912
2912
|
fee: string;
|
|
2913
2913
|
senders: string[];
|
|
2914
2914
|
recipients: string[];
|
|
2915
|
-
type: "CANTON_LIKE_SEND" | "CANTON_LIKE_SEND_TOKEN" | "CANTON_LIKE_WITHDRAW" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_PRE_APPROVAL"
|
|
2915
|
+
type: "CANTON_LIKE_SEND" | "CANTON_LIKE_SEND_TOKEN" | "CANTON_LIKE_WITHDRAW" | "CANTON_LIKE_RECEIVE" | "CANTON_LIKE_PRE_APPROVAL";
|
|
2916
2916
|
reason: string | null;
|
|
2917
2917
|
note: {
|
|
2918
2918
|
title: string;
|
|
@@ -3034,7 +3034,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3034
3034
|
fee: string;
|
|
3035
3035
|
senders: string[];
|
|
3036
3036
|
recipients: string[];
|
|
3037
|
-
type: "HEDERA_LIKE_SEND" | "HEDERA_LIKE_RECEIVE" | "HEDERA_LIKE_SEND_TOKEN" | "HEDERA_LIKE_RECEIVE_TOKEN" | "HEDERA_LIKE_STAKE";
|
|
3037
|
+
type: "HEDERA_LIKE_SEND" | "HEDERA_LIKE_RECEIVE" | "HEDERA_LIKE_SEND_TOKEN" | "HEDERA_LIKE_RECEIVE_TOKEN" | "HEDERA_LIKE_STAKE" | "HEDERA_LIKE_UNSTAKE";
|
|
3038
3038
|
note: {
|
|
3039
3039
|
title: string;
|
|
3040
3040
|
content: string;
|
|
@@ -3258,12 +3258,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
3258
3258
|
currency: string;
|
|
3259
3259
|
recipient: string;
|
|
3260
3260
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
3261
|
-
} | {
|
|
3262
|
-
amount: string;
|
|
3263
|
-
currency: string;
|
|
3264
|
-
maxFee: string | null;
|
|
3265
|
-
recipient: string;
|
|
3266
|
-
type: "CANTON_LIKE_TAP";
|
|
3267
3261
|
} | {
|
|
3268
3262
|
amount: string;
|
|
3269
3263
|
currency: string;
|
|
@@ -5893,6 +5887,8 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
5893
5887
|
pendingBy?: string | undefined;
|
|
5894
5888
|
sortBy?: "createdAt" | "updatedAt" | "expiresAt" | "state" | undefined;
|
|
5895
5889
|
sortOrder?: "asc" | "desc" | undefined;
|
|
5890
|
+
fromDate?: unknown;
|
|
5891
|
+
toDate?: unknown;
|
|
5896
5892
|
};
|
|
5897
5893
|
output: {
|
|
5898
5894
|
page: number;
|
|
@@ -6878,12 +6874,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6878
6874
|
currency: string;
|
|
6879
6875
|
recipient: string;
|
|
6880
6876
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
6881
|
-
} | {
|
|
6882
|
-
amount: string;
|
|
6883
|
-
currency: string;
|
|
6884
|
-
maxFee: string | null;
|
|
6885
|
-
recipient: string;
|
|
6886
|
-
type: "CANTON_LIKE_TAP";
|
|
6887
6877
|
} | {
|
|
6888
6878
|
amount: string;
|
|
6889
6879
|
currency: string;
|
|
@@ -9399,12 +9389,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
9399
9389
|
currency: string;
|
|
9400
9390
|
recipient: string;
|
|
9401
9391
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
9402
|
-
} | {
|
|
9403
|
-
amount: string;
|
|
9404
|
-
currency: string;
|
|
9405
|
-
maxFee: string | null;
|
|
9406
|
-
recipient: string;
|
|
9407
|
-
type: "CANTON_LIKE_TAP";
|
|
9408
9392
|
} | {
|
|
9409
9393
|
amount: string;
|
|
9410
9394
|
currency: string;
|
|
@@ -11590,12 +11574,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
11590
11574
|
currency: string;
|
|
11591
11575
|
recipient: string;
|
|
11592
11576
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
11593
|
-
} | {
|
|
11594
|
-
amount: string;
|
|
11595
|
-
currency: string;
|
|
11596
|
-
maxFee: string | null;
|
|
11597
|
-
recipient: string;
|
|
11598
|
-
type: "CANTON_LIKE_TAP";
|
|
11599
11577
|
} | {
|
|
11600
11578
|
amount: string;
|
|
11601
11579
|
currency: string;
|
|
@@ -13293,12 +13271,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
13293
13271
|
currency: string;
|
|
13294
13272
|
recipient: string;
|
|
13295
13273
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
13296
|
-
} | {
|
|
13297
|
-
amount: string;
|
|
13298
|
-
currency: string;
|
|
13299
|
-
maxFee: string | null;
|
|
13300
|
-
recipient: string;
|
|
13301
|
-
type: "CANTON_LIKE_TAP";
|
|
13302
13274
|
} | {
|
|
13303
13275
|
amount: string;
|
|
13304
13276
|
currency: string;
|
|
@@ -15207,12 +15179,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
15207
15179
|
currency: string;
|
|
15208
15180
|
recipient: string;
|
|
15209
15181
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
15210
|
-
} | {
|
|
15211
|
-
amount: string;
|
|
15212
|
-
currency: string;
|
|
15213
|
-
maxFee: string | null;
|
|
15214
|
-
recipient: string;
|
|
15215
|
-
type: "CANTON_LIKE_TAP";
|
|
15216
15182
|
};
|
|
15217
15183
|
};
|
|
15218
15184
|
id: string;
|
|
@@ -16255,12 +16221,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
16255
16221
|
currency: string;
|
|
16256
16222
|
recipient: string;
|
|
16257
16223
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
16258
|
-
} | {
|
|
16259
|
-
amount: string;
|
|
16260
|
-
currency: string;
|
|
16261
|
-
maxFee: string | null;
|
|
16262
|
-
recipient: string;
|
|
16263
|
-
type: "CANTON_LIKE_TAP";
|
|
16264
16224
|
} | {
|
|
16265
16225
|
amount: string;
|
|
16266
16226
|
currency: string;
|
|
@@ -18778,12 +18738,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
18778
18738
|
currency: string;
|
|
18779
18739
|
recipient: string;
|
|
18780
18740
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
18781
|
-
} | {
|
|
18782
|
-
amount: string;
|
|
18783
|
-
currency: string;
|
|
18784
|
-
maxFee: string | null;
|
|
18785
|
-
recipient: string;
|
|
18786
|
-
type: "CANTON_LIKE_TAP";
|
|
18787
18741
|
} | {
|
|
18788
18742
|
amount: string;
|
|
18789
18743
|
currency: string;
|
|
@@ -21303,12 +21257,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
21303
21257
|
currency: string;
|
|
21304
21258
|
recipient: string;
|
|
21305
21259
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
21306
|
-
} | {
|
|
21307
|
-
amount: string;
|
|
21308
|
-
currency: string;
|
|
21309
|
-
maxFee: string | null;
|
|
21310
|
-
recipient: string;
|
|
21311
|
-
type: "CANTON_LIKE_TAP";
|
|
21312
21260
|
} | {
|
|
21313
21261
|
amount: string;
|
|
21314
21262
|
currency: string;
|
|
@@ -23826,12 +23774,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
23826
23774
|
currency: string;
|
|
23827
23775
|
recipient: string;
|
|
23828
23776
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
23829
|
-
} | {
|
|
23830
|
-
amount: string;
|
|
23831
|
-
currency: string;
|
|
23832
|
-
maxFee: string | null;
|
|
23833
|
-
recipient: string;
|
|
23834
|
-
type: "CANTON_LIKE_TAP";
|
|
23835
23777
|
} | {
|
|
23836
23778
|
amount: string;
|
|
23837
23779
|
currency: string;
|
|
@@ -26345,12 +26287,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
26345
26287
|
currency: string;
|
|
26346
26288
|
recipient: string;
|
|
26347
26289
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
26348
|
-
} | {
|
|
26349
|
-
amount: string;
|
|
26350
|
-
currency: string;
|
|
26351
|
-
maxFee: string | null;
|
|
26352
|
-
recipient: string;
|
|
26353
|
-
type: "CANTON_LIKE_TAP";
|
|
26354
26290
|
} | {
|
|
26355
26291
|
amount: string;
|
|
26356
26292
|
currency: string;
|
|
@@ -27912,6 +27848,37 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
27912
27848
|
};
|
|
27913
27849
|
} & RateLimitMetricsMeta;
|
|
27914
27850
|
}>;
|
|
27851
|
+
ensureNameAvailable: _trpc_server.TRPCQueryProcedure<{
|
|
27852
|
+
input: {
|
|
27853
|
+
objectType: "Account" | "Group" | "Policy" | "Whitelist";
|
|
27854
|
+
name: string;
|
|
27855
|
+
excludeId?: string | undefined;
|
|
27856
|
+
};
|
|
27857
|
+
output: {
|
|
27858
|
+
available: boolean;
|
|
27859
|
+
reason?: string | undefined;
|
|
27860
|
+
};
|
|
27861
|
+
meta: {
|
|
27862
|
+
[x: string]: unknown;
|
|
27863
|
+
} & {
|
|
27864
|
+
openapi?: {
|
|
27865
|
+
enabled?: boolean;
|
|
27866
|
+
method: trpc_to_openapi.OpenApiMethod;
|
|
27867
|
+
path: `/${string}`;
|
|
27868
|
+
operationId?: string;
|
|
27869
|
+
summary?: string;
|
|
27870
|
+
description?: string;
|
|
27871
|
+
protect?: boolean;
|
|
27872
|
+
tags?: string[];
|
|
27873
|
+
contentTypes?: trpc_to_openapi.OpenApiContentType[];
|
|
27874
|
+
deprecated?: boolean;
|
|
27875
|
+
requestHeaders?: z.ZodObject;
|
|
27876
|
+
responseHeaders?: z.ZodObject;
|
|
27877
|
+
successDescription?: string;
|
|
27878
|
+
errorResponses?: number[] | Record<number, string>;
|
|
27879
|
+
};
|
|
27880
|
+
} & RateLimitMetricsMeta;
|
|
27881
|
+
}>;
|
|
27915
27882
|
}>>;
|
|
27916
27883
|
onboarding: _trpc_server.TRPCBuiltRouter<{
|
|
27917
27884
|
ctx: {
|
|
@@ -29497,6 +29464,197 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
29497
29464
|
};
|
|
29498
29465
|
} & RateLimitMetricsMeta;
|
|
29499
29466
|
}>;
|
|
29467
|
+
resetWrappingKeyProvisioning: _trpc_server.TRPCMutationProcedure<{
|
|
29468
|
+
input: {
|
|
29469
|
+
onboardingId: string;
|
|
29470
|
+
};
|
|
29471
|
+
output: {
|
|
29472
|
+
id: string;
|
|
29473
|
+
workspaceName: string;
|
|
29474
|
+
step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_WRAPPING_KEY_PROVISIONING" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_WORKSPACE_INITIALIZATION";
|
|
29475
|
+
claimedDevices: {
|
|
29476
|
+
pubKey: string;
|
|
29477
|
+
deviceUserId: string;
|
|
29478
|
+
deviceName: string;
|
|
29479
|
+
role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
|
|
29480
|
+
}[];
|
|
29481
|
+
wrappingKey: {
|
|
29482
|
+
ephemeralPubKey: string;
|
|
29483
|
+
ephemeralCertificate: {
|
|
29484
|
+
codeHash: string;
|
|
29485
|
+
attestationPub: string;
|
|
29486
|
+
certificate: string;
|
|
29487
|
+
signature: string;
|
|
29488
|
+
};
|
|
29489
|
+
fragments: {
|
|
29490
|
+
pubKey: string;
|
|
29491
|
+
ephemeralPubKey: string;
|
|
29492
|
+
ephemeralCertificate: {
|
|
29493
|
+
codeHash: string;
|
|
29494
|
+
attestationPub: string;
|
|
29495
|
+
certificate: string;
|
|
29496
|
+
signature: string;
|
|
29497
|
+
};
|
|
29498
|
+
blob: string;
|
|
29499
|
+
}[];
|
|
29500
|
+
} | null;
|
|
29501
|
+
masterAdmins: {
|
|
29502
|
+
name: string;
|
|
29503
|
+
psdModel: "BLUE" | "STAX";
|
|
29504
|
+
pubKey: string;
|
|
29505
|
+
registrationChallenge: {
|
|
29506
|
+
challenge: string;
|
|
29507
|
+
ephemeralPublicKey: string;
|
|
29508
|
+
ephemeralPublicKeyAttestation: {
|
|
29509
|
+
codeHash: string;
|
|
29510
|
+
attestationPub: string;
|
|
29511
|
+
certificate: string;
|
|
29512
|
+
signature: string;
|
|
29513
|
+
};
|
|
29514
|
+
handshake: string;
|
|
29515
|
+
handshakeAttestation: {
|
|
29516
|
+
codeHash: string;
|
|
29517
|
+
attestationPub: string;
|
|
29518
|
+
certificate: string;
|
|
29519
|
+
signature: string;
|
|
29520
|
+
};
|
|
29521
|
+
u2fRegisterData: string;
|
|
29522
|
+
ciphertext: string;
|
|
29523
|
+
requestId: string;
|
|
29524
|
+
};
|
|
29525
|
+
registrationResponse: {
|
|
29526
|
+
certificate: {
|
|
29527
|
+
codeHash: string;
|
|
29528
|
+
attestationPub: string;
|
|
29529
|
+
certificate: string;
|
|
29530
|
+
signature: string;
|
|
29531
|
+
};
|
|
29532
|
+
u2fRegister: string;
|
|
29533
|
+
u2fKeyHandle: string;
|
|
29534
|
+
registerData: string;
|
|
29535
|
+
validationKey: string;
|
|
29536
|
+
pairingPayload: string;
|
|
29537
|
+
} | null;
|
|
29538
|
+
role: "MASTER_ADMIN";
|
|
29539
|
+
review: {
|
|
29540
|
+
challenge: {
|
|
29541
|
+
challengeType: "PSD";
|
|
29542
|
+
wActions: string[];
|
|
29543
|
+
handshake: string;
|
|
29544
|
+
handshakeAttestation: {
|
|
29545
|
+
codeHash: string;
|
|
29546
|
+
attestationPub: string;
|
|
29547
|
+
certificate: string;
|
|
29548
|
+
signature: string;
|
|
29549
|
+
};
|
|
29550
|
+
partitionId: string;
|
|
29551
|
+
};
|
|
29552
|
+
signature: string | null;
|
|
29553
|
+
} | null;
|
|
29554
|
+
}[];
|
|
29555
|
+
sharedOwners: {
|
|
29556
|
+
name: string;
|
|
29557
|
+
psdModel: "BLUE" | "STAX";
|
|
29558
|
+
pubKey: string;
|
|
29559
|
+
registrationChallenge: {
|
|
29560
|
+
challenge: string;
|
|
29561
|
+
ephemeralPublicKey: string;
|
|
29562
|
+
ephemeralPublicKeyAttestation: {
|
|
29563
|
+
codeHash: string;
|
|
29564
|
+
attestationPub: string;
|
|
29565
|
+
certificate: string;
|
|
29566
|
+
signature: string;
|
|
29567
|
+
};
|
|
29568
|
+
handshake: string;
|
|
29569
|
+
handshakeAttestation: {
|
|
29570
|
+
codeHash: string;
|
|
29571
|
+
attestationPub: string;
|
|
29572
|
+
certificate: string;
|
|
29573
|
+
signature: string;
|
|
29574
|
+
};
|
|
29575
|
+
u2fRegisterData: string;
|
|
29576
|
+
ciphertext: string;
|
|
29577
|
+
requestId: string;
|
|
29578
|
+
};
|
|
29579
|
+
registrationResponse: {
|
|
29580
|
+
certificate: {
|
|
29581
|
+
codeHash: string;
|
|
29582
|
+
attestationPub: string;
|
|
29583
|
+
certificate: string;
|
|
29584
|
+
signature: string;
|
|
29585
|
+
};
|
|
29586
|
+
u2fRegister: string;
|
|
29587
|
+
u2fKeyHandle: string;
|
|
29588
|
+
registerData: string;
|
|
29589
|
+
validationKey: string;
|
|
29590
|
+
pairingPayload: string;
|
|
29591
|
+
} | null;
|
|
29592
|
+
role: "SHARED_OWNER";
|
|
29593
|
+
review: {
|
|
29594
|
+
seedChallenge: {
|
|
29595
|
+
challengeType: "PSD";
|
|
29596
|
+
wActions: string[];
|
|
29597
|
+
handshake: string;
|
|
29598
|
+
handshakeAttestation: {
|
|
29599
|
+
codeHash: string;
|
|
29600
|
+
attestationPub: string;
|
|
29601
|
+
certificate: string;
|
|
29602
|
+
signature: string;
|
|
29603
|
+
};
|
|
29604
|
+
partitionId: string;
|
|
29605
|
+
kkHandshake: string;
|
|
29606
|
+
kkHandshakeAttestation: {
|
|
29607
|
+
codeHash: string;
|
|
29608
|
+
attestationPub: string;
|
|
29609
|
+
certificate: string;
|
|
29610
|
+
signature: string;
|
|
29611
|
+
};
|
|
29612
|
+
ephemeralPublicKey: string;
|
|
29613
|
+
certificate: {
|
|
29614
|
+
codeHash: string;
|
|
29615
|
+
attestationPub: string;
|
|
29616
|
+
certificate: string;
|
|
29617
|
+
signature: string;
|
|
29618
|
+
};
|
|
29619
|
+
blob: string;
|
|
29620
|
+
};
|
|
29621
|
+
seedFragment: {
|
|
29622
|
+
approverBlob: string;
|
|
29623
|
+
challengeResponse: string;
|
|
29624
|
+
handshake: string;
|
|
29625
|
+
handshakeAttestation: {
|
|
29626
|
+
codeHash: string;
|
|
29627
|
+
attestationPub: string;
|
|
29628
|
+
certificate: string;
|
|
29629
|
+
signature: string;
|
|
29630
|
+
};
|
|
29631
|
+
} | null;
|
|
29632
|
+
} | null;
|
|
29633
|
+
}[];
|
|
29634
|
+
createdAt: Date;
|
|
29635
|
+
completedAt: Date | null;
|
|
29636
|
+
};
|
|
29637
|
+
meta: {
|
|
29638
|
+
[x: string]: unknown;
|
|
29639
|
+
} & {
|
|
29640
|
+
openapi?: {
|
|
29641
|
+
enabled?: boolean;
|
|
29642
|
+
method: trpc_to_openapi.OpenApiMethod;
|
|
29643
|
+
path: `/${string}`;
|
|
29644
|
+
operationId?: string;
|
|
29645
|
+
summary?: string;
|
|
29646
|
+
description?: string;
|
|
29647
|
+
protect?: boolean;
|
|
29648
|
+
tags?: string[];
|
|
29649
|
+
contentTypes?: trpc_to_openapi.OpenApiContentType[];
|
|
29650
|
+
deprecated?: boolean;
|
|
29651
|
+
requestHeaders?: z.ZodObject;
|
|
29652
|
+
responseHeaders?: z.ZodObject;
|
|
29653
|
+
successDescription?: string;
|
|
29654
|
+
errorResponses?: number[] | Record<number, string>;
|
|
29655
|
+
};
|
|
29656
|
+
} & RateLimitMetricsMeta;
|
|
29657
|
+
}>;
|
|
29500
29658
|
startMasterAdminsRegistration: _trpc_server.TRPCMutationProcedure<{
|
|
29501
29659
|
input: {
|
|
29502
29660
|
onboardingId: string;
|
|
@@ -34025,12 +34183,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
34025
34183
|
currency: string;
|
|
34026
34184
|
recipient: string;
|
|
34027
34185
|
type: "CANTON_LIKE_PRE_APPROVAL";
|
|
34028
|
-
} | {
|
|
34029
|
-
amount: string;
|
|
34030
|
-
currency: string;
|
|
34031
|
-
maxFee: string | null;
|
|
34032
|
-
recipient: string;
|
|
34033
|
-
type: "CANTON_LIKE_TAP";
|
|
34034
34186
|
} | {
|
|
34035
34187
|
amount: string;
|
|
34036
34188
|
currency: string;
|
|
@@ -35470,6 +35622,7 @@ declare const zUserRegistrationResponse: z$1.ZodObject<{
|
|
|
35470
35622
|
INITIAL: "INITIAL";
|
|
35471
35623
|
PENDING: "PENDING";
|
|
35472
35624
|
COMPLETED: "COMPLETED";
|
|
35625
|
+
CONSUMED: "CONSUMED";
|
|
35473
35626
|
}>;
|
|
35474
35627
|
}, z$1.core.$strip>;
|
|
35475
35628
|
type UserRegistrationResponse = z$1.infer<typeof zUserRegistrationResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/revault-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.51.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@faker-js/faker": "^9.9.0",
|
|
24
|
-
"fastify": "^5.7.
|
|
24
|
+
"fastify": "^5.7.4",
|
|
25
25
|
"invariant": "^2.2.4",
|
|
26
|
-
"socket.io": "^4.8.
|
|
26
|
+
"socket.io": "^4.8.3",
|
|
27
27
|
"@trpc/server": "11.8.0",
|
|
28
28
|
"trpc-to-openapi": "^3.1.0",
|
|
29
|
-
"zod": "^4.
|
|
29
|
+
"zod": "^4.3.6"
|
|
30
30
|
}
|
|
31
31
|
}
|