@lifeready/core 8.0.5 → 8.0.7

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.
@@ -9,3 +9,4 @@ export declare function mapValuesAsync(obj: Record<string, any>, callback?: (val
9
9
  */
10
10
  export declare function undefinedDefault(value: any, defaultValue: any): any;
11
11
  export declare function getAccessJwtToken(auth: AuthClass): Promise<string>;
12
+ export declare function assert_xor(options: Record<string, unknown>): void;
@@ -1,5 +1,8 @@
1
1
  import { Connection, DateTime, GenericScalar, ID, JSONObject, JSONString, LrEmail, Node, TimeStamped } from './graphql.types';
2
2
  export declare function mapEdges<T>(connection: Connection<T>): T[];
3
+ export interface LrNList<T> {
4
+ list?: T[];
5
+ }
3
6
  export interface FeaturesNode {
4
7
  myVault?: string[];
5
8
  tpVault?: string[];
@@ -113,14 +116,14 @@ export interface DirectoryNode extends Node, TimeStamped, AccessControlledResour
113
116
  childFileLinks?: Connection<FileLinkNode>;
114
117
  childDirectoryLinks?: Connection<DirectoryLinkNode>;
115
118
  parentDirectoryLinks?: Connection<DirectoryLinkNode>;
116
- nParentDirectoryLinks?: DirectoryLinkNodeLrNList;
117
- nChildDirectoryLinks?: DirectoryLinkNodeLrNList;
118
- nChildFileLinks?: FileLinkNodeLrNList;
119
+ nParentDirectoryLinks?: LrNList<DirectoryLinkNode>;
120
+ nChildDirectoryLinks?: LrNList<DirectoryLinkNode>;
121
+ nChildFileLinks?: LrNList<FileLinkNode>;
119
122
  descendants?: Descendants;
120
123
  lock?: LockField;
121
124
  lockVersion?: string;
122
125
  shares?: Connection<DirectoryShareNode>;
123
- nShares?: DirectoryShareNodeLrNList;
126
+ nShares?: LrNList<DirectoryShareNode>;
124
127
  reminder?: ReminderNode;
125
128
  }
126
129
  export interface FileNode extends Node, TimeStamped, AccessControlledResource {
@@ -129,11 +132,11 @@ export interface FileNode extends Node, TimeStamped, AccessControlledResource {
129
132
  versions?: Connection<FileVersionNode>;
130
133
  keyId?: ID;
131
134
  parentDirectoryLinks?: Connection<FileLinkNode>;
132
- nParentDirectoryLinks?: FileLinkNodeLrNList;
135
+ nParentDirectoryLinks?: LrNList<FileLinkNode>;
133
136
  lock?: LockField;
134
137
  lockVersion?: string;
135
138
  shares?: Connection<FileShareNode>;
136
- nShares?: FileShareNodeLrNList;
139
+ nShares?: LrNList<FileShareNode>;
137
140
  }
138
141
  export interface DirectoryLinkNode extends Node, TimeStamped {
139
142
  parentDirectory?: DirectoryNode;
@@ -145,12 +148,6 @@ export interface FileLinkNode extends Node, TimeStamped {
145
148
  childFile?: FileNode;
146
149
  linkType?: LinkTypeField;
147
150
  }
148
- export interface DirectoryLinkNodeLrNList {
149
- list?: DirectoryLinkNode[];
150
- }
151
- export interface FileLinkNodeLrNList {
152
- list?: FileLinkNode[];
153
- }
154
151
  export declare enum ShareTypeChoice {
155
152
  TP = "TP",
156
153
  DETACHED = "DETACHED"
@@ -171,13 +168,8 @@ export interface ItemShareBase extends Node, TimeStamped {
171
168
  export interface ItemShare<ItemType> extends ItemShareBase {
172
169
  item?: ItemType;
173
170
  }
174
- export interface ItemShareLrNList<ItemShareType> {
175
- list?: ItemShareType[];
176
- }
177
171
  export declare type DirectoryShareNode = ItemShare<DirectoryNode>;
178
172
  export declare type FileShareNode = ItemShare<FileNode>;
179
- export declare type DirectoryShareNodeLrNList = ItemShareLrNList<DirectoryShareNode>;
180
- export declare type FileShareNodeLrNList = ItemShareLrNList<FileShareNode>;
181
173
  export interface Descendants {
182
174
  directories?: Connection<DirectoryNode>;
183
175
  files?: Connection<FileNode>;
@@ -473,7 +465,7 @@ export interface TpSubAssemblyNode extends Node, TimeStamped {
473
465
  singleReject?: boolean;
474
466
  quorum?: number;
475
467
  subjectCipherData?: string;
476
- subjectCipherDataClearJson?: string;
468
+ subjectCipherDataClearJson?: JSONObject;
477
469
  approvers?: Connection<TpAssemblyApproverNode>;
478
470
  }
479
471
  export interface TpAssemblyApproverNode extends Node, TimeStamped {
@@ -664,7 +656,8 @@ export interface NotificationManagementState extends Node, TimeStamped {
664
656
  }
665
657
  export declare enum LinkTypeField {
666
658
  HARD = "HARD",
667
- SOFT = "SOFT"
659
+ SOFT = "SOFT",
660
+ REFERENCE = "REFERENCE"
668
661
  }
669
662
  export interface MessageNode extends Node, TimeStamped {
670
663
  sender?: UserNode;
@@ -674,7 +667,7 @@ export interface MessageNode extends Node, TimeStamped {
674
667
  plainMessage?: string;
675
668
  plainMessageJson?: string;
676
669
  signedCipherMessage?: string;
677
- signedCipherMessageClearJson?: string;
670
+ signedCipherMessageClearJson?: JSONObject;
678
671
  }
679
672
  export interface LockField {
680
673
  created?: DateTime;
@@ -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 { LockService } from '../lock/lock.service';
10
- import { ArchiveDirectoryOptions, BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, DownloadFileContentOptions, FileParentDirectoryInput, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UnarchiveDirectoryOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item.types';
10
+ import { ArchiveDirectoryOptions, BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, DownloadFileContentOptions, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UnarchiveDirectoryOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item.types';
11
11
  export declare class ItemService extends LrService {
12
12
  private ngZone;
13
13
  private injector;
@@ -56,7 +56,7 @@ export declare class ItemService extends LrService {
56
56
  createFile(options: CreateFileOptions): Promise<import("./item.gql").CreateFileMutationResult>;
57
57
  createFileMutation(options: CreateFileOptions): Promise<LrMutation<import("./item.gql").CreateFileMutationResult, {
58
58
  input: {
59
- parentDirectories: FileParentDirectoryInput[];
59
+ parentDirectories: ParentDirectoryInput[];
60
60
  wrappedStateKey: string;
61
61
  contentResource: string;
62
62
  plainMeta: string;
@@ -14,17 +14,12 @@ export interface ParentRootDirectoryInput {
14
14
  wrappedKey: string;
15
15
  wrappingKeyId: LrRelayIdInput;
16
16
  }
17
- export interface ParentDirectoryInputBase {
17
+ export interface ParentDirectoryInput {
18
18
  directoryId: LrRelayIdInput;
19
- wrappingKeyId: LrRelayIdInput;
19
+ wrappingKeyId?: LrRelayIdInput;
20
+ wrappedKey?: string;
20
21
  linkType?: LinkTypeField;
21
22
  }
22
- export interface ParentDirectoryInput extends ParentDirectoryInputBase {
23
- wrappedKey: string;
24
- }
25
- export interface FileParentDirectoryInput extends ParentDirectoryInputBase {
26
- wrappedFileKey: string;
27
- }
28
23
  export interface DownloadFileContentOptions {
29
24
  fileStateNodeId: LrRelayIdInput;
30
25
  fileStateKeyId?: LrRelayIdInput;
@@ -19,6 +19,8 @@ export declare class ScenarioService extends LrService {
19
19
  static SLIP39_PASSPHRASE: string;
20
20
  private prepareAddReceiverDirectory;
21
21
  private prepareUpdateReceiverDirectory;
22
+ private prepareAddReceiverFile;
23
+ private prepareUpdateReceiverFile;
22
24
  createScenario(options: CreateScenarioOptions): Promise<import("./scenario.gql").CreateScenarioMutationResult>;
23
25
  createScenarioMutation(options: CreateScenarioOptions): Promise<LrMutation<import("./scenario.gql").CreateScenarioMutationResult, {
24
26
  input: {
@@ -55,11 +57,42 @@ export declare class ScenarioService extends LrService {
55
57
  accessRole: AccessRoleChoice.DENY;
56
58
  wrappedItemKey: any;
57
59
  sharedCipherData: any;
60
+ } | {
61
+ fileId: string;
62
+ accessRole: AccessRoleChoice.DENY;
63
+ wrappedItemKey: any;
64
+ sharedCipherData: any;
58
65
  } | {
59
66
  directoryId: string;
60
67
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
61
68
  wrappedItemKey: string;
62
69
  sharedCipherData: string;
70
+ } | {
71
+ fileId: string;
72
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
73
+ wrappedItemKey: string;
74
+ sharedCipherData: string;
75
+ })[];
76
+ addFiles: ({
77
+ directoryId: string;
78
+ accessRole: AccessRoleChoice.DENY;
79
+ wrappedItemKey: any;
80
+ sharedCipherData: any;
81
+ } | {
82
+ fileId: string;
83
+ accessRole: AccessRoleChoice.DENY;
84
+ wrappedItemKey: any;
85
+ sharedCipherData: any;
86
+ } | {
87
+ directoryId: string;
88
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
89
+ wrappedItemKey: string;
90
+ sharedCipherData: string;
91
+ } | {
92
+ fileId: string;
93
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
94
+ wrappedItemKey: string;
95
+ sharedCipherData: string;
63
96
  })[];
64
97
  tpId: string;
65
98
  tpSharedKeyId: string;
@@ -136,11 +169,42 @@ export declare class ScenarioService extends LrService {
136
169
  accessRole: AccessRoleChoice.DENY;
137
170
  wrappedItemKey: any;
138
171
  sharedCipherData: any;
172
+ } | {
173
+ fileId: string;
174
+ accessRole: AccessRoleChoice.DENY;
175
+ wrappedItemKey: any;
176
+ sharedCipherData: any;
139
177
  } | {
140
178
  directoryId: string;
141
179
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
142
180
  wrappedItemKey: string;
143
181
  sharedCipherData: string;
182
+ } | {
183
+ fileId: string;
184
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
185
+ wrappedItemKey: string;
186
+ sharedCipherData: string;
187
+ })[];
188
+ addFiles: ({
189
+ directoryId: string;
190
+ accessRole: AccessRoleChoice.DENY;
191
+ wrappedItemKey: any;
192
+ sharedCipherData: any;
193
+ } | {
194
+ fileId: string;
195
+ accessRole: AccessRoleChoice.DENY;
196
+ wrappedItemKey: any;
197
+ sharedCipherData: any;
198
+ } | {
199
+ directoryId: string;
200
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
201
+ wrappedItemKey: string;
202
+ sharedCipherData: string;
203
+ } | {
204
+ fileId: string;
205
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
206
+ wrappedItemKey: string;
207
+ sharedCipherData: string;
144
208
  })[];
145
209
  tpId: string;
146
210
  tpSharedKeyId: string;
@@ -153,24 +217,87 @@ export declare class ScenarioService extends LrService {
153
217
  accessRole: AccessRoleChoice.DENY;
154
218
  wrappedItemKey: any;
155
219
  sharedCipherData: any;
220
+ } | {
221
+ fileId: string;
222
+ accessRole: AccessRoleChoice.DENY;
223
+ wrappedItemKey: any;
224
+ sharedCipherData: any;
156
225
  } | {
157
226
  directoryId: string;
158
227
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
159
228
  wrappedItemKey: string;
160
229
  sharedCipherData: string;
230
+ } | {
231
+ fileId: string;
232
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
233
+ wrappedItemKey: string;
234
+ sharedCipherData: string;
235
+ })[];
236
+ addFiles: ({
237
+ directoryId: string;
238
+ accessRole: AccessRoleChoice.DENY;
239
+ wrappedItemKey: any;
240
+ sharedCipherData: any;
241
+ } | {
242
+ fileId: string;
243
+ accessRole: AccessRoleChoice.DENY;
244
+ wrappedItemKey: any;
245
+ sharedCipherData: any;
246
+ } | {
247
+ directoryId: string;
248
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
249
+ wrappedItemKey: string;
250
+ sharedCipherData: string;
251
+ } | {
252
+ fileId: string;
253
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
254
+ wrappedItemKey: string;
255
+ sharedCipherData: string;
161
256
  })[];
162
257
  updateDirectories: ({
163
258
  directoryId: string;
164
259
  accessRole: AccessRoleChoice.DENY;
165
260
  wrappedItemKey: any;
166
261
  sharedCipherData: any;
262
+ } | {
263
+ fileId: string;
264
+ accessRole: AccessRoleChoice.DENY;
265
+ wrappedItemKey: any;
266
+ sharedCipherData: any;
267
+ } | {
268
+ directoryId: string;
269
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
270
+ wrappedItemKey: string;
271
+ sharedCipherData: string;
272
+ } | {
273
+ fileId: string;
274
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
275
+ wrappedItemKey: string;
276
+ sharedCipherData: string;
277
+ })[];
278
+ updateFiles: ({
279
+ directoryId: string;
280
+ accessRole: AccessRoleChoice.DENY;
281
+ wrappedItemKey: any;
282
+ sharedCipherData: any;
283
+ } | {
284
+ fileId: string;
285
+ accessRole: AccessRoleChoice.DENY;
286
+ wrappedItemKey: any;
287
+ sharedCipherData: any;
167
288
  } | {
168
289
  directoryId: string;
169
290
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
170
291
  wrappedItemKey: string;
171
292
  sharedCipherData: string;
293
+ } | {
294
+ fileId: string;
295
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
296
+ wrappedItemKey: string;
297
+ sharedCipherData: string;
172
298
  })[];
173
299
  deleteDirectories: string[];
300
+ deleteFiles: string[];
174
301
  tpId: string;
175
302
  sharedKeyId: string;
176
303
  sharedCipherData: string;
@@ -252,11 +379,42 @@ export declare class ScenarioService extends LrService {
252
379
  accessRole: AccessRoleChoice.DENY;
253
380
  wrappedItemKey: any;
254
381
  sharedCipherData: any;
382
+ } | {
383
+ fileId: string;
384
+ accessRole: AccessRoleChoice.DENY;
385
+ wrappedItemKey: any;
386
+ sharedCipherData: any;
387
+ } | {
388
+ directoryId: string;
389
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
390
+ wrappedItemKey: string;
391
+ sharedCipherData: string;
392
+ } | {
393
+ fileId: string;
394
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
395
+ wrappedItemKey: string;
396
+ sharedCipherData: string;
397
+ })[];
398
+ addFiles: ({
399
+ directoryId: string;
400
+ accessRole: AccessRoleChoice.DENY;
401
+ wrappedItemKey: any;
402
+ sharedCipherData: any;
403
+ } | {
404
+ fileId: string;
405
+ accessRole: AccessRoleChoice.DENY;
406
+ wrappedItemKey: any;
407
+ sharedCipherData: any;
255
408
  } | {
256
409
  directoryId: string;
257
410
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
258
411
  wrappedItemKey: string;
259
412
  sharedCipherData: string;
413
+ } | {
414
+ fileId: string;
415
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
416
+ wrappedItemKey: string;
417
+ sharedCipherData: string;
260
418
  })[];
261
419
  tpId: string;
262
420
  tpSharedKeyId: string;
@@ -269,24 +427,87 @@ export declare class ScenarioService extends LrService {
269
427
  accessRole: AccessRoleChoice.DENY;
270
428
  wrappedItemKey: any;
271
429
  sharedCipherData: any;
430
+ } | {
431
+ fileId: string;
432
+ accessRole: AccessRoleChoice.DENY;
433
+ wrappedItemKey: any;
434
+ sharedCipherData: any;
272
435
  } | {
273
436
  directoryId: string;
274
437
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
275
438
  wrappedItemKey: string;
276
439
  sharedCipherData: string;
440
+ } | {
441
+ fileId: string;
442
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
443
+ wrappedItemKey: string;
444
+ sharedCipherData: string;
445
+ })[];
446
+ addFiles: ({
447
+ directoryId: string;
448
+ accessRole: AccessRoleChoice.DENY;
449
+ wrappedItemKey: any;
450
+ sharedCipherData: any;
451
+ } | {
452
+ fileId: string;
453
+ accessRole: AccessRoleChoice.DENY;
454
+ wrappedItemKey: any;
455
+ sharedCipherData: any;
456
+ } | {
457
+ directoryId: string;
458
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
459
+ wrappedItemKey: string;
460
+ sharedCipherData: string;
461
+ } | {
462
+ fileId: string;
463
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
464
+ wrappedItemKey: string;
465
+ sharedCipherData: string;
277
466
  })[];
278
467
  updateDirectories: ({
279
468
  directoryId: string;
280
469
  accessRole: AccessRoleChoice.DENY;
281
470
  wrappedItemKey: any;
282
471
  sharedCipherData: any;
472
+ } | {
473
+ fileId: string;
474
+ accessRole: AccessRoleChoice.DENY;
475
+ wrappedItemKey: any;
476
+ sharedCipherData: any;
283
477
  } | {
284
478
  directoryId: string;
285
479
  accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
286
480
  wrappedItemKey: string;
287
481
  sharedCipherData: string;
482
+ } | {
483
+ fileId: string;
484
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
485
+ wrappedItemKey: string;
486
+ sharedCipherData: string;
487
+ })[];
488
+ updateFiles: ({
489
+ directoryId: string;
490
+ accessRole: AccessRoleChoice.DENY;
491
+ wrappedItemKey: any;
492
+ sharedCipherData: any;
493
+ } | {
494
+ fileId: string;
495
+ accessRole: AccessRoleChoice.DENY;
496
+ wrappedItemKey: any;
497
+ sharedCipherData: any;
498
+ } | {
499
+ directoryId: string;
500
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
501
+ wrappedItemKey: string;
502
+ sharedCipherData: string;
503
+ } | {
504
+ fileId: string;
505
+ accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
506
+ wrappedItemKey: string;
507
+ sharedCipherData: string;
288
508
  })[];
289
509
  deleteDirectories: string[];
510
+ deleteFiles: string[];
290
511
  tpId: string;
291
512
  sharedKeyId: string;
292
513
  sharedCipherData: string;
@@ -349,7 +570,9 @@ export declare class ScenarioService extends LrService {
349
570
  private fillTpSharedKeyId;
350
571
  private prepareCreateScenarioMutation;
351
572
  private prepareUpdateScenario;
573
+ private prepareReceiverItem;
352
574
  private prepareReceiverDirectory;
575
+ private prepareReceiverFile;
353
576
  private prepareCreateReceiver;
354
577
  private prepareUpdateReceiver;
355
578
  private prepareExistingReceiver;
@@ -9,21 +9,33 @@ export interface CreateParticipantOptions extends ParticipantOptions {
9
9
  tpSharedKeyId?: string;
10
10
  }
11
11
  export declare type UpdateParticipantOptions = ParticipantOptions;
12
- export interface ReceiverDirectoryOptions {
13
- directoryId: string;
14
- directoryKeyId?: string;
12
+ export interface ReceiverItemOptions {
15
13
  accessRole: AccessRoleChoice;
16
14
  sharedCipherDataClearJson?: JSONObject;
17
15
  }
16
+ export interface ReceiverDirectoryOptions extends ReceiverItemOptions {
17
+ directoryId: string;
18
+ directoryKeyId?: string;
19
+ }
20
+ export interface ReceiverFileOptions extends ReceiverItemOptions {
21
+ fileId: string;
22
+ fileKeyId?: string;
23
+ }
18
24
  export declare type CreateReceiverDirectoryOptions = ReceiverDirectoryOptions;
19
25
  export declare type UpdateReceiverDirectoryOptions = ReceiverDirectoryOptions;
26
+ export declare type CreateReceiverFileOptions = ReceiverFileOptions;
27
+ export declare type UpdateReceiverFileOptions = ReceiverFileOptions;
20
28
  export interface CreateReceiverOptions extends CreateParticipantOptions {
21
29
  addDirectories?: CreateReceiverDirectoryOptions[];
30
+ addFiles?: CreateReceiverFileOptions[];
22
31
  }
23
32
  export interface UpdateReceiverOptions extends UpdateParticipantOptions {
24
33
  addDirectories?: CreateReceiverDirectoryOptions[];
34
+ addFiles?: CreateReceiverFileOptions[];
25
35
  updateDirectories?: UpdateReceiverDirectoryOptions[];
36
+ updateFiles?: UpdateReceiverFileOptions[];
26
37
  deleteDirectories?: string[];
38
+ deleteFiles?: string[];
27
39
  }
28
40
  export declare type CreateClaimantOptions = CreateParticipantOptions;
29
41
  export declare type UpdateClaimantOptions = UpdateParticipantOptions;
@@ -69,6 +69,12 @@ export declare class TrustedPartyService extends LrService {
69
69
  id: string;
70
70
  };
71
71
  }>>;
72
+ deleteFileShare(id: string): Promise<import("./trusted-party.gql").DeleteFileShareMutationResult>;
73
+ deleteFileShareMutation(id: string): Promise<LrMutation<import("./trusted-party.gql").DeleteFileShareMutationResult, {
74
+ input: {
75
+ id: string;
76
+ };
77
+ }>>;
72
78
  completeDetachedDirectoryShare(options: CompleteDetachedItemShareOptions): Promise<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult>;
73
79
  completeDetachedDirectoryShareMutation(options: CompleteDetachedItemShareOptions): Promise<LrMutation<import("./trusted-party.gql").CompleteDetachedDirectoryShareMutationResult, {
74
80
  input: {