@lifeready/core 8.0.2 → 8.0.4
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 +31 -24
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/scenario/scenario.service.js +24 -13
- package/esm2015/lib/scenario/scenario.types.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party.service.js +16 -18
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +37 -28
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +6 -4
- package/lib/scenario/scenario.service.d.ts +57 -21
- package/lib/scenario/scenario.types.d.ts +1 -1
- package/lib/trusted-party/trusted-party.service.d.ts +16 -16
- package/lib/trusted-party/trusted-party.types.d.ts +5 -5
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -159,8 +159,7 @@ export declare enum DetachedShareStateChoice {
|
|
|
159
159
|
IN_PROGRESS = "IN_PROGRESS",
|
|
160
160
|
COMPLETED = "COMPLETED"
|
|
161
161
|
}
|
|
162
|
-
export interface
|
|
163
|
-
item?: ItemType;
|
|
162
|
+
export interface ItemShareBase extends Node, TimeStamped {
|
|
164
163
|
tp?: TpNode;
|
|
165
164
|
role?: AccessRoleChoice;
|
|
166
165
|
issuer?: PublicProfile;
|
|
@@ -169,8 +168,11 @@ export interface ItemShare<ItemType> extends Node, TimeStamped {
|
|
|
169
168
|
shareType?: ShareTypeChoice;
|
|
170
169
|
detachedShareState?: DetachedShareStateChoice;
|
|
171
170
|
}
|
|
172
|
-
export interface
|
|
173
|
-
|
|
171
|
+
export interface ItemShare<ItemType> extends ItemShareBase {
|
|
172
|
+
item?: ItemType;
|
|
173
|
+
}
|
|
174
|
+
export interface ItemShareLrNList<ItemShareType> {
|
|
175
|
+
list?: ItemShareType[];
|
|
174
176
|
}
|
|
175
177
|
export declare type DirectoryShareNode = ItemShare<DirectoryNode>;
|
|
176
178
|
export declare type FileShareNode = ItemShare<FileNode>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { LrMergedMutation, LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
+
import { AccessRoleChoice } from '../api/types';
|
|
3
4
|
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
5
|
import { ItemService } from '../item/item.service';
|
|
5
6
|
import { KeyGraphService } from '../key/key-graph.service';
|
|
@@ -49,12 +50,17 @@ export declare class ScenarioService extends LrService {
|
|
|
49
50
|
wrappedAssemblyKeyVerifierPrk: string;
|
|
50
51
|
};
|
|
51
52
|
createReceivers: {
|
|
52
|
-
addDirectories: {
|
|
53
|
+
addDirectories: ({
|
|
53
54
|
directoryId: string;
|
|
55
|
+
accessRole: AccessRoleChoice.DENY;
|
|
56
|
+
wrappedItemKey: any;
|
|
57
|
+
sharedCipherData: any;
|
|
58
|
+
} | {
|
|
59
|
+
directoryId: string;
|
|
60
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
54
61
|
wrappedItemKey: string;
|
|
55
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
56
62
|
sharedCipherData: string;
|
|
57
|
-
}[];
|
|
63
|
+
})[];
|
|
58
64
|
tpId: string;
|
|
59
65
|
tpSharedKeyId: string;
|
|
60
66
|
tpSharedKeyWrappedSharedKey: string;
|
|
@@ -125,30 +131,45 @@ export declare class ScenarioService extends LrService {
|
|
|
125
131
|
wrappedAssemblyKeyVerifierPrk: string;
|
|
126
132
|
};
|
|
127
133
|
createReceivers: {
|
|
128
|
-
addDirectories: {
|
|
134
|
+
addDirectories: ({
|
|
129
135
|
directoryId: string;
|
|
136
|
+
accessRole: AccessRoleChoice.DENY;
|
|
137
|
+
wrappedItemKey: any;
|
|
138
|
+
sharedCipherData: any;
|
|
139
|
+
} | {
|
|
140
|
+
directoryId: string;
|
|
141
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
130
142
|
wrappedItemKey: string;
|
|
131
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
132
143
|
sharedCipherData: string;
|
|
133
|
-
}[];
|
|
144
|
+
})[];
|
|
134
145
|
tpId: string;
|
|
135
146
|
tpSharedKeyId: string;
|
|
136
147
|
tpSharedKeyWrappedSharedKey: string;
|
|
137
148
|
sharedCipherData: string;
|
|
138
149
|
}[];
|
|
139
150
|
updateReceivers: {
|
|
140
|
-
addDirectories: {
|
|
151
|
+
addDirectories: ({
|
|
141
152
|
directoryId: string;
|
|
153
|
+
accessRole: AccessRoleChoice.DENY;
|
|
154
|
+
wrappedItemKey: any;
|
|
155
|
+
sharedCipherData: any;
|
|
156
|
+
} | {
|
|
157
|
+
directoryId: string;
|
|
158
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
142
159
|
wrappedItemKey: string;
|
|
143
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
144
160
|
sharedCipherData: string;
|
|
145
|
-
}[];
|
|
146
|
-
updateDirectories: {
|
|
161
|
+
})[];
|
|
162
|
+
updateDirectories: ({
|
|
163
|
+
directoryId: string;
|
|
164
|
+
accessRole: AccessRoleChoice.DENY;
|
|
165
|
+
wrappedItemKey: any;
|
|
166
|
+
sharedCipherData: any;
|
|
167
|
+
} | {
|
|
147
168
|
directoryId: string;
|
|
169
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
148
170
|
wrappedItemKey: string;
|
|
149
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
150
171
|
sharedCipherData: string;
|
|
151
|
-
}[];
|
|
172
|
+
})[];
|
|
152
173
|
deleteDirectories: string[];
|
|
153
174
|
tpId: string;
|
|
154
175
|
sharedKeyId: string;
|
|
@@ -226,30 +247,45 @@ export declare class ScenarioService extends LrService {
|
|
|
226
247
|
wrappedAssemblyKeyVerifierPrk: string;
|
|
227
248
|
};
|
|
228
249
|
createReceivers: {
|
|
229
|
-
addDirectories: {
|
|
250
|
+
addDirectories: ({
|
|
251
|
+
directoryId: string;
|
|
252
|
+
accessRole: AccessRoleChoice.DENY;
|
|
253
|
+
wrappedItemKey: any;
|
|
254
|
+
sharedCipherData: any;
|
|
255
|
+
} | {
|
|
230
256
|
directoryId: string;
|
|
257
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
231
258
|
wrappedItemKey: string;
|
|
232
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
233
259
|
sharedCipherData: string;
|
|
234
|
-
}[];
|
|
260
|
+
})[];
|
|
235
261
|
tpId: string;
|
|
236
262
|
tpSharedKeyId: string;
|
|
237
263
|
tpSharedKeyWrappedSharedKey: string;
|
|
238
264
|
sharedCipherData: string;
|
|
239
265
|
}[];
|
|
240
266
|
updateReceivers: {
|
|
241
|
-
addDirectories: {
|
|
267
|
+
addDirectories: ({
|
|
268
|
+
directoryId: string;
|
|
269
|
+
accessRole: AccessRoleChoice.DENY;
|
|
270
|
+
wrappedItemKey: any;
|
|
271
|
+
sharedCipherData: any;
|
|
272
|
+
} | {
|
|
242
273
|
directoryId: string;
|
|
274
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
243
275
|
wrappedItemKey: string;
|
|
244
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
245
276
|
sharedCipherData: string;
|
|
246
|
-
}[];
|
|
247
|
-
updateDirectories: {
|
|
277
|
+
})[];
|
|
278
|
+
updateDirectories: ({
|
|
279
|
+
directoryId: string;
|
|
280
|
+
accessRole: AccessRoleChoice.DENY;
|
|
281
|
+
wrappedItemKey: any;
|
|
282
|
+
sharedCipherData: any;
|
|
283
|
+
} | {
|
|
248
284
|
directoryId: string;
|
|
285
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
249
286
|
wrappedItemKey: string;
|
|
250
|
-
accessRole: import("../api/types").AccessRoleChoice;
|
|
251
287
|
sharedCipherData: string;
|
|
252
|
-
}[];
|
|
288
|
+
})[];
|
|
253
289
|
deleteDirectories: string[];
|
|
254
290
|
tpId: string;
|
|
255
291
|
sharedKeyId: string;
|
|
@@ -13,7 +13,7 @@ export interface ReceiverDirectoryOptions {
|
|
|
13
13
|
directoryId: string;
|
|
14
14
|
directoryKeyId?: string;
|
|
15
15
|
accessRole: AccessRoleChoice;
|
|
16
|
-
sharedCipherDataClearJson
|
|
16
|
+
sharedCipherDataClearJson?: JSONObject;
|
|
17
17
|
}
|
|
18
18
|
export declare type CreateReceiverDirectoryOptions = ReceiverDirectoryOptions;
|
|
19
19
|
export declare type UpdateReceiverDirectoryOptions = ReceiverDirectoryOptions;
|
|
@@ -7,7 +7,7 @@ import { KeyFactoryService } from '../key/key-factory.service';
|
|
|
7
7
|
import { KeyGraphService } from '../key/key-graph.service';
|
|
8
8
|
import { KeyService } from '../key/key.service';
|
|
9
9
|
import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation, ShareDirectoryMutation, ShareFileMutation, UnshareDirectoryMutation } from './trusted-party.gql';
|
|
10
|
-
import {
|
|
10
|
+
import { CompleteDetachedItemShareOptions, CreateItemShareOptions, ShareItemOptions, UnshareItemOptions, UpdateItemShareOptions } from './trusted-party.types';
|
|
11
11
|
export declare class TrustedPartyService extends LrService {
|
|
12
12
|
private ngZone;
|
|
13
13
|
private injector;
|
|
@@ -61,8 +61,8 @@ export declare class TrustedPartyService extends LrService {
|
|
|
61
61
|
};
|
|
62
62
|
}>>;
|
|
63
63
|
private unshareItemMutation;
|
|
64
|
-
createDirectoryShare(options:
|
|
65
|
-
createDirectoryShareMutation(options:
|
|
64
|
+
createDirectoryShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
|
|
65
|
+
createDirectoryShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
|
|
66
66
|
input: {
|
|
67
67
|
id: string;
|
|
68
68
|
tpId: string;
|
|
@@ -73,8 +73,8 @@ export declare class TrustedPartyService extends LrService {
|
|
|
73
73
|
shareType: import("../api/types").ShareTypeChoice;
|
|
74
74
|
};
|
|
75
75
|
}>>;
|
|
76
|
-
createFileShare(options:
|
|
77
|
-
createFileShareMutation(options:
|
|
76
|
+
createFileShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
|
|
77
|
+
createFileShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateFileShareMutationResult, {
|
|
78
78
|
input: {
|
|
79
79
|
id: string;
|
|
80
80
|
tpId: string;
|
|
@@ -85,30 +85,30 @@ export declare class TrustedPartyService extends LrService {
|
|
|
85
85
|
shareType: import("../api/types").ShareTypeChoice;
|
|
86
86
|
};
|
|
87
87
|
}>>;
|
|
88
|
-
private
|
|
89
|
-
updateDirectoryShare(options:
|
|
90
|
-
updateDirectoryShareMutation(options:
|
|
88
|
+
private prepareCreateItemShareMutation;
|
|
89
|
+
updateDirectoryShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateDirectoryShareMutationResult>;
|
|
90
|
+
updateDirectoryShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
|
|
91
91
|
input: {
|
|
92
92
|
id: string;
|
|
93
93
|
accessRole: import("../api/types").AccessRoleChoice;
|
|
94
94
|
};
|
|
95
95
|
}>>;
|
|
96
|
-
updateFileShare(options:
|
|
97
|
-
updateFileShareMutation(options:
|
|
96
|
+
updateFileShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
|
|
97
|
+
updateFileShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
|
|
98
98
|
input: {
|
|
99
99
|
id: string;
|
|
100
100
|
accessRole: import("../api/types").AccessRoleChoice;
|
|
101
101
|
};
|
|
102
102
|
}>>;
|
|
103
|
-
private
|
|
103
|
+
private prepareUpdateItemShareMutation;
|
|
104
104
|
deleteDirectoryShare(id: string): Promise<import("./trusted-party.gql").DeleteDirectoryShareMutationResult>;
|
|
105
105
|
deleteDirectoryShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteDirectoryShareMutationResult, {
|
|
106
106
|
input: {
|
|
107
107
|
id: string;
|
|
108
108
|
};
|
|
109
109
|
}>>;
|
|
110
|
-
completeDetachedDirectoryShare(options:
|
|
111
|
-
completeDetachedDirectoryShareMutation(options:
|
|
110
|
+
completeDetachedDirectoryShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
|
|
111
|
+
completeDetachedDirectoryShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
|
|
112
112
|
input: {
|
|
113
113
|
id: string;
|
|
114
114
|
keyId: string;
|
|
@@ -116,8 +116,8 @@ export declare class TrustedPartyService extends LrService {
|
|
|
116
116
|
wrappedKey: string;
|
|
117
117
|
};
|
|
118
118
|
}>>;
|
|
119
|
-
completeDetachedFileShare(options:
|
|
120
|
-
completeDetachedFileShareMutation(options:
|
|
119
|
+
completeDetachedFileShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult>;
|
|
120
|
+
completeDetachedFileShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedFileShareMutationResult, {
|
|
121
121
|
input: {
|
|
122
122
|
id: string;
|
|
123
123
|
keyId: string;
|
|
@@ -125,7 +125,7 @@ export declare class TrustedPartyService extends LrService {
|
|
|
125
125
|
wrappedKey: string;
|
|
126
126
|
};
|
|
127
127
|
}>>;
|
|
128
|
-
private
|
|
128
|
+
private prepareCompleteDetachedItemShareMutation;
|
|
129
129
|
requestMkReshareMutation(tpId: LrRelayIdInput): Promise<LrMutation<RequestTpMkReshareMutation, {
|
|
130
130
|
input: {
|
|
131
131
|
tpId: string;
|
|
@@ -10,7 +10,7 @@ export interface UnshareItemOptions {
|
|
|
10
10
|
itemId: string;
|
|
11
11
|
tpId: string;
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
13
|
+
export interface CreateItemShareOptions {
|
|
14
14
|
itemId: LrRelayIdInput;
|
|
15
15
|
itemKeyId?: LrRelayIdInput;
|
|
16
16
|
tpId: LrRelayIdInput;
|
|
@@ -18,11 +18,11 @@ export interface CreateSharedItemOptions {
|
|
|
18
18
|
accessRole: AccessRoleChoice;
|
|
19
19
|
shareType: ShareTypeChoice;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
21
|
+
export interface UpdateItemShareOptions {
|
|
22
|
+
itemShareId: LrRelayIdInput;
|
|
23
23
|
accessRole: AccessRoleChoice;
|
|
24
24
|
}
|
|
25
|
-
export interface
|
|
26
|
-
|
|
25
|
+
export interface CompleteDetachedItemShareOptions {
|
|
26
|
+
itemShareId: LrRelayIdInput;
|
|
27
27
|
itemKeyId?: LrRelayIdInput;
|
|
28
28
|
}
|