@ledgerhq/revault-sdk 0.21.2 → 0.21.3

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.
@@ -14,9 +14,15 @@ declare const STEPS: {
14
14
  engine: Engine<WithOnboarding>;
15
15
  state: OnboardingFullStateResponse;
16
16
  }, logger: Logger) => Promise<{
17
- workspaceName: string;
18
17
  id: string;
19
- createdAt: Date;
18
+ workspaceName: string;
19
+ 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";
20
+ claimedDevices: {
21
+ pubKey: string;
22
+ deviceUserId: string;
23
+ deviceName: string;
24
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
25
+ }[];
20
26
  wrappingKey: {
21
27
  ephemeralPubKey: string;
22
28
  ephemeralCertificate: {
@@ -26,7 +32,6 @@ declare const STEPS: {
26
32
  signature: string;
27
33
  };
28
34
  fragments: {
29
- blob: string;
30
35
  pubKey: string;
31
36
  ephemeralPubKey: string;
32
37
  ephemeralCertificate: {
@@ -35,32 +40,24 @@ declare const STEPS: {
35
40
  certificate: string;
36
41
  signature: string;
37
42
  };
43
+ blob: string;
38
44
  }[];
39
45
  } | null;
40
- 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";
41
- completedAt: Date | null;
42
- claimedDevices: {
43
- pubKey: string;
44
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
45
- deviceUserId: string;
46
- deviceName: string;
47
- }[];
48
46
  masterAdmins: {
49
47
  name: string;
50
48
  psdModel: "BLUE" | "STAX";
51
49
  pubKey: string;
52
- role: "MASTER_ADMIN";
53
50
  registrationChallenge: {
54
- handshake: string;
55
- handshakeAttestation: {
51
+ challenge: string;
52
+ ephemeralPublicKey: string;
53
+ ephemeralPublicKeyAttestation: {
56
54
  codeHash: string;
57
55
  attestationPub: string;
58
56
  certificate: string;
59
57
  signature: string;
60
58
  };
61
- challenge: string;
62
- ephemeralPublicKey: string;
63
- ephemeralPublicKeyAttestation: {
59
+ handshake: string;
60
+ handshakeAttestation: {
64
61
  codeHash: string;
65
62
  attestationPub: string;
66
63
  certificate: string;
@@ -83,8 +80,8 @@ declare const STEPS: {
83
80
  validationKey: string;
84
81
  pairingPayload: string;
85
82
  } | null;
83
+ role: "MASTER_ADMIN";
86
84
  review: {
87
- signature: string | null;
88
85
  challenge: {
89
86
  challengeType: "PSD";
90
87
  wActions: string[];
@@ -97,24 +94,24 @@ declare const STEPS: {
97
94
  };
98
95
  partitionId: string;
99
96
  };
97
+ signature: string | null;
100
98
  } | null;
101
99
  }[];
102
100
  sharedOwners: {
103
101
  name: string;
104
102
  psdModel: "BLUE" | "STAX";
105
103
  pubKey: string;
106
- role: "SHARED_OWNER";
107
104
  registrationChallenge: {
108
- handshake: string;
109
- handshakeAttestation: {
105
+ challenge: string;
106
+ ephemeralPublicKey: string;
107
+ ephemeralPublicKeyAttestation: {
110
108
  codeHash: string;
111
109
  attestationPub: string;
112
110
  certificate: string;
113
111
  signature: string;
114
112
  };
115
- challenge: string;
116
- ephemeralPublicKey: string;
117
- ephemeralPublicKeyAttestation: {
113
+ handshake: string;
114
+ handshakeAttestation: {
118
115
  codeHash: string;
119
116
  attestationPub: string;
120
117
  certificate: string;
@@ -137,15 +134,9 @@ declare const STEPS: {
137
134
  validationKey: string;
138
135
  pairingPayload: string;
139
136
  } | null;
137
+ role: "SHARED_OWNER";
140
138
  review: {
141
139
  seedChallenge: {
142
- blob: string;
143
- certificate: {
144
- codeHash: string;
145
- attestationPub: string;
146
- certificate: string;
147
- signature: string;
148
- };
149
140
  challengeType: "PSD";
150
141
  wActions: string[];
151
142
  handshake: string;
@@ -156,7 +147,6 @@ declare const STEPS: {
156
147
  signature: string;
157
148
  };
158
149
  partitionId: string;
159
- ephemeralPublicKey: string;
160
150
  kkHandshake: string;
161
151
  kkHandshakeAttestation: {
162
152
  codeHash: string;
@@ -164,8 +154,18 @@ declare const STEPS: {
164
154
  certificate: string;
165
155
  signature: string;
166
156
  };
157
+ ephemeralPublicKey: string;
158
+ certificate: {
159
+ codeHash: string;
160
+ attestationPub: string;
161
+ certificate: string;
162
+ signature: string;
163
+ };
164
+ blob: string;
167
165
  };
168
166
  seedFragment: {
167
+ approverBlob: string;
168
+ challengeResponse: string;
169
169
  handshake: string;
170
170
  handshakeAttestation: {
171
171
  codeHash: string;
@@ -173,11 +173,11 @@ declare const STEPS: {
173
173
  certificate: string;
174
174
  signature: string;
175
175
  };
176
- approverBlob: string;
177
- challengeResponse: string;
178
176
  } | null;
179
177
  } | null;
180
178
  }[];
179
+ createdAt: Date;
180
+ completedAt: Date | null;
181
181
  }>;
182
182
  /**
183
183
  * Wrapping Key provisioning
@@ -186,9 +186,15 @@ declare const STEPS: {
186
186
  engine: Engine<WithOnboarding>;
187
187
  state: OnboardingFullStateResponse;
188
188
  }, logger: Logger) => Promise<{
189
- workspaceName: string;
190
189
  id: string;
191
- createdAt: Date;
190
+ workspaceName: string;
191
+ 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";
192
+ claimedDevices: {
193
+ pubKey: string;
194
+ deviceUserId: string;
195
+ deviceName: string;
196
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
197
+ }[];
192
198
  wrappingKey: {
193
199
  ephemeralPubKey: string;
194
200
  ephemeralCertificate: {
@@ -198,7 +204,6 @@ declare const STEPS: {
198
204
  signature: string;
199
205
  };
200
206
  fragments: {
201
- blob: string;
202
207
  pubKey: string;
203
208
  ephemeralPubKey: string;
204
209
  ephemeralCertificate: {
@@ -207,32 +212,24 @@ declare const STEPS: {
207
212
  certificate: string;
208
213
  signature: string;
209
214
  };
215
+ blob: string;
210
216
  }[];
211
217
  } | null;
212
- 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";
213
- completedAt: Date | null;
214
- claimedDevices: {
215
- pubKey: string;
216
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
217
- deviceUserId: string;
218
- deviceName: string;
219
- }[];
220
218
  masterAdmins: {
221
219
  name: string;
222
220
  psdModel: "BLUE" | "STAX";
223
221
  pubKey: string;
224
- role: "MASTER_ADMIN";
225
222
  registrationChallenge: {
226
- handshake: string;
227
- handshakeAttestation: {
223
+ challenge: string;
224
+ ephemeralPublicKey: string;
225
+ ephemeralPublicKeyAttestation: {
228
226
  codeHash: string;
229
227
  attestationPub: string;
230
228
  certificate: string;
231
229
  signature: string;
232
230
  };
233
- challenge: string;
234
- ephemeralPublicKey: string;
235
- ephemeralPublicKeyAttestation: {
231
+ handshake: string;
232
+ handshakeAttestation: {
236
233
  codeHash: string;
237
234
  attestationPub: string;
238
235
  certificate: string;
@@ -255,8 +252,8 @@ declare const STEPS: {
255
252
  validationKey: string;
256
253
  pairingPayload: string;
257
254
  } | null;
255
+ role: "MASTER_ADMIN";
258
256
  review: {
259
- signature: string | null;
260
257
  challenge: {
261
258
  challengeType: "PSD";
262
259
  wActions: string[];
@@ -269,24 +266,24 @@ declare const STEPS: {
269
266
  };
270
267
  partitionId: string;
271
268
  };
269
+ signature: string | null;
272
270
  } | null;
273
271
  }[];
274
272
  sharedOwners: {
275
273
  name: string;
276
274
  psdModel: "BLUE" | "STAX";
277
275
  pubKey: string;
278
- role: "SHARED_OWNER";
279
276
  registrationChallenge: {
280
- handshake: string;
281
- handshakeAttestation: {
277
+ challenge: string;
278
+ ephemeralPublicKey: string;
279
+ ephemeralPublicKeyAttestation: {
282
280
  codeHash: string;
283
281
  attestationPub: string;
284
282
  certificate: string;
285
283
  signature: string;
286
284
  };
287
- challenge: string;
288
- ephemeralPublicKey: string;
289
- ephemeralPublicKeyAttestation: {
285
+ handshake: string;
286
+ handshakeAttestation: {
290
287
  codeHash: string;
291
288
  attestationPub: string;
292
289
  certificate: string;
@@ -309,15 +306,9 @@ declare const STEPS: {
309
306
  validationKey: string;
310
307
  pairingPayload: string;
311
308
  } | null;
309
+ role: "SHARED_OWNER";
312
310
  review: {
313
311
  seedChallenge: {
314
- blob: string;
315
- certificate: {
316
- codeHash: string;
317
- attestationPub: string;
318
- certificate: string;
319
- signature: string;
320
- };
321
312
  challengeType: "PSD";
322
313
  wActions: string[];
323
314
  handshake: string;
@@ -328,7 +319,6 @@ declare const STEPS: {
328
319
  signature: string;
329
320
  };
330
321
  partitionId: string;
331
- ephemeralPublicKey: string;
332
322
  kkHandshake: string;
333
323
  kkHandshakeAttestation: {
334
324
  codeHash: string;
@@ -336,8 +326,18 @@ declare const STEPS: {
336
326
  certificate: string;
337
327
  signature: string;
338
328
  };
329
+ ephemeralPublicKey: string;
330
+ certificate: {
331
+ codeHash: string;
332
+ attestationPub: string;
333
+ certificate: string;
334
+ signature: string;
335
+ };
336
+ blob: string;
339
337
  };
340
338
  seedFragment: {
339
+ approverBlob: string;
340
+ challengeResponse: string;
341
341
  handshake: string;
342
342
  handshakeAttestation: {
343
343
  codeHash: string;
@@ -345,11 +345,11 @@ declare const STEPS: {
345
345
  certificate: string;
346
346
  signature: string;
347
347
  };
348
- approverBlob: string;
349
- challengeResponse: string;
350
348
  } | null;
351
349
  } | null;
352
350
  }[];
351
+ createdAt: Date;
352
+ completedAt: Date | null;
353
353
  }>;
354
354
  /**
355
355
  * Init Master Admins registration
@@ -358,9 +358,15 @@ declare const STEPS: {
358
358
  engine: Engine<WithOnboarding>;
359
359
  state: OnboardingFullStateResponse;
360
360
  }) => Promise<{
361
- workspaceName: string;
362
361
  id: string;
363
- createdAt: Date;
362
+ workspaceName: string;
363
+ 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";
364
+ claimedDevices: {
365
+ pubKey: string;
366
+ deviceUserId: string;
367
+ deviceName: string;
368
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
369
+ }[];
364
370
  wrappingKey: {
365
371
  ephemeralPubKey: string;
366
372
  ephemeralCertificate: {
@@ -370,7 +376,6 @@ declare const STEPS: {
370
376
  signature: string;
371
377
  };
372
378
  fragments: {
373
- blob: string;
374
379
  pubKey: string;
375
380
  ephemeralPubKey: string;
376
381
  ephemeralCertificate: {
@@ -379,32 +384,24 @@ declare const STEPS: {
379
384
  certificate: string;
380
385
  signature: string;
381
386
  };
387
+ blob: string;
382
388
  }[];
383
389
  } | null;
384
- 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";
385
- completedAt: Date | null;
386
- claimedDevices: {
387
- pubKey: string;
388
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
389
- deviceUserId: string;
390
- deviceName: string;
391
- }[];
392
390
  masterAdmins: {
393
391
  name: string;
394
392
  psdModel: "BLUE" | "STAX";
395
393
  pubKey: string;
396
- role: "MASTER_ADMIN";
397
394
  registrationChallenge: {
398
- handshake: string;
399
- handshakeAttestation: {
395
+ challenge: string;
396
+ ephemeralPublicKey: string;
397
+ ephemeralPublicKeyAttestation: {
400
398
  codeHash: string;
401
399
  attestationPub: string;
402
400
  certificate: string;
403
401
  signature: string;
404
402
  };
405
- challenge: string;
406
- ephemeralPublicKey: string;
407
- ephemeralPublicKeyAttestation: {
403
+ handshake: string;
404
+ handshakeAttestation: {
408
405
  codeHash: string;
409
406
  attestationPub: string;
410
407
  certificate: string;
@@ -427,8 +424,8 @@ declare const STEPS: {
427
424
  validationKey: string;
428
425
  pairingPayload: string;
429
426
  } | null;
427
+ role: "MASTER_ADMIN";
430
428
  review: {
431
- signature: string | null;
432
429
  challenge: {
433
430
  challengeType: "PSD";
434
431
  wActions: string[];
@@ -441,24 +438,24 @@ declare const STEPS: {
441
438
  };
442
439
  partitionId: string;
443
440
  };
441
+ signature: string | null;
444
442
  } | null;
445
443
  }[];
446
444
  sharedOwners: {
447
445
  name: string;
448
446
  psdModel: "BLUE" | "STAX";
449
447
  pubKey: string;
450
- role: "SHARED_OWNER";
451
448
  registrationChallenge: {
452
- handshake: string;
453
- handshakeAttestation: {
449
+ challenge: string;
450
+ ephemeralPublicKey: string;
451
+ ephemeralPublicKeyAttestation: {
454
452
  codeHash: string;
455
453
  attestationPub: string;
456
454
  certificate: string;
457
455
  signature: string;
458
456
  };
459
- challenge: string;
460
- ephemeralPublicKey: string;
461
- ephemeralPublicKeyAttestation: {
457
+ handshake: string;
458
+ handshakeAttestation: {
462
459
  codeHash: string;
463
460
  attestationPub: string;
464
461
  certificate: string;
@@ -481,15 +478,9 @@ declare const STEPS: {
481
478
  validationKey: string;
482
479
  pairingPayload: string;
483
480
  } | null;
481
+ role: "SHARED_OWNER";
484
482
  review: {
485
483
  seedChallenge: {
486
- blob: string;
487
- certificate: {
488
- codeHash: string;
489
- attestationPub: string;
490
- certificate: string;
491
- signature: string;
492
- };
493
484
  challengeType: "PSD";
494
485
  wActions: string[];
495
486
  handshake: string;
@@ -500,7 +491,6 @@ declare const STEPS: {
500
491
  signature: string;
501
492
  };
502
493
  partitionId: string;
503
- ephemeralPublicKey: string;
504
494
  kkHandshake: string;
505
495
  kkHandshakeAttestation: {
506
496
  codeHash: string;
@@ -508,8 +498,18 @@ declare const STEPS: {
508
498
  certificate: string;
509
499
  signature: string;
510
500
  };
501
+ ephemeralPublicKey: string;
502
+ certificate: {
503
+ codeHash: string;
504
+ attestationPub: string;
505
+ certificate: string;
506
+ signature: string;
507
+ };
508
+ blob: string;
511
509
  };
512
510
  seedFragment: {
511
+ approverBlob: string;
512
+ challengeResponse: string;
513
513
  handshake: string;
514
514
  handshakeAttestation: {
515
515
  codeHash: string;
@@ -517,11 +517,11 @@ declare const STEPS: {
517
517
  certificate: string;
518
518
  signature: string;
519
519
  };
520
- approverBlob: string;
521
- challengeResponse: string;
522
520
  } | null;
523
521
  } | null;
524
522
  }[];
523
+ createdAt: Date;
524
+ completedAt: Date | null;
525
525
  }>;
526
526
  /**
527
527
  * Master Admins registration
@@ -530,9 +530,15 @@ declare const STEPS: {
530
530
  engine: Engine<WithOnboarding>;
531
531
  state: OnboardingFullStateResponse;
532
532
  }, logger: Logger) => Promise<{
533
- workspaceName: string;
534
533
  id: string;
535
- createdAt: Date;
534
+ workspaceName: string;
535
+ 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";
536
+ claimedDevices: {
537
+ pubKey: string;
538
+ deviceUserId: string;
539
+ deviceName: string;
540
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
541
+ }[];
536
542
  wrappingKey: {
537
543
  ephemeralPubKey: string;
538
544
  ephemeralCertificate: {
@@ -542,7 +548,6 @@ declare const STEPS: {
542
548
  signature: string;
543
549
  };
544
550
  fragments: {
545
- blob: string;
546
551
  pubKey: string;
547
552
  ephemeralPubKey: string;
548
553
  ephemeralCertificate: {
@@ -551,32 +556,24 @@ declare const STEPS: {
551
556
  certificate: string;
552
557
  signature: string;
553
558
  };
559
+ blob: string;
554
560
  }[];
555
561
  } | null;
556
- 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";
557
- completedAt: Date | null;
558
- claimedDevices: {
559
- pubKey: string;
560
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
561
- deviceUserId: string;
562
- deviceName: string;
563
- }[];
564
562
  masterAdmins: {
565
563
  name: string;
566
564
  psdModel: "BLUE" | "STAX";
567
565
  pubKey: string;
568
- role: "MASTER_ADMIN";
569
566
  registrationChallenge: {
570
- handshake: string;
571
- handshakeAttestation: {
567
+ challenge: string;
568
+ ephemeralPublicKey: string;
569
+ ephemeralPublicKeyAttestation: {
572
570
  codeHash: string;
573
571
  attestationPub: string;
574
572
  certificate: string;
575
573
  signature: string;
576
574
  };
577
- challenge: string;
578
- ephemeralPublicKey: string;
579
- ephemeralPublicKeyAttestation: {
575
+ handshake: string;
576
+ handshakeAttestation: {
580
577
  codeHash: string;
581
578
  attestationPub: string;
582
579
  certificate: string;
@@ -599,8 +596,8 @@ declare const STEPS: {
599
596
  validationKey: string;
600
597
  pairingPayload: string;
601
598
  } | null;
599
+ role: "MASTER_ADMIN";
602
600
  review: {
603
- signature: string | null;
604
601
  challenge: {
605
602
  challengeType: "PSD";
606
603
  wActions: string[];
@@ -613,24 +610,24 @@ declare const STEPS: {
613
610
  };
614
611
  partitionId: string;
615
612
  };
613
+ signature: string | null;
616
614
  } | null;
617
615
  }[];
618
616
  sharedOwners: {
619
617
  name: string;
620
618
  psdModel: "BLUE" | "STAX";
621
619
  pubKey: string;
622
- role: "SHARED_OWNER";
623
620
  registrationChallenge: {
624
- handshake: string;
625
- handshakeAttestation: {
621
+ challenge: string;
622
+ ephemeralPublicKey: string;
623
+ ephemeralPublicKeyAttestation: {
626
624
  codeHash: string;
627
625
  attestationPub: string;
628
626
  certificate: string;
629
627
  signature: string;
630
628
  };
631
- challenge: string;
632
- ephemeralPublicKey: string;
633
- ephemeralPublicKeyAttestation: {
629
+ handshake: string;
630
+ handshakeAttestation: {
634
631
  codeHash: string;
635
632
  attestationPub: string;
636
633
  certificate: string;
@@ -653,15 +650,9 @@ declare const STEPS: {
653
650
  validationKey: string;
654
651
  pairingPayload: string;
655
652
  } | null;
653
+ role: "SHARED_OWNER";
656
654
  review: {
657
655
  seedChallenge: {
658
- blob: string;
659
- certificate: {
660
- codeHash: string;
661
- attestationPub: string;
662
- certificate: string;
663
- signature: string;
664
- };
665
656
  challengeType: "PSD";
666
657
  wActions: string[];
667
658
  handshake: string;
@@ -672,7 +663,6 @@ declare const STEPS: {
672
663
  signature: string;
673
664
  };
674
665
  partitionId: string;
675
- ephemeralPublicKey: string;
676
666
  kkHandshake: string;
677
667
  kkHandshakeAttestation: {
678
668
  codeHash: string;
@@ -680,8 +670,18 @@ declare const STEPS: {
680
670
  certificate: string;
681
671
  signature: string;
682
672
  };
673
+ ephemeralPublicKey: string;
674
+ certificate: {
675
+ codeHash: string;
676
+ attestationPub: string;
677
+ certificate: string;
678
+ signature: string;
679
+ };
680
+ blob: string;
683
681
  };
684
682
  seedFragment: {
683
+ approverBlob: string;
684
+ challengeResponse: string;
685
685
  handshake: string;
686
686
  handshakeAttestation: {
687
687
  codeHash: string;
@@ -689,11 +689,11 @@ declare const STEPS: {
689
689
  certificate: string;
690
690
  signature: string;
691
691
  };
692
- approverBlob: string;
693
- challengeResponse: string;
694
692
  } | null;
695
693
  } | null;
696
694
  }[];
695
+ createdAt: Date;
696
+ completedAt: Date | null;
697
697
  }>;
698
698
  /**
699
699
  * Init Shared Owners registration
@@ -702,9 +702,15 @@ declare const STEPS: {
702
702
  engine: Engine<WithOnboarding>;
703
703
  state: OnboardingFullStateResponse;
704
704
  }) => Promise<{
705
- workspaceName: string;
706
705
  id: string;
707
- createdAt: Date;
706
+ workspaceName: string;
707
+ 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";
708
+ claimedDevices: {
709
+ pubKey: string;
710
+ deviceUserId: string;
711
+ deviceName: string;
712
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
713
+ }[];
708
714
  wrappingKey: {
709
715
  ephemeralPubKey: string;
710
716
  ephemeralCertificate: {
@@ -714,7 +720,6 @@ declare const STEPS: {
714
720
  signature: string;
715
721
  };
716
722
  fragments: {
717
- blob: string;
718
723
  pubKey: string;
719
724
  ephemeralPubKey: string;
720
725
  ephemeralCertificate: {
@@ -723,32 +728,24 @@ declare const STEPS: {
723
728
  certificate: string;
724
729
  signature: string;
725
730
  };
731
+ blob: string;
726
732
  }[];
727
733
  } | null;
728
- 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";
729
- completedAt: Date | null;
730
- claimedDevices: {
731
- pubKey: string;
732
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
733
- deviceUserId: string;
734
- deviceName: string;
735
- }[];
736
734
  masterAdmins: {
737
735
  name: string;
738
736
  psdModel: "BLUE" | "STAX";
739
737
  pubKey: string;
740
- role: "MASTER_ADMIN";
741
738
  registrationChallenge: {
742
- handshake: string;
743
- handshakeAttestation: {
739
+ challenge: string;
740
+ ephemeralPublicKey: string;
741
+ ephemeralPublicKeyAttestation: {
744
742
  codeHash: string;
745
743
  attestationPub: string;
746
744
  certificate: string;
747
745
  signature: string;
748
746
  };
749
- challenge: string;
750
- ephemeralPublicKey: string;
751
- ephemeralPublicKeyAttestation: {
747
+ handshake: string;
748
+ handshakeAttestation: {
752
749
  codeHash: string;
753
750
  attestationPub: string;
754
751
  certificate: string;
@@ -771,8 +768,8 @@ declare const STEPS: {
771
768
  validationKey: string;
772
769
  pairingPayload: string;
773
770
  } | null;
771
+ role: "MASTER_ADMIN";
774
772
  review: {
775
- signature: string | null;
776
773
  challenge: {
777
774
  challengeType: "PSD";
778
775
  wActions: string[];
@@ -785,24 +782,24 @@ declare const STEPS: {
785
782
  };
786
783
  partitionId: string;
787
784
  };
785
+ signature: string | null;
788
786
  } | null;
789
787
  }[];
790
788
  sharedOwners: {
791
789
  name: string;
792
790
  psdModel: "BLUE" | "STAX";
793
791
  pubKey: string;
794
- role: "SHARED_OWNER";
795
792
  registrationChallenge: {
796
- handshake: string;
797
- handshakeAttestation: {
793
+ challenge: string;
794
+ ephemeralPublicKey: string;
795
+ ephemeralPublicKeyAttestation: {
798
796
  codeHash: string;
799
797
  attestationPub: string;
800
798
  certificate: string;
801
799
  signature: string;
802
800
  };
803
- challenge: string;
804
- ephemeralPublicKey: string;
805
- ephemeralPublicKeyAttestation: {
801
+ handshake: string;
802
+ handshakeAttestation: {
806
803
  codeHash: string;
807
804
  attestationPub: string;
808
805
  certificate: string;
@@ -825,15 +822,9 @@ declare const STEPS: {
825
822
  validationKey: string;
826
823
  pairingPayload: string;
827
824
  } | null;
825
+ role: "SHARED_OWNER";
828
826
  review: {
829
827
  seedChallenge: {
830
- blob: string;
831
- certificate: {
832
- codeHash: string;
833
- attestationPub: string;
834
- certificate: string;
835
- signature: string;
836
- };
837
828
  challengeType: "PSD";
838
829
  wActions: string[];
839
830
  handshake: string;
@@ -844,7 +835,6 @@ declare const STEPS: {
844
835
  signature: string;
845
836
  };
846
837
  partitionId: string;
847
- ephemeralPublicKey: string;
848
838
  kkHandshake: string;
849
839
  kkHandshakeAttestation: {
850
840
  codeHash: string;
@@ -852,8 +842,18 @@ declare const STEPS: {
852
842
  certificate: string;
853
843
  signature: string;
854
844
  };
845
+ ephemeralPublicKey: string;
846
+ certificate: {
847
+ codeHash: string;
848
+ attestationPub: string;
849
+ certificate: string;
850
+ signature: string;
851
+ };
852
+ blob: string;
855
853
  };
856
854
  seedFragment: {
855
+ approverBlob: string;
856
+ challengeResponse: string;
857
857
  handshake: string;
858
858
  handshakeAttestation: {
859
859
  codeHash: string;
@@ -861,11 +861,11 @@ declare const STEPS: {
861
861
  certificate: string;
862
862
  signature: string;
863
863
  };
864
- approverBlob: string;
865
- challengeResponse: string;
866
864
  } | null;
867
865
  } | null;
868
866
  }[];
867
+ createdAt: Date;
868
+ completedAt: Date | null;
869
869
  }>;
870
870
  /**
871
871
  * Shared Owners registration
@@ -874,9 +874,15 @@ declare const STEPS: {
874
874
  engine: Engine<WithOnboarding>;
875
875
  state: OnboardingFullStateResponse;
876
876
  }, logger: Logger) => Promise<{
877
- workspaceName: string;
878
877
  id: string;
879
- createdAt: Date;
878
+ workspaceName: string;
879
+ 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";
880
+ claimedDevices: {
881
+ pubKey: string;
882
+ deviceUserId: string;
883
+ deviceName: string;
884
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
885
+ }[];
880
886
  wrappingKey: {
881
887
  ephemeralPubKey: string;
882
888
  ephemeralCertificate: {
@@ -886,7 +892,6 @@ declare const STEPS: {
886
892
  signature: string;
887
893
  };
888
894
  fragments: {
889
- blob: string;
890
895
  pubKey: string;
891
896
  ephemeralPubKey: string;
892
897
  ephemeralCertificate: {
@@ -895,32 +900,24 @@ declare const STEPS: {
895
900
  certificate: string;
896
901
  signature: string;
897
902
  };
903
+ blob: string;
898
904
  }[];
899
905
  } | null;
900
- 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";
901
- completedAt: Date | null;
902
- claimedDevices: {
903
- pubKey: string;
904
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
905
- deviceUserId: string;
906
- deviceName: string;
907
- }[];
908
906
  masterAdmins: {
909
907
  name: string;
910
908
  psdModel: "BLUE" | "STAX";
911
909
  pubKey: string;
912
- role: "MASTER_ADMIN";
913
910
  registrationChallenge: {
914
- handshake: string;
915
- handshakeAttestation: {
911
+ challenge: string;
912
+ ephemeralPublicKey: string;
913
+ ephemeralPublicKeyAttestation: {
916
914
  codeHash: string;
917
915
  attestationPub: string;
918
916
  certificate: string;
919
917
  signature: string;
920
918
  };
921
- challenge: string;
922
- ephemeralPublicKey: string;
923
- ephemeralPublicKeyAttestation: {
919
+ handshake: string;
920
+ handshakeAttestation: {
924
921
  codeHash: string;
925
922
  attestationPub: string;
926
923
  certificate: string;
@@ -943,8 +940,8 @@ declare const STEPS: {
943
940
  validationKey: string;
944
941
  pairingPayload: string;
945
942
  } | null;
943
+ role: "MASTER_ADMIN";
946
944
  review: {
947
- signature: string | null;
948
945
  challenge: {
949
946
  challengeType: "PSD";
950
947
  wActions: string[];
@@ -957,24 +954,24 @@ declare const STEPS: {
957
954
  };
958
955
  partitionId: string;
959
956
  };
957
+ signature: string | null;
960
958
  } | null;
961
959
  }[];
962
960
  sharedOwners: {
963
961
  name: string;
964
962
  psdModel: "BLUE" | "STAX";
965
963
  pubKey: string;
966
- role: "SHARED_OWNER";
967
964
  registrationChallenge: {
968
- handshake: string;
969
- handshakeAttestation: {
965
+ challenge: string;
966
+ ephemeralPublicKey: string;
967
+ ephemeralPublicKeyAttestation: {
970
968
  codeHash: string;
971
969
  attestationPub: string;
972
970
  certificate: string;
973
971
  signature: string;
974
972
  };
975
- challenge: string;
976
- ephemeralPublicKey: string;
977
- ephemeralPublicKeyAttestation: {
973
+ handshake: string;
974
+ handshakeAttestation: {
978
975
  codeHash: string;
979
976
  attestationPub: string;
980
977
  certificate: string;
@@ -997,15 +994,9 @@ declare const STEPS: {
997
994
  validationKey: string;
998
995
  pairingPayload: string;
999
996
  } | null;
997
+ role: "SHARED_OWNER";
1000
998
  review: {
1001
999
  seedChallenge: {
1002
- blob: string;
1003
- certificate: {
1004
- codeHash: string;
1005
- attestationPub: string;
1006
- certificate: string;
1007
- signature: string;
1008
- };
1009
1000
  challengeType: "PSD";
1010
1001
  wActions: string[];
1011
1002
  handshake: string;
@@ -1016,7 +1007,6 @@ declare const STEPS: {
1016
1007
  signature: string;
1017
1008
  };
1018
1009
  partitionId: string;
1019
- ephemeralPublicKey: string;
1020
1010
  kkHandshake: string;
1021
1011
  kkHandshakeAttestation: {
1022
1012
  codeHash: string;
@@ -1024,8 +1014,18 @@ declare const STEPS: {
1024
1014
  certificate: string;
1025
1015
  signature: string;
1026
1016
  };
1017
+ ephemeralPublicKey: string;
1018
+ certificate: {
1019
+ codeHash: string;
1020
+ attestationPub: string;
1021
+ certificate: string;
1022
+ signature: string;
1023
+ };
1024
+ blob: string;
1027
1025
  };
1028
1026
  seedFragment: {
1027
+ approverBlob: string;
1028
+ challengeResponse: string;
1029
1029
  handshake: string;
1030
1030
  handshakeAttestation: {
1031
1031
  codeHash: string;
@@ -1033,11 +1033,11 @@ declare const STEPS: {
1033
1033
  certificate: string;
1034
1034
  signature: string;
1035
1035
  };
1036
- approverBlob: string;
1037
- challengeResponse: string;
1038
1036
  } | null;
1039
1037
  } | null;
1040
1038
  }[];
1039
+ createdAt: Date;
1040
+ completedAt: Date | null;
1041
1041
  }>;
1042
1042
  /**
1043
1043
  * Review by master admins
@@ -1046,9 +1046,15 @@ declare const STEPS: {
1046
1046
  engine: Engine<WithOnboarding>;
1047
1047
  state: OnboardingFullStateResponse;
1048
1048
  }, logger: Logger) => Promise<{
1049
- workspaceName: string;
1050
1049
  id: string;
1051
- createdAt: Date;
1050
+ workspaceName: string;
1051
+ 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";
1052
+ claimedDevices: {
1053
+ pubKey: string;
1054
+ deviceUserId: string;
1055
+ deviceName: string;
1056
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1057
+ }[];
1052
1058
  wrappingKey: {
1053
1059
  ephemeralPubKey: string;
1054
1060
  ephemeralCertificate: {
@@ -1058,41 +1064,32 @@ declare const STEPS: {
1058
1064
  signature: string;
1059
1065
  };
1060
1066
  fragments: {
1061
- blob: string;
1062
1067
  pubKey: string;
1063
1068
  ephemeralPubKey: string;
1064
1069
  ephemeralCertificate: {
1065
1070
  codeHash: string;
1066
1071
  attestationPub: string;
1067
- certificate: string;
1068
- signature: string;
1069
- };
1070
- }[];
1071
- } | null;
1072
- 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";
1073
- completedAt: Date | null;
1074
- claimedDevices: {
1075
- pubKey: string;
1076
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1077
- deviceUserId: string;
1078
- deviceName: string;
1079
- }[];
1072
+ certificate: string;
1073
+ signature: string;
1074
+ };
1075
+ blob: string;
1076
+ }[];
1077
+ } | null;
1080
1078
  masterAdmins: {
1081
1079
  name: string;
1082
1080
  psdModel: "BLUE" | "STAX";
1083
1081
  pubKey: string;
1084
- role: "MASTER_ADMIN";
1085
1082
  registrationChallenge: {
1086
- handshake: string;
1087
- handshakeAttestation: {
1083
+ challenge: string;
1084
+ ephemeralPublicKey: string;
1085
+ ephemeralPublicKeyAttestation: {
1088
1086
  codeHash: string;
1089
1087
  attestationPub: string;
1090
1088
  certificate: string;
1091
1089
  signature: string;
1092
1090
  };
1093
- challenge: string;
1094
- ephemeralPublicKey: string;
1095
- ephemeralPublicKeyAttestation: {
1091
+ handshake: string;
1092
+ handshakeAttestation: {
1096
1093
  codeHash: string;
1097
1094
  attestationPub: string;
1098
1095
  certificate: string;
@@ -1115,8 +1112,8 @@ declare const STEPS: {
1115
1112
  validationKey: string;
1116
1113
  pairingPayload: string;
1117
1114
  } | null;
1115
+ role: "MASTER_ADMIN";
1118
1116
  review: {
1119
- signature: string | null;
1120
1117
  challenge: {
1121
1118
  challengeType: "PSD";
1122
1119
  wActions: string[];
@@ -1129,24 +1126,24 @@ declare const STEPS: {
1129
1126
  };
1130
1127
  partitionId: string;
1131
1128
  };
1129
+ signature: string | null;
1132
1130
  } | null;
1133
1131
  }[];
1134
1132
  sharedOwners: {
1135
1133
  name: string;
1136
1134
  psdModel: "BLUE" | "STAX";
1137
1135
  pubKey: string;
1138
- role: "SHARED_OWNER";
1139
1136
  registrationChallenge: {
1140
- handshake: string;
1141
- handshakeAttestation: {
1137
+ challenge: string;
1138
+ ephemeralPublicKey: string;
1139
+ ephemeralPublicKeyAttestation: {
1142
1140
  codeHash: string;
1143
1141
  attestationPub: string;
1144
1142
  certificate: string;
1145
1143
  signature: string;
1146
1144
  };
1147
- challenge: string;
1148
- ephemeralPublicKey: string;
1149
- ephemeralPublicKeyAttestation: {
1145
+ handshake: string;
1146
+ handshakeAttestation: {
1150
1147
  codeHash: string;
1151
1148
  attestationPub: string;
1152
1149
  certificate: string;
@@ -1169,15 +1166,9 @@ declare const STEPS: {
1169
1166
  validationKey: string;
1170
1167
  pairingPayload: string;
1171
1168
  } | null;
1169
+ role: "SHARED_OWNER";
1172
1170
  review: {
1173
1171
  seedChallenge: {
1174
- blob: string;
1175
- certificate: {
1176
- codeHash: string;
1177
- attestationPub: string;
1178
- certificate: string;
1179
- signature: string;
1180
- };
1181
1172
  challengeType: "PSD";
1182
1173
  wActions: string[];
1183
1174
  handshake: string;
@@ -1188,7 +1179,6 @@ declare const STEPS: {
1188
1179
  signature: string;
1189
1180
  };
1190
1181
  partitionId: string;
1191
- ephemeralPublicKey: string;
1192
1182
  kkHandshake: string;
1193
1183
  kkHandshakeAttestation: {
1194
1184
  codeHash: string;
@@ -1196,8 +1186,18 @@ declare const STEPS: {
1196
1186
  certificate: string;
1197
1187
  signature: string;
1198
1188
  };
1189
+ ephemeralPublicKey: string;
1190
+ certificate: {
1191
+ codeHash: string;
1192
+ attestationPub: string;
1193
+ certificate: string;
1194
+ signature: string;
1195
+ };
1196
+ blob: string;
1199
1197
  };
1200
1198
  seedFragment: {
1199
+ approverBlob: string;
1200
+ challengeResponse: string;
1201
1201
  handshake: string;
1202
1202
  handshakeAttestation: {
1203
1203
  codeHash: string;
@@ -1205,11 +1205,11 @@ declare const STEPS: {
1205
1205
  certificate: string;
1206
1206
  signature: string;
1207
1207
  };
1208
- approverBlob: string;
1209
- challengeResponse: string;
1210
1208
  } | null;
1211
1209
  } | null;
1212
1210
  }[];
1211
+ createdAt: Date;
1212
+ completedAt: Date | null;
1213
1213
  }>;
1214
1214
  /**
1215
1215
  * Seed provisioning
@@ -1218,9 +1218,15 @@ declare const STEPS: {
1218
1218
  engine: Engine<WithOnboarding>;
1219
1219
  state: OnboardingFullStateResponse;
1220
1220
  }, logger: Logger) => Promise<{
1221
- workspaceName: string;
1222
1221
  id: string;
1223
- createdAt: Date;
1222
+ workspaceName: string;
1223
+ 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";
1224
+ claimedDevices: {
1225
+ pubKey: string;
1226
+ deviceUserId: string;
1227
+ deviceName: string;
1228
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1229
+ }[];
1224
1230
  wrappingKey: {
1225
1231
  ephemeralPubKey: string;
1226
1232
  ephemeralCertificate: {
@@ -1230,7 +1236,6 @@ declare const STEPS: {
1230
1236
  signature: string;
1231
1237
  };
1232
1238
  fragments: {
1233
- blob: string;
1234
1239
  pubKey: string;
1235
1240
  ephemeralPubKey: string;
1236
1241
  ephemeralCertificate: {
@@ -1239,32 +1244,24 @@ declare const STEPS: {
1239
1244
  certificate: string;
1240
1245
  signature: string;
1241
1246
  };
1247
+ blob: string;
1242
1248
  }[];
1243
1249
  } | null;
1244
- 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";
1245
- completedAt: Date | null;
1246
- claimedDevices: {
1247
- pubKey: string;
1248
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1249
- deviceUserId: string;
1250
- deviceName: string;
1251
- }[];
1252
1250
  masterAdmins: {
1253
1251
  name: string;
1254
1252
  psdModel: "BLUE" | "STAX";
1255
1253
  pubKey: string;
1256
- role: "MASTER_ADMIN";
1257
1254
  registrationChallenge: {
1258
- handshake: string;
1259
- handshakeAttestation: {
1255
+ challenge: string;
1256
+ ephemeralPublicKey: string;
1257
+ ephemeralPublicKeyAttestation: {
1260
1258
  codeHash: string;
1261
1259
  attestationPub: string;
1262
1260
  certificate: string;
1263
1261
  signature: string;
1264
1262
  };
1265
- challenge: string;
1266
- ephemeralPublicKey: string;
1267
- ephemeralPublicKeyAttestation: {
1263
+ handshake: string;
1264
+ handshakeAttestation: {
1268
1265
  codeHash: string;
1269
1266
  attestationPub: string;
1270
1267
  certificate: string;
@@ -1287,8 +1284,8 @@ declare const STEPS: {
1287
1284
  validationKey: string;
1288
1285
  pairingPayload: string;
1289
1286
  } | null;
1287
+ role: "MASTER_ADMIN";
1290
1288
  review: {
1291
- signature: string | null;
1292
1289
  challenge: {
1293
1290
  challengeType: "PSD";
1294
1291
  wActions: string[];
@@ -1301,24 +1298,24 @@ declare const STEPS: {
1301
1298
  };
1302
1299
  partitionId: string;
1303
1300
  };
1301
+ signature: string | null;
1304
1302
  } | null;
1305
1303
  }[];
1306
1304
  sharedOwners: {
1307
1305
  name: string;
1308
1306
  psdModel: "BLUE" | "STAX";
1309
1307
  pubKey: string;
1310
- role: "SHARED_OWNER";
1311
1308
  registrationChallenge: {
1312
- handshake: string;
1313
- handshakeAttestation: {
1309
+ challenge: string;
1310
+ ephemeralPublicKey: string;
1311
+ ephemeralPublicKeyAttestation: {
1314
1312
  codeHash: string;
1315
1313
  attestationPub: string;
1316
1314
  certificate: string;
1317
1315
  signature: string;
1318
1316
  };
1319
- challenge: string;
1320
- ephemeralPublicKey: string;
1321
- ephemeralPublicKeyAttestation: {
1317
+ handshake: string;
1318
+ handshakeAttestation: {
1322
1319
  codeHash: string;
1323
1320
  attestationPub: string;
1324
1321
  certificate: string;
@@ -1341,15 +1338,9 @@ declare const STEPS: {
1341
1338
  validationKey: string;
1342
1339
  pairingPayload: string;
1343
1340
  } | null;
1341
+ role: "SHARED_OWNER";
1344
1342
  review: {
1345
1343
  seedChallenge: {
1346
- blob: string;
1347
- certificate: {
1348
- codeHash: string;
1349
- attestationPub: string;
1350
- certificate: string;
1351
- signature: string;
1352
- };
1353
1344
  challengeType: "PSD";
1354
1345
  wActions: string[];
1355
1346
  handshake: string;
@@ -1360,7 +1351,6 @@ declare const STEPS: {
1360
1351
  signature: string;
1361
1352
  };
1362
1353
  partitionId: string;
1363
- ephemeralPublicKey: string;
1364
1354
  kkHandshake: string;
1365
1355
  kkHandshakeAttestation: {
1366
1356
  codeHash: string;
@@ -1368,8 +1358,18 @@ declare const STEPS: {
1368
1358
  certificate: string;
1369
1359
  signature: string;
1370
1360
  };
1361
+ ephemeralPublicKey: string;
1362
+ certificate: {
1363
+ codeHash: string;
1364
+ attestationPub: string;
1365
+ certificate: string;
1366
+ signature: string;
1367
+ };
1368
+ blob: string;
1371
1369
  };
1372
1370
  seedFragment: {
1371
+ approverBlob: string;
1372
+ challengeResponse: string;
1373
1373
  handshake: string;
1374
1374
  handshakeAttestation: {
1375
1375
  codeHash: string;
@@ -1377,11 +1377,11 @@ declare const STEPS: {
1377
1377
  certificate: string;
1378
1378
  signature: string;
1379
1379
  };
1380
- approverBlob: string;
1381
- challengeResponse: string;
1382
1380
  } | null;
1383
1381
  } | null;
1384
1382
  }[];
1383
+ createdAt: Date;
1384
+ completedAt: Date | null;
1385
1385
  }>;
1386
1386
  /**
1387
1387
  * Workspace initialization
@@ -1390,9 +1390,15 @@ declare const STEPS: {
1390
1390
  engine: Engine<WithOnboarding>;
1391
1391
  state: OnboardingFullStateResponse;
1392
1392
  }) => Promise<{
1393
- workspaceName: string;
1394
1393
  id: string;
1395
- createdAt: Date;
1394
+ workspaceName: string;
1395
+ 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";
1396
+ claimedDevices: {
1397
+ pubKey: string;
1398
+ deviceUserId: string;
1399
+ deviceName: string;
1400
+ role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1401
+ }[];
1396
1402
  wrappingKey: {
1397
1403
  ephemeralPubKey: string;
1398
1404
  ephemeralCertificate: {
@@ -1402,7 +1408,6 @@ declare const STEPS: {
1402
1408
  signature: string;
1403
1409
  };
1404
1410
  fragments: {
1405
- blob: string;
1406
1411
  pubKey: string;
1407
1412
  ephemeralPubKey: string;
1408
1413
  ephemeralCertificate: {
@@ -1411,32 +1416,24 @@ declare const STEPS: {
1411
1416
  certificate: string;
1412
1417
  signature: string;
1413
1418
  };
1419
+ blob: string;
1414
1420
  }[];
1415
1421
  } | null;
1416
- 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";
1417
- completedAt: Date | null;
1418
- claimedDevices: {
1419
- pubKey: string;
1420
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1421
- deviceUserId: string;
1422
- deviceName: string;
1423
- }[];
1424
1422
  masterAdmins: {
1425
1423
  name: string;
1426
1424
  psdModel: "BLUE" | "STAX";
1427
1425
  pubKey: string;
1428
- role: "MASTER_ADMIN";
1429
1426
  registrationChallenge: {
1430
- handshake: string;
1431
- handshakeAttestation: {
1427
+ challenge: string;
1428
+ ephemeralPublicKey: string;
1429
+ ephemeralPublicKeyAttestation: {
1432
1430
  codeHash: string;
1433
1431
  attestationPub: string;
1434
1432
  certificate: string;
1435
1433
  signature: string;
1436
1434
  };
1437
- challenge: string;
1438
- ephemeralPublicKey: string;
1439
- ephemeralPublicKeyAttestation: {
1435
+ handshake: string;
1436
+ handshakeAttestation: {
1440
1437
  codeHash: string;
1441
1438
  attestationPub: string;
1442
1439
  certificate: string;
@@ -1459,8 +1456,8 @@ declare const STEPS: {
1459
1456
  validationKey: string;
1460
1457
  pairingPayload: string;
1461
1458
  } | null;
1459
+ role: "MASTER_ADMIN";
1462
1460
  review: {
1463
- signature: string | null;
1464
1461
  challenge: {
1465
1462
  challengeType: "PSD";
1466
1463
  wActions: string[];
@@ -1473,24 +1470,24 @@ declare const STEPS: {
1473
1470
  };
1474
1471
  partitionId: string;
1475
1472
  };
1473
+ signature: string | null;
1476
1474
  } | null;
1477
1475
  }[];
1478
1476
  sharedOwners: {
1479
1477
  name: string;
1480
1478
  psdModel: "BLUE" | "STAX";
1481
1479
  pubKey: string;
1482
- role: "SHARED_OWNER";
1483
1480
  registrationChallenge: {
1484
- handshake: string;
1485
- handshakeAttestation: {
1481
+ challenge: string;
1482
+ ephemeralPublicKey: string;
1483
+ ephemeralPublicKeyAttestation: {
1486
1484
  codeHash: string;
1487
1485
  attestationPub: string;
1488
1486
  certificate: string;
1489
1487
  signature: string;
1490
1488
  };
1491
- challenge: string;
1492
- ephemeralPublicKey: string;
1493
- ephemeralPublicKeyAttestation: {
1489
+ handshake: string;
1490
+ handshakeAttestation: {
1494
1491
  codeHash: string;
1495
1492
  attestationPub: string;
1496
1493
  certificate: string;
@@ -1513,15 +1510,9 @@ declare const STEPS: {
1513
1510
  validationKey: string;
1514
1511
  pairingPayload: string;
1515
1512
  } | null;
1513
+ role: "SHARED_OWNER";
1516
1514
  review: {
1517
1515
  seedChallenge: {
1518
- blob: string;
1519
- certificate: {
1520
- codeHash: string;
1521
- attestationPub: string;
1522
- certificate: string;
1523
- signature: string;
1524
- };
1525
1516
  challengeType: "PSD";
1526
1517
  wActions: string[];
1527
1518
  handshake: string;
@@ -1532,7 +1523,6 @@ declare const STEPS: {
1532
1523
  signature: string;
1533
1524
  };
1534
1525
  partitionId: string;
1535
- ephemeralPublicKey: string;
1536
1526
  kkHandshake: string;
1537
1527
  kkHandshakeAttestation: {
1538
1528
  codeHash: string;
@@ -1540,8 +1530,18 @@ declare const STEPS: {
1540
1530
  certificate: string;
1541
1531
  signature: string;
1542
1532
  };
1533
+ ephemeralPublicKey: string;
1534
+ certificate: {
1535
+ codeHash: string;
1536
+ attestationPub: string;
1537
+ certificate: string;
1538
+ signature: string;
1539
+ };
1540
+ blob: string;
1543
1541
  };
1544
1542
  seedFragment: {
1543
+ approverBlob: string;
1544
+ challengeResponse: string;
1545
1545
  handshake: string;
1546
1546
  handshakeAttestation: {
1547
1547
  codeHash: string;
@@ -1549,11 +1549,11 @@ declare const STEPS: {
1549
1549
  certificate: string;
1550
1550
  signature: string;
1551
1551
  };
1552
- approverBlob: string;
1553
- challengeResponse: string;
1554
1552
  } | null;
1555
1553
  } | null;
1556
1554
  }[];
1555
+ createdAt: Date;
1556
+ completedAt: Date | null;
1557
1557
  }>;
1558
1558
  /**
1559
1559
  * Onboarding completed
@@ -1562,9 +1562,15 @@ declare const STEPS: {
1562
1562
  engine: Engine<WithOnboarding>;
1563
1563
  state: OnboardingFullStateResponse;
1564
1564
  }) => Promise<{
1565
- workspaceName: string;
1566
1565
  id: string;
1567
- createdAt: Date;
1566
+ workspaceName: string;
1567
+ step: "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" | "COMPLETED";
1568
+ claimedDevices: {
1569
+ pubKey: string;
1570
+ deviceUserId: string;
1571
+ deviceName: string;
1572
+ role: "WRAPPING_KEY_OWNER" | "SHARED_OWNER" | "MASTER_ADMIN";
1573
+ }[];
1568
1574
  wrappingKey: {
1569
1575
  ephemeralPubKey: string;
1570
1576
  ephemeralCertificate: {
@@ -1574,7 +1580,6 @@ declare const STEPS: {
1574
1580
  signature: string;
1575
1581
  };
1576
1582
  fragments: {
1577
- blob: string;
1578
1583
  pubKey: string;
1579
1584
  ephemeralPubKey: string;
1580
1585
  ephemeralCertificate: {
@@ -1583,32 +1588,24 @@ declare const STEPS: {
1583
1588
  certificate: string;
1584
1589
  signature: string;
1585
1590
  };
1591
+ blob: string;
1586
1592
  }[];
1587
1593
  } | null;
1588
- 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";
1589
- completedAt: Date | null;
1590
- claimedDevices: {
1591
- pubKey: string;
1592
- role: "SHARED_OWNER" | "WRAPPING_KEY_OWNER" | "MASTER_ADMIN";
1593
- deviceUserId: string;
1594
- deviceName: string;
1595
- }[];
1596
1594
  masterAdmins: {
1597
1595
  name: string;
1598
1596
  psdModel: "BLUE" | "STAX";
1599
1597
  pubKey: string;
1600
- role: "MASTER_ADMIN";
1601
1598
  registrationChallenge: {
1602
- handshake: string;
1603
- handshakeAttestation: {
1599
+ challenge: string;
1600
+ ephemeralPublicKey: string;
1601
+ ephemeralPublicKeyAttestation: {
1604
1602
  codeHash: string;
1605
1603
  attestationPub: string;
1606
1604
  certificate: string;
1607
1605
  signature: string;
1608
1606
  };
1609
- challenge: string;
1610
- ephemeralPublicKey: string;
1611
- ephemeralPublicKeyAttestation: {
1607
+ handshake: string;
1608
+ handshakeAttestation: {
1612
1609
  codeHash: string;
1613
1610
  attestationPub: string;
1614
1611
  certificate: string;
@@ -1631,8 +1628,8 @@ declare const STEPS: {
1631
1628
  validationKey: string;
1632
1629
  pairingPayload: string;
1633
1630
  } | null;
1631
+ role: "MASTER_ADMIN";
1634
1632
  review: {
1635
- signature: string | null;
1636
1633
  challenge: {
1637
1634
  challengeType: "PSD";
1638
1635
  wActions: string[];
@@ -1645,24 +1642,24 @@ declare const STEPS: {
1645
1642
  };
1646
1643
  partitionId: string;
1647
1644
  };
1645
+ signature: string | null;
1648
1646
  } | null;
1649
1647
  }[];
1650
1648
  sharedOwners: {
1651
1649
  name: string;
1652
1650
  psdModel: "BLUE" | "STAX";
1653
1651
  pubKey: string;
1654
- role: "SHARED_OWNER";
1655
1652
  registrationChallenge: {
1656
- handshake: string;
1657
- handshakeAttestation: {
1653
+ challenge: string;
1654
+ ephemeralPublicKey: string;
1655
+ ephemeralPublicKeyAttestation: {
1658
1656
  codeHash: string;
1659
1657
  attestationPub: string;
1660
1658
  certificate: string;
1661
1659
  signature: string;
1662
1660
  };
1663
- challenge: string;
1664
- ephemeralPublicKey: string;
1665
- ephemeralPublicKeyAttestation: {
1661
+ handshake: string;
1662
+ handshakeAttestation: {
1666
1663
  codeHash: string;
1667
1664
  attestationPub: string;
1668
1665
  certificate: string;
@@ -1685,15 +1682,9 @@ declare const STEPS: {
1685
1682
  validationKey: string;
1686
1683
  pairingPayload: string;
1687
1684
  } | null;
1685
+ role: "SHARED_OWNER";
1688
1686
  review: {
1689
1687
  seedChallenge: {
1690
- blob: string;
1691
- certificate: {
1692
- codeHash: string;
1693
- attestationPub: string;
1694
- certificate: string;
1695
- signature: string;
1696
- };
1697
1688
  challengeType: "PSD";
1698
1689
  wActions: string[];
1699
1690
  handshake: string;
@@ -1704,7 +1695,6 @@ declare const STEPS: {
1704
1695
  signature: string;
1705
1696
  };
1706
1697
  partitionId: string;
1707
- ephemeralPublicKey: string;
1708
1698
  kkHandshake: string;
1709
1699
  kkHandshakeAttestation: {
1710
1700
  codeHash: string;
@@ -1712,8 +1702,18 @@ declare const STEPS: {
1712
1702
  certificate: string;
1713
1703
  signature: string;
1714
1704
  };
1705
+ ephemeralPublicKey: string;
1706
+ certificate: {
1707
+ codeHash: string;
1708
+ attestationPub: string;
1709
+ certificate: string;
1710
+ signature: string;
1711
+ };
1712
+ blob: string;
1715
1713
  };
1716
1714
  seedFragment: {
1715
+ approverBlob: string;
1716
+ challengeResponse: string;
1717
1717
  handshake: string;
1718
1718
  handshakeAttestation: {
1719
1719
  codeHash: string;
@@ -1721,11 +1721,11 @@ declare const STEPS: {
1721
1721
  certificate: string;
1722
1722
  signature: string;
1723
1723
  };
1724
- approverBlob: string;
1725
- challengeResponse: string;
1726
1724
  } | null;
1727
1725
  } | null;
1728
1726
  }[];
1727
+ createdAt: Date;
1728
+ completedAt: Date | null;
1729
1729
  }>;
1730
1730
  };
1731
1731
  declare function onboard({ engine, untilStep, }: {