@lifeready/core 1.0.10 → 1.0.12

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.
Files changed (84) hide show
  1. package/bundles/lifeready-core.umd.js +7390 -8456
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +2 -2
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/utils.js +9 -1
  6. package/esm2015/lib/api/lock.service.js +10 -10
  7. package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +1 -1
  8. package/esm2015/lib/api/query-processor/query-processor.service.js +71 -1
  9. package/esm2015/lib/api/types/lr-graphql.types.js +31 -1
  10. package/esm2015/lib/auth/life-ready-auth.service.js +12 -24
  11. package/esm2015/lib/cryptography/encryption.service.js +3 -3
  12. package/esm2015/lib/cryptography/key-graph.service.js +24 -5
  13. package/esm2015/lib/items2/item2.gql.js +139 -0
  14. package/esm2015/lib/items2/item2.service.js +498 -0
  15. package/esm2015/lib/items2/item2.types.js +1 -0
  16. package/esm2015/lib/scenario/scenario.constants.js +2 -0
  17. package/esm2015/lib/scenario/scenario.controller.js +34 -0
  18. package/esm2015/lib/scenario/scenario.gql.js +35 -331
  19. package/esm2015/lib/scenario/scenario.gql.private.js +198 -0
  20. package/esm2015/lib/scenario/scenario.service.js +420 -493
  21. package/esm2015/lib/scenario/scenario.types.js +1 -64
  22. package/esm2015/lib/trusted-parties/tp-assembly.gql.private.js +22 -0
  23. package/esm2015/lib/trusted-parties/tp-assembly.js +362 -0
  24. package/esm2015/lib/trusted-parties/tp-assembly.types.js +1 -0
  25. package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +4 -3
  26. package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +34 -0
  27. package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +5 -1
  28. package/esm2015/lib/trusted-parties/tp-password-reset.service.js +36 -240
  29. package/esm2015/lib/trusted-parties/trusted-party2.service.js +3 -3
  30. package/esm2015/lifeready-core.js +6 -3
  31. package/esm2015/public-api.js +6 -15
  32. package/fesm2015/lifeready-core.js +6127 -6909
  33. package/fesm2015/lifeready-core.js.map +1 -1
  34. package/lib/_common/utils.d.ts +6 -0
  35. package/lib/api/lock.service.d.ts +12 -3
  36. package/lib/api/lr-graphql/lr-merged-mutation.d.ts +1 -0
  37. package/lib/api/query-processor/query-processor.service.d.ts +1 -1
  38. package/lib/api/types/lr-graphql.types.d.ts +107 -2
  39. package/lib/auth/life-ready-auth.service.d.ts +3 -1
  40. package/lib/cryptography/key-graph.service.d.ts +9 -1
  41. package/lib/{api → items2}/item2.gql.d.ts +28 -1
  42. package/lib/items2/item2.service.d.ts +203 -0
  43. package/lib/items2/item2.types.d.ts +70 -0
  44. package/lib/scenario/scenario.constants.d.ts +1 -0
  45. package/lib/scenario/scenario.controller.d.ts +10 -0
  46. package/lib/scenario/scenario.gql.d.ts +52 -24
  47. package/lib/scenario/scenario.gql.private.d.ts +16 -0
  48. package/lib/scenario/scenario.service.d.ts +229 -54
  49. package/lib/scenario/scenario.types.d.ts +47 -214
  50. package/lib/trusted-parties/tp-assembly.d.ts +177 -0
  51. package/lib/trusted-parties/tp-assembly.gql.private.d.ts +5 -0
  52. package/lib/trusted-parties/tp-assembly.types.d.ts +38 -0
  53. package/lib/trusted-parties/tp-password-reset-request.service.d.ts +3 -3
  54. package/lib/trusted-parties/tp-password-reset.controller.d.ts +10 -0
  55. package/lib/trusted-parties/tp-password-reset.gql.d.ts +5 -0
  56. package/lib/trusted-parties/tp-password-reset.service.d.ts +99 -41
  57. package/lib/trusted-parties/trusted-party2.service.d.ts +1 -1
  58. package/lifeready-core.d.ts +5 -2
  59. package/lifeready-core.metadata.json +1 -1
  60. package/package.json +1 -1
  61. package/public-api.d.ts +5 -14
  62. package/esm2015/lib/api/item2.gql.js +0 -110
  63. package/esm2015/lib/api/item2.service.js +0 -311
  64. package/esm2015/lib/scenario/approvals/scenario-approval.gql.js +0 -105
  65. package/esm2015/lib/scenario/approvals/scenario-approval.types.js +0 -1
  66. package/esm2015/lib/scenario/approvals/scenario-approver.service.js +0 -300
  67. package/esm2015/lib/scenario/claimants/scenario-claimant.gql.js +0 -52
  68. package/esm2015/lib/scenario/claimants/scenario-claimant.service.js +0 -97
  69. package/esm2015/lib/scenario/claimants/scenario-claimant.types.js +0 -1
  70. package/esm2015/lib/scenario/receivers/scenario-receiver.gql.js +0 -150
  71. package/esm2015/lib/scenario/receivers/scenario-receiver.service.js +0 -229
  72. package/esm2015/lib/scenario/receivers/scenario-receiver.types.js +0 -1
  73. package/esm2015/lib/scenario/scenario-setup.service.js +0 -269
  74. package/lib/api/item2.service.d.ts +0 -177
  75. package/lib/scenario/approvals/scenario-approval.gql.d.ts +0 -7
  76. package/lib/scenario/approvals/scenario-approval.types.d.ts +0 -63
  77. package/lib/scenario/approvals/scenario-approver.service.d.ts +0 -32
  78. package/lib/scenario/claimants/scenario-claimant.gql.d.ts +0 -5
  79. package/lib/scenario/claimants/scenario-claimant.service.d.ts +0 -17
  80. package/lib/scenario/claimants/scenario-claimant.types.d.ts +0 -18
  81. package/lib/scenario/receivers/scenario-receiver.gql.d.ts +0 -8
  82. package/lib/scenario/receivers/scenario-receiver.service.d.ts +0 -30
  83. package/lib/scenario/receivers/scenario-receiver.types.d.ts +0 -54
  84. package/lib/scenario/scenario-setup.service.d.ts +0 -22
