@lifeready/core 6.1.3 → 6.1.5

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 (77) hide show
  1. package/bundles/lifeready-core.umd.js +303 -295
  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/auth/auth.config.js +57 -0
  6. package/esm2015/lib/auth/auth.gql.private.js +85 -0
  7. package/esm2015/lib/auth/auth.service.js +602 -0
  8. package/esm2015/lib/auth/auth.types.js +21 -0
  9. package/esm2015/lib/idle/idle.service.js +3 -3
  10. package/esm2015/lib/item/item.gql.js +164 -0
  11. package/esm2015/lib/item/item.gql.private.js +23 -0
  12. package/esm2015/lib/item/item.service.js +592 -0
  13. package/esm2015/lib/item/item.types.js +2 -0
  14. package/esm2015/lib/key-exchange/key-exchange.gql.js +174 -0
  15. package/esm2015/lib/key-exchange/key-exchange.service.js +480 -0
  16. package/esm2015/lib/lbop/lbop.service.js +7 -15
  17. package/esm2015/lib/life-ready.module.js +2 -2
  18. package/esm2015/lib/password/password.service.js +1 -1
  19. package/esm2015/lib/plan/plan.gql.js +91 -0
  20. package/esm2015/lib/plan/plan.service.js +191 -0
  21. package/esm2015/lib/plan/plan.types.js +2 -0
  22. package/esm2015/lib/profile/profile.gql.js +2 -2
  23. package/esm2015/lib/profile/profile.service.js +1 -8
  24. package/esm2015/lib/profile/profile.types.js +1 -8
  25. package/esm2015/lib/scenario/scenario.service.js +8 -8
  26. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +1 -1
  27. package/esm2015/lib/trusted-party/trusted-party.gql.js +64 -0
  28. package/esm2015/lib/trusted-party/trusted-party.gql.private.js +25 -0
  29. package/esm2015/lib/trusted-party/trusted-party.service.js +240 -0
  30. package/esm2015/lib/trusted-party/trusted-party.types.js +2 -0
  31. package/esm2015/public-api.js +17 -12
  32. package/fesm2015/lifeready-core.js +191 -213
  33. package/fesm2015/lifeready-core.js.map +1 -1
  34. package/lib/{auth2/auth2.service.d.ts → auth/auth.service.d.ts} +2 -2
  35. package/lib/idle/idle.service.d.ts +9 -2
  36. package/lib/{item2/item2.service.d.ts → item/item.service.d.ts} +39 -39
  37. package/lib/key-exchange/{key-exchange2.service.d.ts → key-exchange.service.d.ts} +2 -2
  38. package/lib/lbop/lbop.service.d.ts +1 -5
  39. package/lib/password/password.service.d.ts +1 -1
  40. package/lib/{plan2/plan2.service.d.ts → plan/plan.service.d.ts} +20 -20
  41. package/lib/profile/profile.service.d.ts +1 -2
  42. package/lib/profile/profile.types.d.ts +2 -15
  43. package/lib/scenario/scenario.service.d.ts +3 -3
  44. package/lib/shared-contact-card/shared-contact-card2.service.d.ts +1 -1
  45. package/lib/trusted-party/{trusted-party2.service.d.ts → trusted-party.service.d.ts} +6 -6
  46. package/lifeready-core.metadata.json +1 -1
  47. package/package.json +1 -1
  48. package/public-api.d.ts +16 -11
  49. package/esm2015/lib/auth2/auth.config.js +0 -57
  50. package/esm2015/lib/auth2/auth2.gql.private.js +0 -85
  51. package/esm2015/lib/auth2/auth2.service.js +0 -602
  52. package/esm2015/lib/auth2/auth2.types.js +0 -21
  53. package/esm2015/lib/item2/item2.gql.js +0 -164
  54. package/esm2015/lib/item2/item2.gql.private.js +0 -23
  55. package/esm2015/lib/item2/item2.service.js +0 -592
  56. package/esm2015/lib/item2/item2.types.js +0 -2
  57. package/esm2015/lib/key-exchange/key-exchange2.gql.js +0 -174
  58. package/esm2015/lib/key-exchange/key-exchange2.service.js +0 -480
  59. package/esm2015/lib/plan2/plan2.gql.js +0 -91
  60. package/esm2015/lib/plan2/plan2.service.js +0 -191
  61. package/esm2015/lib/plan2/plan2.types.js +0 -2
  62. package/esm2015/lib/trusted-party/trusted-party2.gql.js +0 -64
  63. package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +0 -25
  64. package/esm2015/lib/trusted-party/trusted-party2.service.js +0 -240
  65. package/esm2015/lib/trusted-party/trusted-party2.types.js +0 -2
  66. /package/lib/{auth2 → auth}/auth.config.d.ts +0 -0
  67. /package/lib/{auth2/auth2.gql.private.d.ts → auth/auth.gql.private.d.ts} +0 -0
  68. /package/lib/{auth2/auth2.types.d.ts → auth/auth.types.d.ts} +0 -0
  69. /package/lib/{item2/item2.gql.d.ts → item/item.gql.d.ts} +0 -0
  70. /package/lib/{item2/item2.gql.private.d.ts → item/item.gql.private.d.ts} +0 -0
  71. /package/lib/{item2/item2.types.d.ts → item/item.types.d.ts} +0 -0
  72. /package/lib/key-exchange/{key-exchange2.gql.d.ts → key-exchange.gql.d.ts} +0 -0
  73. /package/lib/{plan2/plan2.gql.d.ts → plan/plan.gql.d.ts} +0 -0
  74. /package/lib/{plan2/plan2.types.d.ts → plan/plan.types.d.ts} +0 -0
  75. /package/lib/trusted-party/{trusted-party2.gql.d.ts → trusted-party.gql.d.ts} +0 -0
  76. /package/lib/trusted-party/{trusted-party2.gql.private.d.ts → trusted-party.gql.private.d.ts} +0 -0
  77. /package/lib/trusted-party/{trusted-party2.types.d.ts → trusted-party.types.d.ts} +0 -0
