@lifeready/core 1.0.20 → 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.
Files changed (234) hide show
  1. package/bundles/lifeready-core.umd.js +9113 -9058
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +2 -2
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/run-outside-angular.js +2 -2
  6. package/esm2015/lib/_common/types.js +1 -1
  7. package/esm2015/lib/api/lr-apollo.service.js +3 -3
  8. package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +3 -3
  9. package/esm2015/lib/api/query-processor/common-processors.service.js +3 -3
  10. package/esm2015/lib/api/query-processor/query-processor.service.js +4 -4
  11. package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +6 -5
  12. package/esm2015/lib/api/types/lr-graphql.types.js +10 -1
  13. package/esm2015/lib/auth/auth.gql.js +1 -28
  14. package/esm2015/lib/auth/auth.types.js +1 -1
  15. package/esm2015/lib/auth/life-ready-auth.service.js +32 -31
  16. package/esm2015/lib/category/category.gql.js +1 -1
  17. package/esm2015/lib/category/category.service.js +6 -6
  18. package/esm2015/lib/contact-card/contact-card.gql.js +79 -0
  19. package/esm2015/lib/contact-card/contact-card.service.js +154 -0
  20. package/esm2015/lib/contact-card/contact-card2.gql.js +29 -0
  21. package/esm2015/lib/contact-card/contact-card2.service.js +103 -0
  22. package/esm2015/lib/encryption/encryption.service.js +189 -0
  23. package/esm2015/lib/file-upload/file-upload.service.js +74 -0
  24. package/esm2015/lib/file-upload/file-upload.types.js +1 -0
  25. package/esm2015/lib/{auth → idle}/idle.service.js +7 -7
  26. package/esm2015/lib/{auth → idle}/idle.types.js +1 -1
  27. package/esm2015/lib/items2/item2.gql.js +1 -22
  28. package/esm2015/lib/items2/item2.gql.private.js +23 -0
  29. package/esm2015/lib/items2/item2.service.js +21 -20
  30. package/esm2015/lib/items2/item2.types.js +1 -1
  31. package/esm2015/lib/key/key-factory.service.js +237 -0
  32. package/esm2015/lib/{cryptography → key}/key-graph.service.js +10 -10
  33. package/esm2015/lib/key/key-meta.service.js +200 -0
  34. package/esm2015/lib/key/key.service.js +124 -0
  35. package/esm2015/lib/key/key.types.js +11 -0
  36. package/esm2015/lib/key-exchange/key-exchange.gql.js +188 -0
  37. package/esm2015/lib/key-exchange/key-exchange.service.js +443 -0
  38. package/esm2015/lib/key-exchange/key-exchange.types.js +7 -0
  39. package/esm2015/lib/key-exchange/key-exchange2.gql.js +171 -0
  40. package/esm2015/lib/key-exchange/key-exchange2.service.js +500 -0
  41. package/esm2015/lib/lbop/lbop.service.js +355 -0
  42. package/esm2015/lib/life-ready.module.js +2 -27
  43. package/esm2015/lib/lock/lock.gql.js +40 -0
  44. package/esm2015/lib/lock/lock.service.js +64 -0
  45. package/esm2015/lib/message/message.gql.js +32 -0
  46. package/esm2015/lib/message/message.service.js +116 -0
  47. package/esm2015/lib/message/message.types.js +1 -0
  48. package/esm2015/lib/password/password.gql.js +28 -0
  49. package/esm2015/lib/password/password.service.js +315 -0
  50. package/esm2015/lib/persist/persist.service.js +180 -0
  51. package/esm2015/lib/profile/profile-details.service.js +214 -0
  52. package/esm2015/lib/profile/profile.gql.js +97 -0
  53. package/esm2015/lib/profile/profile.service.js +169 -0
  54. package/esm2015/lib/profile/profile.types.js +34 -0
  55. package/esm2015/lib/record/record-attachment.service.js +15 -15
  56. package/esm2015/lib/record/record.service.js +3 -3
  57. package/esm2015/lib/register/register.service.js +172 -0
  58. package/esm2015/lib/scenario/scenario.controller.js +2 -2
  59. package/esm2015/lib/scenario/{scenario.gql.private.js → scenario.private.gql.js} +1 -1
  60. package/esm2015/lib/scenario/scenario.service.js +9 -9
  61. package/esm2015/lib/scenario/scenario.types.js +1 -1
  62. package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +119 -0
  63. package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +41 -0
  64. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +117 -0
  65. package/esm2015/lib/slip39/slip39.service.js +169 -0
  66. package/esm2015/lib/time/time.service.js +146 -0
  67. package/esm2015/lib/tp-assembly/tp-assembly.js +365 -0
  68. package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +22 -0
  69. package/esm2015/lib/tp-assembly/tp-assembly.types.js +1 -0
  70. package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +100 -0
  71. package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +117 -0
  72. package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +4 -0
  73. package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +34 -0
  74. package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +74 -0
  75. package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +165 -0
  76. package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +54 -0
  77. package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +92 -0
  78. package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +1 -0
  79. package/esm2015/lib/trusted-party/trusted-party.gql.js +148 -0
  80. package/esm2015/lib/trusted-party/trusted-party.service.js +326 -0
  81. package/esm2015/lib/trusted-party/trusted-party.types.js +41 -0
  82. package/esm2015/lib/trusted-party/trusted-party2.gql.js +64 -0
  83. package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +25 -0
  84. package/esm2015/lib/trusted-party/trusted-party2.service.js +224 -0
  85. package/esm2015/lib/trusted-party/trusted-party2.types.js +1 -0
  86. package/esm2015/lib/two-factor/two-factor.service.js +74 -0
  87. package/esm2015/lib/user/user.gql.js +60 -0
  88. package/esm2015/lib/user/user.service.js +79 -0
  89. package/esm2015/lib/user/user.types.js +1 -0
  90. package/esm2015/lib/web-crypto/web-crypto.service.js +29 -0
  91. package/esm2015/lifeready-core.js +15 -13
  92. package/esm2015/public-api.js +49 -51
  93. package/fesm2015/lifeready-core.js +8449 -8421
  94. package/fesm2015/lifeready-core.js.map +1 -1
  95. package/lib/_common/types.d.ts +3 -1
  96. package/lib/api/lr-apollo.service.d.ts +1 -1
  97. package/lib/api/lr-graphql/lr-graphql.service.d.ts +1 -1
  98. package/lib/api/query-processor/common-processors.service.d.ts +1 -1
  99. package/lib/api/query-processor/query-processor.service.d.ts +1 -1
  100. package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +1 -1
  101. package/lib/api/types/lr-graphql.types.d.ts +25 -0
  102. package/lib/auth/auth.gql.d.ts +0 -3
  103. package/lib/auth/auth.types.d.ts +2 -2
  104. package/lib/auth/life-ready-auth.service.d.ts +12 -12
  105. package/lib/category/category.gql.d.ts +1 -1
  106. package/lib/category/category.service.d.ts +2 -2
  107. package/lib/{api → contact-card}/contact-card.service.d.ts +9 -9
  108. package/lib/contact-card/contact-card2.gql.d.ts +25 -0
  109. package/lib/{api → contact-card}/contact-card2.service.d.ts +11 -12
  110. package/lib/{cryptography → encryption}/encryption.service.d.ts +2 -2
  111. package/lib/{api/file.service.d.ts → file-upload/file-upload.service.d.ts} +3 -7
  112. package/lib/file-upload/file-upload.types.d.ts +5 -0
  113. package/lib/{auth → idle}/idle.service.d.ts +4 -4
  114. package/lib/items2/item2.gql.d.ts +0 -18
  115. package/lib/items2/item2.gql.private.d.ts +19 -0
  116. package/lib/items2/item2.service.d.ts +11 -11
  117. package/lib/items2/item2.types.d.ts +5 -5
  118. package/lib/{cryptography → key}/key-factory.service.d.ts +2 -2
  119. package/lib/{cryptography → key}/key-graph.service.d.ts +5 -5
  120. package/lib/{cryptography → key}/key-meta.service.d.ts +1 -1
  121. package/lib/{cryptography → key}/key.service.d.ts +2 -2
  122. package/lib/{cryptography/cryptography.types.d.ts → key/key.types.d.ts} +9 -13
  123. package/lib/{api → key-exchange}/key-exchange.service.d.ts +5 -5
  124. package/lib/{api → key-exchange}/key-exchange.types.d.ts +6 -6
  125. package/lib/{api → key-exchange}/key-exchange2.gql.d.ts +1 -1
  126. package/lib/{api → key-exchange}/key-exchange2.service.d.ts +71 -18
  127. package/lib/{auth → lbop}/lbop.service.d.ts +7 -7
  128. package/lib/{api → lock}/lock.gql.d.ts +1 -1
  129. package/lib/{api → lock}/lock.service.d.ts +1 -1
  130. package/lib/message/message.gql.d.ts +13 -0
  131. package/lib/message/message.service.d.ts +29 -0
  132. package/lib/message/message.types.d.ts +12 -0
  133. package/lib/password/password.gql.d.ts +3 -0
  134. package/lib/{auth → password}/password.service.d.ts +8 -8
  135. package/lib/{api → persist}/persist.service.d.ts +3 -3
  136. package/lib/{users → profile}/profile-details.service.d.ts +3 -3
  137. package/lib/{users → profile}/profile.gql.d.ts +2 -2
  138. package/lib/{users → profile}/profile.service.d.ts +6 -6
  139. package/lib/{users → profile}/profile.types.d.ts +1 -1
  140. package/lib/record/record-attachment.service.d.ts +6 -6
  141. package/lib/record/record.service.d.ts +1 -1
  142. package/lib/{auth → register}/register.service.d.ts +4 -4
  143. package/lib/scenario/scenario.controller.d.ts +1 -1
  144. package/lib/scenario/scenario.service.d.ts +2 -2
  145. package/lib/scenario/scenario.types.d.ts +1 -1
  146. package/lib/{api → shared-contact-card}/shared-contact-card.service.d.ts +9 -9
  147. package/lib/{api → shared-contact-card}/shared-contact-card2.gql.d.ts +1 -1
  148. package/lib/{api → shared-contact-card}/shared-contact-card2.service.d.ts +6 -6
  149. package/lib/{trusted-parties → tp-assembly}/tp-assembly.d.ts +7 -7
  150. package/lib/{trusted-parties → tp-assembly}/tp-assembly.types.d.ts +4 -4
  151. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-request.service.d.ts +4 -8
  152. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-user.service.d.ts +7 -13
  153. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.controller.d.ts +1 -1
  154. package/lib/tp-password-reset/tp-password-reset.gql.d.ts +63 -0
  155. package/lib/{trusted-parties/tp-password-reset.gql.d.ts → tp-password-reset/tp-password-reset.private.gql.d.ts} +1 -63
  156. package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +59 -0
  157. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.service.d.ts +5 -88
  158. package/lib/tp-password-reset/tp-password-reset.types.d.ts +40 -0
  159. package/lib/{trusted-parties → trusted-party}/trusted-party.service.d.ts +7 -7
  160. package/lib/{trusted-parties → trusted-party}/trusted-party.types.d.ts +2 -3
  161. package/lib/{trusted-parties → trusted-party}/trusted-party2.gql.d.ts +0 -22
  162. package/lib/trusted-party/trusted-party2.gql.private.d.ts +23 -0
  163. package/lib/{trusted-parties → trusted-party}/trusted-party2.service.d.ts +11 -35
  164. package/lib/trusted-party/trusted-party2.types.d.ts +12 -0
  165. package/lib/{users → user}/user.gql.d.ts +1 -1
  166. package/lib/{users → user}/user.types.d.ts +1 -1
  167. package/lifeready-core.d.ts +14 -12
  168. package/lifeready-core.metadata.json +1 -1
  169. package/package.json +1 -1
  170. package/public-api.d.ts +48 -50
  171. package/esm2015/lib/api/contact-card.gql.js +0 -79
  172. package/esm2015/lib/api/contact-card.service.js +0 -154
  173. package/esm2015/lib/api/contact-card2.gql.js +0 -60
  174. package/esm2015/lib/api/contact-card2.service.js +0 -103
  175. package/esm2015/lib/api/file.service.js +0 -74
  176. package/esm2015/lib/api/key-exchange.gql.js +0 -188
  177. package/esm2015/lib/api/key-exchange.service.js +0 -442
  178. package/esm2015/lib/api/key-exchange.types.js +0 -7
  179. package/esm2015/lib/api/key-exchange2.gql.js +0 -171
  180. package/esm2015/lib/api/key-exchange2.service.js +0 -480
  181. package/esm2015/lib/api/lock.gql.js +0 -40
  182. package/esm2015/lib/api/lock.service.js +0 -64
  183. package/esm2015/lib/api/message.service.js +0 -138
  184. package/esm2015/lib/api/persist.service.js +0 -181
  185. package/esm2015/lib/api/shared-contact-card.service.js +0 -119
  186. package/esm2015/lib/api/shared-contact-card2.gql.js +0 -41
  187. package/esm2015/lib/api/shared-contact-card2.service.js +0 -117
  188. package/esm2015/lib/api/time.service.js +0 -146
  189. package/esm2015/lib/auth/lbop.service.js +0 -355
  190. package/esm2015/lib/auth/password.service.js +0 -315
  191. package/esm2015/lib/auth/register.service.js +0 -172
  192. package/esm2015/lib/auth/two-factor.service.js +0 -74
  193. package/esm2015/lib/cryptography/cryptography.types.js +0 -11
  194. package/esm2015/lib/cryptography/encryption.service.js +0 -189
  195. package/esm2015/lib/cryptography/key-factory.service.js +0 -237
  196. package/esm2015/lib/cryptography/key-meta.service.js +0 -200
  197. package/esm2015/lib/cryptography/key.service.js +0 -124
  198. package/esm2015/lib/cryptography/slip39.service.js +0 -169
  199. package/esm2015/lib/cryptography/web-crypto.service.js +0 -29
  200. package/esm2015/lib/trusted-parties/tp-assembly.gql.private.js +0 -22
  201. package/esm2015/lib/trusted-parties/tp-assembly.js +0 -365
  202. package/esm2015/lib/trusted-parties/tp-assembly.types.js +0 -1
  203. package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +0 -113
  204. package/esm2015/lib/trusted-parties/tp-password-reset-user.service.js +0 -129
  205. package/esm2015/lib/trusted-parties/tp-password-reset.constants.js +0 -4
  206. package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +0 -34
  207. package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +0 -237
  208. package/esm2015/lib/trusted-parties/tp-password-reset.service.js +0 -95
  209. package/esm2015/lib/trusted-parties/trusted-party.gql.js +0 -148
  210. package/esm2015/lib/trusted-parties/trusted-party.service.js +0 -326
  211. package/esm2015/lib/trusted-parties/trusted-party.types.js +0 -41
  212. package/esm2015/lib/trusted-parties/trusted-party2.gql.js +0 -87
  213. package/esm2015/lib/trusted-parties/trusted-party2.service.js +0 -218
  214. package/esm2015/lib/users/profile-details.service.js +0 -214
  215. package/esm2015/lib/users/profile.gql.js +0 -97
  216. package/esm2015/lib/users/profile.service.js +0 -169
  217. package/esm2015/lib/users/profile.types.js +0 -34
  218. package/esm2015/lib/users/user.gql.js +0 -60
  219. package/esm2015/lib/users/user.service.js +0 -79
  220. package/esm2015/lib/users/user.types.js +0 -1
  221. package/lib/api/contact-card2.gql.d.ts +0 -34
  222. package/lib/api/message.service.d.ts +0 -58
  223. /package/lib/{api → contact-card}/contact-card.gql.d.ts +0 -0
  224. /package/lib/{auth → idle}/idle.types.d.ts +0 -0
  225. /package/lib/{api → key-exchange}/key-exchange.gql.d.ts +0 -0
  226. /package/lib/scenario/{scenario.gql.private.d.ts → scenario.private.gql.d.ts} +0 -0
  227. /package/lib/{cryptography → slip39}/slip39.service.d.ts +0 -0
  228. /package/lib/{api → time}/time.service.d.ts +0 -0
  229. /package/lib/{trusted-parties/tp-assembly.gql.private.d.ts → tp-assembly/tp-assembly.private.gql.d.ts} +0 -0
  230. /package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.constants.d.ts +0 -0
  231. /package/lib/{trusted-parties → trusted-party}/trusted-party.gql.d.ts +0 -0
  232. /package/lib/{auth → two-factor}/two-factor.service.d.ts +0 -0
  233. /package/lib/{users → user}/user.service.d.ts +0 -0
  234. /package/lib/{cryptography → web-crypto}/web-crypto.service.d.ts +0 -0
