@ledgerhq/revault-sdk 0.12.2 → 0.13.1

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.
@@ -1,6 +1,6 @@
1
1
  import { OnboardingFullStateResponse, OnboardingStep } from '@ledgerhq/revault-api';
2
2
  import { Logger } from './index.cjs';
3
- import { E as Engine, W as WithOnboarding } from './types-BYNH6EdK.cjs';
3
+ import { E as Engine, W as WithOnboarding } from './types-DVIS-vF0.cjs';
4
4
  import './types-CsvE9Mlb.cjs';
5
5
  import '@trpc/client';
6
6
  import '@trpc/server';
@@ -50,8 +50,8 @@ declare const STEPS: {
50
50
  role: "MASTER_ADMIN";
51
51
  psdModel: "BLUE" | "STAX";
52
52
  registrationChallenge: {
53
- requestId: string;
54
53
  challenge: string;
54
+ requestId: string;
55
55
  handshake: string;
56
56
  handshakeAttestation: {
57
57
  signature: string;
@@ -104,8 +104,8 @@ declare const STEPS: {
104
104
  role: "SHARED_OWNER";
105
105
  psdModel: "BLUE" | "STAX";
106
106
  registrationChallenge: {
107
- requestId: string;
108
107
  challenge: string;
108
+ requestId: string;
109
109
  handshake: string;
110
110
  handshakeAttestation: {
111
111
  signature: string;
@@ -222,8 +222,8 @@ declare const STEPS: {
222
222
  role: "MASTER_ADMIN";
223
223
  psdModel: "BLUE" | "STAX";
224
224
  registrationChallenge: {
225
- requestId: string;
226
225
  challenge: string;
226
+ requestId: string;
227
227
  handshake: string;
228
228
  handshakeAttestation: {
229
229
  signature: string;
@@ -276,8 +276,8 @@ declare const STEPS: {
276
276
  role: "SHARED_OWNER";
277
277
  psdModel: "BLUE" | "STAX";
278
278
  registrationChallenge: {
279
- requestId: string;
280
279
  challenge: string;
280
+ requestId: string;
281
281
  handshake: string;
282
282
  handshakeAttestation: {
283
283
  signature: string;
@@ -394,8 +394,8 @@ declare const STEPS: {
394
394
  role: "MASTER_ADMIN";
395
395
  psdModel: "BLUE" | "STAX";
396
396
  registrationChallenge: {
397
- requestId: string;
398
397
  challenge: string;
398
+ requestId: string;
399
399
  handshake: string;
400
400
  handshakeAttestation: {
401
401
  signature: string;
@@ -448,8 +448,8 @@ declare const STEPS: {
448
448
  role: "SHARED_OWNER";
449
449
  psdModel: "BLUE" | "STAX";
450
450
  registrationChallenge: {
451
- requestId: string;
452
451
  challenge: string;
452
+ requestId: string;
453
453
  handshake: string;
454
454
  handshakeAttestation: {
455
455
  signature: string;
@@ -566,8 +566,8 @@ declare const STEPS: {
566
566
  role: "MASTER_ADMIN";
567
567
  psdModel: "BLUE" | "STAX";
568
568
  registrationChallenge: {
569
- requestId: string;
570
569
  challenge: string;
570
+ requestId: string;
571
571
  handshake: string;
572
572
  handshakeAttestation: {
573
573
  signature: string;
@@ -620,8 +620,8 @@ declare const STEPS: {
620
620
  role: "SHARED_OWNER";
621
621
  psdModel: "BLUE" | "STAX";
622
622
  registrationChallenge: {
623
- requestId: string;
624
623
  challenge: string;
624
+ requestId: string;
625
625
  handshake: string;
626
626
  handshakeAttestation: {
627
627
  signature: string;
@@ -738,8 +738,8 @@ declare const STEPS: {
738
738
  role: "MASTER_ADMIN";
739
739
  psdModel: "BLUE" | "STAX";
740
740
  registrationChallenge: {
741
- requestId: string;
742
741
  challenge: string;
742
+ requestId: string;
743
743
  handshake: string;
744
744
  handshakeAttestation: {
745
745
  signature: string;
@@ -792,8 +792,8 @@ declare const STEPS: {
792
792
  role: "SHARED_OWNER";
793
793
  psdModel: "BLUE" | "STAX";
794
794
  registrationChallenge: {
795
- requestId: string;
796
795
  challenge: string;
796
+ requestId: string;
797
797
  handshake: string;
798
798
  handshakeAttestation: {
799
799
  signature: string;
@@ -910,8 +910,8 @@ declare const STEPS: {
910
910
  role: "MASTER_ADMIN";
911
911
  psdModel: "BLUE" | "STAX";
912
912
  registrationChallenge: {
913
- requestId: string;
914
913
  challenge: string;
914
+ requestId: string;
915
915
  handshake: string;
916
916
  handshakeAttestation: {
917
917
  signature: string;
@@ -964,8 +964,8 @@ declare const STEPS: {
964
964
  role: "SHARED_OWNER";
965
965
  psdModel: "BLUE" | "STAX";
966
966
  registrationChallenge: {
967
- requestId: string;
968
967
  challenge: string;
968
+ requestId: string;
969
969
  handshake: string;
970
970
  handshakeAttestation: {
971
971
  signature: string;
@@ -1082,8 +1082,8 @@ declare const STEPS: {
1082
1082
  role: "MASTER_ADMIN";
1083
1083
  psdModel: "BLUE" | "STAX";
1084
1084
  registrationChallenge: {
1085
- requestId: string;
1086
1085
  challenge: string;
1086
+ requestId: string;
1087
1087
  handshake: string;
1088
1088
  handshakeAttestation: {
1089
1089
  signature: string;
@@ -1136,8 +1136,8 @@ declare const STEPS: {
1136
1136
  role: "SHARED_OWNER";
1137
1137
  psdModel: "BLUE" | "STAX";
1138
1138
  registrationChallenge: {
1139
- requestId: string;
1140
1139
  challenge: string;
1140
+ requestId: string;
1141
1141
  handshake: string;
1142
1142
  handshakeAttestation: {
1143
1143
  signature: string;
@@ -1254,8 +1254,8 @@ declare const STEPS: {
1254
1254
  role: "MASTER_ADMIN";
1255
1255
  psdModel: "BLUE" | "STAX";
1256
1256
  registrationChallenge: {
1257
- requestId: string;
1258
1257
  challenge: string;
1258
+ requestId: string;
1259
1259
  handshake: string;
1260
1260
  handshakeAttestation: {
1261
1261
  signature: string;
@@ -1308,8 +1308,8 @@ declare const STEPS: {
1308
1308
  role: "SHARED_OWNER";
1309
1309
  psdModel: "BLUE" | "STAX";
1310
1310
  registrationChallenge: {
1311
- requestId: string;
1312
1311
  challenge: string;
1312
+ requestId: string;
1313
1313
  handshake: string;
1314
1314
  handshakeAttestation: {
1315
1315
  signature: string;
@@ -1426,8 +1426,8 @@ declare const STEPS: {
1426
1426
  role: "MASTER_ADMIN";
1427
1427
  psdModel: "BLUE" | "STAX";
1428
1428
  registrationChallenge: {
1429
- requestId: string;
1430
1429
  challenge: string;
1430
+ requestId: string;
1431
1431
  handshake: string;
1432
1432
  handshakeAttestation: {
1433
1433
  signature: string;
@@ -1480,8 +1480,8 @@ declare const STEPS: {
1480
1480
  role: "SHARED_OWNER";
1481
1481
  psdModel: "BLUE" | "STAX";
1482
1482
  registrationChallenge: {
1483
- requestId: string;
1484
1483
  challenge: string;
1484
+ requestId: string;
1485
1485
  handshake: string;
1486
1486
  handshakeAttestation: {
1487
1487
  signature: string;
@@ -1598,8 +1598,8 @@ declare const STEPS: {
1598
1598
  role: "MASTER_ADMIN";
1599
1599
  psdModel: "BLUE" | "STAX";
1600
1600
  registrationChallenge: {
1601
- requestId: string;
1602
1601
  challenge: string;
1602
+ requestId: string;
1603
1603
  handshake: string;
1604
1604
  handshakeAttestation: {
1605
1605
  signature: string;
@@ -1652,8 +1652,8 @@ declare const STEPS: {
1652
1652
  role: "SHARED_OWNER";
1653
1653
  psdModel: "BLUE" | "STAX";
1654
1654
  registrationChallenge: {
1655
- requestId: string;
1656
1655
  challenge: string;
1656
+ requestId: string;
1657
1657
  handshake: string;
1658
1658
  handshakeAttestation: {
1659
1659
  signature: string;
@@ -1,6 +1,6 @@
1
1
  import { OnboardingFullStateResponse, OnboardingStep } from '@ledgerhq/revault-api';
2
2
  import { Logger } from './index.js';
3
- import { E as Engine, W as WithOnboarding } from './types-DHZzeq9X.js';
3
+ import { E as Engine, W as WithOnboarding } from './types-CisIFJCB.js';
4
4
  import './types-CsvE9Mlb.js';
5
5
  import '@trpc/client';
6
6
  import '@trpc/server';
@@ -50,8 +50,8 @@ declare const STEPS: {
50
50
  role: "MASTER_ADMIN";
51
51
  psdModel: "BLUE" | "STAX";
52
52
  registrationChallenge: {
53
- requestId: string;
54
53
  challenge: string;
54
+ requestId: string;
55
55
  handshake: string;
56
56
  handshakeAttestation: {
57
57
  signature: string;
@@ -104,8 +104,8 @@ declare const STEPS: {
104
104
  role: "SHARED_OWNER";
105
105
  psdModel: "BLUE" | "STAX";
106
106
  registrationChallenge: {
107
- requestId: string;
108
107
  challenge: string;
108
+ requestId: string;
109
109
  handshake: string;
110
110
  handshakeAttestation: {
111
111
  signature: string;
@@ -222,8 +222,8 @@ declare const STEPS: {
222
222
  role: "MASTER_ADMIN";
223
223
  psdModel: "BLUE" | "STAX";
224
224
  registrationChallenge: {
225
- requestId: string;
226
225
  challenge: string;
226
+ requestId: string;
227
227
  handshake: string;
228
228
  handshakeAttestation: {
229
229
  signature: string;
@@ -276,8 +276,8 @@ declare const STEPS: {
276
276
  role: "SHARED_OWNER";
277
277
  psdModel: "BLUE" | "STAX";
278
278
  registrationChallenge: {
279
- requestId: string;
280
279
  challenge: string;
280
+ requestId: string;
281
281
  handshake: string;
282
282
  handshakeAttestation: {
283
283
  signature: string;
@@ -394,8 +394,8 @@ declare const STEPS: {
394
394
  role: "MASTER_ADMIN";
395
395
  psdModel: "BLUE" | "STAX";
396
396
  registrationChallenge: {
397
- requestId: string;
398
397
  challenge: string;
398
+ requestId: string;
399
399
  handshake: string;
400
400
  handshakeAttestation: {
401
401
  signature: string;
@@ -448,8 +448,8 @@ declare const STEPS: {
448
448
  role: "SHARED_OWNER";
449
449
  psdModel: "BLUE" | "STAX";
450
450
  registrationChallenge: {
451
- requestId: string;
452
451
  challenge: string;
452
+ requestId: string;
453
453
  handshake: string;
454
454
  handshakeAttestation: {
455
455
  signature: string;
@@ -566,8 +566,8 @@ declare const STEPS: {
566
566
  role: "MASTER_ADMIN";
567
567
  psdModel: "BLUE" | "STAX";
568
568
  registrationChallenge: {
569
- requestId: string;
570
569
  challenge: string;
570
+ requestId: string;
571
571
  handshake: string;
572
572
  handshakeAttestation: {
573
573
  signature: string;
@@ -620,8 +620,8 @@ declare const STEPS: {
620
620
  role: "SHARED_OWNER";
621
621
  psdModel: "BLUE" | "STAX";
622
622
  registrationChallenge: {
623
- requestId: string;
624
623
  challenge: string;
624
+ requestId: string;
625
625
  handshake: string;
626
626
  handshakeAttestation: {
627
627
  signature: string;
@@ -738,8 +738,8 @@ declare const STEPS: {
738
738
  role: "MASTER_ADMIN";
739
739
  psdModel: "BLUE" | "STAX";
740
740
  registrationChallenge: {
741
- requestId: string;
742
741
  challenge: string;
742
+ requestId: string;
743
743
  handshake: string;
744
744
  handshakeAttestation: {
745
745
  signature: string;
@@ -792,8 +792,8 @@ declare const STEPS: {
792
792
  role: "SHARED_OWNER";
793
793
  psdModel: "BLUE" | "STAX";
794
794
  registrationChallenge: {
795
- requestId: string;
796
795
  challenge: string;
796
+ requestId: string;
797
797
  handshake: string;
798
798
  handshakeAttestation: {
799
799
  signature: string;
@@ -910,8 +910,8 @@ declare const STEPS: {
910
910
  role: "MASTER_ADMIN";
911
911
  psdModel: "BLUE" | "STAX";
912
912
  registrationChallenge: {
913
- requestId: string;
914
913
  challenge: string;
914
+ requestId: string;
915
915
  handshake: string;
916
916
  handshakeAttestation: {
917
917
  signature: string;
@@ -964,8 +964,8 @@ declare const STEPS: {
964
964
  role: "SHARED_OWNER";
965
965
  psdModel: "BLUE" | "STAX";
966
966
  registrationChallenge: {
967
- requestId: string;
968
967
  challenge: string;
968
+ requestId: string;
969
969
  handshake: string;
970
970
  handshakeAttestation: {
971
971
  signature: string;
@@ -1082,8 +1082,8 @@ declare const STEPS: {
1082
1082
  role: "MASTER_ADMIN";
1083
1083
  psdModel: "BLUE" | "STAX";
1084
1084
  registrationChallenge: {
1085
- requestId: string;
1086
1085
  challenge: string;
1086
+ requestId: string;
1087
1087
  handshake: string;
1088
1088
  handshakeAttestation: {
1089
1089
  signature: string;
@@ -1136,8 +1136,8 @@ declare const STEPS: {
1136
1136
  role: "SHARED_OWNER";
1137
1137
  psdModel: "BLUE" | "STAX";
1138
1138
  registrationChallenge: {
1139
- requestId: string;
1140
1139
  challenge: string;
1140
+ requestId: string;
1141
1141
  handshake: string;
1142
1142
  handshakeAttestation: {
1143
1143
  signature: string;
@@ -1254,8 +1254,8 @@ declare const STEPS: {
1254
1254
  role: "MASTER_ADMIN";
1255
1255
  psdModel: "BLUE" | "STAX";
1256
1256
  registrationChallenge: {
1257
- requestId: string;
1258
1257
  challenge: string;
1258
+ requestId: string;
1259
1259
  handshake: string;
1260
1260
  handshakeAttestation: {
1261
1261
  signature: string;
@@ -1308,8 +1308,8 @@ declare const STEPS: {
1308
1308
  role: "SHARED_OWNER";
1309
1309
  psdModel: "BLUE" | "STAX";
1310
1310
  registrationChallenge: {
1311
- requestId: string;
1312
1311
  challenge: string;
1312
+ requestId: string;
1313
1313
  handshake: string;
1314
1314
  handshakeAttestation: {
1315
1315
  signature: string;
@@ -1426,8 +1426,8 @@ declare const STEPS: {
1426
1426
  role: "MASTER_ADMIN";
1427
1427
  psdModel: "BLUE" | "STAX";
1428
1428
  registrationChallenge: {
1429
- requestId: string;
1430
1429
  challenge: string;
1430
+ requestId: string;
1431
1431
  handshake: string;
1432
1432
  handshakeAttestation: {
1433
1433
  signature: string;
@@ -1480,8 +1480,8 @@ declare const STEPS: {
1480
1480
  role: "SHARED_OWNER";
1481
1481
  psdModel: "BLUE" | "STAX";
1482
1482
  registrationChallenge: {
1483
- requestId: string;
1484
1483
  challenge: string;
1484
+ requestId: string;
1485
1485
  handshake: string;
1486
1486
  handshakeAttestation: {
1487
1487
  signature: string;
@@ -1598,8 +1598,8 @@ declare const STEPS: {
1598
1598
  role: "MASTER_ADMIN";
1599
1599
  psdModel: "BLUE" | "STAX";
1600
1600
  registrationChallenge: {
1601
- requestId: string;
1602
1601
  challenge: string;
1602
+ requestId: string;
1603
1603
  handshake: string;
1604
1604
  handshakeAttestation: {
1605
1605
  signature: string;
@@ -1652,8 +1652,8 @@ declare const STEPS: {
1652
1652
  role: "SHARED_OWNER";
1653
1653
  psdModel: "BLUE" | "STAX";
1654
1654
  registrationChallenge: {
1655
- requestId: string;
1656
1655
  challenge: string;
1656
+ requestId: string;
1657
1657
  handshake: string;
1658
1658
  handshakeAttestation: {
1659
1659
  signature: string;
@@ -1,4 +1,4 @@
1
- import { AppRouter, VaultRequestResponse, ApiChallenge, PsdUserCreationVaultRequestResponse, ClaimedRole, WrappingKeyResponse, PsdChallenge, OnboardingSeedChallenge } from '@ledgerhq/revault-api';
1
+ import { AppRouter, VaultRequestResponse, ApiChallenge, UserRegistrationResponse, ClaimedRole, WrappingKeyResponse, PsdChallenge, OnboardingSeedChallenge } from '@ledgerhq/revault-api';
2
2
  import { D as Device } from './types-CsvE9Mlb.js';
3
3
  import { TRPCClient } from '@trpc/client';
4
4
  import { inferRouterOutputs, inferRouterInputs } from '@trpc/server';
@@ -174,11 +174,7 @@ type DecorateWithDeviceAndWorkspaceUnauthenticated<T> = {
174
174
  /**
175
175
  * Register the current device
176
176
  */
177
- register: (p: {
178
- requestId: string;
179
- role: "ADMIN" | "OPERATOR";
180
- name: string;
181
- }) => Promise<PsdUserCreationVaultRequestResponse>;
177
+ register: (registration: UserRegistrationResponse) => Promise<UserRegistrationResponse>;
182
178
  };
183
179
  type WithPsdAuth = {
184
180
  __psdToken: string;
@@ -1,4 +1,4 @@
1
- import { AppRouter, VaultRequestResponse, ApiChallenge, PsdUserCreationVaultRequestResponse, ClaimedRole, WrappingKeyResponse, PsdChallenge, OnboardingSeedChallenge } from '@ledgerhq/revault-api';
1
+ import { AppRouter, VaultRequestResponse, ApiChallenge, UserRegistrationResponse, ClaimedRole, WrappingKeyResponse, PsdChallenge, OnboardingSeedChallenge } from '@ledgerhq/revault-api';
2
2
  import { D as Device } from './types-CsvE9Mlb.cjs';
3
3
  import { TRPCClient } from '@trpc/client';
4
4
  import { inferRouterOutputs, inferRouterInputs } from '@trpc/server';
@@ -174,11 +174,7 @@ type DecorateWithDeviceAndWorkspaceUnauthenticated<T> = {
174
174
  /**
175
175
  * Register the current device
176
176
  */
177
- register: (p: {
178
- requestId: string;
179
- role: "ADMIN" | "OPERATOR";
180
- name: string;
181
- }) => Promise<PsdUserCreationVaultRequestResponse>;
177
+ register: (registration: UserRegistrationResponse) => Promise<UserRegistrationResponse>;
182
178
  };
183
179
  type WithPsdAuth = {
184
180
  __psdToken: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-sdk",
3
- "version": "0.12.2",
3
+ "version": "0.13.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "files": [
@@ -35,33 +35,33 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@ledgerhq/errors": "^6.19.1",
38
- "@ledgerhq/hw-transport": "^6.31.4",
39
- "@trpc/client": "^11.1.2",
40
- "@trpc/server": "^11.1.2",
38
+ "@ledgerhq/hw-transport": "^6.31.5",
39
+ "@trpc/client": "^11.2.0",
40
+ "@trpc/server": "^11.2.0",
41
41
  "axios": "^1.9.0",
42
42
  "axios-retry": "^4.5.0",
43
43
  "invariant": "^2.2.4",
44
44
  "lodash": "^4.17.21",
45
45
  "rxjs": "^7.8.2",
46
46
  "superjson": "^1.13.3",
47
- "zod": "^3.24.4",
48
- "@ledgerhq/revault-api": "1.21.0"
47
+ "zod": "^3.25.47",
48
+ "@ledgerhq/revault-api": "1.23.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@eslint/js": "^9.27.0",
51
+ "@eslint/js": "^9.28.0",
52
52
  "@types/invariant": "^2.2.37",
53
- "@types/lodash": "^4.17.16",
54
- "@types/node": "^22.15.19",
55
- "@vitest/coverage-v8": "^3.1.3",
56
- "@vitest/ui": "^3.1.3",
57
- "eslint": "^9.27.0",
53
+ "@types/lodash": "^4.17.17",
54
+ "@types/node": "^22.15.29",
55
+ "@vitest/coverage-v8": "^3.1.4",
56
+ "@vitest/ui": "^3.1.4",
57
+ "eslint": "^9.28.0",
58
58
  "eslint-plugin-unicorn": "^59.0.1",
59
59
  "tsup": "^8.5.0",
60
60
  "tsx": "^4.19.4",
61
61
  "typescript": "^5.8.3",
62
- "typescript-eslint": "^8.32.1",
62
+ "typescript-eslint": "^8.33.0",
63
63
  "vite-plugin-node-polyfills": "^0.23.0",
64
- "vitest": "^3.1.3",
64
+ "vitest": "^3.1.4",
65
65
  "vitest-mock-extended": "^3.1.0"
66
66
  },
67
67
  "scripts": {