@lifeready/core 8.0.6 → 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;
@@ -465,7 +465,7 @@ export interface TpSubAssemblyNode extends Node, TimeStamped {
465
465
  singleReject?: boolean;
466
466
  quorum?: number;
467
467
  subjectCipherData?: string;
468
- subjectCipherDataClearJson?: string;
468
+ subjectCipherDataClearJson?: JSONObject;
469
469
  approvers?: Connection<TpAssemblyApproverNode>;
470
470
  }
471
471
  export interface TpAssemblyApproverNode extends Node, TimeStamped {
@@ -667,7 +667,7 @@ export interface MessageNode extends Node, TimeStamped {
667
667
  plainMessage?: string;
668
668
  plainMessageJson?: string;
669
669
  signedCipherMessage?: string;
670
- signedCipherMessageClearJson?: string;
670
+ signedCipherMessageClearJson?: JSONObject;
671
671
  }
672
672
  export interface LockField {
673
673
  created?: DateTime;
@@ -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;