@lifeready/core 1.0.21 → 1.0.22
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 +9745 -9700
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +2 -2
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/_common/run-outside-angular.js +2 -2
- package/esm2015/lib/_common/types.js +1 -1
- package/esm2015/lib/api/lr-apollo.service.js +3 -3
- package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +3 -3
- package/esm2015/lib/api/query-processor/common-processors.service.js +3 -3
- package/esm2015/lib/api/query-processor/query-processor.service.js +4 -4
- package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +6 -5
- package/esm2015/lib/api/types/lr-graphql.types.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 +32 -31
- package/esm2015/lib/category/category.gql.js +1 -1
- package/esm2015/lib/category/category.service.js +6 -6
- package/esm2015/lib/contact-card/contact-card.gql.js +79 -0
- package/esm2015/lib/contact-card/contact-card.service.js +154 -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 +189 -0
- package/esm2015/lib/file-upload/file-upload.service.js +74 -0
- package/esm2015/lib/file-upload/file-upload.types.js +1 -0
- package/esm2015/lib/{auth → idle}/idle.service.js +7 -7
- package/esm2015/lib/{auth → idle}/idle.types.js +1 -1
- package/esm2015/lib/items2/item2.service.js +20 -20
- package/esm2015/lib/key/key-factory.service.js +237 -0
- package/esm2015/lib/{cryptography → key}/key-graph.service.js +10 -10
- package/esm2015/lib/key/key-meta.service.js +200 -0
- package/esm2015/lib/key/key.service.js +124 -0
- 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 +443 -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 +355 -0
- 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 +116 -0
- package/esm2015/lib/message/message.types.js +1 -0
- package/esm2015/lib/password/password.gql.js +28 -0
- package/esm2015/lib/password/password.service.js +315 -0
- package/esm2015/lib/persist/persist.service.js +180 -0
- package/esm2015/lib/profile/profile-details.service.js +214 -0
- package/esm2015/lib/profile/profile.gql.js +97 -0
- package/esm2015/lib/profile/profile.service.js +169 -0
- package/esm2015/lib/profile/profile.types.js +34 -0
- package/esm2015/lib/record/record-attachment.service.js +15 -15
- package/esm2015/lib/record/record.service.js +3 -3
- package/esm2015/lib/register/register.service.js +172 -0
- package/esm2015/lib/scenario/scenario.controller.js +2 -2
- package/esm2015/lib/scenario/{scenario.gql.private.js → scenario.private.gql.js} +1 -1
- package/esm2015/lib/scenario/scenario.service.js +9 -9
- package/esm2015/lib/scenario/scenario.types.js +1 -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 +169 -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 +1 -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 +117 -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 +1 -0
- package/esm2015/lib/trusted-party/trusted-party.gql.js +148 -0
- package/esm2015/lib/trusted-party/trusted-party.service.js +326 -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 +1 -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 +79 -0
- package/esm2015/lib/user/user.types.js +1 -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 +9232 -9214
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/_common/types.d.ts +3 -1
- package/lib/api/lr-apollo.service.d.ts +1 -1
- package/lib/api/lr-graphql/lr-graphql.service.d.ts +1 -1
- 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 +1 -1
- package/lib/api/types/lr-graphql.types.d.ts +11 -0
- package/lib/auth/auth.gql.d.ts +0 -3
- package/lib/auth/auth.types.d.ts +2 -2
- package/lib/auth/life-ready-auth.service.d.ts +12 -12
- package/lib/category/category.gql.d.ts +1 -1
- package/lib/category/category.service.d.ts +2 -2
- 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/{api → contact-card}/contact-card2.service.d.ts +11 -12
- package/lib/{cryptography → encryption}/encryption.service.d.ts +2 -2
- package/lib/{api/file.service.d.ts → file-upload/file-upload.service.d.ts} +3 -7
- package/lib/file-upload/file-upload.types.d.ts +5 -0
- package/lib/{auth → idle}/idle.service.d.ts +4 -4
- package/lib/items2/item2.service.d.ts +11 -11
- package/lib/{cryptography → key}/key-factory.service.d.ts +2 -2
- package/lib/{cryptography → key}/key-graph.service.d.ts +5 -5
- 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} +9 -13
- 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 +71 -18
- package/lib/{auth → lbop}/lbop.service.d.ts +7 -7
- 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 +29 -0
- package/lib/message/message.types.d.ts +12 -0
- package/lib/password/password.gql.d.ts +3 -0
- package/lib/{auth → password}/password.service.d.ts +8 -8
- package/lib/{api → persist}/persist.service.d.ts +3 -3
- 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 +1 -1
- package/lib/record/record-attachment.service.d.ts +6 -6
- package/lib/record/record.service.d.ts +1 -1
- 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 +2 -2
- 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/{trusted-parties → tp-assembly}/tp-assembly.d.ts +7 -7
- package/lib/{trusted-parties → tp-assembly}/tp-assembly.types.d.ts +1 -1
- package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-request.service.d.ts +4 -8
- 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.types.d.ts +1 -1
- package/lifeready-core.d.ts +14 -12
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
- 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/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-meta.service.js +0 -200
- package/esm2015/lib/cryptography/key.service.js +0 -124
- package/esm2015/lib/cryptography/slip39.service.js +0 -169
- package/esm2015/lib/cryptography/web-crypto.service.js +0 -29
- 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/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/{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/{cryptography → slip39}/slip39.service.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/{users → user}/user.service.d.ts +0 -0
- /package/lib/{cryptography → web-crypto}/web-crypto.service.d.ts +0 -0
package/lib/_common/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { HasKeyGraph } from '../
|
|
1
|
+
import { HasKeyGraph } from '../key/key.types';
|
|
2
|
+
export declare type SomePartial<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
3
|
+
export declare type SomeRequired<T, K extends keyof T> = Pick<Required<T>, K> & Omit<T, K>;
|
|
2
4
|
export interface Edge<T> {
|
|
3
5
|
node: T;
|
|
4
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Apollo } from 'apollo-angular';
|
|
2
2
|
import { QueryOptions, MutationOptions } from '@apollo/client/core';
|
|
3
|
-
import { KeyGraphService } from '../
|
|
3
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
4
4
|
export declare class LrApolloService {
|
|
5
5
|
private apollo;
|
|
6
6
|
private keyGraph;
|
|
@@ -2,7 +2,7 @@ import { NgZone } from '@angular/core';
|
|
|
2
2
|
import { Apollo } from 'apollo-angular';
|
|
3
3
|
import { QueryOptions, MutationOptions, OperationVariables, FetchPolicy } from '@apollo/client/core';
|
|
4
4
|
import { MutationBaseOptions } from '@apollo/client/core/watchQueryOptions';
|
|
5
|
-
import { KeyGraphService } from '../../
|
|
5
|
+
import { KeyGraphService } from '../../key/key-graph.service';
|
|
6
6
|
import { TypedDocumentNode } from '../../_common/ast';
|
|
7
7
|
import { ProcessorOptions, QueryProcessorService } from '../query-processor';
|
|
8
8
|
import { LrMutationBase } from './lr-mutation-base';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import { KeyGraphService } from '../../
|
|
2
|
+
import { KeyGraphService } from '../../key/key-graph.service';
|
|
3
3
|
import { Connection } from '../types';
|
|
4
4
|
export interface ProcessorOptions {
|
|
5
5
|
hasKeys: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import { KeyService } from '../../
|
|
2
|
+
import { KeyService } from '../../key/key.service';
|
|
3
3
|
import { CommonProcessorsService, ProcessorOptions } from './common-processors.service';
|
|
4
4
|
import { TpPasswordResetProcessorService } from './tp-password-reset-processor.service';
|
|
5
5
|
export declare class QueryProcessorService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import { KeyGraphService } from '../../
|
|
2
|
+
import { KeyGraphService } from '../../key/key-graph.service';
|
|
3
3
|
import { ProcessorCallbackParams } from './common-processors.service';
|
|
4
4
|
import { TpPasswordResetUserNode, TpPasswordResetNode } from '../types';
|
|
5
5
|
export declare class TpPasswordResetProcessorService {
|
|
@@ -458,6 +458,7 @@ export declare enum ScenarioLastClaimState {
|
|
|
458
458
|
export interface ScenarioLatestClaim {
|
|
459
459
|
state?: ScenarioLastClaimState;
|
|
460
460
|
created?: DateTime;
|
|
461
|
+
claimAgainAfter?: DateTime;
|
|
461
462
|
}
|
|
462
463
|
export interface ScenarioNode extends Node, TimeStamped {
|
|
463
464
|
subject?: UserNode;
|
|
@@ -569,3 +570,13 @@ export declare enum LinkTypeField {
|
|
|
569
570
|
HARD = "HARD",
|
|
570
571
|
SOFT = "SOFT"
|
|
571
572
|
}
|
|
573
|
+
export interface MessageNode extends Node, TimeStamped {
|
|
574
|
+
sender?: UserNode;
|
|
575
|
+
receiver?: UserNode;
|
|
576
|
+
sharedKey?: KeyNode;
|
|
577
|
+
senderSigPbk?: KeyNode;
|
|
578
|
+
plainMessage?: string;
|
|
579
|
+
plainMessageJson?: string;
|
|
580
|
+
signedCipherMessage?: string;
|
|
581
|
+
signedCipherMessageClearJson?: string;
|
|
582
|
+
}
|
package/lib/auth/auth.gql.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export declare const PasswordChangeRequestMutation: import("graphql").DocumentNode;
|
|
2
|
-
export declare const PasswordChangeMutation: import("graphql").DocumentNode;
|
|
3
|
-
export declare const PasswordChangeConfigQuery: import("graphql").DocumentNode;
|
|
4
1
|
export interface SetSessionEncryptionKeyMutation {
|
|
5
2
|
setSessionEncryptionKey: {
|
|
6
3
|
sessionEncryptionKey: string;
|
package/lib/auth/auth.types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CognitoUser } from '@aws-amplify/auth';
|
|
2
2
|
import { JWK } from 'node-jose';
|
|
3
3
|
import { TpPasswordResetUserNode, UserDeleteNode } from '../api/types';
|
|
4
|
-
import { PassIdpParams, PassKeyParams } from '../
|
|
4
|
+
import { PassIdpParams, PassKeyParams } from '../key/key.types';
|
|
5
5
|
import { UserPlan } from '../plan/plan.types';
|
|
6
|
-
import { CurrentUserKey, MainContactCard } from '../
|
|
6
|
+
import { CurrentUserKey, MainContactCard } from '../profile/profile.types';
|
|
7
7
|
export interface PassKeyBundle {
|
|
8
8
|
passKeyParams: PassKeyParams;
|
|
9
9
|
passKey: JWK.Key;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
3
|
-
import { KeyService } from '../cryptography/key.service';
|
|
4
|
-
import { ProfileService } from '../users/profile.service';
|
|
5
|
-
import { CognitoChallengeUser, CurrentUser, TpPasswordResetUser, LoginResult } from './auth.types';
|
|
6
|
-
import { PasswordService } from './password.service';
|
|
7
1
|
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
8
|
-
import {
|
|
9
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
10
3
|
import { LrGraphQLService } from '../api/lr-graphql';
|
|
11
4
|
import { TpPasswordResetProcessorService } from '../api/query-processor/tp-password-reset-processor.service';
|
|
12
|
-
import {
|
|
5
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
6
|
+
import { IdleService } from '../idle/idle.service';
|
|
7
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
8
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
9
|
+
import { KeyService } from '../key/key.service';
|
|
13
10
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
11
|
+
import { PasswordService } from '../password/password.service';
|
|
12
|
+
import { PersistService } from '../persist/persist.service';
|
|
13
|
+
import { ProfileService } from '../profile/profile.service';
|
|
14
|
+
import { Slip39Service } from '../slip39/slip39.service';
|
|
15
|
+
import { TpPasswordResetAssemblyController } from '../tp-password-reset/tp-password-reset.controller';
|
|
16
|
+
import { CognitoChallengeUser, CurrentUser, LoginResult, TpPasswordResetUser } from './auth.types';
|
|
17
17
|
export declare const initialiseAuth: (authService: LifeReadyAuthService) => () => Promise<void>;
|
|
18
18
|
export interface LoginOptions {
|
|
19
19
|
tpPasswordResetAutoComplete?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
-
import { KeyMetaService } from '../
|
|
2
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
3
3
|
import { Category, NewCategory, UpdatedCategory, VaultCategory, VaultRecord, Vault } from './category.types';
|
|
4
|
-
import { KeyGraphService } from '../
|
|
4
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
5
5
|
export declare class CategoryService {
|
|
6
6
|
private lrApollo;
|
|
7
7
|
private keyMetaService;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { LrApolloService } from '../api/lr-apollo.service';
|
|
2
|
+
import { JSONObject } from '../api/types';
|
|
3
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
5
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
6
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
7
|
+
import { KeyService } from '../key/key.service';
|
|
8
|
+
import { Key } from '../key/key.types';
|
|
9
|
+
import { MainContactCardPlainFields } from '../profile/profile.types';
|
|
5
10
|
import { HasEdges } from '../_common/types';
|
|
6
|
-
import { LrApolloService } from './lr-apollo.service';
|
|
7
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
8
|
-
import { MainContactCardPlainFields } from '../users/profile.types';
|
|
9
|
-
import { KeyMetaService } from '../cryptography/key-meta.service';
|
|
10
|
-
import { JSONObject } from './types';
|
|
11
11
|
export declare class ContactCard {
|
|
12
12
|
id: string;
|
|
13
13
|
key: Key;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ID } from '../api/types';
|
|
2
|
+
export interface CreateContactCardMutationResult {
|
|
3
|
+
createContactCard: {
|
|
4
|
+
contactCard: {
|
|
5
|
+
id: ID;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const CreateContactCardMutation: import("../_common/ast").TypedDocumentNode<CreateContactCardMutationResult>;
|
|
10
|
+
export interface UpdateContactCardMutationResult {
|
|
11
|
+
updateContactCard: {
|
|
12
|
+
contactCard: {
|
|
13
|
+
id: ID;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare const UpdateContactCardMutation: import("../_common/ast").TypedDocumentNode<UpdateContactCardMutationResult>;
|
|
18
|
+
export interface DeleteContactCardMutationResult {
|
|
19
|
+
deleteContactCard: {
|
|
20
|
+
deleteContactCard: {
|
|
21
|
+
id: ID;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export declare const DeleteContactCardMutation: import("../_common/ast").TypedDocumentNode<DeleteContactCardMutationResult>;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { NgZone } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { JSONObject } from './types';
|
|
2
|
+
import { LrMutation } from '../api/lr-graphql';
|
|
3
|
+
import { JSONObject } from '../api/types';
|
|
4
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
5
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
6
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
7
|
+
import { KeyMetaService } from '../key/key-meta.service';
|
|
8
|
+
import { KeyService } from '../key/key.service';
|
|
9
|
+
import { MainContactCardPlainFields } from '../profile/profile.types';
|
|
11
10
|
export interface CreateContactCardInput2 {
|
|
12
11
|
publicDataJson: JSONObject;
|
|
13
12
|
publicSearchableJson: JSONObject;
|
|
@@ -35,13 +34,13 @@ export declare class ContactCard2Service {
|
|
|
35
34
|
private keyMetaService;
|
|
36
35
|
private ngZone;
|
|
37
36
|
constructor(keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService, keyMetaService: KeyMetaService, ngZone: NgZone);
|
|
38
|
-
createContactCard(input: CreateContactCardInput2): Promise<LrMutation<
|
|
37
|
+
createContactCard(input: CreateContactCardInput2): Promise<LrMutation<import("./contact-card2.gql").CreateContactCardMutationResult, {
|
|
39
38
|
input: any;
|
|
40
39
|
}>>;
|
|
41
|
-
updateContactCard(input: UpdateContactCardInput2): Promise<LrMutation<
|
|
40
|
+
updateContactCard(input: UpdateContactCardInput2): Promise<LrMutation<import("./contact-card2.gql").UpdateContactCardMutationResult, {
|
|
42
41
|
input: any;
|
|
43
42
|
}>>;
|
|
44
|
-
deleteContactCard(id: string): LrMutation<
|
|
43
|
+
deleteContactCard(id: string): LrMutation<import("./contact-card2.gql").DeleteContactCardMutationResult, {
|
|
45
44
|
input: {
|
|
46
45
|
id: string;
|
|
47
46
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { JWE, JWK } from 'node-jose';
|
|
3
|
-
import { Key, PayloadType } from '
|
|
4
|
-
import { TimeService } from '../
|
|
3
|
+
import { Key, PayloadType } from '../key/key.types';
|
|
4
|
+
import { TimeService } from '../time/time.service';
|
|
5
5
|
export declare enum JoseSerialization {
|
|
6
6
|
JSON = "JSON",
|
|
7
7
|
COMPACT = "COMPACT"
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { LifeReadyConfig } from '../life-ready.config';
|
|
3
2
|
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fileName?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare class FileService {
|
|
3
|
+
import { LifeReadyConfig } from '../life-ready.config';
|
|
4
|
+
import { UploadEncryptedFileOptions } from './file-upload.types';
|
|
5
|
+
export declare class FileUploadService {
|
|
10
6
|
private config;
|
|
11
7
|
private http;
|
|
12
8
|
private lrAuth;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
1
3
|
import { Idle } from '@ng-idle/core';
|
|
2
4
|
import { Keepalive } from '@ng-idle/keepalive';
|
|
3
|
-
import { KeyService } from '../
|
|
5
|
+
import { KeyService } from '../key/key.service';
|
|
6
|
+
import { Key } from '../key/key.types';
|
|
4
7
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
5
|
-
import { HttpClient } from '@angular/common/http';
|
|
6
8
|
import { KeepaliveResult } from './idle.types';
|
|
7
|
-
import { Key } from '../cryptography/cryptography.types';
|
|
8
|
-
import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
|
|
9
9
|
export interface IdleServiceInit {
|
|
10
10
|
onTimeout?: (() => any) | (() => Promise<any>) | null;
|
|
11
11
|
onKeepalive?: (() => any) | (() => Promise<any>) | null;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { Injector, NgZone } from '@angular/core';
|
|
2
|
-
import { KeyFactoryService } from '../cryptography/key-factory.service';
|
|
3
|
-
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
4
|
-
import { KeyService } from '../cryptography/key.service';
|
|
5
|
-
import { FileService } from '../api/file.service';
|
|
6
|
-
import { CreateDirectoryMutation, DeleteDirectoryMutation, CreateFileMutation, DeleteFileMutation, UpdateFileMutation, UpdateDirectoryMutation, ArchiveDirectoryMutation, UnarchiveDirectoryMutation } from './item2.gql';
|
|
7
|
-
import { ChangeFileParentsOptions, ChangeDirectoryParentsOptions, CreateDirectoryOptions, CreateFileOptions, DownloadFileContentOptions, FileParentDirectoryInput, ParentDirectoryInput, ParentRootDirectoryInput, UpdateDirectoryOptions, UpdateFileOptions, BeginDeleteChildItemLinksWindowOptions, CreateDirectoryTreeOptions, RevertFileOptions } from './item2.types';
|
|
8
2
|
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
9
3
|
import { DirectoryNode, ID, LrRelayIdInput } from '../api/types';
|
|
10
|
-
import {
|
|
4
|
+
import { FileUploadService } from '../file-upload/file-upload.service';
|
|
5
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
6
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
7
|
+
import { KeyService } from '../key/key.service';
|
|
8
|
+
import { LockService } from '../lock/lock.service';
|
|
9
|
+
import { ArchiveDirectoryMutation, CreateDirectoryMutation, CreateFileMutation, DeleteDirectoryMutation, DeleteFileMutation, UnarchiveDirectoryMutation, UpdateDirectoryMutation, UpdateFileMutation } from './item2.gql';
|
|
10
|
+
import { BeginDeleteChildItemLinksWindowOptions, ChangeDirectoryParentsOptions, ChangeFileParentsOptions, CreateDirectoryOptions, CreateDirectoryTreeOptions, CreateFileOptions, DownloadFileContentOptions, FileParentDirectoryInput, ParentDirectoryInput, ParentRootDirectoryInput, RevertFileOptions, UpdateDirectoryOptions, UpdateFileOptions } from './item2.types';
|
|
11
11
|
export declare class Item2Service extends LrService {
|
|
12
12
|
private ngZone;
|
|
13
13
|
private injector;
|
|
14
|
-
private
|
|
14
|
+
private fileUploadService;
|
|
15
15
|
private keyService;
|
|
16
16
|
private keyFactory;
|
|
17
17
|
private keyGraph;
|
|
18
18
|
private lockService;
|
|
19
|
-
constructor(ngZone: NgZone, injector: Injector,
|
|
19
|
+
constructor(ngZone: NgZone, injector: Injector, fileUploadService: FileUploadService, keyService: KeyService, keyFactory: KeyFactoryService, keyGraph: KeyGraphService, lockService: LockService);
|
|
20
20
|
static TEMP_DIRECTORY_PLAIN_META: {
|
|
21
21
|
kcType: string;
|
|
22
22
|
};
|
|
@@ -24,8 +24,8 @@ export declare class Item2Service extends LrService {
|
|
|
24
24
|
downloadFileContent(options: DownloadFileContentOptions): Promise<ArrayBuffer>;
|
|
25
25
|
getDirectoryKeyId(directoryId: LrRelayIdInput): Promise<string>;
|
|
26
26
|
getFileKeyId(fileId: LrRelayIdInput): Promise<string>;
|
|
27
|
-
getDirectoryKey(directoryId: LrRelayIdInput, directoryKeyId?: LrRelayIdInput): Promise<import("../
|
|
28
|
-
getFileKey(fileId: LrRelayIdInput, fileKeyId?: LrRelayIdInput): Promise<import("../
|
|
27
|
+
getDirectoryKey(directoryId: LrRelayIdInput, directoryKeyId?: LrRelayIdInput): Promise<import("../key/key.types").Key>;
|
|
28
|
+
getFileKey(fileId: LrRelayIdInput, fileKeyId?: LrRelayIdInput): Promise<import("../key/key.types").Key>;
|
|
29
29
|
createDirectoryExec(options: CreateDirectoryOptions): Promise<CreateDirectoryMutation>;
|
|
30
30
|
createDirectory(options: CreateDirectoryOptions): Promise<LrMutation<CreateDirectoryMutation, {
|
|
31
31
|
input: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { JWK } from 'node-jose';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { WebCryptoService } from '../web-crypto/web-crypto.service';
|
|
4
|
+
import { DeriveKeyResult, DeriveLbopKeyParams, DerivePassIdpParams, DerivePassKeyParams, LbopKeyParams, PassIdpParams, PassKeyParams } from './key.types';
|
|
5
5
|
export declare function sha256(message: any): Promise<string>;
|
|
6
6
|
export declare class KeyFactoryService {
|
|
7
7
|
private webCryptoService;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { JWK } from 'node-jose';
|
|
2
2
|
import { JSONObject } from '../api/types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { DecryptOptions, EncryptionService } from './encryption.service';
|
|
3
|
+
import { DecryptOptions, EncryptionService } from '../encryption/encryption.service';
|
|
4
|
+
import { CurrentUserKey } from '../profile/profile.types';
|
|
6
5
|
import { KeyFactoryService } from './key-factory.service';
|
|
7
6
|
import { KeyService } from './key.service';
|
|
7
|
+
import { Key, KeyGraphEdge, KeyGraphResponse, PassKey } from './key.types';
|
|
8
8
|
export interface GraphKey extends Key {
|
|
9
9
|
task?: Promise<any>;
|
|
10
10
|
}
|
|
@@ -21,8 +21,8 @@ export declare class KeyGraphService {
|
|
|
21
21
|
key(id: any): GraphKey;
|
|
22
22
|
passKey(id: any): PassKey;
|
|
23
23
|
addKeys(src: KeyGraphResponse): void;
|
|
24
|
-
tracePath(distances: any, keyId: string):
|
|
25
|
-
getPath(knownKeyId: string, keyId: string):
|
|
24
|
+
tracePath(distances: any, keyId: string): KeyGraphEdge[];
|
|
25
|
+
getPath(knownKeyId: string, keyId: string): KeyGraphEdge[];
|
|
26
26
|
getJwkKey(keyOrId: string | Key, getKeyIdCallback?: () => Promise<string> | string): Promise<JWK.Key>;
|
|
27
27
|
getKey(keyOrId: string | Key, getKeyIdCallback?: () => Promise<string> | string): Promise<Key>;
|
|
28
28
|
private _unwrapLink;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JWK } from 'node-jose';
|
|
2
2
|
import { LrApolloService } from '../api/lr-apollo.service';
|
|
3
|
-
import { EncryptionService } from '
|
|
3
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
4
|
import { KeyFactoryService } from './key-factory.service';
|
|
5
5
|
import { KeyGraphService } from './key-graph.service';
|
|
6
6
|
import { KeyService } from './key.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Key, PassKey } from './cryptography.types';
|
|
2
|
-
import { PersistService } from '../api/persist.service';
|
|
3
1
|
import { LifeReadyConfig } from '../life-ready.config';
|
|
2
|
+
import { PersistService } from '../persist/persist.service';
|
|
3
|
+
import { Key, PassKey } from './key.types';
|
|
4
4
|
export declare class UserKeys {
|
|
5
5
|
passKey: PassKey;
|
|
6
6
|
masterKey: Key;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { JWK } from 'node-jose';
|
|
2
|
+
import { PassKeyNode } from '../api/types';
|
|
3
|
+
import { SomeRequired } from '../_common/types';
|
|
2
4
|
export interface Key {
|
|
3
5
|
id: string;
|
|
4
6
|
pbk?: string;
|
|
@@ -26,13 +28,7 @@ export interface LbopKeyVerifier {
|
|
|
26
28
|
wrappedKey: object;
|
|
27
29
|
key: object;
|
|
28
30
|
}
|
|
29
|
-
export
|
|
30
|
-
id: string;
|
|
31
|
-
passKeyParams?: PassKeyParams;
|
|
32
|
-
passIdpParams?: PassIdpParams;
|
|
33
|
-
wrappedPassIdpVerifierPrk?: object;
|
|
34
|
-
created?: string;
|
|
35
|
-
}
|
|
31
|
+
export declare type PassKey = SomeRequired<PassKeyNode, 'id'>;
|
|
36
32
|
export interface KeyLink {
|
|
37
33
|
keyId: string;
|
|
38
34
|
wrappingKeyId: string;
|
|
@@ -43,20 +39,20 @@ export interface PassKeyLink {
|
|
|
43
39
|
passKeyId: string;
|
|
44
40
|
wrappedKey: string;
|
|
45
41
|
}
|
|
46
|
-
export declare enum
|
|
42
|
+
export declare enum KeyGraphNodeType {
|
|
47
43
|
Key = "key",
|
|
48
44
|
PassKey = "passKey"
|
|
49
45
|
}
|
|
50
|
-
export interface
|
|
51
|
-
type:
|
|
46
|
+
export interface KeyGraphNode {
|
|
47
|
+
type: KeyGraphNodeType;
|
|
52
48
|
data: Key | PassKey;
|
|
53
49
|
}
|
|
54
|
-
export declare enum
|
|
50
|
+
export declare enum KeyGraphEdgeType {
|
|
55
51
|
KeyLink = "keyLink",
|
|
56
52
|
PassKeyLink = "passKeyLink"
|
|
57
53
|
}
|
|
58
|
-
export interface
|
|
59
|
-
type:
|
|
54
|
+
export interface KeyGraphEdge {
|
|
55
|
+
type: KeyGraphEdgeType;
|
|
60
56
|
data: KeyLink | PassKeyLink;
|
|
61
57
|
}
|
|
62
58
|
export interface KeyGraphResponse {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { LrApolloService } from '../api/lr-apollo.service';
|
|
1
2
|
import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
|
|
2
|
-
import { EncryptionService } from '../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
4
|
+
import { KeyFactoryService as KFS } from '../key/key-factory.service';
|
|
5
|
+
import { KeyService } from '../key/key.service';
|
|
6
|
+
import { UserService } from '../user/user.service';
|
|
5
7
|
import { CompleteOtk, DecryptedKeyExchange, GetKeyExchangeListOptions, GetKeyExchangeOptions, InitiateOtkInput, KeyExchange, RespondOtk, RespondOtkInput, UserSharedKey } from './key-exchange.types';
|
|
6
|
-
import { LrApolloService } from './lr-apollo.service';
|
|
7
|
-
import { KeyFactoryService as KFS } from '../cryptography/key-factory.service';
|
|
8
8
|
export declare class KeyExchangeService {
|
|
9
9
|
private keyFactory;
|
|
10
10
|
private keyService;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Key } from '../cryptography/cryptography.types';
|
|
2
|
-
import { AccessLevel } from '../category/category.types';
|
|
3
1
|
import { JWK } from 'node-jose';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { JSONObject, KeyExchangeMode, KeyExchangeState } from '../api/types';
|
|
3
|
+
import { AccessLevel } from '../category/category.types';
|
|
4
|
+
import { Key } from '../key/key.types';
|
|
5
|
+
import { ContactCardName, TrustedPartyDetails } from '../profile/profile.types';
|
|
6
6
|
export interface PlainInitiatorRootKeyCipher {
|
|
7
7
|
nonce: string;
|
|
8
8
|
oneTimePrk: object;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JWK } from 'node-jose';
|
|
2
|
-
import { Connection, DateTime, ID, JSONObject, LrEmail, OtKeyCipherClearJson2 } from '
|
|
2
|
+
import { Connection, DateTime, ID, JSONObject, LrEmail, OtKeyCipherClearJson2 } from '../api/types';
|
|
3
3
|
export declare type KeyExchangeState2 = 'IN_PROGRESS' | 'COMPLETED' | 'DECLINED' | 'CANCELLED' | 'DELETED';
|
|
4
4
|
export interface KeyExchangeFragment {
|
|
5
5
|
id: ID;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { NgZone } from '@angular/core';
|
|
1
|
+
import { Injector, NgZone } from '@angular/core';
|
|
2
2
|
import { JWK } from 'node-jose';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
4
|
+
import { ContactCardSharedCipherData, JSONObject, OtKeyCipherClearJson2 } from '../api/types';
|
|
5
|
+
import { OwnerPlainDataJson } from '../contact-card/contact-card2.service';
|
|
6
|
+
import { EncryptionService } from '../encryption/encryption.service';
|
|
7
|
+
import { KeyFactoryService } from '../key/key-factory.service';
|
|
8
|
+
import { KeyGraphService } from '../key/key-graph.service';
|
|
9
|
+
import { KeyService } from '../key/key.service';
|
|
9
10
|
import { CancelKeyExchangeMutation, CompleteKeyExchangeOtkMutation, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, InitiateKeyExchangeOtkMutation, KeyExchangeFragment, KeyExchangeState2, RespondKeyExchangeOtkMutation } from './key-exchange2.gql';
|
|
10
|
-
import { LrGraphQLService, LrMutation } from './lr-graphql';
|
|
11
|
-
import { ContactCardSharedCipherData, JSONObject, OtKeyCipherClearJson2 } from './types';
|
|
12
11
|
/**
|
|
13
12
|
* The decrypted content of the one-time key cipher;
|
|
14
13
|
* When user supplies this information the lib doesn't need to do another API call
|
|
@@ -81,16 +80,15 @@ export interface GetKeyExchangeOptions2 {
|
|
|
81
80
|
otKeyK?: string;
|
|
82
81
|
token?: string;
|
|
83
82
|
}
|
|
84
|
-
export declare class KeyExchange2Service {
|
|
83
|
+
export declare class KeyExchange2Service extends LrService {
|
|
85
84
|
private ngZone;
|
|
85
|
+
private injector;
|
|
86
86
|
private keyFactory;
|
|
87
87
|
private keyService;
|
|
88
88
|
private encryptionService;
|
|
89
|
-
private userService;
|
|
90
89
|
private keyGraph;
|
|
91
|
-
private lrGraphQL;
|
|
92
90
|
private readonly CLIENT_NONCE_LENGTH;
|
|
93
|
-
constructor(ngZone: NgZone, keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService,
|
|
91
|
+
constructor(ngZone: NgZone, injector: Injector, keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService);
|
|
94
92
|
private getOtKey;
|
|
95
93
|
private decryptOtk;
|
|
96
94
|
private decryptResponseCipher;
|
|
@@ -121,19 +119,21 @@ export declare class KeyExchange2Service {
|
|
|
121
119
|
id: string;
|
|
122
120
|
};
|
|
123
121
|
}>;
|
|
124
|
-
|
|
122
|
+
declineKeyExchangeExec(id: string, token: string): Promise<DeclineKeyExchangeMutation>;
|
|
123
|
+
declineKeyExchange(id: string, token: string): LrMutation<DeclineKeyExchangeMutation, {
|
|
125
124
|
input: {
|
|
126
125
|
id: string;
|
|
127
126
|
token: string;
|
|
128
127
|
};
|
|
129
|
-
}
|
|
128
|
+
}>;
|
|
130
129
|
declineKeyExchangeMutation(id: string, token: string): LrMutation<DeclineKeyExchangeMutation, {
|
|
131
130
|
input: {
|
|
132
131
|
id: string;
|
|
133
132
|
token: string;
|
|
134
133
|
};
|
|
135
134
|
}>;
|
|
136
|
-
|
|
135
|
+
initiateOtkExec(input?: InitiateOtkInput2): Promise<InitiateKeyExchangeOtkMutation>;
|
|
136
|
+
initiateOtk(input?: InitiateOtkInput2): Promise<{
|
|
137
137
|
lrMutation: LrMutation<InitiateKeyExchangeOtkMutation, {
|
|
138
138
|
input: {
|
|
139
139
|
initiatorRootKeyCipher: string;
|
|
@@ -152,7 +152,44 @@ export declare class KeyExchange2Service {
|
|
|
152
152
|
}>;
|
|
153
153
|
otKeyK: string;
|
|
154
154
|
}>;
|
|
155
|
-
|
|
155
|
+
initiateOtkMutation({ message, email, contactCard, upgrade, }?: InitiateOtkInput2): Promise<{
|
|
156
|
+
lrMutation: LrMutation<InitiateKeyExchangeOtkMutation, {
|
|
157
|
+
input: {
|
|
158
|
+
initiatorRootKeyCipher: string;
|
|
159
|
+
initiatorPxkId: string;
|
|
160
|
+
initiatorSigPxkId: string;
|
|
161
|
+
otKeyParams: string;
|
|
162
|
+
otKeyCipher: string;
|
|
163
|
+
sendEmail: {
|
|
164
|
+
email: string;
|
|
165
|
+
rawOtKey: string;
|
|
166
|
+
};
|
|
167
|
+
createTp: boolean;
|
|
168
|
+
initiatorPlainDataSig: string;
|
|
169
|
+
upgrade: boolean;
|
|
170
|
+
};
|
|
171
|
+
}>;
|
|
172
|
+
otKeyK: string;
|
|
173
|
+
}>;
|
|
174
|
+
respondOtkExec(input: RespondOtkInput2): Promise<RespondKeyExchangeOtkMutation>;
|
|
175
|
+
respondOtk(input: RespondOtkInput2): Promise<LrMutation<RespondKeyExchangeOtkMutation, {
|
|
176
|
+
input: {
|
|
177
|
+
keyExchangeId: string;
|
|
178
|
+
keyExchangeToken: string;
|
|
179
|
+
rootKeyId: string;
|
|
180
|
+
masterKeyId: string;
|
|
181
|
+
responderPxkId: string;
|
|
182
|
+
responderSigPxkId: string;
|
|
183
|
+
signedInitiatorPbk: string;
|
|
184
|
+
signedInitiatorSigPbk: string;
|
|
185
|
+
rkWrappedSharedKey: string;
|
|
186
|
+
mkWrappedMkSharedKey: string;
|
|
187
|
+
initiatorOneTimePbkCipher: string;
|
|
188
|
+
initiatorContactCard: any;
|
|
189
|
+
responderContactCard: any;
|
|
190
|
+
};
|
|
191
|
+
}>>;
|
|
192
|
+
respondOtkMutation({ keyExchangeId, token, decryptedOtk, message, initiatorContactCard, responderContactCard, }: RespondOtkInput2): Promise<LrMutation<RespondKeyExchangeOtkMutation, {
|
|
156
193
|
input: {
|
|
157
194
|
keyExchangeId: string;
|
|
158
195
|
keyExchangeToken: string;
|
|
@@ -169,7 +206,23 @@ export declare class KeyExchange2Service {
|
|
|
169
206
|
responderContactCard: any;
|
|
170
207
|
};
|
|
171
208
|
}>>;
|
|
172
|
-
|
|
209
|
+
completeOtkExec(input: CompleteOtkInput2): Promise<CompleteKeyExchangeOtkMutation>;
|
|
210
|
+
completeOtk(input: CompleteOtkInput2): Promise<LrMutation<CompleteKeyExchangeOtkMutation, {
|
|
211
|
+
input: {
|
|
212
|
+
keyExchangeId: string;
|
|
213
|
+
rootKeyId: string;
|
|
214
|
+
masterKeyId: string;
|
|
215
|
+
initiatorSigPxkId: string;
|
|
216
|
+
signedResponderPbk: string;
|
|
217
|
+
signedResponderSigPbk: string;
|
|
218
|
+
rkWrappedSharedKey: string;
|
|
219
|
+
mkWrappedMkSharedKey: string;
|
|
220
|
+
responderContactCardCipher: any;
|
|
221
|
+
initiatorContactCardCipher: any;
|
|
222
|
+
initiatorContactCardSharedCipher: any;
|
|
223
|
+
};
|
|
224
|
+
}>>;
|
|
225
|
+
completeOtkMutation({ keyExchangeId, initiatorRootKeyCipher, initiatorOneTimePbkCipher, responderContactCard, initiatorContactCard, }: CompleteOtkInput2): Promise<LrMutation<CompleteKeyExchangeOtkMutation, {
|
|
173
226
|
input: {
|
|
174
227
|
keyExchangeId: string;
|
|
175
228
|
rootKeyId: string;
|