@@ -11,8 +11,8 @@ import { KcConfig } from '../life-ready.config';
11
11
  import { PasswordService } from '../password/password.service';
12
12
  import { PersistService } from '../persist/persist.service';
13
13
  import { TpPasswordResetAssemblyController } from '../tp-password-reset/tp-password-reset.controller';
14
- import { AuthUser, LoginChallenge, LoginOptions, LoginResult, LogoutListener, LrCognitoUserAttribute } from './auth2.types';
15
- export declare class Auth2Service extends LrService {
14
+ import { AuthUser, LoginChallenge, LoginOptions, LoginResult, LogoutListener, LrCognitoUserAttribute } from './auth.types';
15
+ export declare class AuthService extends LrService {
16
16
  private ngZone;
17
17
  private injector;
18
18
  private http;
@@ -6,9 +6,16 @@ import { KeyService } from '../key/key.service';
6
6
  import { Key } from '../key/key.types';
7
7
  import { KcConfig } from '../life-ready.config';
8
8
  import { KeepaliveResult } from './idle.types';
9
+ /**
10
+ * onInit: true when onTimeout is called from the init() function. i.e. tab was closed and on reloading the webapp it already timed out.
11
+ */
12
+ export declare type IdleServiceOnTimeout = ({ onInit: boolean, }: {
13
+ onInit: any;
14
+ }) => void | Promise<void>;
15
+ export declare type IdleServiceOnKeepalive = () => void | Promise<void>;
9
16
  export interface IdleServiceInit {
10
- onTimeout?: (() => void) | (() => Promise<void>) | null;
11
- onKeepalive?: (() => void) | (() => Promise<void>) | null;
17
+ onTimeout?: IdleServiceOnTimeout;
18
+ onKeepalive?: IdleServiceOnKeepalive;
12
19
  idleSec?: number;
13
20
  timeoutSec?: number;
14
21
  keepAliveIntervalSec?: number;
@@ -1,14 +1,14 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMutation, LrService } from '../api/lr-graphql';
3
3
  import { ID, LrRelayIdInput } from '../api/types';
4
- import { Auth2Service } from '../auth2/auth2.service';
4
+ import { AuthService } from '../auth/auth.service';
5
5
  import { FileUploadService } from '../file-upload/file-upload.service';
6
6
  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 './item2.types';
11
- export declare class Item2Service extends LrService {
10
+ import { ArchiveDirectoryOptions, BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, DownloadFileContentOptions, FileParentDirectoryInput, IdKeyPair, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, SetDirectoryConfidentialOptions, SetFileConfidentialOptions, UnarchiveDirectoryOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item.types';
11
+ export declare class ItemService extends LrService {
12
12
  private ngZone;
13
13
  private injector;
14
14
  private fileUploadService;
@@ -16,9 +16,9 @@ export declare class Item2Service extends LrService {
16
16
  private keyFactory;
17
17
  private keyGraph;
18
18
  private lockService;
19
- private auth2Service;
19
+ private authService;
20
20
  private tempDirectory;
21
- constructor(ngZone: NgZone, injector: Injector, fileUploadService: FileUploadService, keyService: KeyService, keyFactory: KeyFactoryService, keyGraph: KeyGraphService, lockService: LockService, auth2Service: Auth2Service);
21
+ constructor(ngZone: NgZone, injector: Injector, fileUploadService: FileUploadService, keyService: KeyService, keyFactory: KeyFactoryService, keyGraph: KeyGraphService, lockService: LockService, authService: AuthService);
22
22
  static TEMP_DIRECTORY_PLAIN_META: {
23
23
  kcType: string;
24
24
  };
@@ -28,8 +28,8 @@ export declare class Item2Service extends LrService {
28
28
  getFileKeyId(fileId: LrRelayIdInput): Promise<string>;
29
29
  getDirectoryKey(directoryId: LrRelayIdInput, directoryKeyId?: LrRelayIdInput): Promise<import("../key/key.types").Key>;
30
30
  getFileKey(fileId: LrRelayIdInput, fileKeyId?: LrRelayIdInput): Promise<import("../key/key.types").Key>;
31
- createDirectory(options: CreateDirectoryOptions): Promise<import("./item2.gql").CreateDirectoryMutationResult>;
32
- createDirectoryMutation(options: CreateDirectoryOptions): Promise<LrMutation<import("./item2.gql").CreateDirectoryMutationResult, {
31
+ createDirectory(options: CreateDirectoryOptions): Promise<import("./item.gql").CreateDirectoryMutationResult>;
32
+ createDirectoryMutation(options: CreateDirectoryOptions): Promise<LrMutation<import("./item.gql").CreateDirectoryMutationResult, {
33
33
  input: {
34
34
  parentDirectories: ParentDirectoryInput[];
35
35
  parentRootDirectory: ParentRootDirectoryInput;
@@ -37,22 +37,22 @@ export declare class Item2Service extends LrService {
37
37
  cipherMeta: string;
38
38
  };
39
39
  }>>;
40
- updateDirectory(options: UpdateDirectoryOptions): Promise<import("./item2.gql").UpdateDirectoryMutationResult>;
41
- updateDirectoryMutation(options: UpdateDirectoryOptions): Promise<LrMutation<import("./item2.gql").UpdateDirectoryMutationResult, {
40
+ updateDirectory(options: UpdateDirectoryOptions): Promise<import("./item.gql").UpdateDirectoryMutationResult>;
41
+ updateDirectoryMutation(options: UpdateDirectoryOptions): Promise<LrMutation<import("./item.gql").UpdateDirectoryMutationResult, {
42
42
  input: {
43
43
  directoryId: string;
44
44
  plainMeta: string;
45
45
  cipherMeta: string;
46
46
  };
47
47
  }>>;
48
- deleteDirectory(id: ID): Promise<import("./item2.gql").DeleteDirectoryMutationResult>;
49
- deleteDirectoryMutation(id: ID): LrMutation<import("./item2.gql").DeleteDirectoryMutationResult, {
48
+ deleteDirectory(id: ID): Promise<import("./item.gql").DeleteDirectoryMutationResult>;
49
+ deleteDirectoryMutation(id: ID): LrMutation<import("./item.gql").DeleteDirectoryMutationResult, {
50
50
  input: {
51
51
  directoryId: string;
52
52
  };
53
53
  }>;
54
- createFile(options: CreateFileOptions): Promise<import("./item2.gql").CreateFileMutationResult>;
55
- createFileMutation(options: CreateFileOptions): Promise<LrMutation<import("./item2.gql").CreateFileMutationResult, {
54
+ createFile(options: CreateFileOptions): Promise<import("./item.gql").CreateFileMutationResult>;
55
+ createFileMutation(options: CreateFileOptions): Promise<LrMutation<import("./item.gql").CreateFileMutationResult, {
56
56
  input: {
57
57
  parentDirectories: FileParentDirectoryInput[];
58
58
  wrappedStateKey: string;
@@ -61,8 +61,8 @@ export declare class Item2Service extends LrService {
61
61
  cipherMeta: string;
62
62
  };
63
63
  }>>;
64
- updateFile(options: UpdateFileOptions): Promise<import("./item2.gql").UpdateFileMutationResult>;
65
- updateFileMutation(options: UpdateFileOptions): Promise<LrMutation<import("./item2.gql").UpdateFileMutationResult, {
64
+ updateFile(options: UpdateFileOptions): Promise<import("./item.gql").UpdateFileMutationResult>;
65
+ updateFileMutation(options: UpdateFileOptions): Promise<LrMutation<import("./item.gql").UpdateFileMutationResult, {
66
66
  input: {
67
67
  fileId: string;
68
68
  wrappedStateKey: string;
@@ -71,59 +71,59 @@ export declare class Item2Service extends LrService {
71
71
  cipherMeta: string;
72
72
  };
73
73
  }>>;
74
- revertFile(options: RevertFileOptions): Promise<import("./item2.gql").RevertFileMutationResult>;
75
- revertFileMutation(options: RevertFileOptions): Promise<LrMutation<import("./item2.gql").RevertFileMutationResult, {
74
+ revertFile(options: RevertFileOptions): Promise<import("./item.gql").RevertFileMutationResult>;
75
+ revertFileMutation(options: RevertFileOptions): Promise<LrMutation<import("./item.gql").RevertFileMutationResult, {
76
76
  input: RevertFileOptions;
77
77
  }>>;
78
- deleteFile(id: ID): Promise<import("./item2.gql").DeleteFileMutationResult>;
79
- deleteFileMutation(id: ID): LrMutation<import("./item2.gql").DeleteFileMutationResult, {
78
+ deleteFile(id: ID): Promise<import("./item.gql").DeleteFileMutationResult>;
79
+ deleteFileMutation(id: ID): LrMutation<import("./item.gql").DeleteFileMutationResult, {
80
80
  input: {
81
81
  fileId: string;
82
82
  };
83
83
  }>;
84
- archiveDirectory(directoryId: string, options: ArchiveDirectoryOptions): Promise<import("./item2.gql").ArchiveDirectoryMutationResult>;
85
- archiveDirectoryMutation(directoryId: string, options: ArchiveDirectoryOptions): LrMutation<import("./item2.gql").ArchiveDirectoryMutationResult, {
84
+ archiveDirectory(directoryId: string, options: ArchiveDirectoryOptions): Promise<import("./item.gql").ArchiveDirectoryMutationResult>;
85
+ archiveDirectoryMutation(directoryId: string, options: ArchiveDirectoryOptions): LrMutation<import("./item.gql").ArchiveDirectoryMutationResult, {
86
86
  input: {
87
87
  directoryId: string;
88
88
  recursive: boolean;
89
89
  };
90
90
  }>;
91
- archiveFile(fileId: string): Promise<import("./item2.gql").ArchiveFileMutationResult>;
92
- archiveFileMutation(fileId: string): LrMutation<import("./item2.gql").ArchiveFileMutationResult, {
91
+ archiveFile(fileId: string): Promise<import("./item.gql").ArchiveFileMutationResult>;
92
+ archiveFileMutation(fileId: string): LrMutation<import("./item.gql").ArchiveFileMutationResult, {
93
93
  input: {
94
94
  fileId: string;
95
95
  };
96
96
  }>;
97
- unarchiveDirectory(directoryId: string, options: UnarchiveDirectoryOptions): Promise<import("./item2.gql").UnarchiveDirectoryMutationResult>;
98
- unarchiveDirectoryMutation(directoryId: string, options: UnarchiveDirectoryOptions): LrMutation<import("./item2.gql").UnarchiveDirectoryMutationResult, {
97
+ unarchiveDirectory(directoryId: string, options: UnarchiveDirectoryOptions): Promise<import("./item.gql").UnarchiveDirectoryMutationResult>;
98
+ unarchiveDirectoryMutation(directoryId: string, options: UnarchiveDirectoryOptions): LrMutation<import("./item.gql").UnarchiveDirectoryMutationResult, {
99
99
  input: {
100
100
  directoryId: string;
101
101
  recursive: boolean;
102
102
  };
103
103
  }>;
104
- unarchiveFile(fileId: string): Promise<import("./item2.gql").UnarchiveFileMutationResult>;
105
- unarchiveFileMutation(fileId: string): LrMutation<import("./item2.gql").UnarchiveFileMutationResult, {
104
+ unarchiveFile(fileId: string): Promise<import("./item.gql").UnarchiveFileMutationResult>;
105
+ unarchiveFileMutation(fileId: string): LrMutation<import("./item.gql").UnarchiveFileMutationResult, {
106
106
  input: {
107
107
  fileId: string;
108
108
  };
109
109
  }>;
110
- changeDirectoryParents(options: ChangeDirectoryParentsOptions): Promise<import("./item2.gql").ChangeDirectoryParentsMutationResult>;
111
- changeDirectoryParentsMutation(options: ChangeDirectoryParentsOptions): Promise<LrMutation<import("./item2.gql").ChangeDirectoryParentsMutationResult, {
110
+ changeDirectoryParents(options: ChangeDirectoryParentsOptions): Promise<import("./item.gql").ChangeDirectoryParentsMutationResult>;
111
+ changeDirectoryParentsMutation(options: ChangeDirectoryParentsOptions): Promise<LrMutation<import("./item.gql").ChangeDirectoryParentsMutationResult, {
112
112
  input: {
113
113
  directoryId: string;
114
114
  directoriesToRemove: string[];
115
115
  directoriesToAdd: ParentDirectoryInput[];
116
116
  };
117
117
  }>>;
118
- changeFileParents(options: ChangeFileParentsOptions): Promise<import("./item2.gql").ChangeFileParentsMutationResult>;
119
- changeFileParentsMutation(options: ChangeFileParentsOptions): Promise<LrMutation<import("./item2.gql").ChangeFileParentsMutationResult, {
118
+ changeFileParents(options: ChangeFileParentsOptions): Promise<import("./item.gql").ChangeFileParentsMutationResult>;
119
+ changeFileParentsMutation(options: ChangeFileParentsOptions): Promise<LrMutation<import("./item.gql").ChangeFileParentsMutationResult, {
120
120
  input: {
121
121
  fileId: string;
122
122
  directoriesToRemove: string[];
123
123
  directoriesToAdd: ParentDirectoryInput[];
124
124
  };
125
125
  }>>;
126
- beginDeleteChildItemLinksWindow(options: BeginDeleteChildItemLinksWindowOptions): Promise<import("./item2.gql").BeginDeleteChildItemLinksWindowMutationResult>;
126
+ beginDeleteChildItemLinksWindow(options: BeginDeleteChildItemLinksWindowOptions): Promise<import("./item.gql").BeginDeleteChildItemLinksWindowMutationResult>;
127
127
  /**
128
128
  * Schedule cleanup of the hard links in a directory.
129
129
  * The server will delete all hard link within the directory within a time window: starting from now and
@@ -134,7 +134,7 @@ export declare class Item2Service extends LrService {
134
134
  * The server has a setting that allows for a maximum value on requestWindowMs. If the requested value
135
135
  * is larger than this maximum, the call will fail.
136
136
  */
137
- beginDeleteChildItemLinksWindowMutation(options: BeginDeleteChildItemLinksWindowOptions): Promise<LrMutation<import("./item2.gql").BeginDeleteChildItemLinksWindowMutationResult, {
137
+ beginDeleteChildItemLinksWindowMutation(options: BeginDeleteChildItemLinksWindowOptions): Promise<LrMutation<import("./item.gql").BeginDeleteChildItemLinksWindowMutationResult, {
138
138
  input: BeginDeleteChildItemLinksWindowOptions;
139
139
  }>>;
140
140
  /**
@@ -149,28 +149,28 @@ export declare class Item2Service extends LrService {
149
149
  *
150
150
  */
151
151
  ensureTempDirectory(): Promise<IdKeyPair>;
152
- createDirectoryTree(options: CreateDirectoryTreeOptions): Promise<import("./item2.gql").ChangeDirectoryParentsMutationResult>;
152
+ createDirectoryTree(options: CreateDirectoryTreeOptions): Promise<import("./item.gql").ChangeDirectoryParentsMutationResult>;
153
153
  /**
154
154
  * You must run this mutation within the temp directory cleanup window on the
155
155
  * server, otherwise the temp directory will get cleaned up.
156
156
  *
157
157
  */
158
- createDirectoryTreeMutation(options: CreateDirectoryTreeOptions): Promise<LrMutation<import("./item2.gql").ChangeDirectoryParentsMutationResult, {
158
+ createDirectoryTreeMutation(options: CreateDirectoryTreeOptions): Promise<LrMutation<import("./item.gql").ChangeDirectoryParentsMutationResult, {
159
159
  input: {
160
160
  directoryId: string;
161
161
  directoriesToRemove: string[];
162
162
  directoriesToAdd: ParentDirectoryInput[];
163
163
  };
164
164
  }>>;
165
- setFileConfidential(options: SetFileConfidentialOptions): Promise<import("./item2.gql").SetFileConfidentialMutationResult>;
166
- setFileConfidentialMutation(options: SetFileConfidentialOptions): Promise<LrMutation<import("./item2.gql").SetFileConfidentialMutationResult, {
165
+ setFileConfidential(options: SetFileConfidentialOptions): Promise<import("./item.gql").SetFileConfidentialMutationResult>;
166
+ setFileConfidentialMutation(options: SetFileConfidentialOptions): Promise<LrMutation<import("./item.gql").SetFileConfidentialMutationResult, {
167
167
  input: {
168
168
  fileId: string;
169
169
  confidential: boolean;
170
170
  };
171
171
  }>>;
172
- setDirectoryConfidential(options: SetDirectoryConfidentialOptions): Promise<import("./item2.gql").SetDirectoryConfidentialMutationResult>;
173
- setDirectoryConfidentialMutation(options: SetDirectoryConfidentialOptions): Promise<LrMutation<import("./item2.gql").SetDirectoryConfidentialMutationResult, {
172
+ setDirectoryConfidential(options: SetDirectoryConfidentialOptions): Promise<import("./item.gql").SetDirectoryConfidentialMutationResult>;
173
+ setDirectoryConfidentialMutation(options: SetDirectoryConfidentialOptions): Promise<LrMutation<import("./item.gql").SetDirectoryConfidentialMutationResult, {
174
174
  input: {
175
175
  directoryId: string;
176
176
  confidential: boolean;
@@ -7,7 +7,7 @@ import { EncryptionService } from '../encryption/encryption.service';
7
7
  import { KeyFactoryService } from '../key/key-factory.service';
8
8
  import { KeyGraphService } from '../key/key-graph.service';
9
9
  import { KeyService } from '../key/key.service';
10
- import { CancelKeyExchangeMutation, CompleteKeyExchangeOtkMutation, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, InitiateKeyExchangeOtkMutation, KeyExchangeFieldsResult, KeyExchangeState2, RespondKeyExchangeOtkMutation } from './key-exchange2.gql';
10
+ import { CancelKeyExchangeMutation, CompleteKeyExchangeOtkMutation, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, InitiateKeyExchangeOtkMutation, KeyExchangeFieldsResult, KeyExchangeState2, RespondKeyExchangeOtkMutation } from './key-exchange.gql';
11
11
  /**
12
12
  * The decrypted content of the one-time key cipher;
13
13
  * When user supplies this information the lib doesn't need to do another API call
@@ -80,7 +80,7 @@ export interface GetKeyExchangeOptions2 {
80
80
  otKeyK?: string;
81
81
  token?: string;
82
82
  }
83
- export declare class KeyExchange2Service extends LrService {
83
+ export declare class KeyExchangeService extends LrService {
84
84
  private ngZone;
85
85
  private injector;
86
86
  private keyFactory;
@@ -2,10 +2,8 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
3
3
  import { JWK } from 'node-jose';
4
4
  import { LrApolloService } from '../api/lr-apollo.service';
5
- import { Auth2Service } from '../auth2/auth2.service';
6
5
  import { EncryptionService } from '../encryption/encryption.service';
7
6
  import { KeyFactoryService as KFS } from '../key/key-factory.service';
8
- import { KeyGraphService } from '../key/key-graph.service';
9
7
  import { KeyService } from '../key/key.service';
10
8
  import { PassKeyParams } from '../key/key.types';
11
9
  import { KcConfig } from '../life-ready.config';
@@ -80,15 +78,13 @@ export declare class LbopService {
80
78
  private http;
81
79
  private lrApollo;
82
80
  private auth;
83
- private auth2Service;
84
81
  private keyFactory;
85
82
  private keyService;
86
83
  private encryptionService;
87
- private keyGraph;
88
84
  private passwordService;
89
85
  private readonly CLIENT_NONCE_LENGTH;
90
86
  private readonly LBOP_WORDS;
91
- constructor(config: KcConfig, http: HttpClient, lrApollo: LrApolloService, auth: AuthClass, auth2Service: Auth2Service, keyFactory: KFS, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService, passwordService: PasswordService);
87
+ constructor(config: KcConfig, http: HttpClient, lrApollo: LrApolloService, auth: AuthClass, keyFactory: KFS, keyService: KeyService, encryptionService: EncryptionService, passwordService: PasswordService);
92
88
  private getPartial;
93
89
  remove(id: string): Promise<string>;
94
90
  update({ id, name }: UpdateLbopParams): Promise<Lbop>;
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
3
3
  import { Duration } from 'moment';
4
4
  import { JWK } from 'node-jose';
5
- import { PassKeyBundle } from '../auth2/auth2.types';
5
+ import { PassKeyBundle } from '../auth/auth.types';
6
6
  import { EncryptionService } from '../encryption/encryption.service';
7
7
  import { KeyFactoryService as KFS } from '../key/key-factory.service';
8
8
  import { KeyGraphService } from '../key/key-graph.service';
@@ -1,20 +1,20 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMutation, LrService } from '../api/lr-graphql';
3
3
  import { LrRelayIdInput } from '../api/types';
4
- import { CancelPlanOptions, ChangePriceOptionOptions, IssuePlanOptions } from './plan2.types';
5
- export declare class Plan2Service extends LrService {
4
+ import { CancelPlanOptions, ChangePriceOptionOptions, IssuePlanOptions } from './plan.types';
5
+ export declare class PlanService extends LrService {
6
6
  private ngZone;
7
7
  private injector;
8
8
  constructor(ngZone: NgZone, injector: Injector);
9
- initiateStripePaymentMethodCapture(): Promise<import("./plan2.gql").InitiateStripePaymentMethodCaptureMutationResult>;
9
+ initiateStripePaymentMethodCapture(): Promise<import("./plan.gql").InitiateStripePaymentMethodCaptureMutationResult>;
10
10
  /**
11
11
  * Starts a stripe payment capture intent. On intent can only add one card.
12
12
  * @returns Promise that resolves to a mutation
13
13
  */
14
- initiateStripePaymentMethodCaptureMutation(): LrMutation<import("./plan2.gql").InitiateStripePaymentMethodCaptureMutationResult, {
14
+ initiateStripePaymentMethodCaptureMutation(): LrMutation<import("./plan.gql").InitiateStripePaymentMethodCaptureMutationResult, {
15
15
  input: {};
16
16
  }>;
17
- completeStripePaymentMethodCapture(stripeIntentId: string): Promise<import("./plan2.gql").CompleteStripePaymentMethodCaptureMutationResult>;
17
+ completeStripePaymentMethodCapture(stripeIntentId: string): Promise<import("./plan.gql").CompleteStripePaymentMethodCaptureMutationResult>;
18
18
  /**
19
19
  * Completes the payment capture intent. Call this after calling stripe.confirmCardSetup.
20
20
  *
@@ -23,33 +23,33 @@ export declare class Plan2Service extends LrService {
23
23
  *
24
24
  * @returns Promise that resolves to a mutation with the just created PaymentMethodNode
25
25
  */
26
- completeStripePaymentMethodCaptureMutation(stripeIntentId: string): LrMutation<import("./plan2.gql").CompleteStripePaymentMethodCaptureMutationResult, {
26
+ completeStripePaymentMethodCaptureMutation(stripeIntentId: string): LrMutation<import("./plan.gql").CompleteStripePaymentMethodCaptureMutationResult, {
27
27
  input: {
28
28
  stripeIntentId: string;
29
29
  };
30
30
  }>;
31
- setDefaultPaymentMethod(paymentMethodId: LrRelayIdInput): Promise<import("./plan2.gql").SetDefaultPaymentMethodMutationResult>;
31
+ setDefaultPaymentMethod(paymentMethodId: LrRelayIdInput): Promise<import("./plan.gql").SetDefaultPaymentMethodMutationResult>;
32
32
  /**
33
33
  * Mutation that sets the default payment method for the current user.
34
34
  *
35
35
  * @param paymentMethodId The id from PaymentMethodNode
36
36
  * @returns Promise that resolves to a mutation
37
37
  */
38
- setDefaultPaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan2.gql").SetDefaultPaymentMethodMutationResult, {
38
+ setDefaultPaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan.gql").SetDefaultPaymentMethodMutationResult, {
39
39
  input: {
40
40
  paymentMethodId: string;
41
41
  };
42
42
  }>;
43
- removeDefaultPaymentMethod(): Promise<import("./plan2.gql").RemoveDefaultPaymentMethodMutationResult>;
43
+ removeDefaultPaymentMethod(): Promise<import("./plan.gql").RemoveDefaultPaymentMethodMutationResult>;
44
44
  /**
45
45
  * Mutation that removes a the default payment method
46
46
  *
47
47
  * @returns Promise that resolves to a mutation
48
48
  */
49
- removeDefaultPaymentMethodMutation(): LrMutation<import("./plan2.gql").RemoveDefaultPaymentMethodMutationResult, {
49
+ removeDefaultPaymentMethodMutation(): LrMutation<import("./plan.gql").RemoveDefaultPaymentMethodMutationResult, {
50
50
  input: {};
51
51
  }>;
52
- issuePlan(options: IssuePlanOptions): Promise<import("./plan2.gql").IssuePlanMutationResult>;
52
+ issuePlan(options: IssuePlanOptions): Promise<import("./plan.gql").IssuePlanMutationResult>;
53
53
  /**
54
54
  * Mutation that issues a new plan for the current user.
55
55
  *
@@ -59,22 +59,22 @@ export declare class Plan2Service extends LrService {
59
59
  * @param options.promotionalCode promotion code where applicable
60
60
  * @returns Promise that resolves to a mutation
61
61
  */
62
- issuePlanMutation(options: IssuePlanOptions): LrMutation<import("./plan2.gql").IssuePlanMutationResult, {
62
+ issuePlanMutation(options: IssuePlanOptions): LrMutation<import("./plan.gql").IssuePlanMutationResult, {
63
63
  input: IssuePlanOptions;
64
64
  }>;
65
- removePaymentMethod(paymentMethodId: string): Promise<import("./plan2.gql").RemovePaymentMethodMutationResult>;
65
+ removePaymentMethod(paymentMethodId: string): Promise<import("./plan.gql").RemovePaymentMethodMutationResult>;
66
66
  /**
67
67
  * Mutation that removes a payment method for the current user
68
68
  *
69
69
  * @param paymentMethodId The id from PaymentMethodNode
70
70
  * @returns Promise that resolves to a mutation
71
71
  */
72
- removePaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan2.gql").RemovePaymentMethodMutationResult, {
72
+ removePaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan.gql").RemovePaymentMethodMutationResult, {
73
73
  input: {
74
74
  paymentMethodId: string;
75
75
  };
76
76
  }>;
77
- cancelPlan(options: CancelPlanOptions): Promise<import("./plan2.gql").CancelPlanMutationResult>;
77
+ cancelPlan(options: CancelPlanOptions): Promise<import("./plan.gql").CancelPlanMutationResult>;
78
78
  /**
79
79
  * Mutation that removes a payment method for the current user
80
80
  *
@@ -82,10 +82,10 @@ export declare class Plan2Service extends LrService {
82
82
  * @param options.immediate If true, cancel plan effective immediately. Default false.
83
83
  * @returns Promise that resolves to a mutation
84
84
  */
85
- cancelPlanMutation(options: CancelPlanOptions): LrMutation<import("./plan2.gql").CancelPlanMutationResult, {
85
+ cancelPlanMutation(options: CancelPlanOptions): LrMutation<import("./plan.gql").CancelPlanMutationResult, {
86
86
  input: CancelPlanOptions;
87
87
  }>;
88
- changePriceOption(options: ChangePriceOptionOptions): Promise<import("./plan2.gql").ChangePriceOptionMutationResult>;
88
+ changePriceOption(options: ChangePriceOptionOptions): Promise<import("./plan.gql").ChangePriceOptionMutationResult>;
89
89
  /**
90
90
  * Change the price option for a plan.
91
91
  *
@@ -93,17 +93,17 @@ export declare class Plan2Service extends LrService {
93
93
  * @param options.priceId The priceId from PriceOptionField (eg. inside AvailablePlanField)
94
94
  * @returns Promise that resolves to a mutation
95
95
  */
96
- changePriceOptionMutation(options: ChangePriceOptionOptions): LrMutation<import("./plan2.gql").ChangePriceOptionMutationResult, {
96
+ changePriceOptionMutation(options: ChangePriceOptionOptions): LrMutation<import("./plan.gql").ChangePriceOptionMutationResult, {
97
97
  input: ChangePriceOptionOptions;
98
98
  }>;
99
- reactivatePlan(planId: LrRelayIdInput): Promise<import("./plan2.gql").ReactivatePlanMutationResult>;
99
+ reactivatePlan(planId: LrRelayIdInput): Promise<import("./plan.gql").ReactivatePlanMutationResult>;
100
100
  /**
101
101
  * Reactivate a cancelled plan with a specified price option.
102
102
  *
103
103
  * @param options.planId The id from IssuedPlanNode
104
104
  * @returns Promise that resolves to a mutation
105
105
  */
106
- reactivatePlanMutation(planId: LrRelayIdInput): LrMutation<import("./plan2.gql").ReactivatePlanMutationResult, {
106
+ reactivatePlanMutation(planId: LrRelayIdInput): LrMutation<import("./plan.gql").ReactivatePlanMutationResult, {
107
107
  input: {
108
108
  planId: string;
109
109
  };
@@ -6,7 +6,7 @@ import { KeyGraphService } from '../key/key-graph.service';
6
6
  import { KeyMetaService } from '../key/key-meta.service';
7
7
  import { KeyService } from '../key/key.service';
8
8
  import { KcConfig } from '../life-ready.config';
9
- import { ApiContactCard, ApiCurrentUser, MainContactCard, MainContactCardFields, PassIdpApiResult } from './profile.types';
9
+ import { ApiContactCard, ApiCurrentUser, MainContactCard, MainContactCardFields } from './profile.types';
10
10
  export declare class ProfileService {
11
11
  private config;
12
12
  private http;
@@ -16,7 +16,6 @@ export declare class ProfileService {
16
16
  private keyGraph;
17
17
  private encryptionService;
18
18
  constructor(config: KcConfig, http: HttpClient, lrApollo: LrApolloService, keyService: KeyService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService, encryptionService: EncryptionService);
19
- getPassIdpParams(emailOrPhone: string): Promise<PassIdpApiResult>;
20
19
  getCurrentUser(): Promise<{
21
20
  currentUser: ApiCurrentUser;
22
21
  contactCard: ApiContactCard;
@@ -1,6 +1,6 @@
1
1
  import { DateTime, UserDeleteNode, UserSharedKeyNode } from '../api/types';
2
- import { IdKeyPair } from '../item2/item2.types';
3
- import { PassIdpParams, PassKey } from '../key/key.types';
2
+ import { IdKeyPair } from '../item/item.types';
3
+ import { PassKey } from '../key/key.types';
4
4
  export declare enum FeatureAction {
5
5
  ACCESS = "access"
6
6
  }
@@ -79,19 +79,6 @@ export interface MainContactCard extends IdKeyPair {
79
79
  export declare class MainContactCardPlainFields {
80
80
  name: ContactCardName;
81
81
  }
82
- export declare enum PasswordChangeStatus {
83
- InProgress = "IN_PROGRESS",
84
- Recovery = "RECOVERY"
85
- }
86
- export declare class PassIdpApiResult {
87
- passwordChangeStatus?: PasswordChangeStatus;
88
- currentPassIdpParams: PassIdpParams;
89
- newPassIdpParams: PassIdpParams;
90
- tpPasswordReset: {
91
- passIdpParams: PassIdpParams;
92
- resetUsername: string;
93
- };
94
- }
95
82
  export declare class TrustedPartyDetails {
96
83
  name: ContactCardName;
97
84
  email?: string;
@@ -1,7 +1,7 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMergedMutation, LrMutation, LrService } from '../api/lr-graphql';
3
3
  import { EncryptionService } from '../encryption/encryption.service';
4
- import { Item2Service } from '../item2/item2.service';
4
+ import { ItemService } from '../item/item.service';
5
5
  import { KeyGraphService } from '../key/key-graph.service';
6
6
  import { ScenarioAssemblyController } from './scenario.controller';
7
7
  import { CreateScenarioOptions, ResetScenarioOptions, UpdateScenarioOptions } from './scenario.types';
@@ -11,10 +11,10 @@ export declare class ScenarioService extends LrService {
11
11
  private ngZone;
12
12
  private injector;
13
13
  private keyGraph;
14
- private item2Service;
14
+ private itemService;
15
15
  private assemblyController;
16
16
  private encryptionService;
17
- constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, item2Service: Item2Service, assemblyController: ScenarioAssemblyController, encryptionService: EncryptionService);
17
+ constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, itemService: ItemService, assemblyController: ScenarioAssemblyController, encryptionService: EncryptionService);
18
18
  static SLIP39_PASSPHRASE: string;
19
19
  private prepareAddReceiverDirectory;
20
20
  private prepareUpdateReceiverDirectory;
@@ -2,7 +2,7 @@ import { NgZone } from '@angular/core';
2
2
  import { LrGraphQLService, LrMutation } from '../api/lr-graphql';
3
3
  import { LrRelayIdInput } from '../api/types';
4
4
  import { EncryptionService } from '../encryption/encryption.service';
5
- import { ContactCardReceiverCipherData, SendContactCardInput } from '../key-exchange/key-exchange2.service';
5
+ import { ContactCardReceiverCipherData, SendContactCardInput } from '../key-exchange/key-exchange.service';
6
6
  import { KeyGraphService } from '../key/key-graph.service';
7
7
  import { KeyService } from '../key/key.service';
8
8
  import { UpdateOwnedContactCardMutation, UpdateReceivedContactCardMutation } from './shared-contact-card2.gql';
@@ -2,21 +2,21 @@ import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMutation, LrService } from '../api/lr-graphql';
3
3
  import { LrRelayIdInput } from '../api/types';
4
4
  import { EncryptionService } from '../encryption/encryption.service';
5
- import { Item2Service } from '../item2/item2.service';
5
+ import { ItemService } from '../item/item.service';
6
6
  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
- import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation, ShareDirectoryMutation, UnshareDirectoryMutation } from './trusted-party2.gql';
10
- import { ShareItemOptions, UnshareItemOptions } from './trusted-party2.types';
11
- export declare class TrustedParty2Service extends LrService {
9
+ import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation, ShareDirectoryMutation, UnshareDirectoryMutation } from './trusted-party.gql';
10
+ import { ShareItemOptions, UnshareItemOptions } from './trusted-party.types';
11
+ export declare class TrustedPartyService extends LrService {
12
12
  private ngZone;
13
13
  private injector;
14
14
  private keyGraph;
15
- private item2Service;
15
+ private itemService;
16
16
  private keyService;
17
17
  private keyFactory;
18
18
  private encryptionService;
19
- constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, item2Service: Item2Service, keyService: KeyService, keyFactory: KeyFactoryService, encryptionService: EncryptionService);
19
+ constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, itemService: ItemService, keyService: KeyService, keyFactory: KeyFactoryService, encryptionService: EncryptionService);
20
20
  deleteTp(tpId: LrRelayIdInput): Promise<DeleteTpMutation>;
21
21
  deleteTpMutation(tpId: LrRelayIdInput): LrMutation<DeleteTpMutation, {
22
22
  input: {