@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.
@@ -19,8 +19,8 @@ export interface PlainInitiatorRootKeyCipher {
19
19
  };
20
20
  }
21
21
  export interface SharedContactCardInput {
22
- plainCipherDataJson?: any;
23
- plainSharedCipherDataJson?: any;
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?: any;
17
- plainCipherMessageJson?: any;
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?: any;
31
+ plainMessageJson?: JSONObject;
31
32
  signedCipherMessage: string;
32
- plainSignedCipherMessageJson?: any;
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?: any;
28
- cipherMetaClearJson?: any;
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?: any;
40
- cipherMetaClearJson?: any;
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?: any;
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?: any;
39
- sharedCipherApprovalDataClearJson?: any;
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?: any;
14
+ sharedCipherDataClearJson?: JSONObject;
15
15
  sharedCipherApprovalData?: string;
16
- sharedCipherApprovalDataClearJson?: any;
16
+ sharedCipherApprovalDataClearJson?: JSONObject;
17
17
  }
18
18
  export interface TpSubAssembly {
19
19
  id: string;