@lifeready/core 1.0.21 → 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 +10612 -10527
- 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 +3 -2
- package/esm2015/lib/_common/types.js +2 -1
- package/esm2015/lib/_common/utils.js +2 -1
- package/esm2015/lib/api/lr-apollo.service.js +4 -3
- package/esm2015/lib/api/lr-graphql/index.js +1 -1
- package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +9 -8
- 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 +4 -3
- package/esm2015/lib/api/query-processor/index.js +1 -1
- package/esm2015/lib/api/query-processor/query-processor.service.js +5 -4
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +8 -7
- 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 -28
- package/esm2015/lib/auth/auth.types.js +1 -1
- package/esm2015/lib/auth/life-ready-auth.service.js +36 -32
- 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 +9 -8
- package/esm2015/lib/category/category.types.js +1 -1
- package/esm2015/lib/contact-card/contact-card.gql.js +79 -0
- package/esm2015/lib/contact-card/contact-card.service.js +156 -0
- package/esm2015/lib/contact-card/contact-card2.gql.js +29 -0
- package/esm2015/lib/contact-card/contact-card2.service.js +103 -0
- package/esm2015/lib/encryption/encryption.service.js +190 -0
- package/esm2015/lib/file-upload/file-upload.service.js +74 -0
- package/esm2015/lib/file-upload/file-upload.types.js +2 -0
- package/esm2015/lib/idle/idle.service.js +168 -0
- package/esm2015/lib/idle/idle.types.js +7 -0
- 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 +237 -0
- package/esm2015/lib/key/key-graph.service.js +300 -0
- package/esm2015/lib/key/key-meta.service.js +201 -0
- package/esm2015/lib/{cryptography → key}/key.service.js +4 -4
- package/esm2015/lib/key/key.types.js +11 -0
- package/esm2015/lib/key-exchange/key-exchange.gql.js +188 -0
- package/esm2015/lib/key-exchange/key-exchange.service.js +441 -0
- package/esm2015/lib/key-exchange/key-exchange.types.js +7 -0
- package/esm2015/lib/key-exchange/key-exchange2.gql.js +171 -0
- package/esm2015/lib/key-exchange/key-exchange2.service.js +500 -0
- package/esm2015/lib/lbop/lbop.service.js +357 -0
- package/esm2015/lib/life-ready.config.js +2 -1
- package/esm2015/lib/life-ready.module.js +2 -27
- package/esm2015/lib/lock/lock.gql.js +40 -0
- package/esm2015/lib/lock/lock.service.js +64 -0
- package/esm2015/lib/message/message.gql.js +32 -0
- package/esm2015/lib/message/message.service.js +118 -0
- package/esm2015/lib/message/message.types.js +2 -0
- 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 +28 -0
- package/esm2015/lib/password/password.service.js +316 -0
- package/esm2015/lib/persist/persist.service.js +181 -0
- 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 +215 -0
- package/esm2015/lib/profile/profile.gql.js +98 -0
- package/esm2015/lib/profile/profile.service.js +170 -0
- package/esm2015/lib/profile/profile.types.js +34 -0
- package/esm2015/lib/record/record-attachment.service.js +16 -15
- package/esm2015/lib/record/record.gql.js +1 -1
- package/esm2015/lib/record/record.service.js +8 -8
- 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 +173 -0
- package/esm2015/lib/scenario/scenario.constants.js +1 -1
- package/esm2015/lib/scenario/scenario.controller.js +2 -2
- package/esm2015/lib/scenario/scenario.gql.js +1 -1
- package/esm2015/lib/scenario/scenario.private.gql.js +198 -0
- package/esm2015/lib/scenario/scenario.service.js +19 -17
- package/esm2015/lib/scenario/scenario.types.js +2 -1
- package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +119 -0
- package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +41 -0
- package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +117 -0
- package/esm2015/lib/slip39/slip39.service.js +167 -0
- package/esm2015/lib/time/time.service.js +146 -0
- package/esm2015/lib/tp-assembly/tp-assembly.js +365 -0
- package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +22 -0
- package/esm2015/lib/tp-assembly/tp-assembly.types.js +2 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +100 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +118 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +4 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +34 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +74 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +165 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +54 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +92 -0
- package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +2 -0
- package/esm2015/lib/trusted-party/trusted-party.gql.js +148 -0
- package/esm2015/lib/trusted-party/trusted-party.service.js +327 -0
- package/esm2015/lib/trusted-party/trusted-party.types.js +41 -0
- package/esm2015/lib/trusted-party/trusted-party2.gql.js +64 -0
- package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +25 -0
- package/esm2015/lib/trusted-party/trusted-party2.service.js +224 -0
- package/esm2015/lib/trusted-party/trusted-party2.types.js +2 -0
- package/esm2015/lib/two-factor/two-factor.service.js +74 -0
- package/esm2015/lib/user/user.gql.js +60 -0
- package/esm2015/lib/user/user.service.js +80 -0
- package/esm2015/lib/user/user.types.js +2 -0
- package/esm2015/lib/web-crypto/web-crypto.service.js +29 -0
- package/esm2015/lifeready-core.js +15 -13
- package/esm2015/public-api.js +49 -51
- package/fesm2015/lifeready-core.js +8764 -8737
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/types.d.ts +3 -1
- package/lib/_common/utils.d.ts +2 -2
- package/lib/api/lr-apollo.service.d.ts +2 -2
- package/lib/api/lr-graphql/lr-graphql.service.d.ts +26 -8
- 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/common-processors.service.d.ts +1 -1
- package/lib/api/query-processor/query-processor.service.d.ts +1 -1
- package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +2 -2
- package/lib/api/types/lr-graphql.types.d.ts +14 -3
- package/lib/auth/auth.gql.d.ts +0 -3
- package/lib/auth/auth.types.d.ts +5 -5
- package/lib/auth/life-ready-auth.service.d.ts +13 -13
- package/lib/category/category.gql.d.ts +1 -1
- package/lib/category/category.service.d.ts +3 -3
- package/lib/{api → contact-card}/contact-card.service.d.ts +9 -9
- package/lib/contact-card/contact-card2.gql.d.ts +25 -0
- package/lib/contact-card/contact-card2.service.d.ts +64 -0
- package/lib/{cryptography → encryption}/encryption.service.d.ts +10 -9
- package/lib/{api/file.service.d.ts → file-upload/file-upload.service.d.ts} +5 -8
- package/lib/file-upload/file-upload.types.d.ts +5 -0
- package/lib/{auth → idle}/idle.service.d.ts +6 -6
- package/lib/{items2 → item2}/item2.gql.d.ts +16 -16
- package/lib/{items2 → item2}/item2.service.d.ts +34 -35
- package/lib/{cryptography → key}/key-factory.service.d.ts +4 -3
- package/lib/{cryptography → key}/key-graph.service.d.ts +6 -6
- package/lib/{cryptography → key}/key-meta.service.d.ts +1 -1
- package/lib/{cryptography → key}/key.service.d.ts +2 -2
- package/lib/{cryptography/cryptography.types.d.ts → key/key.types.d.ts} +13 -17
- package/lib/{api → key-exchange}/key-exchange.service.d.ts +5 -5
- package/lib/{api → key-exchange}/key-exchange.types.d.ts +4 -4
- package/lib/{api → key-exchange}/key-exchange2.gql.d.ts +1 -1
- package/lib/{api → key-exchange}/key-exchange2.service.d.ts +82 -29
- package/lib/{auth → lbop}/lbop.service.d.ts +7 -7
- package/lib/life-ready.config.d.ts +1 -1
- package/lib/{api → lock}/lock.gql.d.ts +1 -1
- package/lib/{api → lock}/lock.service.d.ts +1 -1
- package/lib/message/message.gql.d.ts +13 -0
- package/lib/message/message.service.d.ts +36 -0
- package/lib/message/message.types.d.ts +12 -0
- package/lib/notification/notification.service.d.ts +3 -2
- package/lib/password/password.gql.d.ts +3 -0
- package/lib/{auth → password}/password.service.d.ts +9 -9
- package/lib/{api → persist}/persist.service.d.ts +3 -3
- package/lib/plan/plan.service.d.ts +3 -2
- package/lib/plan/plan.types.d.ts +2 -1
- package/lib/{users → profile}/profile-details.service.d.ts +3 -3
- package/lib/{users → profile}/profile.gql.d.ts +2 -2
- package/lib/{users → profile}/profile.service.d.ts +6 -6
- package/lib/{users → profile}/profile.types.d.ts +3 -2
- package/lib/record/record-attachment.service.d.ts +6 -6
- package/lib/record/record.service.d.ts +3 -3
- package/lib/{auth → register}/register.service.d.ts +4 -4
- package/lib/scenario/scenario.controller.d.ts +1 -1
- package/lib/scenario/scenario.service.d.ts +105 -5
- package/lib/scenario/scenario.types.d.ts +1 -1
- package/lib/{api → shared-contact-card}/shared-contact-card.service.d.ts +9 -9
- package/lib/{api → shared-contact-card}/shared-contact-card2.gql.d.ts +1 -1
- package/lib/{api → shared-contact-card}/shared-contact-card2.service.d.ts +6 -6
- package/lib/{cryptography → slip39}/slip39.service.d.ts +0 -1
- package/lib/{trusted-parties → tp-assembly}/tp-assembly.d.ts +7 -7
- package/lib/{trusted-parties → tp-assembly}/tp-assembly.types.d.ts +3 -3
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-request.service.d.ts +5 -9
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-user.service.d.ts +7 -13
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.controller.d.ts +1 -1
- package/lib/tp-password-reset/tp-password-reset.gql.d.ts +63 -0
- package/lib/{trusted-parties/tp-password-reset.gql.d.ts → tp-password-reset/tp-password-reset.private.gql.d.ts} +1 -63
- package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +59 -0
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.service.d.ts +6 -89
- package/lib/tp-password-reset/tp-password-reset.types.d.ts +40 -0
- package/lib/{trusted-parties → trusted-party}/trusted-party.service.d.ts +7 -7
- package/lib/{trusted-parties → trusted-party}/trusted-party.types.d.ts +2 -3
- package/lib/{trusted-parties → trusted-party}/trusted-party2.gql.d.ts +0 -22
- package/lib/trusted-party/trusted-party2.gql.private.d.ts +23 -0
- package/lib/{trusted-parties → trusted-party}/trusted-party2.service.d.ts +11 -35
- package/lib/trusted-party/trusted-party2.types.d.ts +12 -0
- package/lib/{users → user}/user.gql.d.ts +1 -1
- package/lib/{users → user}/user.service.d.ts +1 -1
- package/lib/{users → user}/user.types.d.ts +1 -1
- package/lifeready-core.d.ts +14 -12
- package/lifeready-core.metadata.json +1 -1
- package/package.json +2 -2
- package/public-api.d.ts +48 -50
- package/esm2015/lib/api/contact-card.gql.js +0 -79
- package/esm2015/lib/api/contact-card.service.js +0 -154
- package/esm2015/lib/api/contact-card2.gql.js +0 -60
- package/esm2015/lib/api/contact-card2.service.js +0 -103
- package/esm2015/lib/api/file.service.js +0 -74
- package/esm2015/lib/api/key-exchange.gql.js +0 -188
- package/esm2015/lib/api/key-exchange.service.js +0 -442
- package/esm2015/lib/api/key-exchange.types.js +0 -7
- package/esm2015/lib/api/key-exchange2.gql.js +0 -171
- package/esm2015/lib/api/key-exchange2.service.js +0 -480
- package/esm2015/lib/api/lock.gql.js +0 -40
- package/esm2015/lib/api/lock.service.js +0 -64
- package/esm2015/lib/api/message.service.js +0 -138
- package/esm2015/lib/api/persist.service.js +0 -181
- package/esm2015/lib/api/shared-contact-card.service.js +0 -119
- package/esm2015/lib/api/shared-contact-card2.gql.js +0 -41
- package/esm2015/lib/api/shared-contact-card2.service.js +0 -117
- package/esm2015/lib/api/time.service.js +0 -146
- package/esm2015/lib/auth/idle.service.js +0 -168
- package/esm2015/lib/auth/idle.types.js +0 -7
- package/esm2015/lib/auth/lbop.service.js +0 -355
- package/esm2015/lib/auth/password.service.js +0 -315
- package/esm2015/lib/auth/register.service.js +0 -172
- package/esm2015/lib/auth/two-factor.service.js +0 -74
- package/esm2015/lib/cryptography/cryptography.types.js +0 -11
- package/esm2015/lib/cryptography/encryption.service.js +0 -189
- package/esm2015/lib/cryptography/key-factory.service.js +0 -237
- package/esm2015/lib/cryptography/key-graph.service.js +0 -299
- package/esm2015/lib/cryptography/key-meta.service.js +0 -200
- package/esm2015/lib/cryptography/slip39.service.js +0 -169
- package/esm2015/lib/cryptography/web-crypto.service.js +0 -29
- 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/esm2015/lib/scenario/scenario.gql.private.js +0 -198
- package/esm2015/lib/trusted-parties/tp-assembly.gql.private.js +0 -22
- package/esm2015/lib/trusted-parties/tp-assembly.js +0 -365
- package/esm2015/lib/trusted-parties/tp-assembly.types.js +0 -1
- package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +0 -113
- package/esm2015/lib/trusted-parties/tp-password-reset-user.service.js +0 -129
- package/esm2015/lib/trusted-parties/tp-password-reset.constants.js +0 -4
- package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +0 -34
- package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +0 -237
- package/esm2015/lib/trusted-parties/tp-password-reset.service.js +0 -95
- package/esm2015/lib/trusted-parties/trusted-party.gql.js +0 -148
- package/esm2015/lib/trusted-parties/trusted-party.service.js +0 -326
- package/esm2015/lib/trusted-parties/trusted-party.types.js +0 -41
- package/esm2015/lib/trusted-parties/trusted-party2.gql.js +0 -87
- package/esm2015/lib/trusted-parties/trusted-party2.service.js +0 -218
- package/esm2015/lib/users/profile-details.service.js +0 -214
- package/esm2015/lib/users/profile.gql.js +0 -97
- package/esm2015/lib/users/profile.service.js +0 -169
- package/esm2015/lib/users/profile.types.js +0 -34
- package/esm2015/lib/users/user.gql.js +0 -60
- package/esm2015/lib/users/user.service.js +0 -79
- package/esm2015/lib/users/user.types.js +0 -1
- package/lib/api/contact-card2.gql.d.ts +0 -34
- package/lib/api/contact-card2.service.d.ts +0 -50
- package/lib/api/message.service.d.ts +0 -59
- /package/lib/{api → contact-card}/contact-card.gql.d.ts +0 -0
- /package/lib/{auth → idle}/idle.types.d.ts +0 -0
- /package/lib/{items2 → item2}/item2.gql.private.d.ts +0 -0
- /package/lib/{items2 → item2}/item2.types.d.ts +0 -0
- /package/lib/{api → key-exchange}/key-exchange.gql.d.ts +0 -0
- /package/lib/scenario/{scenario.gql.private.d.ts → scenario.private.gql.d.ts} +0 -0
- /package/lib/{api → time}/time.service.d.ts +0 -0
- /package/lib/{trusted-parties/tp-assembly.gql.private.d.ts → tp-assembly/tp-assembly.private.gql.d.ts} +0 -0
- /package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.constants.d.ts +0 -0
- /package/lib/{trusted-parties → trusted-party}/trusted-party.gql.d.ts +0 -0
- /package/lib/{auth → two-factor}/two-factor.service.d.ts +0 -0
- /package/lib/{cryptography → web-crypto}/web-crypto.service.d.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JWK } from 'node-jose';
|
|
2
|
+
import { JSONObject } from '../api/types';
|
|
3
|
+
export interface SendMessageInput {
|
|
4
|
+
username?: string;
|
|
5
|
+
userId?: string;
|
|
6
|
+
plainMessageJson?: JSONObject;
|
|
7
|
+
plainCipherMessageJson?: JSONObject;
|
|
8
|
+
}
|
|
9
|
+
export interface DecryptMessageOptions {
|
|
10
|
+
sharedKey: JWK.Key;
|
|
11
|
+
senderSigPbk: JWK.Key;
|
|
12
|
+
}
|
|
@@ -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
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
3
|
+
import { Duration } from 'moment';
|
|
3
4
|
import { JWK } from 'node-jose';
|
|
4
|
-
import {
|
|
5
|
-
import { EncryptionService } from '../
|
|
6
|
-
import {
|
|
5
|
+
import { PassKeyBundle } from '../auth/auth.types';
|
|
6
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
7
|
+
import { IdleService } from '../idle/idle.service';
|
|
8
|
+
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
9
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
7
10
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
11
|
+
import { ProfileService } from '../profile/profile.service';
|
|
12
|
+
import { WebCryptoService } from '../web-crypto/web-crypto.service';
|
|
8
13
|
import { LrApolloService } from './../api/lr-apollo.service';
|
|
9
|
-
import { PassKeyBundle } from './auth.types';
|
|
10
|
-
import { WebCryptoService } from '../cryptography/web-crypto.service';
|
|
11
|
-
import { Duration } from 'moment';
|
|
12
|
-
import { IdleService } from '../auth/idle.service';
|
|
13
|
-
import { KeyFactoryService as KFS } from '../cryptography/key-factory.service';
|
|
14
14
|
export interface PasswordChangeConfig {
|
|
15
15
|
maxAuthAgeSeconds: number;
|
|
16
16
|
authTime: string | Date;
|
|
@@ -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,8 +1,8 @@
|
|
|
1
|
-
import { JWK } from 'node-jose';
|
|
2
1
|
import { Injector } from '@angular/core';
|
|
3
2
|
import { CookieService } from 'ngx-cookie-service';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { JWK } from 'node-jose';
|
|
4
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
+
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
6
6
|
export declare class PersistService {
|
|
7
7
|
private keyFactory;
|
|
8
8
|
private cookieService;
|
|
@@ -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,8 +1,8 @@
|
|
|
1
|
-
import { SharedContactCardService } from '../api/shared-contact-card.service';
|
|
2
1
|
import { CurrentUser } from '../auth/auth.types';
|
|
3
2
|
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
|
|
4
|
+
import { TrustedPartyService } from '../trusted-party/trusted-party.service';
|
|
5
|
+
import { SharedTrustedPartyDetails } from '../trusted-party/trusted-party.types';
|
|
6
6
|
import { ProfileService } from './profile.service';
|
|
7
7
|
import { MainContactCardFields, TrustedPartyDetails } from './profile.types';
|
|
8
8
|
export declare class ProfileDetailsService {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { HasKeyGraph } from '../key/key.types';
|
|
1
2
|
import { HasEdges } from './../_common/types';
|
|
2
|
-
import {
|
|
3
|
-
import { ApiCurrentUser, ApiContactCard } from './profile.types';
|
|
3
|
+
import { ApiContactCard, ApiCurrentUser } from './profile.types';
|
|
4
4
|
export interface CurrentUserQueryType extends HasKeyGraph {
|
|
5
5
|
currentUser: ApiCurrentUser;
|
|
6
6
|
contactCards: HasEdges<ApiContactCard>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
|
+
import { ContactCard } from '../contact-card/contact-card.service';
|
|
4
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
6
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
7
|
+
import { KeyService } from '../key/key.service';
|
|
3
8
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
4
|
-
import { ApiCurrentUser, PassIdpApiResult, MainContactCard, ApiContactCard, MainContactCardFields } from './profile.types';
|
|
5
|
-
import { KeyMetaService } from '../cryptography/key-meta.service';
|
|
6
|
-
import { KeyService } from '../cryptography/key.service';
|
|
7
|
-
import { EncryptionService } from '../cryptography/encryption.service';
|
|
8
|
-
import { ContactCard } from '../api/contact-card.service';
|
|
9
9
|
import { UserPlan } from '../plan/plan.types';
|
|
10
|
-
import {
|
|
10
|
+
import { ApiContactCard, ApiCurrentUser, MainContactCard, MainContactCardFields, PassIdpApiResult } from './profile.types';
|
|
11
11
|
export declare class ProfileService {
|
|
12
12
|
private config;
|
|
13
13
|
private http;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UserDeleteNode } from '../api/types';
|
|
2
|
-
import {
|
|
2
|
+
import { Features } from '../auth/auth.types';
|
|
3
|
+
import { PassIdpParams, PassKey } from '../key/key.types';
|
|
3
4
|
export declare class CurrentUserKey {
|
|
4
5
|
passKey?: PassKey;
|
|
5
6
|
masterKey?: {
|
|
@@ -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,14 +1,14 @@
|
|
|
1
|
-
import { NewOrUpdatedAttachment } from './record.types';
|
|
2
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { FileUploadService } from '../file-upload/file-upload.service';
|
|
3
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
4
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
5
|
+
import { NewOrUpdatedAttachment } from './record.types';
|
|
6
6
|
export declare class RecordAttachmentService {
|
|
7
|
-
private
|
|
7
|
+
private fileUploadService;
|
|
8
8
|
private lrApollo;
|
|
9
9
|
private keyMetaService;
|
|
10
10
|
private keyGraph;
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(fileUploadService: FileUploadService, lrApollo: LrApolloService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService);
|
|
12
12
|
downloadAttachment(fileStateNodeId: string, keyId: string): Promise<any>;
|
|
13
13
|
uploadAttachments(recordId: string, attachments: NewOrUpdatedAttachment[]): Promise<string[]>;
|
|
14
14
|
private addAttachment;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RecordAttachmentService } from './record-attachment.service';
|
|
2
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
|
-
import { KeyMetaService } from '../cryptography/key-meta.service';
|
|
4
|
-
import { LrRecord, NewRecord, UpdatedRecord } from './record.types';
|
|
5
2
|
import { CategoryService } from '../category/category.service';
|
|
3
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
4
|
+
import { RecordAttachmentService } from './record-attachment.service';
|
|
5
|
+
import { LrRecord, NewRecord, UpdatedRecord } from './record.types';
|
|
6
6
|
export declare class RecordService {
|
|
7
7
|
private lrApollo;
|
|
8
8
|
private keyMetaService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { RegisterResult } from '../auth/auth.types';
|
|
4
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
5
6
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
6
|
-
import { PasswordService } from '
|
|
7
|
-
import { RegisterResult } from './auth.types';
|
|
7
|
+
import { PasswordService } from '../password/password.service';
|
|
8
8
|
export declare class RegisterService {
|
|
9
9
|
private config;
|
|
10
10
|
private auth;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { TpNode } from '../api/types';
|
|
3
|
-
import { TpAssemblyController } from '../
|
|
3
|
+
import { TpAssemblyController } from '../tp-assembly/tp-assembly';
|
|
4
4
|
export declare class ScenarioAssemblyController extends TpAssemblyController {
|
|
5
5
|
private ngZone;
|
|
6
6
|
private injector;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { LrMergedMutation, LrMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
import {
|
|
4
|
-
import { Item2Service } from '../
|
|
3
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
|
+
import { Item2Service } from '../item2/item2.service';
|
|
5
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
5
6
|
import { ScenarioAssemblyController } from './scenario.controller';
|
|
6
7
|
import { CreateScenarioOptions, ResetScenarioOptions, UpdateScenarioOptions } from './scenario.types';
|
|
7
|
-
import { EncryptionService } from '../cryptography/encryption.service';
|
|
8
8
|
export declare function throwClaimIdMismatch(): void;
|
|
9
9
|
export declare function throwClaimNotApproved(): void;
|
|
10
10
|
export declare class ScenarioService extends LrService {
|
|
@@ -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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccessRoleChoice, JSONObject } from '../api/types';
|
|
2
|
-
import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../
|
|
2
|
+
import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../tp-assembly/tp-assembly.types';
|
|
3
3
|
export interface ParticipantOptions {
|
|
4
4
|
tpId: string;
|
|
5
5
|
sharedCipherDataClearJson: JSONObject;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { User } from '../
|
|
8
|
-
import { LrApolloService } from '
|
|
9
|
-
import { JSONObject } from '
|
|
1
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
2
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
3
|
+
import { KeyService } from '../key/key.service';
|
|
4
|
+
import { Key } from '../key/key.types';
|
|
5
|
+
import { TrustedPartyDetails } from '../profile/profile.types';
|
|
6
|
+
import { SharedTrustedPartyDetails } from '../trusted-party/trusted-party.types';
|
|
7
|
+
import { User } from '../user/user.types';
|
|
8
|
+
import { LrApolloService } from '../api/lr-apollo.service';
|
|
9
|
+
import { JSONObject } from '../api/types';
|
|
10
10
|
export declare const SharedContactCardFields = "\n id\n owner {\n id\n username\n }\n ownerKey {\n id\n }\n ownerCipherData\n receiver {\n id\n username\n }\n receiverKey {\n id\n }\n receiverCipherData\n sharedKey {\n id\n }\n sharedCipherData\n sharedCipherDataSig\n sharedCipherDataSigPxk {\n id\n }\n";
|
|
11
11
|
export interface SharedContactCard {
|
|
12
12
|
id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ContactCardReceiverCipherData, SendContactCardInput } from '
|
|
6
|
-
import {
|
|
2
|
+
import { LrGraphQLService, LrMutation } from '../api/lr-graphql';
|
|
3
|
+
import { LrRelayIdInput } from '../api/types';
|
|
4
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
+
import { ContactCardReceiverCipherData, SendContactCardInput } from '../key-exchange/key-exchange2.service';
|
|
6
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
7
|
+
import { KeyService } from '../key/key.service';
|
|
7
8
|
import { UpdateOwnedContactCardMutation, UpdateReceivedContactCardMutation } from './shared-contact-card2.gql';
|
|
8
|
-
import { LrRelayIdInput } from './types';
|
|
9
9
|
export interface UpdateOwnedContactCardInput extends SendContactCardInput {
|
|
10
10
|
id: LrRelayIdInput;
|
|
11
11
|
ownerKeyId?: LrRelayIdInput;
|
|
@@ -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,14 +1,14 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { JWK } from 'node-jose';
|
|
3
|
+
import { LrGraphQLService } from '../api/lr-graphql';
|
|
3
4
|
import { Connection, TpAssemblyNode, TpNode, TpSubAssemblyNode } from '../api/types';
|
|
4
|
-
import { EncryptionService } from '../
|
|
5
|
-
import { KeyFactoryService } from '../
|
|
6
|
-
import { KeyGraphService } from '../
|
|
7
|
-
import
|
|
8
|
-
import { Key } from '../
|
|
9
|
-
import
|
|
5
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
6
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
7
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
8
|
+
import { KeyService } from '../key/key.service';
|
|
9
|
+
import { Key } from '../key/key.types';
|
|
10
|
+
import * as slip from '../slip39/slip39.service';
|
|
10
11
|
import { CreateTpAssemblyInput, CreateTpSubAssemblyInput, PartialAssemblyKey, TpAssemblyApproverInput, UpdateTpAssemblyInput, UpdateTpSubAssemblyInput } from './tp-assembly.types';
|
|
11
|
-
import { LrGraphQLService } from '../api/lr-graphql';
|
|
12
12
|
export declare abstract class TpAssemblyController {
|
|
13
13
|
abstract slip39Passphrase: string;
|
|
14
14
|
protected keyFactory: KeyFactoryService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JSONObject } from '../api/types';
|
|
2
|
-
import * as slip from '../
|
|
1
|
+
import { JSONObject, JSONString } from '../api/types';
|
|
2
|
+
import * as slip from '../slip39/slip39.service';
|
|
3
3
|
export interface PartialAssemblyKey {
|
|
4
4
|
slip39: {
|
|
5
5
|
share: slip.SecretShare;
|
|
@@ -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;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { LrMergedMutation, LrService } from '../api/lr-graphql';
|
|
3
|
-
import { EncryptionService } from '../
|
|
3
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
|
+
import { TpPasswordResetPrivateService } from './tp-password-reset.private.service';
|
|
4
5
|
export declare class TpPasswordResetRequestService extends LrService {
|
|
5
6
|
private ngZone;
|
|
6
7
|
private injector;
|
|
7
8
|
private encryptionService;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
edges: {
|
|
11
|
-
node: import("./tp-password-reset.gql").SharedTpPasswordResetFragmentResult;
|
|
12
|
-
}[];
|
|
13
|
-
}>;
|
|
14
|
-
getSharedReset(id: any): Promise<import("./tp-password-reset.gql").SharedTpPasswordResetFragmentResult>;
|
|
9
|
+
private privateService;
|
|
10
|
+
constructor(ngZone: NgZone, injector: Injector, encryptionService: EncryptionService, privateService: TpPasswordResetPrivateService);
|
|
15
11
|
private activeRequestOrRaise;
|
|
16
12
|
rejectRequest(sharedResetId: string): Promise<any>;
|
|
17
13
|
rejectRequestMutation(sharedResetId: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").RejectTpPasswordResetRequestMutationResult[]>>;
|
|
18
14
|
approveRequest(sharedResetId: string, pbkFingerPrint?: string): Promise<import("./tp-password-reset.gql").ApproveTpPasswordResetRequestMutationResult[]>;
|
|
19
|
-
approveRequestMutation(sharedResetId: string,
|
|
15
|
+
approveRequestMutation(sharedResetId: string, _pbkFingerPrint?: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").ApproveTpPasswordResetRequestMutationResult[]>>;
|
|
20
16
|
}
|
|
@@ -1,29 +1,23 @@
|
|
|
1
|
-
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { EncryptionService } from '../cryptography/encryption.service';
|
|
3
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
4
|
-
import { LifeReadyConfig } from '../life-ready.config';
|
|
5
|
-
import * as slip from '../cryptography/slip39.service';
|
|
6
|
-
import { PasswordService } from '../auth/password.service';
|
|
7
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Injector, NgZone } from '@angular/core';
|
|
8
3
|
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
9
|
-
import { RequestResetResult } from './tp-password-reset.service';
|
|
10
4
|
import { ISignUpResult } from 'amazon-cognito-identity-js';
|
|
11
|
-
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
12
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
13
5
|
import { LrService } from '../api/lr-graphql';
|
|
6
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
7
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
8
|
+
import { LifeReadyConfig } from '../life-ready.config';
|
|
9
|
+
import { PasswordService } from '../password/password.service';
|
|
10
|
+
import { RequestResetResult } from './tp-password-reset.types';
|
|
14
11
|
export declare class TpPasswordResetUserService extends LrService {
|
|
15
12
|
private ngZone;
|
|
16
13
|
private injector;
|
|
17
14
|
private config;
|
|
18
15
|
private keyFactory;
|
|
19
16
|
private encryptionService;
|
|
20
|
-
private keyGraphService;
|
|
21
|
-
private slip39Service;
|
|
22
17
|
private passwordService;
|
|
23
18
|
private http;
|
|
24
19
|
private auth;
|
|
25
|
-
|
|
26
|
-
constructor(ngZone: NgZone, injector: Injector, config: LifeReadyConfig, keyFactory: KeyFactoryService, encryptionService: EncryptionService, keyGraphService: KeyGraphService, slip39Service: slip.Slip39Service, passwordService: PasswordService, http: HttpClient, auth: AuthClass, lrAuth: LifeReadyAuthService);
|
|
20
|
+
constructor(ngZone: NgZone, injector: Injector, config: LifeReadyConfig, keyFactory: KeyFactoryService, encryptionService: EncryptionService, passwordService: PasswordService, http: HttpClient, auth: AuthClass);
|
|
27
21
|
verifyEmailContact(email: any): Promise<{
|
|
28
22
|
claimId: string;
|
|
29
23
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { TpNode } from '../api/types';
|
|
3
|
-
import { TpAssemblyController } from '
|
|
3
|
+
import { TpAssemblyController } from '../tp-assembly/tp-assembly';
|
|
4
4
|
export declare class TpPasswordResetAssemblyController extends TpAssemblyController {
|
|
5
5
|
private ngZone;
|
|
6
6
|
private injector;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ID, JSONObject } from '../api/types';
|
|
2
|
+
export interface CancelTpPasswordResetRequestMutationResult {
|
|
3
|
+
cancelTpPasswordResetRequest: {
|
|
4
|
+
id: ID;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare const CancelTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CancelTpPasswordResetRequestMutationResult>;
|
|
8
|
+
export interface CreateTpAssemblyKeyChallengeMutationResult {
|
|
9
|
+
createTpAssemblyKeyChallenge: {
|
|
10
|
+
challenge: JSONObject;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const CreateTpAssemblyKeyChallengeMutation: import("../_common/ast").TypedDocumentNode<CreateTpAssemblyKeyChallengeMutationResult>;
|
|
14
|
+
export interface PreCompleteTpPasswordResetRequestMutationResult {
|
|
15
|
+
preCompleteTpPasswordResetRequest: {
|
|
16
|
+
idpPassword: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const PreCompleteTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<PreCompleteTpPasswordResetRequestMutationResult>;
|
|
20
|
+
export interface CompleteTpPasswordResetRequestMutationResult {
|
|
21
|
+
completeTpPasswordResetRequest: {
|
|
22
|
+
id: ID;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare const CompleteTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CompleteTpPasswordResetRequestMutationResult>;
|
|
26
|
+
export interface ApproveTpPasswordResetRequestMutationResult {
|
|
27
|
+
approveTpPasswordResetRequest: {
|
|
28
|
+
claimApprover: {
|
|
29
|
+
id: ID;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export declare const ApproveTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<ApproveTpPasswordResetRequestMutationResult>;
|
|
34
|
+
export interface RejectTpPasswordResetRequestMutationResult {
|
|
35
|
+
rejectTpPasswordResetRequest: {
|
|
36
|
+
claimApprover: {
|
|
37
|
+
id: ID;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare const RejectTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<RejectTpPasswordResetRequestMutationResult>;
|
|
42
|
+
export interface CreateTpPasswordResetMutationResult {
|
|
43
|
+
createTpPasswordReset: {
|
|
44
|
+
tpPasswordReset: {
|
|
45
|
+
id: ID;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export declare const CreateTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<CreateTpPasswordResetMutationResult>;
|
|
50
|
+
export interface DeleteTpPasswordResetMutationResult {
|
|
51
|
+
deleteTpPasswordReset: {
|
|
52
|
+
id: ID;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export declare const DeleteTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<DeleteTpPasswordResetMutationResult>;
|
|
56
|
+
export interface UpdateTpPasswordResetMutationResult {
|
|
57
|
+
updateTpPasswordReset: {
|
|
58
|
+
tpPasswordReset: {
|
|
59
|
+
id: ID;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
export declare const UpdateTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<UpdateTpPasswordResetMutationResult>;
|