@lifeready/core 1.0.18 → 1.0.19

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.
Files changed (40) hide show
  1. package/bundles/lifeready-core.umd.js +9 -5
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +1 -1
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/api/contact-card.service.js +1 -1
  6. package/esm2015/lib/api/contact-card2.service.js +1 -1
  7. package/esm2015/lib/api/key-exchange.types.js +1 -1
  8. package/esm2015/lib/api/key-exchange2.gql.js +1 -1
  9. package/esm2015/lib/api/key-exchange2.service.js +3 -2
  10. package/esm2015/lib/api/shared-contact-card.service.js +1 -1
  11. package/esm2015/lib/api/types/graphql.types.js +1 -1
  12. package/esm2015/lib/api/types/lr-graphql.types.js +10 -1
  13. package/esm2015/lib/auth/auth.types.js +1 -1
  14. package/esm2015/lib/cryptography/key-factory.service.js +1 -1
  15. package/esm2015/lib/cryptography/key-graph.service.js +1 -1
  16. package/esm2015/lib/scenario/scenario.service.js +1 -1
  17. package/esm2015/lib/scenario/scenario.types.js +1 -1
  18. package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +1 -1
  19. package/esm2015/lib/users/profile.types.js +1 -1
  20. package/esm2015/lib/users/user.service.js +1 -1
  21. package/esm2015/lib/users/user.types.js +1 -5
  22. package/fesm2015/lifeready-core.js +12 -7
  23. package/fesm2015/lifeready-core.js.map +1 -1
  24. package/lib/api/contact-card.service.d.ts +8 -7
  25. package/lib/api/contact-card2.service.d.ts +4 -3
  26. package/lib/api/key-exchange.types.d.ts +5 -5
  27. package/lib/api/key-exchange2.gql.d.ts +3 -3
  28. package/lib/api/key-exchange2.service.d.ts +3 -3
  29. package/lib/api/shared-contact-card.service.d.ts +4 -3
  30. package/lib/api/types/graphql.types.d.ts +1 -0
  31. package/lib/api/types/lr-graphql.types.d.ts +84 -33
  32. package/lib/auth/auth.types.d.ts +2 -3
  33. package/lib/cryptography/key-graph.service.d.ts +2 -1
  34. package/lib/scenario/scenario.types.d.ts +3 -3
  35. package/lib/trusted-parties/tp-password-reset.gql.d.ts +6 -6
  36. package/lib/users/profile.types.d.ts +2 -2
  37. package/lib/users/user.service.d.ts +3 -2
  38. package/lib/users/user.types.d.ts +0 -7
  39. package/lifeready-core.metadata.json +1 -1
  40. package/package.json +1 -1
@@ -7,6 +7,7 @@ import { LrApolloService } from './lr-apollo.service';
7
7
  import { KeyFactoryService } from '../cryptography/key-factory.service';
8
8
  import { MainContactCardPlainFields } from '../users/profile.types';
9
9
  import { KeyMetaService } from '../cryptography/key-meta.service';
