@ledgerhq/revault-api 1.50.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-CoSpdjR8.d.mts → app-types-C_8ozawx.d.mts} +17 -1
- package/lib/fakes.d.mts +1 -1
- package/lib/fakes.mjs +17 -7
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +224 -2
- 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";
|
|
@@ -27848,6 +27848,37 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
27848
27848
|
};
|
|
27849
27849
|
} & RateLimitMetricsMeta;
|
|
27850
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
|
+
}>;
|
|
27851
27882
|
}>>;
|
|
27852
27883
|
onboarding: _trpc_server.TRPCBuiltRouter<{
|
|
27853
27884
|
ctx: {
|
|
@@ -29433,6 +29464,197 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
29433
29464
|
};
|
|
29434
29465
|
} & RateLimitMetricsMeta;
|
|
29435
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
|
+
}>;
|
|
29436
29658
|
startMasterAdminsRegistration: _trpc_server.TRPCMutationProcedure<{
|
|
29437
29659
|
input: {
|
|
29438
29660
|
onboardingId: string;
|
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
|
}
|