@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.
- package/bundles/lifeready-core.umd.js +303 -295
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/auth/auth.config.js +57 -0
- package/esm2015/lib/auth/auth.gql.private.js +85 -0
- package/esm2015/lib/auth/auth.service.js +602 -0
- package/esm2015/lib/auth/auth.types.js +21 -0
- package/esm2015/lib/idle/idle.service.js +3 -3
- package/esm2015/lib/item/item.gql.js +164 -0
- package/esm2015/lib/item/item.gql.private.js +23 -0
- package/esm2015/lib/item/item.service.js +592 -0
- package/esm2015/lib/item/item.types.js +2 -0
- package/esm2015/lib/key-exchange/key-exchange.gql.js +174 -0
- package/esm2015/lib/key-exchange/key-exchange.service.js +480 -0
- package/esm2015/lib/lbop/lbop.service.js +7 -15
- package/esm2015/lib/life-ready.module.js +2 -2
- package/esm2015/lib/password/password.service.js +1 -1
- package/esm2015/lib/plan/plan.gql.js +91 -0
- package/esm2015/lib/plan/plan.service.js +191 -0
- package/esm2015/lib/plan/plan.types.js +2 -0
- package/esm2015/lib/profile/profile.gql.js +2 -2
- package/esm2015/lib/profile/profile.service.js +1 -8
- package/esm2015/lib/profile/profile.types.js +1 -8
- package/esm2015/lib/scenario/scenario.service.js +8 -8
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party.gql.js +64 -0
- package/esm2015/lib/trusted-party/trusted-party.gql.private.js +25 -0
- package/esm2015/lib/trusted-party/trusted-party.service.js +240 -0
- package/esm2015/lib/trusted-party/trusted-party.types.js +2 -0
- package/esm2015/public-api.js +17 -12
- package/fesm2015/lifeready-core.js +191 -213
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/{auth2/auth2.service.d.ts → auth/auth.service.d.ts} +2 -2
- package/lib/idle/idle.service.d.ts +9 -2
- package/lib/{item2/item2.service.d.ts → item/item.service.d.ts} +39 -39
- package/lib/key-exchange/{key-exchange2.service.d.ts → key-exchange.service.d.ts} +2 -2
- package/lib/lbop/lbop.service.d.ts +1 -5
- package/lib/password/password.service.d.ts +1 -1
- package/lib/{plan2/plan2.service.d.ts → plan/plan.service.d.ts} +20 -20
- package/lib/profile/profile.service.d.ts +1 -2
- package/lib/profile/profile.types.d.ts +2 -15
- package/lib/scenario/scenario.service.d.ts +3 -3
- package/lib/shared-contact-card/shared-contact-card2.service.d.ts +1 -1
- package/lib/trusted-party/{trusted-party2.service.d.ts → trusted-party.service.d.ts} +6 -6
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +16 -11
- package/esm2015/lib/auth2/auth.config.js +0 -57
- package/esm2015/lib/auth2/auth2.gql.private.js +0 -85
- package/esm2015/lib/auth2/auth2.service.js +0 -602
- package/esm2015/lib/auth2/auth2.types.js +0 -21
- package/esm2015/lib/item2/item2.gql.js +0 -164
- package/esm2015/lib/item2/item2.gql.private.js +0 -23
- package/esm2015/lib/item2/item2.service.js +0 -592
- package/esm2015/lib/item2/item2.types.js +0 -2
- package/esm2015/lib/key-exchange/key-exchange2.gql.js +0 -174
- package/esm2015/lib/key-exchange/key-exchange2.service.js +0 -480
- package/esm2015/lib/plan2/plan2.gql.js +0 -91
- package/esm2015/lib/plan2/plan2.service.js +0 -191
- package/esm2015/lib/plan2/plan2.types.js +0 -2
- package/esm2015/lib/trusted-party/trusted-party2.gql.js +0 -64
- package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +0 -25
- package/esm2015/lib/trusted-party/trusted-party2.service.js +0 -240
- package/esm2015/lib/trusted-party/trusted-party2.types.js +0 -2
- /package/lib/{auth2 → auth}/auth.config.d.ts +0 -0
- /package/lib/{auth2/auth2.gql.private.d.ts → auth/auth.gql.private.d.ts} +0 -0
- /package/lib/{auth2/auth2.types.d.ts → auth/auth.types.d.ts} +0 -0
- /package/lib/{item2/item2.gql.d.ts → item/item.gql.d.ts} +0 -0
- /package/lib/{item2/item2.gql.private.d.ts → item/item.gql.private.d.ts} +0 -0
- /package/lib/{item2/item2.types.d.ts → item/item.types.d.ts} +0 -0
- /package/lib/key-exchange/{key-exchange2.gql.d.ts → key-exchange.gql.d.ts} +0 -0
- /package/lib/{plan2/plan2.gql.d.ts → plan/plan.gql.d.ts} +0 -0
- /package/lib/{plan2/plan2.types.d.ts → plan/plan.types.d.ts} +0 -0
- /package/lib/trusted-party/{trusted-party2.gql.d.ts → trusted-party.gql.d.ts} +0 -0
- /package/lib/trusted-party/{trusted-party2.gql.private.d.ts → trusted-party.gql.private.d.ts} +0 -0
- /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 './
|
|
15
|
-
export declare class
|
|
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?:
|
|
11
|
-
onKeepalive?:
|
|
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 {
|
|
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 './
|
|
11
|
-
export declare class
|
|
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
|
|
19
|
+
private authService;
|
|
20
20
|
private tempDirectory;
|
|
21
|
-
constructor(ngZone: NgZone, injector: Injector, fileUploadService: FileUploadService, keyService: KeyService, keyFactory: KeyFactoryService, keyGraph: KeyGraphService, lockService: LockService,
|
|
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("./
|
|
32
|
-
createDirectoryMutation(options: CreateDirectoryOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
41
|
-
updateDirectoryMutation(options: UpdateDirectoryOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
49
|
-
deleteDirectoryMutation(id: ID): LrMutation<import("./
|
|
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("./
|
|
55
|
-
createFileMutation(options: CreateFileOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
65
|
-
updateFileMutation(options: UpdateFileOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
75
|
-
revertFileMutation(options: RevertFileOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
79
|
-
deleteFileMutation(id: ID): LrMutation<import("./
|
|
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("./
|
|
85
|
-
archiveDirectoryMutation(directoryId: string, options: ArchiveDirectoryOptions): LrMutation<import("./
|
|
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("./
|
|
92
|
-
archiveFileMutation(fileId: string): LrMutation<import("./
|
|
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("./
|
|
98
|
-
unarchiveDirectoryMutation(directoryId: string, options: UnarchiveDirectoryOptions): LrMutation<import("./
|
|
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("./
|
|
105
|
-
unarchiveFileMutation(fileId: string): LrMutation<import("./
|
|
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("./
|
|
111
|
-
changeDirectoryParentsMutation(options: ChangeDirectoryParentsOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
119
|
-
changeFileParentsMutation(options: ChangeFileParentsOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
166
|
-
setFileConfidentialMutation(options: SetFileConfidentialOptions): Promise<LrMutation<import("./
|
|
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("./
|
|
173
|
-
setDirectoryConfidentialMutation(options: SetDirectoryConfidentialOptions): Promise<LrMutation<import("./
|
|
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-
|
|
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
|
|
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,
|
|
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 '../
|
|
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 './
|
|
5
|
-
export declare class
|
|
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("./
|
|
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("./
|
|
14
|
+
initiateStripePaymentMethodCaptureMutation(): LrMutation<import("./plan.gql").InitiateStripePaymentMethodCaptureMutationResult, {
|
|
15
15
|
input: {};
|
|
16
16
|
}>;
|
|
17
|
-
completeStripePaymentMethodCapture(stripeIntentId: string): Promise<import("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
38
|
+
setDefaultPaymentMethodMutation(paymentMethodId: LrRelayIdInput): LrMutation<import("./plan.gql").SetDefaultPaymentMethodMutationResult, {
|
|
39
39
|
input: {
|
|
40
40
|
paymentMethodId: string;
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
|
-
removeDefaultPaymentMethod(): Promise<import("./
|
|
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("./
|
|
49
|
+
removeDefaultPaymentMethodMutation(): LrMutation<import("./plan.gql").RemoveDefaultPaymentMethodMutationResult, {
|
|
50
50
|
input: {};
|
|
51
51
|
}>;
|
|
52
|
-
issuePlan(options: IssuePlanOptions): Promise<import("./
|
|
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("./
|
|
62
|
+
issuePlanMutation(options: IssuePlanOptions): LrMutation<import("./plan.gql").IssuePlanMutationResult, {
|
|
63
63
|
input: IssuePlanOptions;
|
|
64
64
|
}>;
|
|
65
|
-
removePaymentMethod(paymentMethodId: string): Promise<import("./
|
|
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("./
|
|
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("./
|
|
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("./
|
|
85
|
+
cancelPlanMutation(options: CancelPlanOptions): LrMutation<import("./plan.gql").CancelPlanMutationResult, {
|
|
86
86
|
input: CancelPlanOptions;
|
|
87
87
|
}>;
|
|
88
|
-
changePriceOption(options: ChangePriceOptionOptions): Promise<import("./
|
|
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("./
|
|
96
|
+
changePriceOptionMutation(options: ChangePriceOptionOptions): LrMutation<import("./plan.gql").ChangePriceOptionMutationResult, {
|
|
97
97
|
input: ChangePriceOptionOptions;
|
|
98
98
|
}>;
|
|
99
|
-
reactivatePlan(planId: LrRelayIdInput): Promise<import("./
|
|
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("./
|
|
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
|
|
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 '../
|
|
3
|
-
import {
|
|
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 {
|
|
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
|
|
14
|
+
private itemService;
|
|
15
15
|
private assemblyController;
|
|
16
16
|
private encryptionService;
|
|
17
|
-
constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService,
|
|
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-
|
|
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 {
|
|
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-
|
|
10
|
-
import { ShareItemOptions, UnshareItemOptions } from './trusted-
|
|
11
|
-
export declare class
|
|
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
|
|
15
|
+
private itemService;
|
|
16
16
|
private keyService;
|
|
17
17
|
private keyFactory;
|
|
18
18
|
private encryptionService;
|
|
19
|
-
constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService,
|
|
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: {
|