@@ -0,0 +1,177 @@
1
+ import { Injector } from '@angular/core';
2
+ import { JWK } from 'node-jose';
3
+ import { Connection, TpAssemblyNode, TpNode, TpSubAssemblyNode } from '../api/types';
4
+ import { EncryptionService } from '../cryptography/encryption.service';
5
+ import { KeyFactoryService } from '../cryptography/key-factory.service';
6
+ import { KeyGraphService } from '../cryptography/key-graph.service';
7
+ import * as slip from '../cryptography/slip39.service';
8
+ import { Key } from '../cryptography/cryptography.types';
9
+ import { KeyService } from '../cryptography/key.service';
10
+ import { CreateTpAssemblyInput, CreateTpSubAssemblyInput, PartialAssemblyKey, TpAssemblyApproverInput, UpdateTpAssemblyInput, UpdateTpSubAssemblyInput } from './tp-assembly.types';
11
+ import { LrGraphQLService } from '../api/lr-graphql';
12
+ export declare abstract class TpAssemblyController {
13
+ abstract slip39Passphrase: string;
14
+ protected keyFactory: KeyFactoryService;
15
+ protected keyService: KeyService;
16
+ protected encryptionService: EncryptionService;
17
+ protected keyGraph: KeyGraphService;
18
+ protected slip39Service: slip.Slip39Service;
19
+ protected lrGraphQl: LrGraphQLService;
20
+ constructor(injector: Injector);
21
+ abstract getTpWrappingKeyId(tp: TpNode): string;
22
+ recoverAssemblyKey(partials: PartialAssemblyKey[]): Promise<JWK.Key>;
23
+ protected prepareTpWrappingKey(tp: TpAssemblyApproverInput): Promise<Key>;
24
+ protected prepareAssembly({ subjectKey, rootKey, }: {
25
+ subjectKey: JWK.Key;
26
+ rootKey: JWK.Key;
27
+ }): Promise<{
28
+ assemblyKey: JWK.Key;
29
+ rawAssemblyKey: any;
30
+ assemblyKeyParams: any;
31
+ subjectKeyWrappedAssemblyKey: string;
32
+ assemblyCipherData: string;
33
+ assemblyKeyVerifierPbk: string;
34
+ wrappedAssemblyKeyVerifierPrk: string;
35
+ }>;
36
+ protected prepareCreateSubAssemblies({ input, subjectKey, slipSubAssemblies, assemblyKeyParams, }: {
37
+ input: CreateTpSubAssemblyInput[];
38
+ subjectKey: JWK.Key;
39
+ slipSubAssemblies: slip.SubAssembly[];
40
+ assemblyKeyParams: any;
41
+ }): Promise<{
42
+ singleReject: boolean;
43
+ quorum: number;
44
+ subjectCipherData: string;
45
+ createApprovers: {
46
+ tpWrappingKeyId: string;
47
+ tpWrappedSharedKey: string;
48
+ subjectKeyWrappedSharedKey: string;
49
+ sharedCipherData: string;
50
+ sharedCipherApprovalData: string;
51
+ sharedCipherPartialAssemblyKey: string;
52
+ approverId: string;
53
+ tpId: string;
54
+ }[];
55
+ }[]>;
56
+ protected prepareUpdateSubAssemblies({ input, subjectKey, slipSubAssemblies, assemblyKeyParams, subAssemblies, }: {
57
+ input: UpdateTpSubAssemblyInput[];
58
+ subjectKey: JWK.Key;
59
+ slipSubAssemblies: slip.SubAssembly[];
60
+ assemblyKeyParams: any;
61
+ subAssemblies: Connection<TpSubAssemblyNode>;
62
+ }): Promise<{
63
+ subAssemblyId: string;
64
+ singleReject: boolean;
65
+ quorum: number;
66
+ subjectCipherData: string;
67
+ createApprovers: {
68
+ tpWrappingKeyId: string;
69
+ tpWrappedSharedKey: string;
70
+ subjectKeyWrappedSharedKey: string;
71
+ sharedCipherData: string;
72
+ sharedCipherApprovalData: string;
73
+ sharedCipherPartialAssemblyKey: string;
74
+ approverId: string;
75
+ tpId: string;
76
+ }[];
77
+ updateApprovers: {
78
+ tpWrappingKeyId: string;
79
+ tpWrappedSharedKey: string;
80
+ subjectKeyWrappedSharedKey: string;
81
+ sharedCipherData: string;
82
+ sharedCipherApprovalData: string;
83
+ sharedCipherPartialAssemblyKey: string;
84
+ approverId: string;
85
+ tpId: string;
86
+ }[];
87
+ }[]>;
88
+ private fillWrappingKeyId;
89
+ private getInputApprovers;
90
+ prepareCreate(input: CreateTpAssemblyInput): Promise<{
91
+ assemblyKey: JWK.Key;
92
+ mutationInput: {
93
+ singleReject: boolean;
94
+ quorum: number;
95
+ subjectCipherData: string;
96
+ createSubAssemblies: {
97
+ singleReject: boolean;
98
+ quorum: number;
99
+ subjectCipherData: string;
100
+ createApprovers: {
101
+ tpWrappingKeyId: string;
102
+ tpWrappedSharedKey: string;
103
+ subjectKeyWrappedSharedKey: string;
104
+ sharedCipherData: string;
105
+ sharedCipherApprovalData: string;
106
+ sharedCipherPartialAssemblyKey: string;
107
+ approverId: string;
108
+ tpId: string;
109
+ }[];
110
+ }[];
111
+ rootKeyId: string;
112
+ rootKeyWrappedSubjectKey: string;
113
+ subjectKeyWrappedAssemblyKey: string;
114
+ assemblyCipherData: string;
115
+ assemblyKeyVerifierPbk: string;
116
+ wrappedAssemblyKeyVerifierPrk: string;
117
+ };
118
+ }>;
119
+ private getAssemblyApprovers;
120
+ prepareUpdate(input: UpdateTpAssemblyInput, assembly: TpAssemblyNode): Promise<{
121
+ assemblyKey: JWK.Key;
122
+ mutationInput: {
123
+ singleReject: boolean;
124
+ quorum: number;
125
+ subjectCipherData: string;
126
+ subjectKeyId: string;
127
+ createSubAssemblies: {
128
+ singleReject: boolean;
129
+ quorum: number;
130
+ subjectCipherData: string;
131
+ createApprovers: {
132
+ tpWrappingKeyId: string;
133
+ tpWrappedSharedKey: string;
134
+ subjectKeyWrappedSharedKey: string;
135
+ sharedCipherData: string;
136
+ sharedCipherApprovalData: string;
137
+ sharedCipherPartialAssemblyKey: string;
138
+ approverId: string;
139
+ tpId: string;
140
+ }[];
141
+ }[];
142
+ updateSubAssemblies: {
143
+ subAssemblyId: string;
144
+ singleReject: boolean;
145
+ quorum: number;
146
+ subjectCipherData: string;
147
+ createApprovers: {
148
+ tpWrappingKeyId: string;
149
+ tpWrappedSharedKey: string;
150
+ subjectKeyWrappedSharedKey: string;
151
+ sharedCipherData: string;
152
+ sharedCipherApprovalData: string;
153
+ sharedCipherPartialAssemblyKey: string;
154
+ approverId: string;
155
+ tpId: string;
156
+ }[];
157
+ updateApprovers: {
158
+ tpWrappingKeyId: string;
159
+ tpWrappedSharedKey: string;
160
+ subjectKeyWrappedSharedKey: string;
161
+ sharedCipherData: string;
162
+ sharedCipherApprovalData: string;
163
+ sharedCipherPartialAssemblyKey: string;
164
+ approverId: string;
165
+ tpId: string;
166
+ }[];
167
+ }[];
168
+ subjectKeyWrappedAssemblyKey: string;
169
+ assemblyCipherData: string;
170
+ assemblyKeyVerifierPbk: string;
171
+ wrappedAssemblyKeyVerifierPrk: string;
172
+ };
173
+ }>;
174
+ private prepareApprover;
175
+ validateApprovers(approvers: TpNode[]): void;
176
+ protected prepareSlip39(subAssemblies: any, assemblyQuorum: number, rawAssemblyKey: string): Promise<slip.Assembly>;
177
+ }
@@ -0,0 +1,5 @@
1
+ import { Connection, TpNode } from '../api/types';
2
+ export interface TpsKeysQueryResult {
3
+ tps: Connection<TpNode>;
4
+ }
5
+ export declare const TpsKeysQuery: import("../_common/ast").TypedDocumentNode<TpsKeysQueryResult>;
@@ -0,0 +1,38 @@
1
+ import * as slip from '../cryptography/slip39.service';
2
+ export interface PartialAssemblyKey {
3
+ slip39: {
4
+ share: slip.SecretShare;
5
+ subAssembly: {
6
+ quorum: number;
7
+ size: number;
8
+ };
9
+ };
10
+ assemblyKeyParams: object;
11
+ }
12
+ export interface CreateTpSubAssemblyInput {
13
+ quorum: number;
14
+ singleReject: boolean;
15
+ approverTps: TpAssemblyApproverInput[];
16
+ subjectCipherDataClearJson?: any;
17
+ }
18
+ export interface UpdateTpSubAssemblyInput extends CreateTpSubAssemblyInput {
19
+ id: string;
20
+ }
21
+ export interface TpAssemblyInput {
22
+ quorum: number;
23
+ singleReject: boolean;
24
+ }
25
+ export interface CreateTpAssemblyInput extends TpAssemblyInput {
26
+ createSubAssemblies: CreateTpSubAssemblyInput[];
27
+ }
28
+ export interface UpdateTpAssemblyInput extends TpAssemblyInput {
29
+ createSubAssemblies?: CreateTpSubAssemblyInput[];
30
+ updateSubAssemblies?: UpdateTpSubAssemblyInput[];
31
+ deleteSubAssemblies?: string[];
32
+ }
33
+ export interface TpAssemblyApproverInput {
34
+ tpId: string;
35
+ wrappingKeyId?: string;
36
+ sharedCipherDataClearJson?: any;
37
+ sharedCipherApprovalDataClearJson?: any;
38
+ }
@@ -14,7 +14,7 @@ export declare class TpPasswordResetRequestService extends LrService {
14
14
  getSharedReset(id: any): Promise<import("./tp-password-reset.gql").SharedTpPasswordResetFragmentResult>;
15
15
  private activeRequestOrRaise;
16
16
  rejectRequest(sharedResetId: string): Promise<any>;
17
- rejectRequestMutation(sharedResetId: string): Promise<LrMergedMutation<any[]>>;
18
- approveRequest(sharedResetId: string, pbkFingerPrint?: string): Promise<any>;
19
- approveRequestMutation(sharedResetId: string, pbkFingerPrint?: string): Promise<LrMergedMutation<any[]>>;
17
+ rejectRequestMutation(sharedResetId: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").RejectTpPasswordResetRequestMutationResult[]>>;
18
+ approveRequest(sharedResetId: string, pbkFingerPrint?: string): Promise<import("./tp-password-reset.gql").ApproveTpPasswordResetRequestMutationResult[]>;
19
+ approveRequestMutation(sharedResetId: string, pbkFingerPrint?: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").ApproveTpPasswordResetRequestMutationResult[]>>;
20
20
  }
@@ -0,0 +1,10 @@
1
+ import { Injector, NgZone } from '@angular/core';
2
+ import { TpNode } from '../api/types';
3
+ import { TpAssemblyController } from './tp-assembly';
4
+ export declare class TpPasswordResetAssemblyController extends TpAssemblyController {
5
+ private ngZone;
6
+ private injector;
7
+ slip39Passphrase: string;
8
+ constructor(ngZone: NgZone, injector: Injector);
9
+ getTpWrappingKeyId(tp: TpNode): string;
10
+ }
@@ -158,6 +158,8 @@ export interface TpPasswordResetQueryResult {
158
158
  assembly: {
159
159
  singleReject: boolean;
160
160
  quorum: number;
161
+ subjectCipherData: string;
162
+ subjectCipherDataClearJson: any;
161
163
  subjectKey: {
162
164
  id: ID;
163
165
  };
@@ -173,6 +175,9 @@ export interface TpPasswordResetQueryResult {
173
175
  quorum: number;
174
176
  subjectCipherData: string;
175
177
  subjectCipherDataClearJson: any;
178
+ subjectKey: {
179
+ id: ID;
180
+ };
176
181
  approvers: {
177
182
  edges: {
178
183
  node: {
@@ -1,29 +1,9 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
- import { KeyService } from '../cryptography/key.service';
3
- import { EncryptionService } from '../cryptography/encryption.service';
4
- import { KeyGraphService } from '../cryptography/key-graph.service';
5
- import * as slip from '../cryptography/slip39.service';
6
2
  import { Key } from '../cryptography/cryptography.types';
7
- import { KeyFactoryService } from '../cryptography/key-factory.service';
3
+ import { TpPasswordResetAssemblyController } from './tp-password-reset.controller';
8
4
  import { LrMutation, LrService } from '../api/lr-graphql';
9
5
  import { TpNode } from '../api/types';
10
- export declare class CreateSubAssembliesInput {
11
- name: string;
12
- quorum: number;
13
- singleReject: boolean;
14
- approverTps: TpNode[];
15
- }
16
- export declare class UpdateSubAssembliesInput extends CreateSubAssembliesInput {
17
- id: string;
18
- }
19
- export declare class CreateTpPasswordResetInput {
20
- quorum: number;
21
- singleReject: boolean;
22
- createSubAssemblies: CreateSubAssembliesInput[];
23
- }
24
- export declare class UpdateTpPasswordResetInput extends CreateTpPasswordResetInput {
25
- updateSubAssemblies: UpdateSubAssembliesInput[];
26
- }
6
+ import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from './tp-assembly.types';
27
7
  export interface TpAssemblyApprovers {
28
8
  id: string;
29
9
  tp: {
@@ -65,18 +45,17 @@ export interface RequestResetResult {
65
45
  export declare class TpPasswordResetService extends LrService {
66
46
  private ngZone;
67
47
  private injector;
68
- private keyService;
69
- private keyFactory;
70
- private encryptionService;
71
- private keyGraph;
72
- private slip39Service;
73
- constructor(ngZone: NgZone, injector: Injector, keyService: KeyService, keyFactory: KeyFactoryService, encryptionService: EncryptionService, keyGraph: KeyGraphService, slip39Service: slip.Slip39Service);
48
+ private assemblyController;
49
+ slip39Passphrase: string;
50
+ constructor(ngZone: NgZone, injector: Injector, assemblyController: TpPasswordResetAssemblyController);
74
51
  getReset(): Promise<{
75
52
  id: string;
76
53
  applied: boolean;
77
54
  assembly: {
78
55
  singleReject: boolean;
79
56
  quorum: number;
57
+ subjectCipherData: string;
58
+ subjectCipherDataClearJson: any;
80
59
  subjectKey: {
81
60
  id: string;
82
61
  };
@@ -92,6 +71,9 @@ export declare class TpPasswordResetService extends LrService {
92
71
  quorum: number;
93
72
  subjectCipherData: string;
94
73
  subjectCipherDataClearJson: any;
74
+ subjectKey: {
75
+ id: string;
76
+ };
95
77
  approvers: {
96
78
  edges: {
97
79
  node: {
@@ -111,20 +93,96 @@ export declare class TpPasswordResetService extends LrService {
111
93
  };
112
94
  };
113
95
  }>;
114
- createReset(input: CreateTpPasswordResetInput): Promise<import("./tp-password-reset.gql").CreateTpPasswordResetMutationResult>;
115
- createResetMutation(input: CreateTpPasswordResetInput): Promise<LrMutation<import("./tp-password-reset.gql").CreateTpPasswordResetMutationResult, {
116
- input: any;
117
- }>>;
118
- deleteReset(): Promise<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult>;
119
- deleteResetMutation(): LrMutation<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult, Record<string, any>>;
120
- updateReset(input: UpdateTpPasswordResetInput): Promise<import("./tp-password-reset.gql").UpdateTpPasswordResetMutationResult>;
121
- updateResetMutation(input: UpdateTpPasswordResetInput): Promise<LrMutation<import("./tp-password-reset.gql").UpdateTpPasswordResetMutationResult, {
122
- input: any;
123
- }>>;
124
96
  cancelResetRequest(): Promise<import("./tp-password-reset.gql").CancelTpPasswordResetRequestMutationResult>;
125
97
  cancelResetRequestMutation(): LrMutation<import("./tp-password-reset.gql").CancelTpPasswordResetRequestMutationResult, Record<string, any>>;
98
+ deleteReset(): Promise<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult>;
99
+ deleteResetMutation(): LrMutation<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult, Record<string, any>>;
126
100
  validateApprovers(approvers: TpNode[]): void;
127
- private prepareApprover;
128
- private prepareSlip39;
129
- private _createReset;
101
+ createReset(input: CreateTpAssemblyInput): Promise<import("./tp-password-reset.gql").CreateTpPasswordResetMutationResult>;
102
+ createResetMutation(input: CreateTpAssemblyInput): Promise<LrMutation<import("./tp-password-reset.gql").CreateTpPasswordResetMutationResult, {
103
+ input: {
104
+ assembly: {
105
+ singleReject: boolean;
106
+ quorum: number;
107
+ subjectCipherData: string;
108
+ createSubAssemblies: {
109
+ singleReject: boolean;
110
+ quorum: number;
111
+ subjectCipherData: string;
112
+ createApprovers: {
113
+ tpWrappingKeyId: string;
114
+ tpWrappedSharedKey: string;
115
+ subjectKeyWrappedSharedKey: string;
116
+ sharedCipherData: string;
117
+ sharedCipherApprovalData: string;
118
+ sharedCipherPartialAssemblyKey: string;
119
+ approverId: string;
120
+ tpId: string;
121
+ }[];
122
+ }[];
123
+ rootKeyId: string;
124
+ rootKeyWrappedSubjectKey: string;
125
+ subjectKeyWrappedAssemblyKey: string;
126
+ assemblyCipherData: string;
127
+ assemblyKeyVerifierPbk: string;
128
+ wrappedAssemblyKeyVerifierPrk: string;
129
+ };
130
+ };
131
+ }>>;
132
+ updateReset(input: UpdateTpAssemblyInput): Promise<import("./tp-password-reset.gql").UpdateTpPasswordResetMutationResult>;
133
+ updateResetMutation(input: UpdateTpAssemblyInput): Promise<LrMutation<import("./tp-password-reset.gql").UpdateTpPasswordResetMutationResult, {
134
+ input: {
135
+ assembly: {
136
+ singleReject: boolean;
137
+ quorum: number;
138
+ subjectCipherData: string;
139
+ subjectKeyId: string;
140
+ createSubAssemblies: {
141
+ singleReject: boolean;
142
+ quorum: number;
143
+ subjectCipherData: string;
144
+ createApprovers: {
145
+ tpWrappingKeyId: string;
146
+ tpWrappedSharedKey: string;
147
+ subjectKeyWrappedSharedKey: string;
148
+ sharedCipherData: string;
149
+ sharedCipherApprovalData: string;
150
+ sharedCipherPartialAssemblyKey: string;
151
+ approverId: string;
152
+ tpId: string;
153
+ }[];
154
+ }[];
155
+ updateSubAssemblies: {
156
+ subAssemblyId: string;
157
+ singleReject: boolean;
158
+ quorum: number;
159
+ subjectCipherData: string;
160
+ createApprovers: {
161
+ tpWrappingKeyId: string;
162
+ tpWrappedSharedKey: string;
163
+ subjectKeyWrappedSharedKey: string;
164
+ sharedCipherData: string;
165
+ sharedCipherApprovalData: string;
166
+ sharedCipherPartialAssemblyKey: string;
167
+ approverId: string;
168
+ tpId: string;
169
+ }[];
170
+ updateApprovers: {
171
+ tpWrappingKeyId: string;
172
+ tpWrappedSharedKey: string;
173
+ subjectKeyWrappedSharedKey: string;
174
+ sharedCipherData: string;
175
+ sharedCipherApprovalData: string;
176
+ sharedCipherPartialAssemblyKey: string;
177
+ approverId: string;
178
+ tpId: string;
179
+ }[];
180
+ }[];
181
+ subjectKeyWrappedAssemblyKey: string;
182
+ assemblyCipherData: string;
183
+ assemblyKeyVerifierPbk: string;
184
+ wrappedAssemblyKeyVerifierPrk: string;
185
+ };
186
+ };
187
+ }>>;
130
188
  }
@@ -1,5 +1,5 @@
1
1
  import { NgZone } from '@angular/core';
2
- import { Item2Service } from '../api/item2.service';
2
+ import { Item2Service } from '../items2/item2.service';
3
3
  import { LrGraphQLService, LrMutation } from '../api/lr-graphql';
4
4
  import { AccessRoleChoice, LrRelayIdInput } from '../api/types';
5
5
  import { EncryptionService } from '../cryptography/encryption.service';
@@ -3,7 +3,10 @@
3
3
  */
4
4
  export * from './public-api';
5
5
  export { RunOutsideAngular as ɵd } from './lib/_common/run-outside-angular';
6
- export { LrGraphQLService as ɵb, LrService as ɵg } from './lib/api/lr-graphql';
6
+ export { LrGraphQLService as ɵb, LrService as ɵi } from './lib/api/lr-graphql';
7
7
  export { TpPasswordResetProcessorService as ɵc } from './lib/api/query-processor/tp-password-reset-processor.service';
8
- export { SharedContactCardFields as ɵe, SharedContactCardService as ɵf } from './lib/api/shared-contact-card.service';
8
+ export { SharedContactCardFields as ɵg, SharedContactCardService as ɵh } from './lib/api/shared-contact-card.service';
9
9
  export { TimeService as ɵa } from './lib/api/time.service';
10
+ export { ScenarioAssemblyController as ɵj } from './lib/scenario/scenario.controller';
11
+ export { TpAssemblyController as ɵf } from './lib/trusted-parties/tp-assembly';
12
+ export { TpPasswordResetAssemblyController as ɵe } from './lib/trusted-parties/tp-password-reset.controller';