@@ -1,4 +1,6 @@
1
- import { HasKeyGraph } from '../cryptography/cryptography.types';
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 '../cryptography/key-graph.service';
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 '../../cryptography/key-graph.service';
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 '../../cryptography/key-graph.service';
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 '../../cryptography/key.service';
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 '../../cryptography/key-graph.service';
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 {
@@ -447,6 +447,19 @@ 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
+ claimAgainAfter?: DateTime;
462
+ }
450
463
  export interface ScenarioNode extends Node, TimeStamped {
451
464
  subject?: UserNode;
452
465
  subjectKey?: KeyNode;
@@ -459,6 +472,7 @@ export interface ScenarioNode extends Node, TimeStamped {
459
472
  claims?: Connection<ScenarioClaimNode>;
460
473
  claim?: ScenarioClaimNode;
461
474
  assemblyState?: ScenarioAssemblyState;
475
+ latestClaim?: ScenarioLatestClaim;
462
476
  }
463
477
  export interface ScenarioClaimNode extends Node, TimeStamped {
464
478
  claimant?: ScenarioClaimantNode;
@@ -521,6 +535,7 @@ export interface SharedScenarioNode extends Node, TimeStamped {
521
535
  assembly?: SharedTpAssemblyNode;
522
536
  sharedClaim?: SharedScenarioClaimNode;
523
537
  assemblyState?: ScenarioAssemblyState;
538
+ latestClaim?: ScenarioLatestClaim;
524
539
  }
525
540
  export interface SharedScenarioClaimNode extends Node, TimeStamped {
526
541
  state?: ClaimState;
@@ -555,3 +570,13 @@ export declare enum LinkTypeField {
555
570
  HARD = "HARD",
556
571
  SOFT = "SOFT"
557
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
+ }
@@ -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;
@@ -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 '../cryptography/cryptography.types';
4
+ import { PassIdpParams, PassKeyParams } from '../key/key.types';
5
5
  import { UserPlan } from '../plan/plan.types';
6
- import { CurrentUserKey, MainContactCard } from '../users/profile.types';
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 { IdleService } from './idle.service';
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 { PersistService } from '../api/persist.service';
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 { EncryptionService } from '../cryptography/encryption.service';
15
- import { Slip39Service } from '../cryptography/slip39.service';
16
- import { TpPasswordResetAssemblyController } from '../trusted-parties/tp-password-reset.controller';
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,4 +1,4 @@
1
- import { HasKeyGraph } from './../cryptography/cryptography.types';
1
+ import { HasKeyGraph } from '../key/key.types';
2
2
  import { HasEdges } from '../_common/types';
3
3
  export declare const DEFAULT_BREADCRUMB_DEPTH = 5;
4
4
  export declare const DEFAULT_DESCENDANTS_DEPTH = 5;
@@ -1,7 +1,7 @@
1
1
  import { LrApolloService } from '../api/lr-apollo.service';
2
- import { KeyMetaService } from '../cryptography/key-meta.service';
2
+ import { KeyMetaService } from '../key/key-meta.service';
3
3
  import { Category, NewCategory, UpdatedCategory, VaultCategory, VaultRecord, Vault } from './category.types';
4
- import { KeyGraphService } from '../cryptography/key-graph.service';
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 { Key } from '../cryptography/cryptography.types';
2
- import { EncryptionService } from '../cryptography/encryption.service';
3
- import { KeyGraphService } from '../cryptography/key-graph.service';
4
- import { KeyService } from '../cryptography/key.service';
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 { EncryptionService } from '../cryptography/encryption.service';
3
- import { KeyFactoryService } from '../cryptography/key-factory.service';
4
- import { KeyGraphService } from '../cryptography/key-graph.service';
5
- import { KeyMetaService } from '../cryptography/key-meta.service';
6
- import { KeyService } from '../cryptography/key.service';
7
- import { MainContactCardPlainFields } from '../users/profile.types';
8
- import { CreateContactCardMutation, DeleteContactCardMutation, UpdateContactCardMutation } from './contact-card2.gql';
9
- import { LrMutation } from './lr-graphql';
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<CreateContactCardMutation, {
37
+ createContactCard(input: CreateContactCardInput2): Promise<LrMutation<import("./contact-card2.gql").CreateContactCardMutationResult, {
39
38
  input: any;
40
39
  }>>;
41
- updateContactCard(input: UpdateContactCardInput2): Promise<LrMutation<UpdateContactCardMutation, {
40
+ updateContactCard(input: UpdateContactCardInput2): Promise<LrMutation<import("./contact-card2.gql").UpdateContactCardMutationResult, {
42
41
  input: any;
43
42
  }>>;
44
- deleteContactCard(id: string): LrMutation<DeleteContactCardMutation, {
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 './cryptography.types';
4
- import { TimeService } from '../api/time.service';
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
- export declare type FileContentContext = 'FILE_STATE';
5
- export interface UploadEncryptedFileOptions {
6
- encryptedContent: string;
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;
@@ -0,0 +1,5 @@
1
+ export declare type FileContentContext = 'FILE_STATE';
2
+ export interface UploadEncryptedFileOptions {
3
+ encryptedContent: string;
4
+ fileName?: string;
5
+ }
@@ -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 '../cryptography/key.service';
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,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,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 { LockService } from '../api/lock.service';
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 fileService;
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, fileService: FileService, keyService: KeyService, keyFactory: KeyFactoryService, keyGraph: KeyGraphService, lockService: LockService);
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("../cryptography/cryptography.types").Key>;
28
- getFileKey(fileId: LrRelayIdInput, fileKeyId?: LrRelayIdInput): Promise<import("../cryptography/cryptography.types").Key>;
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,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
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { JWK } from 'node-jose';
3
- import { LbopKeyParams, PassIdpParams, PassKeyParams, DeriveKeyResult, DerivePassIdpParams, DerivePassKeyParams, DeriveLbopKeyParams } from './cryptography.types';
4
- import { WebCryptoService } from './web-crypto.service';
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 { CurrentUserKey } from '../users/profile.types';
4
- import { Edge, Key, KeyGraphResponse, PassKey } from './cryptography.types';
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): Edge[];
25
- getPath(knownKeyId: string, keyId: string): Edge[];
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 './encryption.service';
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 interface PassKey {
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 NodeType {
42
+ export declare enum KeyGraphNodeType {
47
43
  Key = "key",
48
44
  PassKey = "passKey"
49
45
  }
50
- export interface Node {
51
- type: NodeType;
46
+ export interface KeyGraphNode {
47
+ type: KeyGraphNodeType;
52
48
  data: Key | PassKey;
53
49
  }
54
- export declare enum EdgeType {
50
+ export declare enum KeyGraphEdgeType {
55
51
  KeyLink = "keyLink",
56
52
  PassKeyLink = "passKeyLink"
57
53
  }
58
- export interface Edge {
59
- type: EdgeType;
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 '../cryptography/encryption.service';
3
- import { KeyService } from '../cryptography/key.service';
4
- import { UserService } from './../users/user.service';
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 { ContactCardName, TrustedPartyDetails } from '../users/profile.types';
5
- import { JSONObject, KeyExchangeMode, KeyExchangeState } from './types';
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;
@@ -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 {
@@ -1,5 +1,5 @@
1
1
  import { JWK } from 'node-jose';
2
- import { Connection, DateTime, ID, JSONObject, LrEmail, OtKeyCipherClearJson2 } from './types';
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;