@lifeready/core 8.0.12 → 8.0.13
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 +168 -25
- 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/scenario/scenario.service.js +3 -1
- package/esm2015/lib/trusted-party/trusted-party.gql.private.js +25 -1
- package/esm2015/lib/trusted-party/trusted-party.service.js +95 -15
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/fesm2015/lifeready-core.js +117 -12
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/scenario/scenario.service.d.ts +56 -0
- package/lib/trusted-party/trusted-party.gql.private.d.ts +16 -0
- package/lib/trusted-party/trusted-party.service.d.ts +55 -11
- package/lib/trusted-party/trusted-party.types.d.ts +6 -2
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -56,42 +56,50 @@ export declare class ScenarioService extends LrService {
|
|
|
56
56
|
addDirectories: ({
|
|
57
57
|
directoryId: string;
|
|
58
58
|
accessRole: AccessRoleChoice.DENY;
|
|
59
|
+
itemKeyId: any;
|
|
59
60
|
wrappedItemKey: any;
|
|
60
61
|
sharedCipherData: any;
|
|
61
62
|
} | {
|
|
62
63
|
fileId: string;
|
|
63
64
|
accessRole: AccessRoleChoice.DENY;
|
|
65
|
+
itemKeyId: any;
|
|
64
66
|
wrappedItemKey: any;
|
|
65
67
|
sharedCipherData: any;
|
|
66
68
|
} | {
|
|
67
69
|
directoryId: string;
|
|
68
70
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
71
|
+
itemKeyId: any;
|
|
69
72
|
wrappedItemKey: string;
|
|
70
73
|
sharedCipherData: string;
|
|
71
74
|
} | {
|
|
72
75
|
fileId: string;
|
|
73
76
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
77
|
+
itemKeyId: any;
|
|
74
78
|
wrappedItemKey: string;
|
|
75
79
|
sharedCipherData: string;
|
|
76
80
|
})[];
|
|
77
81
|
addFiles: ({
|
|
78
82
|
directoryId: string;
|
|
79
83
|
accessRole: AccessRoleChoice.DENY;
|
|
84
|
+
itemKeyId: any;
|
|
80
85
|
wrappedItemKey: any;
|
|
81
86
|
sharedCipherData: any;
|
|
82
87
|
} | {
|
|
83
88
|
fileId: string;
|
|
84
89
|
accessRole: AccessRoleChoice.DENY;
|
|
90
|
+
itemKeyId: any;
|
|
85
91
|
wrappedItemKey: any;
|
|
86
92
|
sharedCipherData: any;
|
|
87
93
|
} | {
|
|
88
94
|
directoryId: string;
|
|
89
95
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
96
|
+
itemKeyId: any;
|
|
90
97
|
wrappedItemKey: string;
|
|
91
98
|
sharedCipherData: string;
|
|
92
99
|
} | {
|
|
93
100
|
fileId: string;
|
|
94
101
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
102
|
+
itemKeyId: any;
|
|
95
103
|
wrappedItemKey: string;
|
|
96
104
|
sharedCipherData: string;
|
|
97
105
|
})[];
|
|
@@ -169,42 +177,50 @@ export declare class ScenarioService extends LrService {
|
|
|
169
177
|
addDirectories: ({
|
|
170
178
|
directoryId: string;
|
|
171
179
|
accessRole: AccessRoleChoice.DENY;
|
|
180
|
+
itemKeyId: any;
|
|
172
181
|
wrappedItemKey: any;
|
|
173
182
|
sharedCipherData: any;
|
|
174
183
|
} | {
|
|
175
184
|
fileId: string;
|
|
176
185
|
accessRole: AccessRoleChoice.DENY;
|
|
186
|
+
itemKeyId: any;
|
|
177
187
|
wrappedItemKey: any;
|
|
178
188
|
sharedCipherData: any;
|
|
179
189
|
} | {
|
|
180
190
|
directoryId: string;
|
|
181
191
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
192
|
+
itemKeyId: any;
|
|
182
193
|
wrappedItemKey: string;
|
|
183
194
|
sharedCipherData: string;
|
|
184
195
|
} | {
|
|
185
196
|
fileId: string;
|
|
186
197
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
198
|
+
itemKeyId: any;
|
|
187
199
|
wrappedItemKey: string;
|
|
188
200
|
sharedCipherData: string;
|
|
189
201
|
})[];
|
|
190
202
|
addFiles: ({
|
|
191
203
|
directoryId: string;
|
|
192
204
|
accessRole: AccessRoleChoice.DENY;
|
|
205
|
+
itemKeyId: any;
|
|
193
206
|
wrappedItemKey: any;
|
|
194
207
|
sharedCipherData: any;
|
|
195
208
|
} | {
|
|
196
209
|
fileId: string;
|
|
197
210
|
accessRole: AccessRoleChoice.DENY;
|
|
211
|
+
itemKeyId: any;
|
|
198
212
|
wrappedItemKey: any;
|
|
199
213
|
sharedCipherData: any;
|
|
200
214
|
} | {
|
|
201
215
|
directoryId: string;
|
|
202
216
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
217
|
+
itemKeyId: any;
|
|
203
218
|
wrappedItemKey: string;
|
|
204
219
|
sharedCipherData: string;
|
|
205
220
|
} | {
|
|
206
221
|
fileId: string;
|
|
207
222
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
223
|
+
itemKeyId: any;
|
|
208
224
|
wrappedItemKey: string;
|
|
209
225
|
sharedCipherData: string;
|
|
210
226
|
})[];
|
|
@@ -217,84 +233,100 @@ export declare class ScenarioService extends LrService {
|
|
|
217
233
|
addDirectories: ({
|
|
218
234
|
directoryId: string;
|
|
219
235
|
accessRole: AccessRoleChoice.DENY;
|
|
236
|
+
itemKeyId: any;
|
|
220
237
|
wrappedItemKey: any;
|
|
221
238
|
sharedCipherData: any;
|
|
222
239
|
} | {
|
|
223
240
|
fileId: string;
|
|
224
241
|
accessRole: AccessRoleChoice.DENY;
|
|
242
|
+
itemKeyId: any;
|
|
225
243
|
wrappedItemKey: any;
|
|
226
244
|
sharedCipherData: any;
|
|
227
245
|
} | {
|
|
228
246
|
directoryId: string;
|
|
229
247
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
248
|
+
itemKeyId: any;
|
|
230
249
|
wrappedItemKey: string;
|
|
231
250
|
sharedCipherData: string;
|
|
232
251
|
} | {
|
|
233
252
|
fileId: string;
|
|
234
253
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
254
|
+
itemKeyId: any;
|
|
235
255
|
wrappedItemKey: string;
|
|
236
256
|
sharedCipherData: string;
|
|
237
257
|
})[];
|
|
238
258
|
addFiles: ({
|
|
239
259
|
directoryId: string;
|
|
240
260
|
accessRole: AccessRoleChoice.DENY;
|
|
261
|
+
itemKeyId: any;
|
|
241
262
|
wrappedItemKey: any;
|
|
242
263
|
sharedCipherData: any;
|
|
243
264
|
} | {
|
|
244
265
|
fileId: string;
|
|
245
266
|
accessRole: AccessRoleChoice.DENY;
|
|
267
|
+
itemKeyId: any;
|
|
246
268
|
wrappedItemKey: any;
|
|
247
269
|
sharedCipherData: any;
|
|
248
270
|
} | {
|
|
249
271
|
directoryId: string;
|
|
250
272
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
273
|
+
itemKeyId: any;
|
|
251
274
|
wrappedItemKey: string;
|
|
252
275
|
sharedCipherData: string;
|
|
253
276
|
} | {
|
|
254
277
|
fileId: string;
|
|
255
278
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
279
|
+
itemKeyId: any;
|
|
256
280
|
wrappedItemKey: string;
|
|
257
281
|
sharedCipherData: string;
|
|
258
282
|
})[];
|
|
259
283
|
updateDirectories: ({
|
|
260
284
|
directoryId: string;
|
|
261
285
|
accessRole: AccessRoleChoice.DENY;
|
|
286
|
+
itemKeyId: any;
|
|
262
287
|
wrappedItemKey: any;
|
|
263
288
|
sharedCipherData: any;
|
|
264
289
|
} | {
|
|
265
290
|
fileId: string;
|
|
266
291
|
accessRole: AccessRoleChoice.DENY;
|
|
292
|
+
itemKeyId: any;
|
|
267
293
|
wrappedItemKey: any;
|
|
268
294
|
sharedCipherData: any;
|
|
269
295
|
} | {
|
|
270
296
|
directoryId: string;
|
|
271
297
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
298
|
+
itemKeyId: any;
|
|
272
299
|
wrappedItemKey: string;
|
|
273
300
|
sharedCipherData: string;
|
|
274
301
|
} | {
|
|
275
302
|
fileId: string;
|
|
276
303
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
304
|
+
itemKeyId: any;
|
|
277
305
|
wrappedItemKey: string;
|
|
278
306
|
sharedCipherData: string;
|
|
279
307
|
})[];
|
|
280
308
|
updateFiles: ({
|
|
281
309
|
directoryId: string;
|
|
282
310
|
accessRole: AccessRoleChoice.DENY;
|
|
311
|
+
itemKeyId: any;
|
|
283
312
|
wrappedItemKey: any;
|
|
284
313
|
sharedCipherData: any;
|
|
285
314
|
} | {
|
|
286
315
|
fileId: string;
|
|
287
316
|
accessRole: AccessRoleChoice.DENY;
|
|
317
|
+
itemKeyId: any;
|
|
288
318
|
wrappedItemKey: any;
|
|
289
319
|
sharedCipherData: any;
|
|
290
320
|
} | {
|
|
291
321
|
directoryId: string;
|
|
292
322
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
323
|
+
itemKeyId: any;
|
|
293
324
|
wrappedItemKey: string;
|
|
294
325
|
sharedCipherData: string;
|
|
295
326
|
} | {
|
|
296
327
|
fileId: string;
|
|
297
328
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
329
|
+
itemKeyId: any;
|
|
298
330
|
wrappedItemKey: string;
|
|
299
331
|
sharedCipherData: string;
|
|
300
332
|
})[];
|
|
@@ -380,42 +412,50 @@ export declare class ScenarioService extends LrService {
|
|
|
380
412
|
addDirectories: ({
|
|
381
413
|
directoryId: string;
|
|
382
414
|
accessRole: AccessRoleChoice.DENY;
|
|
415
|
+
itemKeyId: any;
|
|
383
416
|
wrappedItemKey: any;
|
|
384
417
|
sharedCipherData: any;
|
|
385
418
|
} | {
|
|
386
419
|
fileId: string;
|
|
387
420
|
accessRole: AccessRoleChoice.DENY;
|
|
421
|
+
itemKeyId: any;
|
|
388
422
|
wrappedItemKey: any;
|
|
389
423
|
sharedCipherData: any;
|
|
390
424
|
} | {
|
|
391
425
|
directoryId: string;
|
|
392
426
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
427
|
+
itemKeyId: any;
|
|
393
428
|
wrappedItemKey: string;
|
|
394
429
|
sharedCipherData: string;
|
|
395
430
|
} | {
|
|
396
431
|
fileId: string;
|
|
397
432
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
433
|
+
itemKeyId: any;
|
|
398
434
|
wrappedItemKey: string;
|
|
399
435
|
sharedCipherData: string;
|
|
400
436
|
})[];
|
|
401
437
|
addFiles: ({
|
|
402
438
|
directoryId: string;
|
|
403
439
|
accessRole: AccessRoleChoice.DENY;
|
|
440
|
+
itemKeyId: any;
|
|
404
441
|
wrappedItemKey: any;
|
|
405
442
|
sharedCipherData: any;
|
|
406
443
|
} | {
|
|
407
444
|
fileId: string;
|
|
408
445
|
accessRole: AccessRoleChoice.DENY;
|
|
446
|
+
itemKeyId: any;
|
|
409
447
|
wrappedItemKey: any;
|
|
410
448
|
sharedCipherData: any;
|
|
411
449
|
} | {
|
|
412
450
|
directoryId: string;
|
|
413
451
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
452
|
+
itemKeyId: any;
|
|
414
453
|
wrappedItemKey: string;
|
|
415
454
|
sharedCipherData: string;
|
|
416
455
|
} | {
|
|
417
456
|
fileId: string;
|
|
418
457
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
458
|
+
itemKeyId: any;
|
|
419
459
|
wrappedItemKey: string;
|
|
420
460
|
sharedCipherData: string;
|
|
421
461
|
})[];
|
|
@@ -428,84 +468,100 @@ export declare class ScenarioService extends LrService {
|
|
|
428
468
|
addDirectories: ({
|
|
429
469
|
directoryId: string;
|
|
430
470
|
accessRole: AccessRoleChoice.DENY;
|
|
471
|
+
itemKeyId: any;
|
|
431
472
|
wrappedItemKey: any;
|
|
432
473
|
sharedCipherData: any;
|
|
433
474
|
} | {
|
|
434
475
|
fileId: string;
|
|
435
476
|
accessRole: AccessRoleChoice.DENY;
|
|
477
|
+
itemKeyId: any;
|
|
436
478
|
wrappedItemKey: any;
|
|
437
479
|
sharedCipherData: any;
|
|
438
480
|
} | {
|
|
439
481
|
directoryId: string;
|
|
440
482
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
483
|
+
itemKeyId: any;
|
|
441
484
|
wrappedItemKey: string;
|
|
442
485
|
sharedCipherData: string;
|
|
443
486
|
} | {
|
|
444
487
|
fileId: string;
|
|
445
488
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
489
|
+
itemKeyId: any;
|
|
446
490
|
wrappedItemKey: string;
|
|
447
491
|
sharedCipherData: string;
|
|
448
492
|
})[];
|
|
449
493
|
addFiles: ({
|
|
450
494
|
directoryId: string;
|
|
451
495
|
accessRole: AccessRoleChoice.DENY;
|
|
496
|
+
itemKeyId: any;
|
|
452
497
|
wrappedItemKey: any;
|
|
453
498
|
sharedCipherData: any;
|
|
454
499
|
} | {
|
|
455
500
|
fileId: string;
|
|
456
501
|
accessRole: AccessRoleChoice.DENY;
|
|
502
|
+
itemKeyId: any;
|
|
457
503
|
wrappedItemKey: any;
|
|
458
504
|
sharedCipherData: any;
|
|
459
505
|
} | {
|
|
460
506
|
directoryId: string;
|
|
461
507
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
508
|
+
itemKeyId: any;
|
|
462
509
|
wrappedItemKey: string;
|
|
463
510
|
sharedCipherData: string;
|
|
464
511
|
} | {
|
|
465
512
|
fileId: string;
|
|
466
513
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
514
|
+
itemKeyId: any;
|
|
467
515
|
wrappedItemKey: string;
|
|
468
516
|
sharedCipherData: string;
|
|
469
517
|
})[];
|
|
470
518
|
updateDirectories: ({
|
|
471
519
|
directoryId: string;
|
|
472
520
|
accessRole: AccessRoleChoice.DENY;
|
|
521
|
+
itemKeyId: any;
|
|
473
522
|
wrappedItemKey: any;
|
|
474
523
|
sharedCipherData: any;
|
|
475
524
|
} | {
|
|
476
525
|
fileId: string;
|
|
477
526
|
accessRole: AccessRoleChoice.DENY;
|
|
527
|
+
itemKeyId: any;
|
|
478
528
|
wrappedItemKey: any;
|
|
479
529
|
sharedCipherData: any;
|
|
480
530
|
} | {
|
|
481
531
|
directoryId: string;
|
|
482
532
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
533
|
+
itemKeyId: any;
|
|
483
534
|
wrappedItemKey: string;
|
|
484
535
|
sharedCipherData: string;
|
|
485
536
|
} | {
|
|
486
537
|
fileId: string;
|
|
487
538
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
539
|
+
itemKeyId: any;
|
|
488
540
|
wrappedItemKey: string;
|
|
489
541
|
sharedCipherData: string;
|
|
490
542
|
})[];
|
|
491
543
|
updateFiles: ({
|
|
492
544
|
directoryId: string;
|
|
493
545
|
accessRole: AccessRoleChoice.DENY;
|
|
546
|
+
itemKeyId: any;
|
|
494
547
|
wrappedItemKey: any;
|
|
495
548
|
sharedCipherData: any;
|
|
496
549
|
} | {
|
|
497
550
|
fileId: string;
|
|
498
551
|
accessRole: AccessRoleChoice.DENY;
|
|
552
|
+
itemKeyId: any;
|
|
499
553
|
wrappedItemKey: any;
|
|
500
554
|
sharedCipherData: any;
|
|
501
555
|
} | {
|
|
502
556
|
directoryId: string;
|
|
503
557
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
558
|
+
itemKeyId: any;
|
|
504
559
|
wrappedItemKey: string;
|
|
505
560
|
sharedCipherData: string;
|
|
506
561
|
} | {
|
|
507
562
|
fileId: string;
|
|
508
563
|
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
564
|
+
itemKeyId: any;
|
|
509
565
|
wrappedItemKey: string;
|
|
510
566
|
sharedCipherData: string;
|
|
511
567
|
})[];
|
|
@@ -21,3 +21,19 @@ export interface TpCurrentUserSharedKeyQuery {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
export declare const TpCurrentUserSharedKeyQuery: import("../_common/ast").TypedDocumentNode<TpCurrentUserSharedKeyQuery>;
|
|
24
|
+
export interface ItemShareQueryResult {
|
|
25
|
+
item: {
|
|
26
|
+
id: string;
|
|
27
|
+
};
|
|
28
|
+
tp: {
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface DirectoryShareQueryResult {
|
|
33
|
+
directoryShare: ItemShareQueryResult;
|
|
34
|
+
}
|
|
35
|
+
export declare const DirectoryShareQuery: import("../_common/ast").TypedDocumentNode<DirectoryShareQueryResult>;
|
|
36
|
+
export interface FileShareQueryResult {
|
|
37
|
+
fileShare: ItemShareQueryResult;
|
|
38
|
+
}
|
|
39
|
+
export declare const FileShareQuery: import("../_common/ast").TypedDocumentNode<FileShareQueryResult>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
import { LrRelayIdInput } from '../api/types';
|
|
3
|
+
import { AccessRoleChoice, LrRelayIdInput } from '../api/types';
|
|
4
4
|
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
5
|
import { ItemService } from '../item/item.service';
|
|
6
6
|
import { KeyFactoryService } from '../key/key-factory.service';
|
|
@@ -26,24 +26,44 @@ export declare class TrustedPartyService extends LrService {
|
|
|
26
26
|
createDirectoryShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateDirectoryShareMutationResult>;
|
|
27
27
|
createDirectoryShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateDirectoryShareMutationResult, {
|
|
28
28
|
input: {
|
|
29
|
-
|
|
29
|
+
itemId: string;
|
|
30
30
|
tpId: string;
|
|
31
|
-
accessRole:
|
|
32
|
-
|
|
31
|
+
accessRole: AccessRoleChoice.DENY;
|
|
32
|
+
itemKeyId: any;
|
|
33
|
+
wrappingKeyId: any;
|
|
34
|
+
wrappedItemKey: any;
|
|
35
|
+
shareType: import("../api/types").ShareTypeChoice;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
input: {
|
|
39
|
+
itemId: string;
|
|
40
|
+
tpId: string;
|
|
41
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
42
|
+
itemKeyId: string;
|
|
33
43
|
wrappingKeyId: string;
|
|
34
|
-
|
|
44
|
+
wrappedItemKey: string;
|
|
35
45
|
shareType: import("../api/types").ShareTypeChoice;
|
|
36
46
|
};
|
|
37
47
|
}>>;
|
|
38
48
|
createFileShare(options: CreateItemShareOptions): Promise<import("./trusted-party.gql").CreateFileShareMutationResult>;
|
|
39
49
|
createFileShareMutation(options: CreateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CreateFileShareMutationResult, {
|
|
40
50
|
input: {
|
|
41
|
-
|
|
51
|
+
itemId: string;
|
|
42
52
|
tpId: string;
|
|
43
|
-
accessRole:
|
|
44
|
-
|
|
53
|
+
accessRole: AccessRoleChoice.DENY;
|
|
54
|
+
itemKeyId: any;
|
|
55
|
+
wrappingKeyId: any;
|
|
56
|
+
wrappedItemKey: any;
|
|
57
|
+
shareType: import("../api/types").ShareTypeChoice;
|
|
58
|
+
};
|
|
59
|
+
} | {
|
|
60
|
+
input: {
|
|
61
|
+
itemId: string;
|
|
62
|
+
tpId: string;
|
|
63
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
64
|
+
itemKeyId: string;
|
|
45
65
|
wrappingKeyId: string;
|
|
46
|
-
|
|
66
|
+
wrappedItemKey: string;
|
|
47
67
|
shareType: import("../api/types").ShareTypeChoice;
|
|
48
68
|
};
|
|
49
69
|
}>>;
|
|
@@ -52,16 +72,40 @@ export declare class TrustedPartyService extends LrService {
|
|
|
52
72
|
updateDirectoryShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateDirectoryShareMutationResult, {
|
|
53
73
|
input: {
|
|
54
74
|
id: string;
|
|
55
|
-
accessRole:
|
|
75
|
+
accessRole: AccessRoleChoice.DENY;
|
|
76
|
+
itemKeyId: any;
|
|
77
|
+
wrappingKeyId: any;
|
|
78
|
+
wrappedItemKey: any;
|
|
79
|
+
};
|
|
80
|
+
} | {
|
|
81
|
+
input: {
|
|
82
|
+
id: string;
|
|
83
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
84
|
+
itemKeyId: string;
|
|
85
|
+
wrappingKeyId: string;
|
|
86
|
+
wrappedItemKey: string;
|
|
56
87
|
};
|
|
57
88
|
}>>;
|
|
58
89
|
updateFileShare(options: UpdateItemShareOptions): Promise<import("./trusted-party.gql").UpdateFileShareMutationResult>;
|
|
59
90
|
updateFileShareMutation(options: UpdateItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").UpdateFileShareMutationResult, {
|
|
60
91
|
input: {
|
|
61
92
|
id: string;
|
|
62
|
-
accessRole:
|
|
93
|
+
accessRole: AccessRoleChoice.DENY;
|
|
94
|
+
itemKeyId: any;
|
|
95
|
+
wrappingKeyId: any;
|
|
96
|
+
wrappedItemKey: any;
|
|
97
|
+
};
|
|
98
|
+
} | {
|
|
99
|
+
input: {
|
|
100
|
+
id: string;
|
|
101
|
+
accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
|
|
102
|
+
itemKeyId: string;
|
|
103
|
+
wrappingKeyId: string;
|
|
104
|
+
wrappedItemKey: string;
|
|
63
105
|
};
|
|
64
106
|
}>>;
|
|
107
|
+
private getDirectoryShare;
|
|
108
|
+
private getFileShare;
|
|
65
109
|
private prepareUpdateItemShareMutation;
|
|
66
110
|
deleteDirectoryShare(id: string): Promise<import("./trusted-party.gql").DeleteDirectoryShareMutationResult>;
|
|
67
111
|
deleteDirectoryShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteDirectoryShareMutationResult, {
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { AccessRoleChoice, LrRelayIdInput, ShareTypeChoice } from '../api/types';
|
|
2
2
|
export interface CreateItemShareOptions {
|
|
3
3
|
itemId: LrRelayIdInput;
|
|
4
|
-
itemKeyId?: LrRelayIdInput;
|
|
5
4
|
tpId: LrRelayIdInput;
|
|
6
|
-
tpSharedKeyId?: LrRelayIdInput;
|
|
7
5
|
accessRole: AccessRoleChoice;
|
|
8
6
|
shareType: ShareTypeChoice;
|
|
7
|
+
itemKeyId?: LrRelayIdInput;
|
|
8
|
+
tpSharedKeyId?: LrRelayIdInput;
|
|
9
9
|
}
|
|
10
10
|
export interface UpdateItemShareOptions {
|
|
11
11
|
itemShareId: LrRelayIdInput;
|
|
12
12
|
accessRole: AccessRoleChoice;
|
|
13
|
+
itemId?: LrRelayIdInput;
|
|
14
|
+
itemKeyId?: LrRelayIdInput;
|
|
15
|
+
tpId?: LrRelayIdInput;
|
|
16
|
+
tpSharedKeyId?: LrRelayIdInput;
|
|
13
17
|
}
|
|
14
18
|
export interface CompleteDetachedItemShareOptions {
|
|
15
19
|
itemShareId: LrRelayIdInput;
|