@lifeready/core 1.0.22 → 1.0.23
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 +241 -201
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -15
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/_common/ast.js +2 -1
- package/esm2015/lib/_common/deferred-promise.js +1 -1
- package/esm2015/lib/_common/exceptions.js +1 -1
- package/esm2015/lib/_common/queries.gql.js +1 -1
- package/esm2015/lib/_common/run-outside-angular.js +2 -1
- package/esm2015/lib/_common/types.js +2 -1
- package/esm2015/lib/_common/utils.js +2 -1
- package/esm2015/lib/api/lr-apollo.service.js +2 -1
- package/esm2015/lib/api/lr-graphql/index.js +1 -1
- package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +7 -6
- package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +5 -6
- package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +1 -1
- package/esm2015/lib/api/lr-graphql/lr-mutation.js +3 -3
- package/esm2015/lib/api/lr-graphql/lr.service.js +1 -1
- package/esm2015/lib/api/query-processor/common-processors.service.js +2 -1
- package/esm2015/lib/api/query-processor/index.js +1 -1
- package/esm2015/lib/api/query-processor/query-processor.service.js +2 -1
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +3 -3
- package/esm2015/lib/api/types/graphql.types.js +2 -1
- package/esm2015/lib/api/types/index.js +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
- package/esm2015/lib/auth/auth.config.js +1 -1
- package/esm2015/lib/auth/auth.gql.js +1 -1
- package/esm2015/lib/auth/auth.types.js +1 -1
- package/esm2015/lib/auth/life-ready-auth.service.js +5 -2
- package/esm2015/lib/category/category-meta.service.js +1 -1
- package/esm2015/lib/category/category.gql.js +3 -2
- package/esm2015/lib/category/category.service.js +5 -4
- package/esm2015/lib/category/category.types.js +1 -1
- package/esm2015/lib/contact-card/contact-card.gql.js +1 -1
- package/esm2015/lib/contact-card/contact-card.service.js +3 -1
- package/esm2015/lib/contact-card/contact-card2.gql.js +1 -1
- package/esm2015/lib/contact-card/contact-card2.service.js +1 -1
- package/esm2015/lib/encryption/encryption.service.js +2 -1
- package/esm2015/lib/file-upload/file-upload.service.js +2 -2
- package/esm2015/lib/file-upload/file-upload.types.js +2 -1
- package/esm2015/lib/idle/idle.service.js +1 -1
- package/esm2015/lib/idle/idle.types.js +1 -1
- package/esm2015/lib/item2/item2.gql.js +127 -0
- package/esm2015/lib/item2/item2.gql.private.js +23 -0
- package/esm2015/lib/item2/item2.service.js +519 -0
- package/esm2015/lib/item2/item2.types.js +2 -0
- package/esm2015/lib/key/key-factory.service.js +1 -1
- package/esm2015/lib/key/key-graph.service.js +2 -1
- package/esm2015/lib/key/key-meta.service.js +2 -1
- package/esm2015/lib/key/key.service.js +1 -1
- package/esm2015/lib/key/key.types.js +1 -1
- package/esm2015/lib/key-exchange/key-exchange.gql.js +1 -1
- package/esm2015/lib/key-exchange/key-exchange.service.js +2 -4
- package/esm2015/lib/key-exchange/key-exchange.types.js +1 -1
- package/esm2015/lib/key-exchange/key-exchange2.gql.js +1 -1
- package/esm2015/lib/key-exchange/key-exchange2.service.js +1 -1
- package/esm2015/lib/lbop/lbop.service.js +3 -1
- package/esm2015/lib/life-ready.config.js +2 -1
- package/esm2015/lib/life-ready.module.js +1 -1
- package/esm2015/lib/lock/lock.gql.js +1 -1
- package/esm2015/lib/lock/lock.service.js +1 -1
- package/esm2015/lib/message/message.gql.js +1 -1
- package/esm2015/lib/message/message.service.js +13 -11
- package/esm2015/lib/message/message.types.js +2 -1
- package/esm2015/lib/notification/notification.gql.js +1 -1
- package/esm2015/lib/notification/notification.service.js +2 -2
- package/esm2015/lib/password/password.gql.js +1 -1
- package/esm2015/lib/password/password.service.js +3 -2
- package/esm2015/lib/persist/persist.service.js +2 -1
- package/esm2015/lib/plan/plan.gql.js +1 -1
- package/esm2015/lib/plan/plan.service.js +3 -2
- package/esm2015/lib/plan/plan.types.js +1 -1
- package/esm2015/lib/profile/profile-details.service.js +3 -2
- package/esm2015/lib/profile/profile.gql.js +2 -1
- package/esm2015/lib/profile/profile.service.js +2 -1
- package/esm2015/lib/profile/profile.types.js +1 -1
- package/esm2015/lib/record/record-attachment.service.js +2 -1
- package/esm2015/lib/record/record.gql.js +1 -1
- package/esm2015/lib/record/record.service.js +6 -6
- package/esm2015/lib/record/record.types.js +1 -1
- package/esm2015/lib/record-type/record-type.service.js +1 -1
- package/esm2015/lib/record-type/record-type.types.js +1 -1
- package/esm2015/lib/register/register.service.js +2 -1
- package/esm2015/lib/scenario/scenario.constants.js +1 -1
- package/esm2015/lib/scenario/scenario.controller.js +1 -1
- package/esm2015/lib/scenario/scenario.gql.js +1 -1
- package/esm2015/lib/scenario/scenario.private.gql.js +1 -1
- package/esm2015/lib/scenario/scenario.service.js +12 -10
- package/esm2015/lib/scenario/scenario.types.js +2 -1
- package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +1 -1
- package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +1 -1
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +1 -1
- package/esm2015/lib/slip39/slip39.service.js +5 -7
- package/esm2015/lib/time/time.service.js +1 -1
- package/esm2015/lib/tp-assembly/tp-assembly.js +1 -1
- package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +1 -1
- package/esm2015/lib/tp-assembly/tp-assembly.types.js +2 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +2 -2
- package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +4 -3
- package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +1 -1
- package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +2 -1
- package/esm2015/lib/trusted-party/trusted-party.gql.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party.service.js +3 -2
- package/esm2015/lib/trusted-party/trusted-party.types.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party2.gql.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +1 -1
- package/esm2015/lib/trusted-party/trusted-party2.service.js +3 -3
- package/esm2015/lib/trusted-party/trusted-party2.types.js +2 -1
- package/esm2015/lib/two-factor/two-factor.service.js +1 -1
- package/esm2015/lib/user/user.gql.js +1 -1
- package/esm2015/lib/user/user.service.js +3 -2
- package/esm2015/lib/user/user.types.js +2 -1
- package/esm2015/lib/web-crypto/web-crypto.service.js +1 -1
- package/esm2015/lifeready-core.js +1 -1
- package/esm2015/public-api.js +3 -3
- package/fesm2015/lifeready-core.js +93 -84
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/utils.d.ts +2 -2
- package/lib/api/lr-apollo.service.d.ts +1 -1
- package/lib/api/lr-graphql/lr-graphql.service.d.ts +25 -7
- package/lib/api/lr-graphql/lr-merged-mutation.d.ts +22 -4
- package/lib/api/lr-graphql/lr-mutation.d.ts +1 -2
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +3 -3
- package/lib/auth/auth.types.d.ts +3 -3
- package/lib/auth/life-ready-auth.service.d.ts +2 -2
- package/lib/category/category.service.d.ts +2 -2
- package/lib/contact-card/contact-card2.service.d.ts +17 -2
- package/lib/encryption/encryption.service.d.ts +8 -7
- package/lib/file-upload/file-upload.service.d.ts +2 -1
- package/lib/idle/idle.service.d.ts +2 -2
- package/lib/{items2 → item2}/item2.gql.d.ts +16 -16
- package/lib/{items2 → item2}/item2.service.d.ts +24 -25
- package/lib/key/key-factory.service.d.ts +2 -1
- package/lib/key/key-graph.service.d.ts +1 -1
- package/lib/key/key.types.d.ts +5 -5
- package/lib/key-exchange/key-exchange2.service.d.ts +11 -11
- package/lib/life-ready.config.d.ts +1 -1
- package/lib/message/message.service.d.ts +8 -1
- package/lib/notification/notification.service.d.ts +3 -2
- package/lib/password/password.service.d.ts +1 -1
- package/lib/plan/plan.service.d.ts +3 -2
- package/lib/plan/plan.types.d.ts +2 -1
- package/lib/profile/profile-details.service.d.ts +1 -1
- package/lib/profile/profile.types.d.ts +2 -1
- package/lib/record/record.service.d.ts +2 -2
- package/lib/scenario/scenario.service.d.ts +103 -3
- package/lib/slip39/slip39.service.d.ts +0 -1
- package/lib/tp-assembly/tp-assembly.types.d.ts +2 -2
- package/lib/tp-password-reset/tp-password-reset-request.service.d.ts +1 -1
- package/lib/tp-password-reset/tp-password-reset.gql.d.ts +2 -2
- package/lib/tp-password-reset/tp-password-reset.types.d.ts +2 -2
- package/lib/trusted-party/trusted-party.service.d.ts +1 -1
- package/lib/trusted-party/trusted-party2.service.d.ts +1 -1
- package/lib/user/user.service.d.ts +1 -1
- package/lifeready-core.metadata.json +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +2 -2
- package/esm2015/lib/items2/item2.gql.js +0 -127
- package/esm2015/lib/items2/item2.gql.private.js +0 -23
- package/esm2015/lib/items2/item2.service.js +0 -516
- package/esm2015/lib/items2/item2.types.js +0 -1
- /package/lib/{items2 → item2}/item2.gql.private.d.ts +0 -0
- /package/lib/{items2 → item2}/item2.types.d.ts +0 -0
|
@@ -19,7 +19,14 @@ export declare class MessageService extends LrService {
|
|
|
19
19
|
constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, encryptionService: EncryptionService, keyExchangeService: KeyExchangeService);
|
|
20
20
|
sendMessage(input: SendMessageInput): Promise<import("./message.gql").SendMessageMutationResult>;
|
|
21
21
|
sendMessageMutation({ username, userId, plainMessageJson, plainCipherMessageJson, }: SendMessageInput): Promise<LrMutation<import("./message.gql").SendMessageMutationResult, {
|
|
22
|
-
input:
|
|
22
|
+
input: {
|
|
23
|
+
receiverUsername: string;
|
|
24
|
+
receiverId: string;
|
|
25
|
+
sharedKeyId: string;
|
|
26
|
+
senderSigPbkId: string;
|
|
27
|
+
signedCipherMessage: string;
|
|
28
|
+
plainMessage: string;
|
|
29
|
+
};
|
|
23
30
|
}>>;
|
|
24
31
|
decryptMessage(message: MessageNode, options: {
|
|
25
32
|
sharedKey: JWK.Key;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
+
import { JSONObject } from '../api/types';
|
|
3
4
|
export interface UpdateNotificationOptions {
|
|
4
5
|
notificationId: string;
|
|
5
6
|
hasBeenRead: boolean;
|
|
@@ -9,8 +10,8 @@ export interface UpdateAllNotificationsReadStateOptions {
|
|
|
9
10
|
}
|
|
10
11
|
export interface DebugCreateNotificationOptions {
|
|
11
12
|
receiverId: string;
|
|
12
|
-
plainData?:
|
|
13
|
-
plainMeta?:
|
|
13
|
+
plainData?: Record<string, JSONObject>;
|
|
14
|
+
plainMeta?: Record<string, JSONObject>;
|
|
14
15
|
hasBeenRead?: boolean;
|
|
15
16
|
timeRead?: Date;
|
|
16
17
|
}
|
|
@@ -66,7 +66,7 @@ export declare class PasswordService {
|
|
|
66
66
|
*/
|
|
67
67
|
isLoginRequired(): Promise<boolean>;
|
|
68
68
|
changePassword(password: string, newPassword: string): Promise<void>;
|
|
69
|
-
changePasswordComplete(accessToken: string, useNewPassword: boolean, token?: string): Promise<
|
|
69
|
+
changePasswordComplete(accessToken: string, useNewPassword: boolean, token?: string): Promise<Object>;
|
|
70
70
|
private getVerifierPrK;
|
|
71
71
|
private verifyPassword;
|
|
72
72
|
private changePasswordMutation;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
-
import {
|
|
2
|
+
import { JSONObject } from '../api/types';
|
|
3
|
+
import { StripeBillingPortalSession, StripeCheckoutSession, UserIssuablePlan, UserIssuedPlan, UserPlan } from './plan.types';
|
|
3
4
|
export declare function mapUserPlans(userPlans: any[]): UserPlan[];
|
|
4
5
|
export declare class PlanService {
|
|
5
6
|
private lrApollo;
|
|
@@ -28,6 +29,6 @@ export declare class PlanService {
|
|
|
28
29
|
getPlanType(subscriptionId: string): Promise<string>;
|
|
29
30
|
getStripe(): Promise<{
|
|
30
31
|
id: string;
|
|
31
|
-
customer:
|
|
32
|
+
customer: Record<string, JSONObject>;
|
|
32
33
|
}>;
|
|
33
34
|
}
|
package/lib/plan/plan.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
|
|
2
1
|
import { CurrentUser } from '../auth/auth.types';
|
|
3
2
|
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
3
|
+
import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
|
|
4
4
|
import { TrustedPartyService } from '../trusted-party/trusted-party.service';
|
|
5
5
|
import { SharedTrustedPartyDetails } from '../trusted-party/trusted-party.types';
|
|
6
6
|
import { ProfileService } from './profile.service';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UserDeleteNode } from '../api/types';
|
|
2
|
+
import { Features } from '../auth/auth.types';
|
|
2
3
|
import { PassIdpParams, PassKey } from '../key/key.types';
|
|
3
4
|
export declare class CurrentUserKey {
|
|
4
5
|
passKey?: PassKey;
|
|
@@ -20,7 +21,7 @@ export declare class ApiCurrentUser {
|
|
|
20
21
|
username: string;
|
|
21
22
|
currentUserKey: CurrentUserKey;
|
|
22
23
|
userDelete: UserDeleteNode;
|
|
23
|
-
features:
|
|
24
|
+
features: Features;
|
|
24
25
|
sessionEncryptionKey: string;
|
|
25
26
|
}
|
|
26
27
|
export declare class ApiContactCard {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RecordAttachmentService } from './record-attachment.service';
|
|
2
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
+
import { CategoryService } from '../category/category.service';
|
|
3
3
|
import { KeyMetaService } from '../key/key-meta.service';
|
|
4
|
+
import { RecordAttachmentService } from './record-attachment.service';
|
|
4
5
|
import { LrRecord, NewRecord, UpdatedRecord } from './record.types';
|
|
5
|
-
import { CategoryService } from '../category/category.service';
|
|
6
6
|
export declare class RecordService {
|
|
7
7
|
private lrApollo;
|
|
8
8
|
private keyMetaService;
|
|
@@ -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 '../
|
|
4
|
+
import { Item2Service } from '../item2/item2.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';
|
|
@@ -73,7 +73,57 @@ export declare class ScenarioService extends LrService {
|
|
|
73
73
|
input: {
|
|
74
74
|
scenarioId: string;
|
|
75
75
|
enabled: boolean;
|
|
76
|
-
updateAssembly:
|
|
76
|
+
updateAssembly: {
|
|
77
|
+
singleReject: boolean;
|
|
78
|
+
quorum: number;
|
|
79
|
+
subjectCipherData: string;
|
|
80
|
+
subjectKeyId: string;
|
|
81
|
+
createSubAssemblies: {
|
|
82
|
+
singleReject: boolean;
|
|
83
|
+
quorum: number;
|
|
84
|
+
subjectCipherData: string;
|
|
85
|
+
createApprovers: {
|
|
86
|
+
tpWrappingKeyId: string;
|
|
87
|
+
tpWrappedSharedKey: string;
|
|
88
|
+
subjectKeyWrappedSharedKey: string;
|
|
89
|
+
sharedCipherData: string;
|
|
90
|
+
sharedCipherApprovalData: string;
|
|
91
|
+
sharedCipherPartialAssemblyKey: string;
|
|
92
|
+
approverId: string;
|
|
93
|
+
tpId: string;
|
|
94
|
+
}[];
|
|
95
|
+
}[];
|
|
96
|
+
updateSubAssemblies: {
|
|
97
|
+
subAssemblyId: string;
|
|
98
|
+
singleReject: boolean;
|
|
99
|
+
quorum: number;
|
|
100
|
+
subjectCipherData: string;
|
|
101
|
+
createApprovers: {
|
|
102
|
+
tpWrappingKeyId: string;
|
|
103
|
+
tpWrappedSharedKey: string;
|
|
104
|
+
subjectKeyWrappedSharedKey: string;
|
|
105
|
+
sharedCipherData: string;
|
|
106
|
+
sharedCipherApprovalData: string;
|
|
107
|
+
sharedCipherPartialAssemblyKey: string;
|
|
108
|
+
approverId: string;
|
|
109
|
+
tpId: string;
|
|
110
|
+
}[];
|
|
111
|
+
updateApprovers: {
|
|
112
|
+
tpWrappingKeyId: string;
|
|
113
|
+
tpWrappedSharedKey: string;
|
|
114
|
+
subjectKeyWrappedSharedKey: string;
|
|
115
|
+
sharedCipherData: string;
|
|
116
|
+
sharedCipherApprovalData: string;
|
|
117
|
+
sharedCipherPartialAssemblyKey: string;
|
|
118
|
+
approverId: string;
|
|
119
|
+
tpId: string;
|
|
120
|
+
}[];
|
|
121
|
+
}[];
|
|
122
|
+
subjectKeyWrappedAssemblyKey: string;
|
|
123
|
+
assemblyCipherData: string;
|
|
124
|
+
assemblyKeyVerifierPbk: string;
|
|
125
|
+
wrappedAssemblyKeyVerifierPrk: string;
|
|
126
|
+
};
|
|
77
127
|
createReceivers: {
|
|
78
128
|
addDirectories: {
|
|
79
129
|
directoryId: string;
|
|
@@ -124,7 +174,57 @@ export declare class ScenarioService extends LrService {
|
|
|
124
174
|
input: {
|
|
125
175
|
scenarioId: string;
|
|
126
176
|
enabled: boolean;
|
|
127
|
-
updateAssembly:
|
|
177
|
+
updateAssembly: {
|
|
178
|
+
singleReject: boolean;
|
|
179
|
+
quorum: number;
|
|
180
|
+
subjectCipherData: string;
|
|
181
|
+
subjectKeyId: string;
|
|
182
|
+
createSubAssemblies: {
|
|
183
|
+
singleReject: boolean;
|
|
184
|
+
quorum: number;
|
|
185
|
+
subjectCipherData: string;
|
|
186
|
+
createApprovers: {
|
|
187
|
+
tpWrappingKeyId: string;
|
|
188
|
+
tpWrappedSharedKey: string;
|
|
189
|
+
subjectKeyWrappedSharedKey: string;
|
|
190
|
+
sharedCipherData: string;
|
|
191
|
+
sharedCipherApprovalData: string;
|
|
192
|
+
sharedCipherPartialAssemblyKey: string;
|
|
193
|
+
approverId: string;
|
|
194
|
+
tpId: string;
|
|
195
|
+
}[];
|
|
196
|
+
}[];
|
|
197
|
+
updateSubAssemblies: {
|
|
198
|
+
subAssemblyId: string;
|
|
199
|
+
singleReject: boolean;
|
|
200
|
+
quorum: number;
|
|
201
|
+
subjectCipherData: string;
|
|
202
|
+
createApprovers: {
|
|
203
|
+
tpWrappingKeyId: string;
|
|
204
|
+
tpWrappedSharedKey: string;
|
|
205
|
+
subjectKeyWrappedSharedKey: string;
|
|
206
|
+
sharedCipherData: string;
|
|
207
|
+
sharedCipherApprovalData: string;
|
|
208
|
+
sharedCipherPartialAssemblyKey: string;
|
|
209
|
+
approverId: string;
|
|
210
|
+
tpId: string;
|
|
211
|
+
}[];
|
|
212
|
+
updateApprovers: {
|
|
213
|
+
tpWrappingKeyId: string;
|
|
214
|
+
tpWrappedSharedKey: string;
|
|
215
|
+
subjectKeyWrappedSharedKey: string;
|
|
216
|
+
sharedCipherData: string;
|
|
217
|
+
sharedCipherApprovalData: string;
|
|
218
|
+
sharedCipherPartialAssemblyKey: string;
|
|
219
|
+
approverId: string;
|
|
220
|
+
tpId: string;
|
|
221
|
+
}[];
|
|
222
|
+
}[];
|
|
223
|
+
subjectKeyWrappedAssemblyKey: string;
|
|
224
|
+
assemblyCipherData: string;
|
|
225
|
+
assemblyKeyVerifierPbk: string;
|
|
226
|
+
wrappedAssemblyKeyVerifierPrk: string;
|
|
227
|
+
};
|
|
128
228
|
createReceivers: {
|
|
129
229
|
addDirectories: {
|
|
130
230
|
directoryId: string;
|
|
@@ -36,7 +36,6 @@ export declare class Quorum {
|
|
|
36
36
|
serialiseShares(): any[];
|
|
37
37
|
}
|
|
38
38
|
export declare class Slip39Service {
|
|
39
|
-
constructor();
|
|
40
39
|
generateShares(secret: any, passphrase: string, assembly: Assembly): Promise<void>;
|
|
41
40
|
private minimalSet;
|
|
42
41
|
recoverSecret(shares: string[], passphrase: string): Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONObject } from '../api/types';
|
|
1
|
+
import { JSONObject, JSONString } from '../api/types';
|
|
2
2
|
import * as slip from '../slip39/slip39.service';
|
|
3
3
|
export interface PartialAssemblyKey {
|
|
4
4
|
slip39: {
|
|
@@ -8,7 +8,7 @@ export interface PartialAssemblyKey {
|
|
|
8
8
|
size: number;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
assemblyKeyParams:
|
|
11
|
+
assemblyKeyParams: Record<string, JSONString>;
|
|
12
12
|
}
|
|
13
13
|
export interface CreateTpSubAssemblyInput {
|
|
14
14
|
quorum: number;
|
|
@@ -12,5 +12,5 @@ export declare class TpPasswordResetRequestService extends LrService {
|
|
|
12
12
|
rejectRequest(sharedResetId: string): Promise<any>;
|
|
13
13
|
rejectRequestMutation(sharedResetId: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").RejectTpPasswordResetRequestMutationResult[]>>;
|
|
14
14
|
approveRequest(sharedResetId: string, pbkFingerPrint?: string): Promise<import("./tp-password-reset.gql").ApproveTpPasswordResetRequestMutationResult[]>;
|
|
15
|
-
approveRequestMutation(sharedResetId: string,
|
|
15
|
+
approveRequestMutation(sharedResetId: string, _pbkFingerPrint?: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").ApproveTpPasswordResetRequestMutationResult[]>>;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ID } from '../api/types';
|
|
1
|
+
import { ID, JSONObject } from '../api/types';
|
|
2
2
|
export interface CancelTpPasswordResetRequestMutationResult {
|
|
3
3
|
cancelTpPasswordResetRequest: {
|
|
4
4
|
id: ID;
|
|
@@ -7,7 +7,7 @@ export interface CancelTpPasswordResetRequestMutationResult {
|
|
|
7
7
|
export declare const CancelTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CancelTpPasswordResetRequestMutationResult>;
|
|
8
8
|
export interface CreateTpAssemblyKeyChallengeMutationResult {
|
|
9
9
|
createTpAssemblyKeyChallenge: {
|
|
10
|
-
challenge:
|
|
10
|
+
challenge: JSONObject;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export declare const CreateTpAssemblyKeyChallengeMutation: import("../_common/ast").TypedDocumentNode<CreateTpAssemblyKeyChallengeMutationResult>;
|
|
@@ -16,7 +16,7 @@ export interface TpSubAssembly {
|
|
|
16
16
|
singleReject: boolean;
|
|
17
17
|
quorum: number;
|
|
18
18
|
subjectCipherData: string;
|
|
19
|
-
plainSubjectCipherData:
|
|
19
|
+
plainSubjectCipherData: JSONObject;
|
|
20
20
|
approvers: TpAssemblyApprovers[];
|
|
21
21
|
}
|
|
22
22
|
export interface TpAssembly {
|
|
@@ -25,7 +25,7 @@ export interface TpAssembly {
|
|
|
25
25
|
subjectKey: Key;
|
|
26
26
|
assemblyKey: Key;
|
|
27
27
|
assemblyCipherData: string;
|
|
28
|
-
plainAssemblyCipherData:
|
|
28
|
+
plainAssemblyCipherData: JSONObject;
|
|
29
29
|
subAssemblies: TpSubAssembly[];
|
|
30
30
|
}
|
|
31
31
|
export interface TpPasswordReset {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
|
-
import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
|
|
4
3
|
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
5
4
|
import { AccessLevel } from '../category/category.types';
|
|
6
5
|
import { EncryptionService } from '../encryption/encryption.service';
|
|
@@ -8,6 +7,7 @@ import { KeyExchangeService } from '../key-exchange/key-exchange.service';
|
|
|
8
7
|
import { KeyFactoryService } from '../key/key-factory.service';
|
|
9
8
|
import { KeyGraphService } from '../key/key-graph.service';
|
|
10
9
|
import { KeyService } from '../key/key.service';
|
|
10
|
+
import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
|
|
11
11
|
import { UserService } from '../user/user.service';
|
|
12
12
|
import { AcceptTrustedPartyInvite, ConfirmTrustedPartyInvite, FoundTrustedParty, InviteTrustedParty, TrustedParties, TrustedParty, TrustedPartyInvite, TrustedPartyRole, TrustedPartyRoleType } from './trusted-party.types';
|
|
13
13
|
export declare class TrustedPartyService {
|
|
@@ -2,7 +2,7 @@ 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 '../
|
|
5
|
+
import { Item2Service } from '../item2/item2.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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { User, GetUserInput } from './user.types';
|
|
2
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
2
|
import { UserDeleteNode } from '../api/types';
|
|
3
|
+
import { GetUserInput, User } from './user.types';
|
|
4
4
|
export declare class UserService {
|
|
5
5
|
private lrApollo;
|
|
6
6
|
constructor(lrApollo: LrApolloService);
|