@lifeready/core 1.0.20 → 1.0.21
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 +42 -32
- package/bundles/lifeready-core.umd.js.map +1 -1
- package/bundles/lifeready-core.umd.min.js +1 -1
- package/bundles/lifeready-core.umd.min.js.map +1 -1
- package/esm2015/lib/api/key-exchange.types.js +1 -1
- package/esm2015/lib/api/message.service.js +1 -1
- package/esm2015/lib/api/types/lr-graphql.types.js +10 -1
- package/esm2015/lib/items2/item2.gql.js +1 -22
- package/esm2015/lib/items2/item2.gql.private.js +23 -0
- package/esm2015/lib/items2/item2.service.js +3 -2
- package/esm2015/lib/items2/item2.types.js +1 -1
- package/esm2015/lib/trusted-parties/tp-assembly.types.js +1 -1
- package/esm2015/lib/trusted-parties/tp-password-reset.service.js +1 -1
- package/fesm2015/lifeready-core.js +32 -22
- package/fesm2015/lifeready-core.js.map +1 -1
- package/lib/api/key-exchange.types.d.ts +2 -2
- package/lib/api/message.service.d.ts +5 -4
- package/lib/api/types/lr-graphql.types.d.ts +14 -0
- package/lib/items2/item2.gql.d.ts +0 -18
- package/lib/items2/item2.gql.private.d.ts +19 -0
- package/lib/items2/item2.types.d.ts +5 -5
- package/lib/trusted-parties/tp-assembly.types.d.ts +3 -3
- package/lib/trusted-parties/tp-password-reset.service.d.ts +3 -3
- package/lifeready-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ export interface PlainInitiatorRootKeyCipher {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
export interface SharedContactCardInput {
|
|
22
|
-
plainCipherDataJson?:
|
|
23
|
-
plainSharedCipherDataJson?:
|
|
22
|
+
plainCipherDataJson?: JSONObject;
|
|
23
|
+
plainSharedCipherDataJson?: JSONObject;
|
|
24
24
|
sharedCipherKey?: object;
|
|
25
25
|
}
|
|
26
26
|
export interface PreparedPermissions {
|
|
@@ -3,6 +3,7 @@ import { EncryptionService } from '../cryptography/encryption.service';
|
|
|
3
3
|
import { KeyGraphService } from '../cryptography/key-graph.service';
|
|
4
4
|
import { KeyExchangeService } from './key-exchange.service';
|
|
5
5
|
import { LrApolloService } from './lr-apollo.service';
|
|
6
|
+
import { JSONObject } from './types';
|
|
6
7
|
export declare const SendMessageMutation: import("graphql").DocumentNode;
|
|
7
8
|
export declare const MessageQuery: import("graphql").DocumentNode;
|
|
8
9
|
export interface SendMessage {
|
|
@@ -13,8 +14,8 @@ export interface SendMessage {
|
|
|
13
14
|
export interface SendMessageInput {
|
|
14
15
|
username?: string;
|
|
15
16
|
userId?: string;
|
|
16
|
-
plainMessageJson?:
|
|
17
|
-
plainCipherMessageJson?:
|
|
17
|
+
plainMessageJson?: JSONObject;
|
|
18
|
+
plainCipherMessageJson?: JSONObject;
|
|
18
19
|
}
|
|
19
20
|
export interface Message {
|
|
20
21
|
id: string;
|
|
@@ -27,9 +28,9 @@ export interface Message {
|
|
|
27
28
|
username: string;
|
|
28
29
|
};
|
|
29
30
|
plainMessage: string;
|
|
30
|
-
plainMessageJson?:
|
|
31
|
+
plainMessageJson?: JSONObject;
|
|
31
32
|
signedCipherMessage: string;
|
|
32
|
-
plainSignedCipherMessageJson?:
|
|
33
|
+
plainSignedCipherMessageJson?: JSONObject;
|
|
33
34
|
senderSigPbk: {
|
|
34
35
|
id: string;
|
|
35
36
|
};
|
|
@@ -447,6 +447,18 @@ export declare enum ClaimApproverState {
|
|
|
447
447
|
APPROVED = "APPROVED",
|
|
448
448
|
REJECTED = "REJECTED"
|
|
449
449
|
}
|
|
450
|
+
export declare enum ScenarioLastClaimState {
|
|
451
|
+
CLAIMED = "CLAIMED",
|
|
452
|
+
APPROVED = "APPROVED",
|
|
453
|
+
REJECTED = "REJECTED",
|
|
454
|
+
EXPIRED = "EXPIRED",
|
|
455
|
+
CANCELLED = "CANCELLED",
|
|
456
|
+
RESET = "RESET"
|
|
457
|
+
}
|
|
458
|
+
export interface ScenarioLatestClaim {
|
|
459
|
+
state?: ScenarioLastClaimState;
|
|
460
|
+
created?: DateTime;
|
|
461
|
+
}
|
|
450
462
|
export interface ScenarioNode extends Node, TimeStamped {
|
|
451
463
|
subject?: UserNode;
|
|
452
464
|
subjectKey?: KeyNode;
|
|
@@ -459,6 +471,7 @@ export interface ScenarioNode extends Node, TimeStamped {
|
|
|
459
471
|
claims?: Connection<ScenarioClaimNode>;
|
|
460
472
|
claim?: ScenarioClaimNode;
|
|
461
473
|
assemblyState?: ScenarioAssemblyState;
|
|
474
|
+
latestClaim?: ScenarioLatestClaim;
|
|
462
475
|
}
|
|
463
476
|
export interface ScenarioClaimNode extends Node, TimeStamped {
|
|
464
477
|
claimant?: ScenarioClaimantNode;
|
|
@@ -521,6 +534,7 @@ export interface SharedScenarioNode extends Node, TimeStamped {
|
|
|
521
534
|
assembly?: SharedTpAssemblyNode;
|
|
522
535
|
sharedClaim?: SharedScenarioClaimNode;
|
|
523
536
|
assemblyState?: ScenarioAssemblyState;
|
|
537
|
+
latestClaim?: ScenarioLatestClaim;
|
|
524
538
|
}
|
|
525
539
|
export interface SharedScenarioClaimNode extends Node, TimeStamped {
|
|
526
540
|
state?: ClaimState;
|
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
import { DateTime, ID } from '../api/types';
|
|
2
|
-
export interface DirectoryKeyQuery {
|
|
3
|
-
directory: {
|
|
4
|
-
keyId: ID;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const DirectoryKeyQuery: import("../_common/ast").TypedDocumentNode<DirectoryKeyQuery>;
|
|
8
|
-
export interface FileKeyQuery {
|
|
9
|
-
file: {
|
|
10
|
-
keyId: ID;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare const FileKeyQuery: import("../_common/ast").TypedDocumentNode<FileKeyQuery>;
|
|
14
|
-
export interface FileStateKeyQuery {
|
|
15
|
-
fileState: {
|
|
16
|
-
keyId: ID;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export declare const FileStateKeyQuery: import("../_common/ast").TypedDocumentNode<FileStateKeyQuery>;
|
|
20
2
|
export interface CreateDirectoryMutation {
|
|
21
3
|
createDirectory: {
|
|
22
4
|
directory: {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ID } from '../api/types';
|
|
2
|
+
export interface DirectoryKeyQueryResult {
|
|
3
|
+
directory: {
|
|
4
|
+
keyId: ID;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export declare const DirectoryKeyQuery: import("../_common/ast").TypedDocumentNode<DirectoryKeyQueryResult>;
|
|
8
|
+
export interface FileKeyQueryResult {
|
|
9
|
+
file: {
|
|
10
|
+
keyId: ID;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare const FileKeyQuery: import("../_common/ast").TypedDocumentNode<FileKeyQueryResult>;
|
|
14
|
+
export interface FileStateKeyQueryResult {
|
|
15
|
+
fileState: {
|
|
16
|
+
keyId: ID;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export declare const FileStateKeyQuery: import("../_common/ast").TypedDocumentNode<FileStateKeyQueryResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkTypeField, LrRelayIdInput } from '../api/types';
|
|
1
|
+
import { JSONObject, LinkTypeField, LrRelayIdInput } from '../api/types';
|
|
2
2
|
export interface ParentDirectoryOptions {
|
|
3
3
|
directoryId: LrRelayIdInput;
|
|
4
4
|
wrappingKeyId?: LrRelayIdInput;
|
|
@@ -24,8 +24,8 @@ export interface DownloadFileContentOptions {
|
|
|
24
24
|
fileStateKeyId?: LrRelayIdInput;
|
|
25
25
|
}
|
|
26
26
|
export interface CommonDirectoryOptions {
|
|
27
|
-
plainMetaJson?:
|
|
28
|
-
cipherMetaClearJson?:
|
|
27
|
+
plainMetaJson?: JSONObject;
|
|
28
|
+
cipherMetaClearJson?: JSONObject;
|
|
29
29
|
}
|
|
30
30
|
export interface CreateDirectoryOptions extends CommonDirectoryOptions {
|
|
31
31
|
asRootDirectory?: boolean;
|
|
@@ -36,8 +36,8 @@ export interface UpdateDirectoryOptions extends CommonDirectoryOptions {
|
|
|
36
36
|
directoryKeyId?: LrRelayIdInput;
|
|
37
37
|
}
|
|
38
38
|
export interface CommonFileOptions {
|
|
39
|
-
plainMetaJson?:
|
|
40
|
-
cipherMetaClearJson?:
|
|
39
|
+
plainMetaJson?: JSONObject;
|
|
40
|
+
cipherMetaClearJson?: JSONObject;
|
|
41
41
|
file?: File;
|
|
42
42
|
upload?: (cipherFileContent: string) => Promise<string>;
|
|
43
43
|
}
|
|
@@ -14,7 +14,7 @@ export interface CreateTpSubAssemblyInput {
|
|
|
14
14
|
quorum: number;
|
|
15
15
|
singleReject: boolean;
|
|
16
16
|
approverTps: TpAssemblyApproverInput[];
|
|
17
|
-
subjectCipherDataClearJson?:
|
|
17
|
+
subjectCipherDataClearJson?: JSONObject;
|
|
18
18
|
}
|
|
19
19
|
export interface UpdateTpSubAssemblyInput extends CreateTpSubAssemblyInput {
|
|
20
20
|
id: string;
|
|
@@ -35,6 +35,6 @@ export interface UpdateTpAssemblyInput extends TpAssemblyInput {
|
|
|
35
35
|
export interface TpAssemblyApproverInput {
|
|
36
36
|
tpId: string;
|
|
37
37
|
wrappingKeyId?: string;
|
|
38
|
-
sharedCipherDataClearJson?:
|
|
39
|
-
sharedCipherApprovalDataClearJson?:
|
|
38
|
+
sharedCipherDataClearJson?: JSONObject;
|
|
39
|
+
sharedCipherApprovalDataClearJson?: JSONObject;
|
|
40
40
|
}
|
|
@@ -2,7 +2,7 @@ import { Injector, NgZone } from '@angular/core';
|
|
|
2
2
|
import { Key } from '../cryptography/cryptography.types';
|
|
3
3
|
import { TpPasswordResetAssemblyController } from './tp-password-reset.controller';
|
|
4
4
|
import { LrMutation, LrService } from '../api/lr-graphql';
|
|
5
|
-
import { TpNode } from '../api/types';
|
|
5
|
+
import { JSONObject, TpNode } from '../api/types';
|
|
6
6
|
import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from './tp-assembly.types';
|
|
7
7
|
export interface TpAssemblyApprovers {
|
|
8
8
|
id: string;
|
|
@@ -11,9 +11,9 @@ export interface TpAssemblyApprovers {
|
|
|
11
11
|
};
|
|
12
12
|
sharedKey: Key;
|
|
13
13
|
sharedCipherData?: string;
|
|
14
|
-
sharedCipherDataClearJson?:
|
|
14
|
+
sharedCipherDataClearJson?: JSONObject;
|
|
15
15
|
sharedCipherApprovalData?: string;
|
|
16
|
-
sharedCipherApprovalDataClearJson?:
|
|
16
|
+
sharedCipherApprovalDataClearJson?: JSONObject;
|
|
17
17
|
}
|
|
18
18
|
export interface TpSubAssembly {
|
|
19
19
|
id: string;
|