@lifeready/core 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/lifeready-core.umd.js +2769 -4786
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +2 -2
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/_common/utils.js +9 -1
- package/esm2015/lib/api/lock.service.js +10 -10
- package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +1 -1
- package/esm2015/lib/api/query-processor/query-processor.service.js +71 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +31 -1
- package/esm2015/lib/auth/life-ready-auth.service.js +12 -24
- package/esm2015/lib/cryptography/encryption.service.js +3 -3
- package/esm2015/lib/cryptography/key-graph.service.js +24 -5
- package/esm2015/lib/items2/item2.gql.js +139 -0
- package/esm2015/lib/items2/item2.service.js +498 -0
- package/esm2015/lib/items2/item2.types.js +1 -0
- package/esm2015/lib/trusted-parties/tp-assembly.js +278 -0
- package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +4 -3
- package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +31 -0
- package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +5 -1
- package/esm2015/lib/trusted-parties/tp-password-reset.service.js +36 -240
- package/esm2015/lib/trusted-parties/trusted-party2.service.js +3 -3
- package/esm2015/lifeready-core.js +5 -3
- package/esm2015/public-api.js +3 -15
- package/fesm2015/lifeready-core.js +5004 -6707
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/utils.d.ts +6 -0
- package/lib/api/lock.service.d.ts +12 -3
- package/lib/api/lr-graphql/lr-merged-mutation.d.ts +1 -0
- package/lib/api/query-processor/query-processor.service.d.ts +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +105 -2
- package/lib/auth/life-ready-auth.service.d.ts +3 -1
- package/lib/cryptography/key-graph.service.d.ts +9 -1
- package/lib/{api → items2}/item2.gql.d.ts +28 -1
- package/lib/items2/item2.service.d.ts +203 -0
- package/lib/items2/item2.types.d.ts +70 -0
- package/lib/trusted-parties/tp-assembly.d.ts +206 -0
- package/lib/trusted-parties/tp-password-reset-request.service.d.ts +3 -3
- package/lib/trusted-parties/tp-password-reset.controller.d.ts +8 -0
- package/lib/trusted-parties/tp-password-reset.gql.d.ts +5 -0
- package/lib/trusted-parties/tp-password-reset.service.d.ts +99 -41
- package/lib/trusted-parties/trusted-party2.service.d.ts +1 -1
- package/lifeready-core.d.ts +4 -2
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -14
- package/esm2015/lib/api/item2.gql.js +0 -110
- package/esm2015/lib/api/item2.service.js +0 -311
- package/esm2015/lib/scenario/approvals/scenario-approval.gql.js +0 -105
- package/esm2015/lib/scenario/approvals/scenario-approval.types.js +0 -1
- package/esm2015/lib/scenario/approvals/scenario-approver.service.js +0 -300
- package/esm2015/lib/scenario/claimants/scenario-claimant.gql.js +0 -52
- package/esm2015/lib/scenario/claimants/scenario-claimant.service.js +0 -97
- package/esm2015/lib/scenario/claimants/scenario-claimant.types.js +0 -1
- package/esm2015/lib/scenario/receivers/scenario-receiver.gql.js +0 -150
- package/esm2015/lib/scenario/receivers/scenario-receiver.service.js +0 -229
- package/esm2015/lib/scenario/receivers/scenario-receiver.types.js +0 -1
- package/esm2015/lib/scenario/scenario-setup.service.js +0 -269
- package/esm2015/lib/scenario/scenario.gql.js +0 -368
- package/esm2015/lib/scenario/scenario.service.js +0 -611
- package/esm2015/lib/scenario/scenario.types.js +0 -64
- package/lib/api/item2.service.d.ts +0 -177
- package/lib/scenario/approvals/scenario-approval.gql.d.ts +0 -7
- package/lib/scenario/approvals/scenario-approval.types.d.ts +0 -63
- package/lib/scenario/approvals/scenario-approver.service.d.ts +0 -32
- package/lib/scenario/claimants/scenario-claimant.gql.d.ts +0 -5
- package/lib/scenario/claimants/scenario-claimant.service.d.ts +0 -17
- package/lib/scenario/claimants/scenario-claimant.types.d.ts +0 -18
- package/lib/scenario/receivers/scenario-receiver.gql.d.ts +0 -8
- package/lib/scenario/receivers/scenario-receiver.service.d.ts +0 -30
- package/lib/scenario/receivers/scenario-receiver.types.d.ts +0 -54
- package/lib/scenario/scenario-setup.service.d.ts +0 -22
- package/lib/scenario/scenario.gql.d.ts +0 -34
- package/lib/scenario/scenario.service.d.ts +0 -58
- package/lib/scenario/scenario.types.d.ts +0 -217
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
// Glossary
|
|
2
|
-
// - Subject: the user that the scenario applies to
|
|
3
|
-
// - Approver: the user that can approve a scenario
|
|
4
|
-
// - Approver sub-assembly: a group of approvers that must reach quorum for the sub-assembly to be considered approved
|
|
5
|
-
// - Approver assembly: a group of sub-assemblies that must reach quorum for the assembly to be considered approved
|
|
6
|
-
// - Receiver: a user that will receive the released information
|
|
7
|
-
// - Claimant: a user that can start the process of release of information
|
|
8
|
-
export var ScenarioState;
|
|
9
|
-
(function (ScenarioState) {
|
|
10
|
-
// Can not be claimed when DISABLED. Scenarios can be created in this state, then
|
|
11
|
-
// set to ENABLED once setup is complete.
|
|
12
|
-
ScenarioState["DISABLED"] = "DISABLED";
|
|
13
|
-
// Can be claimed when ENABLED. It sits in this state until claimed.
|
|
14
|
-
ScenarioState["ENABLED"] = "ENABLED";
|
|
15
|
-
// Claimant has initiated a claim.
|
|
16
|
-
ScenarioState["CLAIMED"] = "CLAIMED";
|
|
17
|
-
// Approvers have approved this scenario
|
|
18
|
-
ScenarioState["APPROVED"] = "APPROVED";
|
|
19
|
-
ScenarioState["REJECTED"] = "REJECTED";
|
|
20
|
-
})(ScenarioState || (ScenarioState = {}));
|
|
21
|
-
export var ScenarioClaimState;
|
|
22
|
-
(function (ScenarioClaimState) {
|
|
23
|
-
ScenarioClaimState["Claimed"] = "CLAIMED";
|
|
24
|
-
ScenarioClaimState["Approved"] = "APPROVED";
|
|
25
|
-
ScenarioClaimState["Expired"] = "EXPIRED";
|
|
26
|
-
ScenarioClaimState["Rejected"] = "REJECTED";
|
|
27
|
-
ScenarioClaimState["Cancelled"] = "CANCELLED";
|
|
28
|
-
ScenarioClaimState["Reset"] = "RESET";
|
|
29
|
-
})(ScenarioClaimState || (ScenarioClaimState = {}));
|
|
30
|
-
export var ApproverClaimState;
|
|
31
|
-
(function (ApproverClaimState) {
|
|
32
|
-
ApproverClaimState["Claimed"] = "CLAIMED";
|
|
33
|
-
ApproverClaimState["Approved"] = "APPROVED";
|
|
34
|
-
ApproverClaimState["Rejected"] = "REJECTED";
|
|
35
|
-
})(ApproverClaimState || (ApproverClaimState = {}));
|
|
36
|
-
export class NewScenario {
|
|
37
|
-
}
|
|
38
|
-
export class NewScenarioClaimant {
|
|
39
|
-
}
|
|
40
|
-
export class NewScenarioApprovalGroup {
|
|
41
|
-
}
|
|
42
|
-
export class NewScenarioApprover {
|
|
43
|
-
}
|
|
44
|
-
export class NewScenarioReceiver {
|
|
45
|
-
}
|
|
46
|
-
export class UpdateScenario {
|
|
47
|
-
}
|
|
48
|
-
export class UpdatedScenarioClaimant {
|
|
49
|
-
}
|
|
50
|
-
export class UpdatedScenarioApprovalGroup {
|
|
51
|
-
}
|
|
52
|
-
export class UpdatedScenarioApprover {
|
|
53
|
-
}
|
|
54
|
-
export class UpdatedScenarioReceiver {
|
|
55
|
-
}
|
|
56
|
-
export class ScenarioSummary {
|
|
57
|
-
}
|
|
58
|
-
export class ScenarioClaim {
|
|
59
|
-
}
|
|
60
|
-
export class SharedScenarioSummary {
|
|
61
|
-
}
|
|
62
|
-
export class SharedScenario {
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NlbmFyaW8udHlwZXMuanMiLCJzb3VyY2VSb290IjoiL29wdC9hdGxhc3NpYW4vcGlwZWxpbmVzL2FnZW50L2J1aWxkL3Byb2plY3RzL2NvcmUvc3JjLyIsInNvdXJjZXMiOlsibGliL3NjZW5hcm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IHtcbiAgcmVjZWl2ZXJQYmtDaXBoZXI6IHN0cmluZztcbiAgcGxhaW5SZWNlaXZlclBia0NpcGhlcjoge1xuICAgIHBhcnRpYWxBc3NlbWJseUtleTogUGFydGlhbEFzc2VtYmx5S2V5O1xuICB9O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNoYXJlZENsYWltUmVjZWl2ZXIge1xuICByZWNlaXZlZDogYm9vbGVhbjtcbiAgYXBwcm92YWxzOiBTaGFyZWRDbGFpbUFwcHJvdmFsW107XG59XG4iXX0=
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { JWK } from 'node-jose';
|
|
3
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
4
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
5
|
-
import { KeyMetaService } from '../cryptography/key-meta.service';
|
|
6
|
-
import { KeyService } from '../cryptography/key.service';
|
|
7
|
-
import { FileService } from './file.service';
|
|
8
|
-
import { LrMutation, LrService } from './lr-graphql';
|
|
9
|
-
import { CreateDirectoryMutation, DeleteDirectoryMutation, CreateFileMutation, DeleteFileMutation, UpdateFileMutation, UpdateDirectoryMutation, ArchiveDirectoryMutation, UnarchiveDirectoryMutation } from './item2.gql';
|
|
10
|
-
import { ID, LrRelayIdInput } from './types';
|
|
11
|
-
export declare enum DirectoryLinkType {
|
|
12
|
-
HARD = "HARD"
|
|
13
|
-
}
|
|
14
|
-
export interface ParentDirectoryOptions {
|
|
15
|
-
directoryId: LrRelayIdInput;
|
|
16
|
-
wrappingKeyId?: LrRelayIdInput;
|
|
17
|
-
linkType?: DirectoryLinkType.HARD;
|
|
18
|
-
}
|
|
19
|
-
export interface ParentRootDirectoryInput {
|
|
20
|
-
wrappedKey: string;
|
|
21
|
-
wrappingKeyId: LrRelayIdInput;
|
|
22
|
-
}
|
|
23
|
-
export interface ParentDirectoryInputBase {
|
|
24
|
-
directoryId: LrRelayIdInput;
|
|
25
|
-
wrappingKeyId: LrRelayIdInput;
|
|
26
|
-
linkType?: DirectoryLinkType.HARD;
|
|
27
|
-
}
|
|
28
|
-
export interface ParentDirectoryInput extends ParentDirectoryInputBase {
|
|
29
|
-
wrappedKey: string;
|
|
30
|
-
}
|
|
31
|
-
export interface FileParentDirectoryInput extends ParentDirectoryInputBase {
|
|
32
|
-
wrappedFileKey: string;
|
|
33
|
-
}
|
|
34
|
-
export interface DownloadFileContentOptions {
|
|
35
|
-
fileStateNodeId: LrRelayIdInput;
|
|
36
|
-
fileStateKeyId?: LrRelayIdInput;
|
|
37
|
-
}
|
|
38
|
-
export interface CommonDirectoryOptions {
|
|
39
|
-
plainMetaJson?: any;
|
|
40
|
-
cipherMetaClearJson?: any;
|
|
41
|
-
}
|
|
42
|
-
export interface CreateDirectoryOptions extends CommonDirectoryOptions {
|
|
43
|
-
asRootDirectory?: boolean;
|
|
44
|
-
parentDirectories?: ParentDirectoryOptions[];
|
|
45
|
-
}
|
|
46
|
-
export interface UpdateDirectoryOptions extends CommonDirectoryOptions {
|
|
47
|
-
directoryId: LrRelayIdInput;
|
|
48
|
-
directoryKeyId?: LrRelayIdInput;
|
|
49
|
-
}
|
|
50
|
-
export interface CommonFileOptions {
|
|
51
|
-
plainMetaJson?: any;
|
|
52
|
-
cipherMetaClearJson?: any;
|
|
53
|
-
file?: File;
|
|
54
|
-
upload?: (cipherFileContent: string) => Promise<string>;
|
|
55
|
-
}
|
|
56
|
-
export interface CreateFileOptions extends CommonFileOptions {
|
|
57
|
-
parentDirectories: ParentDirectoryOptions[];
|
|
58
|
-
}
|
|
59
|
-
export interface UpdateFileOptions extends CommonFileOptions {
|
|
60
|
-
fileId: LrRelayIdInput;
|
|
61
|
-
fileKeyId?: LrRelayIdInput;
|
|
62
|
-
}
|
|
63
|
-
interface ChangeItemParentsOptions {
|
|
64
|
-
parentsToRemove: LrRelayIdInput[];
|
|
65
|
-
parentsToAdd: ParentDirectoryOptions[];
|
|
66
|
-
}
|
|
67
|
-
export interface ChangeDirectoryParentsOptions extends ChangeItemParentsOptions {
|
|
68
|
-
directoryId: LrRelayIdInput;
|
|
69
|
-
directoryKeyId?: LrRelayIdInput;
|
|
70
|
-
}
|
|
71
|
-
export interface ChangeFileParentsOptions extends ChangeItemParentsOptions {
|
|
72
|
-
fileId: LrRelayIdInput;
|
|
73
|
-
fileKeyId?: LrRelayIdInput;
|
|
74
|
-
}
|
|
75
|
-
export declare class Item2Service extends LrService {
|
|
76
|
-
private ngZone;
|
|
77
|
-
private injector;
|
|
78
|
-
private fileService;
|
|
79
|
-
private keyService;
|
|
80
|
-
private keyMeta;
|
|
81
|
-
private keyFactory;
|
|
82
|
-
private keyGraph;
|
|
83
|
-
constructor(ngZone: NgZone, injector: Injector, fileService: FileService, keyService: KeyService, keyMeta: KeyMetaService, keyFactory: KeyFactoryService, keyGraph: KeyGraphService);
|
|
84
|
-
downloadFileContent(options: DownloadFileContentOptions): Promise<ArrayBuffer>;
|
|
85
|
-
createDirectory(options: CreateDirectoryOptions): Promise<LrMutation<CreateDirectoryMutation, {
|
|
86
|
-
input: {
|
|
87
|
-
parentDirectories: ParentDirectoryInput[];
|
|
88
|
-
parentRootDirectory: ParentRootDirectoryInput;
|
|
89
|
-
plainMeta: string;
|
|
90
|
-
cipherMeta: string;
|
|
91
|
-
};
|
|
92
|
-
}>>;
|
|
93
|
-
updateDirectoryExec(options: UpdateDirectoryOptions): Promise<UpdateDirectoryMutation>;
|
|
94
|
-
updateDirectory(options: UpdateDirectoryOptions): Promise<LrMutation<UpdateDirectoryMutation, {
|
|
95
|
-
input: {
|
|
96
|
-
directoryId: string;
|
|
97
|
-
plainMeta: string;
|
|
98
|
-
cipherMeta: string;
|
|
99
|
-
};
|
|
100
|
-
}>>;
|
|
101
|
-
updateDirectoryMutation(options: UpdateDirectoryOptions): Promise<LrMutation<UpdateDirectoryMutation, {
|
|
102
|
-
input: {
|
|
103
|
-
directoryId: string;
|
|
104
|
-
plainMeta: string;
|
|
105
|
-
cipherMeta: string;
|
|
106
|
-
};
|
|
107
|
-
}>>;
|
|
108
|
-
deleteDirectory(id: ID): LrMutation<DeleteDirectoryMutation, {
|
|
109
|
-
input: {
|
|
110
|
-
directoryId: string;
|
|
111
|
-
};
|
|
112
|
-
}>;
|
|
113
|
-
createFile(options: CreateFileOptions): Promise<LrMutation<CreateFileMutation, {
|
|
114
|
-
input: {
|
|
115
|
-
parentDirectories: FileParentDirectoryInput[];
|
|
116
|
-
wrappedStateKey: string;
|
|
117
|
-
contentResource: string;
|
|
118
|
-
plainMeta: string;
|
|
119
|
-
cipherMeta: string;
|
|
120
|
-
};
|
|
121
|
-
}>>;
|
|
122
|
-
updateFile(options: UpdateFileOptions): Promise<LrMutation<UpdateFileMutation, {
|
|
123
|
-
input: {
|
|
124
|
-
fileId: string;
|
|
125
|
-
wrappedStateKey: string;
|
|
126
|
-
contentResource: string;
|
|
127
|
-
plainMeta: string;
|
|
128
|
-
cipherMeta: string;
|
|
129
|
-
};
|
|
130
|
-
}>>;
|
|
131
|
-
deleteFile(id: ID): LrMutation<DeleteFileMutation, {
|
|
132
|
-
input: {
|
|
133
|
-
fileId: string;
|
|
134
|
-
};
|
|
135
|
-
}>;
|
|
136
|
-
private getParentDirectoryInput;
|
|
137
|
-
getFileStateKeyId(fileStateNodeId: LrRelayIdInput): Promise<string>;
|
|
138
|
-
getDirectoryKeyId(directoryId: LrRelayIdInput): Promise<string>;
|
|
139
|
-
getFileKeyId(fileId: LrRelayIdInput): Promise<string>;
|
|
140
|
-
getDirectoryKey(directoryId: LrRelayIdInput, directoryKeyId?: LrRelayIdInput): Promise<import("../cryptography/cryptography.types").Key>;
|
|
141
|
-
getFileKey(fileId: LrRelayIdInput, fileKeyId?: LrRelayIdInput): Promise<import("../cryptography/cryptography.types").Key>;
|
|
142
|
-
private getInput;
|
|
143
|
-
private createFileState;
|
|
144
|
-
archiveDirectory(directoryId: string, recursive: boolean): LrMutation<ArchiveDirectoryMutation, {
|
|
145
|
-
input: {
|
|
146
|
-
directoryId: string;
|
|
147
|
-
recursive: boolean;
|
|
148
|
-
};
|
|
149
|
-
}>;
|
|
150
|
-
unarchiveDirectory(directoryId: string, recursive: boolean): LrMutation<UnarchiveDirectoryMutation, {
|
|
151
|
-
input: {
|
|
152
|
-
directoryId: string;
|
|
153
|
-
recursive: boolean;
|
|
154
|
-
};
|
|
155
|
-
}>;
|
|
156
|
-
protected getChangeItemParentsInput(options: ChangeItemParentsOptions, itemKey: JWK.Key): Promise<{
|
|
157
|
-
directoriesToRemove: string[];
|
|
158
|
-
directoriesToAdd: ParentDirectoryInput[];
|
|
159
|
-
}>;
|
|
160
|
-
changeDirectoryParents(options: ChangeDirectoryParentsOptions): Promise<import("./item2.gql").ChangeDirectoryParentsMutationResult>;
|
|
161
|
-
changeDirectoryParentsMutation(options: ChangeDirectoryParentsOptions): Promise<LrMutation<import("./item2.gql").ChangeDirectoryParentsMutationResult, {
|
|
162
|
-
input: {
|
|
163
|
-
directoryId: string;
|
|
164
|
-
directoriesToRemove: string[];
|
|
165
|
-
directoriesToAdd: ParentDirectoryInput[];
|
|
166
|
-
};
|
|
167
|
-
}>>;
|
|
168
|
-
changeFileParents(options: ChangeFileParentsOptions): Promise<import("./item2.gql").ChangeFileParentsMutationResult>;
|
|
169
|
-
changeFileParentsMutation(options: ChangeFileParentsOptions): Promise<LrMutation<import("./item2.gql").ChangeFileParentsMutationResult, {
|
|
170
|
-
input: {
|
|
171
|
-
fileId: string;
|
|
172
|
-
directoriesToRemove: string[];
|
|
173
|
-
directoriesToAdd: ParentDirectoryInput[];
|
|
174
|
-
};
|
|
175
|
-
}>>;
|
|
176
|
-
}
|
|
177
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const SubAssemblyFields: string;
|
|
2
|
-
export declare const CreateScenarioApproverAssemblyMutation: import("graphql").DocumentNode;
|
|
3
|
-
export declare const UpdateScenarioApproverAssemblyMutation: import("graphql").DocumentNode;
|
|
4
|
-
export declare const DeleteScenarioApproverAssemblyMutation: import("graphql").DocumentNode;
|
|
5
|
-
export declare const GetScenarioApproverQuery: import("graphql").DocumentNode;
|
|
6
|
-
export declare const AddScenarioApproverMutation: import("graphql").DocumentNode;
|
|
7
|
-
export declare const UpdateScenarioApproverMutation: import("graphql").DocumentNode;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Receiver } from './../receivers/scenario-receiver.types';
|
|
2
|
-
import { TrustedParty } from '../../trusted-parties/trusted-party.types';
|
|
3
|
-
export interface ApprovalGroup {
|
|
4
|
-
id: string;
|
|
5
|
-
keyId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
singleReject: boolean;
|
|
8
|
-
quorum: number;
|
|
9
|
-
approvers?: Approver[];
|
|
10
|
-
}
|
|
11
|
-
export interface Approver {
|
|
12
|
-
id: string;
|
|
13
|
-
keyId: string;
|
|
14
|
-
trustedParty: TrustedParty;
|
|
15
|
-
message?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ScenarioApproverAssemblyInput {
|
|
18
|
-
scenarioId: string;
|
|
19
|
-
keyId: string;
|
|
20
|
-
singleReject: boolean;
|
|
21
|
-
quorum: number;
|
|
22
|
-
plainAssemblyCipherData?: any;
|
|
23
|
-
}
|
|
24
|
-
export interface CreateSubAssemblyInput {
|
|
25
|
-
quorum: number;
|
|
26
|
-
singleReject: boolean;
|
|
27
|
-
plainSubAssemblyCipherData: any;
|
|
28
|
-
}
|
|
29
|
-
export interface CreateScenarioApprovalGroups {
|
|
30
|
-
scenarioId: string;
|
|
31
|
-
event: string;
|
|
32
|
-
keyId: string;
|
|
33
|
-
quorum: number;
|
|
34
|
-
singleReject: boolean;
|
|
35
|
-
plainAssemblyCipherData?: string;
|
|
36
|
-
approvalGroups: UpdateScenarioApprovalGroup[];
|
|
37
|
-
receivers?: Receiver[];
|
|
38
|
-
}
|
|
39
|
-
export interface UpdateScenarioApprovalGroups {
|
|
40
|
-
scenarioId: string;
|
|
41
|
-
assemblyKeyId: string;
|
|
42
|
-
quorum: number;
|
|
43
|
-
singleReject: boolean;
|
|
44
|
-
plainAssemblyCipherData?: string;
|
|
45
|
-
approvalGroups: UpdateScenarioApprovalGroup[];
|
|
46
|
-
deletedGroupIds: string[];
|
|
47
|
-
}
|
|
48
|
-
export interface UpdateScenarioApprovalGroup {
|
|
49
|
-
subAssemblyId?: string;
|
|
50
|
-
quorum: number;
|
|
51
|
-
singleReject: boolean;
|
|
52
|
-
plainSubAssemblyCipherData: object;
|
|
53
|
-
approvers: UpdateScenarioApprover[];
|
|
54
|
-
deletedApproverIds?: string[];
|
|
55
|
-
}
|
|
56
|
-
export interface UpdateScenarioApprover {
|
|
57
|
-
approverId?: string;
|
|
58
|
-
keyId?: string;
|
|
59
|
-
trustedPartyId: string;
|
|
60
|
-
trustedPartySharedKeyId: string;
|
|
61
|
-
plainSharedCipherData: object;
|
|
62
|
-
approvalData?: string;
|
|
63
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { LrApolloService } from '../../api/lr-apollo.service';
|
|
2
|
-
import { EncryptionService } from '../../cryptography/encryption.service';
|
|
3
|
-
import { KeyFactoryService } from '../../cryptography/key-factory.service';
|
|
4
|
-
import { KeyGraphService } from '../../cryptography/key-graph.service';
|
|
5
|
-
import { KeyMetaService } from '../../cryptography/key-meta.service';
|
|
6
|
-
import * as slip from '../../cryptography/slip39.service';
|
|
7
|
-
import { TrustedPartyService } from '../../trusted-parties/trusted-party.service';
|
|
8
|
-
import { Receiver } from '../receivers/scenario-receiver.types';
|
|
9
|
-
import { ApprovalGroup, Approver, CreateScenarioApprovalGroups, UpdateScenarioApprovalGroups, UpdateScenarioApprover } from './scenario-approval.types';
|
|
10
|
-
export declare class ScenarioApproverService {
|
|
11
|
-
private lrApollo;
|
|
12
|
-
private keyFactory;
|
|
13
|
-
private keyMetaService;
|
|
14
|
-
private keyGraph;
|
|
15
|
-
private slip39Service;
|
|
16
|
-
private encryptionService;
|
|
17
|
-
private trustedPartyService;
|
|
18
|
-
static SLIP39_PASSPHRASE: string;
|
|
19
|
-
constructor(lrApollo: LrApolloService, keyFactory: KeyFactoryService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService, slip39Service: slip.Slip39Service, encryptionService: EncryptionService, trustedPartyService: TrustedPartyService);
|
|
20
|
-
getApprover(approverId: string): Promise<Approver>;
|
|
21
|
-
mapApproverGroup(group: any): Promise<ApprovalGroup>;
|
|
22
|
-
private mapApprover;
|
|
23
|
-
updateApprover(approver: UpdateScenarioApprover): Promise<void>;
|
|
24
|
-
createScenarioApproverAssembly(input: CreateScenarioApprovalGroups): Promise<string>;
|
|
25
|
-
updateScenarioApproverAssembly(input: UpdateScenarioApprovalGroups): Promise<void>;
|
|
26
|
-
deleteScenarioApproverAssembly(scenarioId: string, event: string, receivers: Receiver[]): Promise<void>;
|
|
27
|
-
private rewrapReceivers;
|
|
28
|
-
private mapApprovalGroups;
|
|
29
|
-
private mapApprovalGroup;
|
|
30
|
-
private mapApprovers;
|
|
31
|
-
private createSlipAssembly;
|
|
32
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const ClaimantFields: string;
|
|
2
|
-
export declare const GetScenarioClaimantQuery: import("graphql").DocumentNode;
|
|
3
|
-
export declare const AddScenarioClaimantMutation: import("graphql").DocumentNode;
|
|
4
|
-
export declare const UpdateScenarioClaimantMutation: import("graphql").DocumentNode;
|
|
5
|
-
export declare const DeleteScenarioClaimantMutation: import("graphql").DocumentNode;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LrApolloService } from '../../api/lr-apollo.service';
|
|
2
|
-
import { KeyGraphService } from '../../cryptography/key-graph.service';
|
|
3
|
-
import { KeyMetaService } from '../../cryptography/key-meta.service';
|
|
4
|
-
import { TrustedPartyService } from '../../trusted-parties/trusted-party.service';
|
|
5
|
-
import { Claimant, AddScenarioClaimant, UpdateScenarioClaimant } from './scenario-claimant.types';
|
|
6
|
-
export declare class ScenarioClaimantService {
|
|
7
|
-
private lrApollo;
|
|
8
|
-
private keyMetaService;
|
|
9
|
-
private keyGraph;
|
|
10
|
-
private tpService;
|
|
11
|
-
constructor(lrApollo: LrApolloService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService, tpService: TrustedPartyService);
|
|
12
|
-
getClaimant(claimantId: string): Promise<Claimant>;
|
|
13
|
-
mapClaimant(claimant: any): Promise<Claimant>;
|
|
14
|
-
addClaimant(claimant: AddScenarioClaimant): Promise<string>;
|
|
15
|
-
updateClaimant(claimant: UpdateScenarioClaimant): Promise<string>;
|
|
16
|
-
deleteClaimant(claimantId: string): Promise<void>;
|
|
17
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TrustedParty } from '../../trusted-parties/trusted-party.types';
|
|
2
|
-
export interface Claimant {
|
|
3
|
-
id: string;
|
|
4
|
-
keyId: string;
|
|
5
|
-
trustedParty: TrustedParty;
|
|
6
|
-
message?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface AddScenarioClaimant {
|
|
9
|
-
scenarioId: string;
|
|
10
|
-
trustedPartyId: string;
|
|
11
|
-
trustedPartySharedKeyId: string;
|
|
12
|
-
plainSharedCipherData: object;
|
|
13
|
-
}
|
|
14
|
-
export interface UpdateScenarioClaimant {
|
|
15
|
-
id: string;
|
|
16
|
-
keyId: string;
|
|
17
|
-
plainSharedCipherData: object;
|
|
18
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const ReceiverFields: string;
|
|
2
|
-
export declare const GetScenarioReceiverQuery: import("graphql").DocumentNode;
|
|
3
|
-
export declare const CreateScenarioReceiverMutation: import("graphql").DocumentNode;
|
|
4
|
-
export declare const UpdateScenarioReceiverMutation: import("graphql").DocumentNode;
|
|
5
|
-
export declare const DeleteScenarioReceiverMutation: import("graphql").DocumentNode;
|
|
6
|
-
export declare const AddScenarioReceiverDirectoryMutation: import("graphql").DocumentNode;
|
|
7
|
-
export declare const UpdateScenarioReceiverDirectoryMutation: import("graphql").DocumentNode;
|
|
8
|
-
export declare const DeleteScenarioReceiverDirectoryMutation: import("graphql").DocumentNode;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { LrApolloService } from '../../api/lr-apollo.service';
|
|
2
|
-
import { CategoryService } from '../../category/category.service';
|
|
3
|
-
import { KeyGraphService } from '../../cryptography/key-graph.service';
|
|
4
|
-
import { KeyMetaService } from '../../cryptography/key-meta.service';
|
|
5
|
-
import { RecordService } from '../../record/record.service';
|
|
6
|
-
import { TrustedPartyService } from '../../trusted-parties/trusted-party.service';
|
|
7
|
-
import { AddScenarioReceiverCategoryInput, AddScenarioReceiverRecordInput, AddScenarioReceiver, Receiver, UpdateScenarioReceiver, UpdateScenarioReceiverItemInput } from './scenario-receiver.types';
|
|
8
|
-
export declare class ScenarioReceiverService {
|
|
9
|
-
private lrApollo;
|
|
10
|
-
private keyGraph;
|
|
11
|
-
private keyMetaService;
|
|
12
|
-
private tpService;
|
|
13
|
-
private categoryService;
|
|
14
|
-
private recordService;
|
|
15
|
-
constructor(lrApollo: LrApolloService, keyGraph: KeyGraphService, keyMetaService: KeyMetaService, tpService: TrustedPartyService, categoryService: CategoryService, recordService: RecordService);
|
|
16
|
-
getReceiver(receiverId: string): Promise<Receiver>;
|
|
17
|
-
mapReceiver(receiver: any): Promise<Receiver>;
|
|
18
|
-
private mapCategories;
|
|
19
|
-
private mapRecords;
|
|
20
|
-
private mapReceiverCategory;
|
|
21
|
-
private mapReceiverRecord;
|
|
22
|
-
addReceiver(receiver: AddScenarioReceiver): Promise<string>;
|
|
23
|
-
updateReceiver(receiver: UpdateScenarioReceiver): Promise<void>;
|
|
24
|
-
deleteReceiver(receiverId: string): Promise<void>;
|
|
25
|
-
addReceiverCategory(input: AddScenarioReceiverCategoryInput): Promise<string>;
|
|
26
|
-
addReceiverRecord(input: AddScenarioReceiverRecordInput): Promise<string>;
|
|
27
|
-
private addReceiverItem;
|
|
28
|
-
updateReceiverItem(input: UpdateScenarioReceiverItemInput): Promise<void>;
|
|
29
|
-
deleteReceiverItem(receiverCategoryId: string): Promise<void>;
|
|
30
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AccessLevel } from './../../category/category.types';
|
|
2
|
-
import { TrustedParty } from '../../trusted-parties/trusted-party.types';
|
|
3
|
-
import { Category, VaultRecord } from '../../category/category.types';
|
|
4
|
-
export interface Receiver {
|
|
5
|
-
id: string;
|
|
6
|
-
keyId: string;
|
|
7
|
-
trustedParty: TrustedParty;
|
|
8
|
-
message?: string;
|
|
9
|
-
categories: ReceiverCategory[];
|
|
10
|
-
records?: ReceiverRecord[];
|
|
11
|
-
}
|
|
12
|
-
export interface ReceiverCategory {
|
|
13
|
-
id: string;
|
|
14
|
-
keyId: string;
|
|
15
|
-
accessLevel: AccessLevel;
|
|
16
|
-
category: Category;
|
|
17
|
-
}
|
|
18
|
-
export interface ReceiverRecord {
|
|
19
|
-
id: string;
|
|
20
|
-
keyId: string;
|
|
21
|
-
accessLevel: AccessLevel;
|
|
22
|
-
record: VaultRecord;
|
|
23
|
-
}
|
|
24
|
-
export interface AddScenarioReceiver {
|
|
25
|
-
scenarioId: string;
|
|
26
|
-
trustedPartyId: string;
|
|
27
|
-
trustedPartySharedKeyId: string;
|
|
28
|
-
plainSharedCipherData: object;
|
|
29
|
-
}
|
|
30
|
-
export interface UpdateScenarioReceiver {
|
|
31
|
-
id: string;
|
|
32
|
-
keyId: string;
|
|
33
|
-
plainSharedCipherData: object;
|
|
34
|
-
}
|
|
35
|
-
export interface AddScenarioReceiverItemInput {
|
|
36
|
-
scenarioId: string;
|
|
37
|
-
assemblyKeyId?: string;
|
|
38
|
-
receiverId: string;
|
|
39
|
-
receiverKeyId: string;
|
|
40
|
-
accessRole: AccessLevel;
|
|
41
|
-
plainSharedCipherData?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface AddScenarioReceiverCategoryInput extends AddScenarioReceiverItemInput {
|
|
44
|
-
categoryId: string;
|
|
45
|
-
}
|
|
46
|
-
export interface AddScenarioReceiverRecordInput extends AddScenarioReceiverItemInput {
|
|
47
|
-
recordId: string;
|
|
48
|
-
}
|
|
49
|
-
export interface UpdateScenarioReceiverItemInput {
|
|
50
|
-
id: string;
|
|
51
|
-
keyId: string;
|
|
52
|
-
accessRole: AccessLevel;
|
|
53
|
-
plainSharedCipherData?: string;
|
|
54
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LrException } from './../_common/exceptions';
|
|
2
|
-
import { ScenarioApproverService } from './approvals/scenario-approver.service';
|
|
3
|
-
import { ScenarioClaimantService } from './claimants/scenario-claimant.service';
|
|
4
|
-
import { ScenarioReceiverService } from './receivers/scenario-receiver.service';
|
|
5
|
-
import { ScenarioService } from './scenario.service';
|
|
6
|
-
import { NewScenario, UpdateScenario } from './scenario.types';
|
|
7
|
-
export declare class ScenarioSetupService {
|
|
8
|
-
private scenarioService;
|
|
9
|
-
private scenarioClaimantService;
|
|
10
|
-
private scenarioApproverService;
|
|
11
|
-
private scenarioReceiverService;
|
|
12
|
-
constructor(scenarioService: ScenarioService, scenarioClaimantService: ScenarioClaimantService, scenarioApproverService: ScenarioApproverService, scenarioReceiverService: ScenarioReceiverService);
|
|
13
|
-
setupScenario(newScenario: NewScenario): Promise<{
|
|
14
|
-
scenarioId: string;
|
|
15
|
-
error?: LrException;
|
|
16
|
-
}>;
|
|
17
|
-
updateScenario(updateScenario: UpdateScenario): Promise<void>;
|
|
18
|
-
private updateClaimant;
|
|
19
|
-
private updateApprovalGroups;
|
|
20
|
-
private updateReceiver;
|
|
21
|
-
private updateReceiverItems;
|
|
22
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ID } from '../api/types';
|
|
2
|
-
export declare const GetSharedScenarioQuery: import("graphql").DocumentNode;
|
|
3
|
-
export declare const GetAllSharedScenariosQuery: import("graphql").DocumentNode;
|
|
4
|
-
export declare const GetTrustedPartyScenariosQuery: import("graphql").DocumentNode;
|
|
5
|
-
export declare const GetAllScenarioIdsQuery: import("graphql").DocumentNode;
|
|
6
|
-
export declare const GetAllScenariosQuery: import("graphql").DocumentNode;
|
|
7
|
-
export declare const GetScenarioQuery: import("graphql").DocumentNode;
|
|
8
|
-
export declare const GetAllScenarioClaimsQuery: import("graphql").DocumentNode;
|
|
9
|
-
export declare const CreateScenarioMutation: import("graphql").DocumentNode;
|
|
10
|
-
export declare const UpdateScenarioMutation: import("graphql").DocumentNode;
|
|
11
|
-
export declare const DeleteScenarioMutation: import("graphql").DocumentNode;
|
|
12
|
-
export declare const EnableScenarioMutation: import("graphql").DocumentNode;
|
|
13
|
-
export declare const DisableScenarioMutation: import("graphql").DocumentNode;
|
|
14
|
-
export declare const CreateScenarioClaimMutation: import("graphql").DocumentNode;
|
|
15
|
-
export declare const CancelScenarioClaimMutation: import("graphql").DocumentNode;
|
|
16
|
-
export interface ApproveScenarioClaimMutationResult {
|
|
17
|
-
approveScenarioClaim: {
|
|
18
|
-
sharedClaim: {
|
|
19
|
-
id: ID;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export declare const ApproveScenarioClaimMutation: import("../_common/ast").TypedDocumentNode<ApproveScenarioClaimMutationResult>;
|
|
24
|
-
export interface RejectScenarioClaimMutationResult {
|
|
25
|
-
rejectScenarioClaim: {
|
|
26
|
-
sharedClaim: {
|
|
27
|
-
id: ID;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export declare const RejectScenarioClaimMutation: import("../_common/ast").TypedDocumentNode<RejectScenarioClaimMutationResult>;
|
|
32
|
-
export declare const ReceiveScenarioClaimMutation: import("graphql").DocumentNode;
|
|
33
|
-
export declare const ResetScenarioMutation: import("graphql").DocumentNode;
|
|
34
|
-
export declare const UpdateScenarioApproverSubAssemblyMutation: import("graphql").DocumentNode;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
-
import { EncryptionService } from '../cryptography/encryption.service';
|
|
3
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
4
|
-
import { KeyMetaService } from '../cryptography/key-meta.service';
|
|
5
|
-
import { KeyService } from '../cryptography/key.service';
|
|
6
|
-
import * as slip from '../cryptography/slip39.service';
|
|
7
|
-
import { TrustedPartyService } from '../trusted-parties/trusted-party.service';
|
|
8
|
-
import { ScenarioApproverService } from './approvals/scenario-approver.service';
|
|
9
|
-
import { ScenarioClaimantService } from './claimants/scenario-claimant.service';
|
|
10
|
-
import { ScenarioReceiverService } from './receivers/scenario-receiver.service';
|
|
11
|
-
import { CreateScenarioInput, Scenario, ScenarioClaim, ScenarioSummary, SharedScenario, UpdateScenarioInput, SharedScenarioSummary } from './scenario.types';
|
|
12
|
-
import { KeyFactoryService as KFS } from '../cryptography/key-factory.service';
|
|
13
|
-
import { LrGraphQLService, LrMergedMutation } from '../api/lr-graphql';
|
|
14
|
-
export declare class ScenarioService {
|
|
15
|
-
private lrApollo;
|
|
16
|
-
private keyMetaService;
|
|
17
|
-
private keyFactory;
|
|
18
|
-
private keyService;
|
|
19
|
-
private encryptionService;
|
|
20
|
-
private keyGraph;
|
|
21
|
-
private tpService;
|
|
22
|
-
private slip39Service;
|
|
23
|
-
private scenarioClaimantService;
|
|
24
|
-
private scenarioApproverService;
|
|
25
|
-
private scenarioReceiverService;
|
|
26
|
-
private lrGraphQL;
|
|
27
|
-
constructor(lrApollo: LrApolloService, keyMetaService: KeyMetaService, keyFactory: KFS, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService, tpService: TrustedPartyService, slip39Service: slip.Slip39Service, scenarioClaimantService: ScenarioClaimantService, scenarioApproverService: ScenarioApproverService, scenarioReceiverService: ScenarioReceiverService, lrGraphQL: LrGraphQLService);
|
|
28
|
-
getMyScenarios(): Promise<ScenarioSummary[]>;
|
|
29
|
-
private mapScenarioSummary;
|
|
30
|
-
getSharedScenarios(): Promise<SharedScenarioSummary[]>;
|
|
31
|
-
private mapSharedScenarioSummary;
|
|
32
|
-
getSharedScenario(scenarioId: string): Promise<SharedScenario>;
|
|
33
|
-
private mapSharedScenario;
|
|
34
|
-
getTrustedPartyScenarios(trustedPartyId: string): Promise<{
|
|
35
|
-
myScenarios: ScenarioSummary[];
|
|
36
|
-
sharedScenarios: SharedScenario[];
|
|
37
|
-
}>;
|
|
38
|
-
getScenarioClaims(): Promise<ScenarioClaim[]>;
|
|
39
|
-
private getCipherData;
|
|
40
|
-
private getApproverKey;
|
|
41
|
-
getScenario(scenarioId: string): Promise<Scenario>;
|
|
42
|
-
private mapScenario;
|
|
43
|
-
createScenario(input: CreateScenarioInput): Promise<string>;
|
|
44
|
-
updateScenario(input: UpdateScenarioInput): Promise<void>;
|
|
45
|
-
enableScenario(scenarioId: string): Promise<void>;
|
|
46
|
-
disableScenario(scenarioId: string): Promise<void>;
|
|
47
|
-
deleteScenario(scenarioId: string): Promise<void>;
|
|
48
|
-
createClaim(scenarioId: string): Promise<string>;
|
|
49
|
-
cancelClaim(claimId: string): Promise<void>;
|
|
50
|
-
approveClaim(scenarioId: string, claimId: string): Promise<any>;
|
|
51
|
-
approveClaimMutation(scenarioId: string, claimId: string): Promise<LrMergedMutation<any[]>>;
|
|
52
|
-
rejectClaim(scenarioId: string, claimId: string): Promise<any>;
|
|
53
|
-
rejectClaimMutation(scenarioId: string, claimId: string): Promise<LrMergedMutation<any[]>>;
|
|
54
|
-
receiveClaim(scenarioId: string, claimId: string): Promise<void>;
|
|
55
|
-
private getClaimAssemblyKey;
|
|
56
|
-
resetScenario(scenarioId: string, disable?: boolean): Promise<void>;
|
|
57
|
-
getAllScenarioIds(): Promise<string[]>;
|
|
58
|
-
}
|