10
+ import { JSONObject } from './types';
10
11
  export declare class ContactCard {
11
12
  id: string;
12
13
  key: Key;
@@ -18,15 +19,15 @@ export declare class ContactCard {
18
19
  plainData: string;
19
20
  plainDataSig: string;
20
21
  cipherData: string;
21
- publicDataJson: any;
22
- publicSearchableJson: any;
23
- plainCipherDataJson: any;
24
- plainDataJson: any;
22
+ publicDataJson: JSONObject;
23
+ publicSearchableJson: JSONObject;
24
+ plainCipherDataJson: JSONObject;
25
+ plainDataJson: JSONObject;
25
26
  }
26
27
  export interface CreateContactCardInput {
27
- publicDataJson: any;
28
- publicSearchableJson: any;
29
- plainCipherDataJson: any;
28
+ publicDataJson: JSONObject;
29
+ publicSearchableJson: JSONObject;
30
+ plainCipherDataJson: JSONObject;
30
31
  plainDataJson: MainContactCardPlainFields;
31
32
  }
32
33
  export interface UpdateContactCardInput extends CreateContactCardInput {
@@ -7,10 +7,11 @@ import { KeyService } from '../cryptography/key.service';
7
7
  import { MainContactCardPlainFields } from '../users/profile.types';
8
8
  import { CreateContactCardMutation, DeleteContactCardMutation, UpdateContactCardMutation } from './contact-card2.gql';
9
9
  import { LrMutation } from './lr-graphql';
10
+ import { JSONObject } from './types';
10
11
  export interface CreateContactCardInput2 {
11
- publicDataJson: any;
12
- publicSearchableJson: any;
13
- plainCipherDataJson: any;
12
+ publicDataJson: JSONObject;
13
+ publicSearchableJson: JSONObject;
14
+ plainCipherDataJson: JSONObject;
14
15
  plainDataJson: MainContactCardPlainFields;
15
16
  }
16
17
  export interface ContactCardName2 {
@@ -2,14 +2,14 @@ import { Key } from '../cryptography/cryptography.types';
2
2
  import { AccessLevel } from '../category/category.types';
3
3
  import { JWK } from 'node-jose';
4
4
  import { ContactCardName, TrustedPartyDetails } from '../users/profile.types';
5
- import { KeyExchangeMode, KeyExchangeState } from './types';
5
+ import { JSONObject, KeyExchangeMode, KeyExchangeState } from './types';
6
6
  export interface PlainInitiatorRootKeyCipher {
7
7
  nonce: string;
8
8
  oneTimePrk: object;
9
9
  otKey: object;
10
10
  initiatorContactCard?: {
11
- plainOwnerCipherDataJson: any;
12
- plainSharedCipherDataJson: any;
11
+ plainOwnerCipherDataJson: JSONObject;
12
+ plainSharedCipherDataJson: JSONObject;
13
13
  };
14
14
  initiator: {
15
15
  message?: KeyExchangeMessage;
@@ -84,7 +84,7 @@ export interface KeyExchangeContactCardInput {
84
84
  ownerPlainData?: {
85
85
  name: ContactCardName;
86
86
  };
87
- plainOwnerCipherDataJson: any;
87
+ plainOwnerCipherDataJson: JSONObject;
88
88
  plainSharedCipherDataJson: TrustedPartyDetails;
89
89
  }
90
90
  export interface InitiateOtkInput {
@@ -99,7 +99,7 @@ export interface RespondOtkInput {
99
99
  decryptedOtk: DecryptedOtk;
100
100
  message?: KeyExchangeMessage;
101
101
  initiatorContactCard?: {
102
- plainReceiverCipherDataJson: any;
102
+ plainReceiverCipherDataJson: JSONObject;
103
103
  };
104
104
  responderContactCard?: KeyExchangeContactCardInput;
105
105
  }
@@ -1,5 +1,5 @@
1
1
  import { JWK } from 'node-jose';
2
- import { Connection, DateTime, ID, LrEmail, OtKeyCipherClearJson2 } from './types';
2
+ import { Connection, DateTime, ID, JSONObject, LrEmail, OtKeyCipherClearJson2 } from './types';
3
3
  export declare type KeyExchangeState2 = 'IN_PROGRESS' | 'COMPLETED' | 'DECLINED' | 'CANCELLED' | 'DELETED';
4
4
  export interface KeyExchangeFragment {
5
5
  id: ID;
@@ -20,7 +20,7 @@ export interface KeyExchangeFragment {
20
20
  tokenExpiryTime: DateTime;
21
21
  isExpired: boolean;
22
22
  initiatorRootKeyCipher: string;
23
- initiatorRootKeyCipherClearJson: any;
23
+ initiatorRootKeyCipherClearJson: JSONObject;
24
24
  initiatorActionRequired: boolean;
25
25
  responderActionRequired: boolean;
26
26
  responderEmailAddress: LrEmail;
@@ -43,7 +43,7 @@ export interface KeyExchangeFragment {
43
43
  id: ID;
44
44
  };
45
45
  initiatorOneTimePbkCipher: string;
46
- initiatorOneTimePbkCipherClearJson: any;
46
+ initiatorOneTimePbkCipherClearJson: JSONObject;
47
47
  responderPbkCipher: string;
48
48
  };
49
49
  }
@@ -8,7 +8,7 @@ import { UserService } from './../users/user.service';
8
8
  import { OwnerPlainDataJson } from './contact-card2.service';
9
9
  import { CancelKeyExchangeMutation, CompleteKeyExchangeOtkMutation, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, InitiateKeyExchangeOtkMutation, KeyExchangeFragment, KeyExchangeState2, RespondKeyExchangeOtkMutation } from './key-exchange2.gql';
10
10
  import { LrGraphQLService, LrMutation } from './lr-graphql';
11
- import { ContactCardSharedCipherData, OtKeyCipherClearJson2 } from './types';
11
+ import { ContactCardSharedCipherData, JSONObject, OtKeyCipherClearJson2 } from './types';
12
12
  /**
13
13
  * The decrypted content of the one-time key cipher;
14
14
  * When user supplies this information the lib doesn't need to do another API call
@@ -21,13 +21,13 @@ export interface DecryptedOtk2 {
21
21
  otKey: JWK.Key;
22
22
  }
23
23
  export interface ContactCardReceiverCipherData {
24
- receiverCipherDataClearJson: any;
24
+ receiverCipherDataClearJson: JSONObject;
25
25
  }
26
26
  export interface ContactCardOwnerPlainData {
27
27
  ownerPlainDataJson: OwnerPlainDataJson;
28
28
  }
29
29
  export interface ContactCardOwnerCipherData {
30
- ownerCipherDataClearJson: any;
30
+ ownerCipherDataClearJson: JSONObject;
31
31
  }
32
32
  /**
33
33
  * Sending contact card information from the owner to the receiver.
@@ -6,6 +6,7 @@ import { SharedTrustedPartyDetails } from '../trusted-parties/trusted-party.type
6
6
  import { TrustedPartyDetails } from '../users/profile.types';
7
7
  import { User } from '../users/user.types';
8
8
  import { LrApolloService } from './lr-apollo.service';
9
+ import { JSONObject } from './types';
9
10
  export declare const SharedContactCardFields = "\n id\n owner {\n id\n username\n }\n ownerKey {\n id\n }\n ownerCipherData\n receiver {\n id\n username\n }\n receiverKey {\n id\n }\n receiverCipherData\n sharedKey {\n id\n }\n sharedCipherData\n sharedCipherDataSig\n sharedCipherDataSigPxk {\n id\n }\n";
10
11
  export interface SharedContactCard {
11
12
  id: string;
@@ -17,9 +18,9 @@ export interface SharedContactCard {
17
18
  receiverCipherData: string;
18
19
  sharedKey: Key;
19
20
  sharedCipherData: string;
20
- plainOwnerCipherDataJson: any;
21
- plainReceiverCipherDataJson: any;
22
- plainSharedCipherDataJson: any;
21
+ plainOwnerCipherDataJson: JSONObject;
22
+ plainReceiverCipherDataJson: JSONObject;
23
+ plainSharedCipherDataJson: JSONObject;
23
24
  }
24
25
  export declare class SharedContactCardService {
25
26
  private keyService;
@@ -3,6 +3,7 @@ export declare type LrRelayIdInput = string;
3
3
  export declare type DateTime = string;
4
4
  export declare type LrJSONString = string;
5
5
  export declare type JSONString = string;
6
+ export declare type JSONObject = any;
6
7
  export declare type LrEmail = string;
7
8
  export declare type GenericScalar = any;
8
9
  export declare type UUID = string;
@@ -1,10 +1,39 @@
1
- import { Connection, DateTime, GenericScalar, ID, JSONString, LrEmail, Node, TimeStamped } from './graphql.types';
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 declare type UserStripeNode = any;
4
- export declare type UserPlanNode = any;
5
- export declare type UserDeleteNode = any;
6
- export declare type FeaturesNode = any;
7
- export declare type TpPasswordResetRequestNode = any;
3
+ export interface FeaturesNode {
4
+ myVault: string[];
5
+ tpVault: string[];
6
+ shareVault: string[];
7
+ }
8
+ export declare enum UserDeleteState {
9
+ REQUESTED = "REQUESTED"
10
+ }
11
+ export interface UserDeleteNode extends Node, TimeStamped {
12
+ state?: UserDeleteState;
13
+ }
14
+ export declare enum PlanState {
15
+ ENABLED = "ENABLED",
16
+ DISABLED = "DISABLED"
17
+ }
18
+ export interface PlanNode extends Node {
19
+ name?: string;
20
+ data?: JSONString;
21
+ state?: PlanState;
22
+ }
23
+ export interface UserPlanStripeNode extends Node, TimeStamped {
24
+ subscriptionId?: string;
25
+ priceId?: string;
26
+ }
27
+ export interface UserPlanNode extends Node, TimeStamped {
28
+ user?: UserNode;
29
+ plan?: PlanNode;
30
+ periodEnd?: DateTime;
31
+ stripe?: UserPlanStripeNode;
32
+ issuer?: UserNode;
33
+ }
34
+ export interface UserStripeNode extends Node, TimeStamped {
35
+ customer?: GenericScalar;
36
+ }
8
37
  export interface PassKeyNode extends Node, TimeStamped {
9
38
  passKeyParams?: GenericScalar;
10
39
  passIdpParams?: GenericScalar;
@@ -50,16 +79,16 @@ export interface ContactCardNode extends Node, TimeStamped {
50
79
  publicData?: string;
51
80
  publicSearchable?: string;
52
81
  cipherData?: string;
53
- cipherDataClearJson?: any;
82
+ cipherDataClearJson?: JSONObject;
54
83
  key?: KeyNode;
55
84
  plainData?: string;
56
85
  plainDataSig?: string;
57
86
  }
58
87
  export interface DirectoryNode extends Node, TimeStamped {
59
88
  plainMeta?: JSONString;
60
- plainMetaJson?: any;
89
+ plainMetaJson?: JSONObject;
61
90
  cipherMeta?: string;
62
- cipherMetaClearJson?: any;
91
+ cipherMetaClearJson?: JSONObject;
63
92
  archived?: boolean;
64
93
  keyId?: ID;
65
94
  childFileLinks?: Connection<FileLinkNode>;
@@ -137,9 +166,9 @@ export interface FileVersionNode extends Node, TimeStamped {
137
166
  }
138
167
  export interface FileStateNode extends Node, TimeStamped {
139
168
  plainMeta?: JSONString;
140
- plainMetaJson?: any;
169
+ plainMetaJson?: JSONObject;
141
170
  cipherMeta?: string;
142
- cipherMetaClearJson?: any;
171
+ cipherMetaClearJson?: JSONObject;
143
172
  contentResource?: string;
144
173
  versions?: Connection<FileVersionNode>;
145
174
  keyId: ID;
@@ -150,7 +179,7 @@ export declare enum KeyExchangeOtkState {
150
179
  OTK_COMPLETED = "OTK_COMPLETED"
151
180
  }
152
181
  export interface ContactCardSharedCipherData {
153
- sharedCipherDataClearJson: any;
182
+ sharedCipherDataClearJson: JSONObject;
154
183
  }
155
184
  /**
156
185
  * The contents of the one-time key cipher
@@ -161,7 +190,7 @@ export interface OtKeyCipherClearJson2 {
161
190
  oneTimePbk: object;
162
191
  pbk: object;
163
192
  sigPbk: object;
164
- message?: any;
193
+ message?: JSONObject;
165
194
  contactCard?: ContactCardSharedCipherData;
166
195
  };
167
196
  }
@@ -214,17 +243,17 @@ export interface SharedContactCardNode extends Node, TimeStamped {
214
243
  receiver?: UserNode;
215
244
  sharedKey?: KeyNode;
216
245
  sharedCipherData?: string;
217
- sharedCipherDataClearJson?: any;
246
+ sharedCipherDataClearJson?: JSONObject;
218
247
  sharedCipherDataSig?: string;
219
248
  sharedCipherDataSigPxk?: KeyNode;
220
249
  ownerCipherData?: string;
221
- ownerCipherDataClearJson?: any;
250
+ ownerCipherDataClearJson?: JSONObject;
222
251
  ownerKey?: KeyNode;
223
252
  ownerPlainData?: string;
224
- ownerPlainDataJson?: any;
253
+ ownerPlainDataJson?: JSONObject;
225
254
  ownerPlainDataSig?: string;
226
255
  receiverCipherData?: string;
227
- receiverCipherDataClearJson?: any;
256
+ receiverCipherDataClearJson?: JSONObject;
228
257
  receiverKey?: KeyNode;
229
258
  }
230
259
  export interface UserSharedKeyNode extends Node, TimeStamped {
@@ -240,8 +269,8 @@ export interface UserSharedKeyNode extends Node, TimeStamped {
240
269
  mkPxk?: KeyNode;
241
270
  mkReshareRequestCipher?: string;
242
271
  mkReshareResponseCipher?: string;
243
- mkReshareRequestCipherClearJson?: any;
244
- mkReshareResponseCipherClearJson?: any;
272
+ mkReshareRequestCipherClearJson?: JSONObject;
273
+ mkReshareResponseCipherClearJson?: JSONObject;
245
274
  mkReshareRequestSent?: boolean;
246
275
  mkReshareResponseSent?: boolean;
247
276
  }
@@ -289,15 +318,15 @@ export declare enum TpClaimApproverState {
289
318
  export interface TpPasswordResetApproval extends Node, TimeStamped {
290
319
  approverEmail?: string;
291
320
  receiverCipher?: string;
292
- receiverCipherClearJson?: any;
321
+ receiverCipherClearJson?: JSONObject;
293
322
  receiverCipherPartialAssemblyKey?: string;
294
- receiverCipherPartialAssemblyKeyClearJson?: any;
323
+ receiverCipherPartialAssemblyKeyClearJson?: JSONObject;
295
324
  }
296
325
  export interface TpPasswordResetUserApprovalNode extends Node, TimeStamped {
297
326
  receiverCipher?: string;
298
- receiverCipherClearJson?: any;
327
+ receiverCipherClearJson?: JSONObject;
299
328
  receiverCipherPartialAssemblyKey?: string;
300
- receiverCipherPartialAssemblyKeyClearJson?: any;
329
+ receiverCipherPartialAssemblyKeyClearJson?: JSONObject;
301
330
  approverEmail?: string;
302
331
  }
303
332
  export interface TpPasswordResetUserApprover {
@@ -333,6 +362,9 @@ export interface TpPasswordResetNode extends Node, TimeStamped {
333
362
  request?: TpPasswordResetRequestNode;
334
363
  applied?: boolean;
335
364
  }
365
+ export interface TpPasswordResetRequestNode extends Node, TimeStamped {
366
+ state?: TpClaimState;
367
+ }
336
368
  export interface TpAssemblyNode extends Node, TimeStamped {
337
369
  id?: ID;
338
370
  singleReject?: boolean;
@@ -340,7 +372,7 @@ export interface TpAssemblyNode extends Node, TimeStamped {
340
372
  subjectKey?: KeyNode;
341
373
  assemblyKey?: KeyNode;
342
374
  assemblyCipherData?: string;
343
- assemblyCipherDataClearJson?: any;
375
+ assemblyCipherDataClearJson?: JSONObject;
344
376
  subAssemblies?: Connection<TpSubAssemblyNode>;
345
377
  }
346
378
  export interface TpSubAssemblyNode extends Node, TimeStamped {
@@ -353,9 +385,9 @@ export interface TpSubAssemblyNode extends Node, TimeStamped {
353
385
  export interface TpAssemblyApproverNode extends Node, TimeStamped {
354
386
  sharedKey?: KeyNode;
355
387
  sharedCipherData?: string;
356
- sharedCipherDataClearJson?: any;
388
+ sharedCipherDataClearJson?: JSONObject;
357
389
  sharedCipherApprovalData?: string;
358
- sharedCipherApprovalDataClearJson?: any;
390
+ sharedCipherApprovalDataClearJson?: JSONObject;
359
391
  tp?: TpNode;
360
392
  }
361
393
  export interface SharedTpPasswordResetNode extends Node, TimeStamped {
@@ -382,9 +414,9 @@ export interface SharedTpClaimApproverNode extends Node, TimeStamped {
382
414
  state?: TpClaimApproverState;
383
415
  sharedKey?: KeyNode;
384
416
  sharedCipherApprovalData?: string;
385
- sharedCipherApprovalDataClearJson?: any;
417
+ sharedCipherApprovalDataClearJson?: JSONObject;
386
418
  sharedCipherPartialAssemblyKey?: string;
387
- sharedCipherPartialAssemblyKeyClearJson?: any;
419
+ sharedCipherPartialAssemblyKeyClearJson?: JSONObject;
388
420
  receiverApprovals?: Connection<SharedTpClaimReceiverApprovalNode>;
389
421
  }
390
422
  export interface SharedTpClaimReceiverApprovalNode extends Node, TimeStamped {
@@ -413,23 +445,41 @@ export declare enum ClaimApproverState {
413
445
  APPROVED = "APPROVED",
414
446
  REJECTED = "REJECTED"
415
447
  }
416
- export declare type ScenarioClaimNode = any;
417
448
  export interface ScenarioNode extends Node, TimeStamped {
418
449
  subject?: UserNode;
419
450
  subjectKey?: KeyNode;
420
451
  subjectCipherData?: string;
421
- subjectCipherDataClearJson?: any;
452
+ subjectCipherDataClearJson?: JSONObject;
422
453
  assembly?: TpAssemblyNode;
423
454
  state?: ScenarioState;
424
455
  claimants?: Connection<ScenarioClaimantNode>;
425
456
  receivers?: Connection<ScenarioReceiverNode>;
426
457
  claims?: Connection<ScenarioClaimNode>;
427
458
  claim?: ScenarioClaimNode;
459
+ assemblyState?: ScenarioAssemblyState;
460
+ }
461
+ export interface ScenarioClaimNode extends Node, TimeStamped {
462
+ claimant?: ScenarioClaimantNode;
463
+ state?: ClaimState;
464
+ scenario?: ScenarioNode;
465
+ }
466
+ export interface ScenarioAssemblyState {
467
+ singleReject?: boolean;
468
+ quorum?: number;
469
+ subAssemblyStates?: ScenarioSubAssemblyState[];
470
+ }
471
+ export interface ScenarioSubAssemblyState {
472
+ singleReject?: boolean;
473
+ quorum?: number;
474
+ approverStates?: ScenarioAssemblyApproverState[];
475
+ }
476
+ export interface ScenarioAssemblyApproverState {
477
+ state?: TpClaimApproverState;
428
478
  }
429
479
  export interface ScenarioReceiverNode extends Node, TimeStamped {
430
480
  sharedKey?: KeyNode;
431
481
  sharedCipherData?: string;
432
- sharedCipherDataClearJson?: any;
482
+ sharedCipherDataClearJson?: JSONObject;
433
483
  pbk?: KeyNode;
434
484
  receiverDirectories?: Connection<ScenarioReceiverDirectoryNode>;
435
485
  receiverFiles?: Connection<ScenarioReceiverFileNode>;
@@ -443,7 +493,7 @@ export interface ScenarioReceiverItemNode extends Node, TimeStamped {
443
493
  receiver?: SharedScenarioReceiverNode;
444
494
  sharedKey?: KeyNode;
445
495
  sharedCipherData?: string;
446
- sharedCipherDataClearJson?: any;
496
+ sharedCipherDataClearJson?: JSONObject;
447
497
  accessRole?: ReceiverDirectoryAccessRole;
448
498
  wrappedItemKey?: string;
449
499
  itemKey?: KeyNode;
@@ -458,7 +508,7 @@ export interface ScenarioClaimantNode extends Node, TimeStamped {
458
508
  tp?: TpNode;
459
509
  sharedKey?: KeyNode;
460
510
  sharedCipherData?: string;
461
- sharedCipherDataClearJson?: any;
511
+ sharedCipherDataClearJson?: JSONObject;
462
512
  }
463
513
  export interface SharedScenarioNode extends Node, TimeStamped {
464
514
  subject?: UserNode;
@@ -468,6 +518,7 @@ export interface SharedScenarioNode extends Node, TimeStamped {
468
518
  asReceiver?: ScenarioReceiverNode;
469
519
  assembly?: SharedTpAssemblyNode;
470
520
  sharedClaim?: SharedScenarioClaimNode;
521
+ assemblyState?: ScenarioAssemblyState;
471
522
  }
472
523
  export interface SharedScenarioClaimNode extends Node, TimeStamped {
473
524
  state?: ClaimState;
@@ -1,10 +1,9 @@
1
1
  import { CognitoUser } from '@aws-amplify/auth';
2
2
  import { JWK } from 'node-jose';
3
- import { TpPasswordResetUserNode } from '../api/types';
3
+ import { TpPasswordResetUserNode, UserDeleteNode } from '../api/types';
4
4
  import { PassIdpParams, PassKeyParams } from '../cryptography/cryptography.types';
5
5
  import { UserPlan } from '../plan/plan.types';
6
6
  import { CurrentUserKey, MainContactCard } from '../users/profile.types';
7
- import { UserDelete } from '../users/user.types';
8
7
  export interface PassKeyBundle {
9
8
  passKeyParams: PassKeyParams;
10
9
  passKey: JWK.Key;
@@ -38,7 +37,7 @@ export declare class CurrentUser {
38
37
  phoneVerified: boolean;
39
38
  getAccessJwtToken: () => string;
40
39
  contactCard: MainContactCard;
41
- userDelete?: UserDelete;
40
+ userDelete?: UserDeleteNode;
42
41
  userPlans: UserPlan[];
43
42
  features: Features;
44
43
  hasTPVaultAccess: boolean;
@@ -1,4 +1,5 @@
1
1
  import { JWK } from 'node-jose';
2
+ import { JSONObject } from '../api/types';
2
3
  import { CurrentUserKey } from '../users/profile.types';
3
4
  import { Edge, Key, KeyGraphResponse, PassKey } from './cryptography.types';
4
5
  import { DecryptOptions, EncryptionService } from './encryption.service';
@@ -32,7 +33,7 @@ export declare class KeyGraphService {
32
33
  decryptFile(keyId: string, file: any): Promise<any>;
33
34
  encryptToString(key: string | Key | JWK.Key, content: any): Promise<string>;
34
35
  wrapKey<T>(wrappingKey: string | Key | JWK.Key, key: JWK.Key): Promise<string>;
35
- encryptWithNewKey(wrappingKeyId: string, cipherClearJson: any): Promise<{
36
+ encryptWithNewKey(wrappingKeyId: string, cipherClearJson: JSONObject): Promise<{
36
37
  key: JWK.Key;
37
38
  wrappingKeyId: string;
38
39
  wrappedKey: string;
@@ -1,8 +1,8 @@
1
- import { AccessRoleChoice } from '../api/types';
1
+ import { AccessRoleChoice, JSONObject } from '../api/types';
2
2
  import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../trusted-parties/tp-assembly.types';
3
3
  export interface ParticipantOptions {
4
4
  tpId: string;
5
- sharedCipherDataClearJson: any;
5
+ sharedCipherDataClearJson: JSONObject;
6
6
  }
7
7
  export interface CreateParticipantOptions extends ParticipantOptions {
8
8
  /** This is the TP.sharedKey used to wrap the approver shared key which will be created. */
@@ -13,7 +13,7 @@ export interface ReceiverDirectoryOptions {
13
13
  directoryId: string;
14
14
  directoryKeyId?: string;
15
15
  accessRole: AccessRoleChoice;
16
- sharedCipherDataClearJson: any;
16
+ sharedCipherDataClearJson: JSONObject;
17
17
  }
18
18
  export declare type CreateReceiverDirectoryOptions = ReceiverDirectoryOptions;
19
19
  export declare type UpdateReceiverDirectoryOptions = ReceiverDirectoryOptions;
@@ -1,6 +1,6 @@
1
1
  import { GenericScalar, ID } from '../api/types';
2
2
  import { TpClaimState, TpClaimApproverState } from '../api/types/lr-graphql.types';
3
- import { DateTime } from '../api/types/graphql.types';
3
+ import { DateTime, JSONObject } from '../api/types/graphql.types';
4
4
  export interface SharedTpPasswordResetFragmentResult {
5
5
  id: ID;
6
6
  tp: {
@@ -18,7 +18,7 @@ export interface SharedTpPasswordResetFragmentResult {
18
18
  id: ID;
19
19
  };
20
20
  sharedCipherData: string;
21
- sharedCipherDataClearJson: any;
21
+ sharedCipherDataClearJson: JSONObject;
22
22
  };
23
23
  }[];
24
24
  };
@@ -41,9 +41,9 @@ export interface SharedTpPasswordResetFragmentResult {
41
41
  id: ID;
42
42
  };
43
43
  sharedCipherApprovalData: string;
44
- sharedCipherApprovalDataClearJson: any;
44
+ sharedCipherApprovalDataClearJson: JSONObject;
45
45
  sharedCipherPartialAssemblyKey: string;
46
- sharedCipherPartialAssemblyKeyClearJson: any;
46
+ sharedCipherPartialAssemblyKeyClearJson: JSONObject;
47
47
  receiverApprovals: {
48
48
  edges: {
49
49
  node: {
@@ -160,7 +160,7 @@ export interface TpPasswordResetQueryResult {
160
160
  quorum: number;
161
161
  canMeetQuorum: boolean;
162
162
  subjectCipherData: string;
163
- subjectCipherDataClearJson: any;
163
+ subjectCipherDataClearJson: JSONObject;
164
164
  subjectKey: {
165
165
  id: ID;
166
166
  };
@@ -175,7 +175,7 @@ export interface TpPasswordResetQueryResult {
175
175
  singleReject: boolean;
176
176
  quorum: number;
177
177
  subjectCipherData: string;
178
- subjectCipherDataClearJson: any;
178
+ subjectCipherDataClearJson: JSONObject;
179
179
  subjectKey: {
180
180
  id: ID;
181
181
  };
@@ -1,5 +1,5 @@
1
+ import { UserDeleteNode } from '../api/types';
1
2
  import { PassIdpParams, PassKey } from '../cryptography/cryptography.types';
2
- import { UserDelete } from './user.types';
3
3
  export declare class CurrentUserKey {
4
4
  passKey?: PassKey;
5
5
  masterKey?: {
@@ -19,7 +19,7 @@ export declare class ApiCurrentUser {
19
19
  id: string;
20
20
  username: string;
21
21
  currentUserKey: CurrentUserKey;
22
- userDelete: UserDelete;
22
+ userDelete: UserDeleteNode;
23
23
  features: any;
24
24
  sessionEncryptionKey: string;
25
25
  }
@@ -1,12 +1,13 @@
1
- import { User, GetUserInput, UserDelete } from './user.types';
1
+ import { User, GetUserInput } from './user.types';
2
2
  import { LrApolloService } from '../api/lr-apollo.service';
3
+ import { UserDeleteNode } from '../api/types';
3
4
  export declare class UserService {
4
5
  private lrApollo;
5
6
  constructor(lrApollo: LrApolloService);
6
7
  getUserByEmail(email: string): Promise<User>;
7
8
  getUserByUsername(username: string): Promise<User>;
8
9
  getUser({ email, username }: GetUserInput): Promise<User>;
9
- requestUserDelete(): Promise<UserDelete>;
10
+ requestUserDelete(): Promise<UserDeleteNode>;
10
11
  cancelUserDelete(): Promise<string>;
11
12
  loginHistory(first?: number, after?: string): Promise<any>;
12
13
  }
@@ -14,10 +14,3 @@ export interface User {
14
14
  pxk?: Key;
15
15
  };
16
16
  }
17
- export declare enum UserDeleteState {
18
- REQUESTED = "REQUESTED"
19
- }
20
- export interface UserDelete {
21
- created?: string;
22
- state: UserDeleteState;
23
- }