@lifeready/core 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/bundles/lifeready-core.umd.js +10612 -10527
  2. package/bundles/lifeready-core.umd.js.map +1 -1
  3. package/bundles/lifeready-core.umd.min.js +1 -15
  4. package/bundles/lifeready-core.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/ast.js +2 -1
  6. package/esm2015/lib/_common/deferred-promise.js +1 -1
  7. package/esm2015/lib/_common/exceptions.js +1 -1
  8. package/esm2015/lib/_common/queries.gql.js +1 -1
  9. package/esm2015/lib/_common/run-outside-angular.js +3 -2
  10. package/esm2015/lib/_common/types.js +2 -1
  11. package/esm2015/lib/_common/utils.js +2 -1
  12. package/esm2015/lib/api/lr-apollo.service.js +4 -3
  13. package/esm2015/lib/api/lr-graphql/index.js +1 -1
  14. package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +9 -8
  15. package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +5 -6
  16. package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +1 -1
  17. package/esm2015/lib/api/lr-graphql/lr-mutation.js +3 -3
  18. package/esm2015/lib/api/lr-graphql/lr.service.js +1 -1
  19. package/esm2015/lib/api/query-processor/common-processors.service.js +4 -3
  20. package/esm2015/lib/api/query-processor/index.js +1 -1
  21. package/esm2015/lib/api/query-processor/query-processor.service.js +5 -4
  22. package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +8 -7
  23. package/esm2015/lib/api/types/graphql.types.js +2 -1
  24. package/esm2015/lib/api/types/index.js +1 -1
  25. package/esm2015/lib/api/types/lr-graphql.types.js +1 -1
  26. package/esm2015/lib/auth/auth.config.js +1 -1
  27. package/esm2015/lib/auth/auth.gql.js +1 -28
  28. package/esm2015/lib/auth/auth.types.js +1 -1
  29. package/esm2015/lib/auth/life-ready-auth.service.js +36 -32
  30. package/esm2015/lib/category/category-meta.service.js +1 -1
  31. package/esm2015/lib/category/category.gql.js +3 -2
  32. package/esm2015/lib/category/category.service.js +9 -8
  33. package/esm2015/lib/category/category.types.js +1 -1
  34. package/esm2015/lib/contact-card/contact-card.gql.js +79 -0
  35. package/esm2015/lib/contact-card/contact-card.service.js +156 -0
  36. package/esm2015/lib/contact-card/contact-card2.gql.js +29 -0
  37. package/esm2015/lib/contact-card/contact-card2.service.js +103 -0
  38. package/esm2015/lib/encryption/encryption.service.js +190 -0
  39. package/esm2015/lib/file-upload/file-upload.service.js +74 -0
  40. package/esm2015/lib/file-upload/file-upload.types.js +2 -0
  41. package/esm2015/lib/idle/idle.service.js +168 -0
  42. package/esm2015/lib/idle/idle.types.js +7 -0
  43. package/esm2015/lib/item2/item2.gql.js +127 -0
  44. package/esm2015/lib/item2/item2.gql.private.js +23 -0
  45. package/esm2015/lib/item2/item2.service.js +519 -0
  46. package/esm2015/lib/item2/item2.types.js +2 -0
  47. package/esm2015/lib/key/key-factory.service.js +237 -0
  48. package/esm2015/lib/key/key-graph.service.js +300 -0
  49. package/esm2015/lib/key/key-meta.service.js +201 -0
  50. package/esm2015/lib/{cryptography → key}/key.service.js +4 -4
  51. package/esm2015/lib/key/key.types.js +11 -0
  52. package/esm2015/lib/key-exchange/key-exchange.gql.js +188 -0
  53. package/esm2015/lib/key-exchange/key-exchange.service.js +441 -0
  54. package/esm2015/lib/key-exchange/key-exchange.types.js +7 -0
  55. package/esm2015/lib/key-exchange/key-exchange2.gql.js +171 -0
  56. package/esm2015/lib/key-exchange/key-exchange2.service.js +500 -0
  57. package/esm2015/lib/lbop/lbop.service.js +357 -0
  58. package/esm2015/lib/life-ready.config.js +2 -1
  59. package/esm2015/lib/life-ready.module.js +2 -27
  60. package/esm2015/lib/lock/lock.gql.js +40 -0
  61. package/esm2015/lib/lock/lock.service.js +64 -0
  62. package/esm2015/lib/message/message.gql.js +32 -0
  63. package/esm2015/lib/message/message.service.js +118 -0
  64. package/esm2015/lib/message/message.types.js +2 -0
  65. package/esm2015/lib/notification/notification.gql.js +1 -1
  66. package/esm2015/lib/notification/notification.service.js +2 -2
  67. package/esm2015/lib/password/password.gql.js +28 -0
  68. package/esm2015/lib/password/password.service.js +316 -0
  69. package/esm2015/lib/persist/persist.service.js +181 -0
  70. package/esm2015/lib/plan/plan.gql.js +1 -1
  71. package/esm2015/lib/plan/plan.service.js +3 -2
  72. package/esm2015/lib/plan/plan.types.js +1 -1
  73. package/esm2015/lib/profile/profile-details.service.js +215 -0
  74. package/esm2015/lib/profile/profile.gql.js +98 -0
  75. package/esm2015/lib/profile/profile.service.js +170 -0
  76. package/esm2015/lib/profile/profile.types.js +34 -0
  77. package/esm2015/lib/record/record-attachment.service.js +16 -15
  78. package/esm2015/lib/record/record.gql.js +1 -1
  79. package/esm2015/lib/record/record.service.js +8 -8
  80. package/esm2015/lib/record/record.types.js +1 -1
  81. package/esm2015/lib/record-type/record-type.service.js +1 -1
  82. package/esm2015/lib/record-type/record-type.types.js +1 -1
  83. package/esm2015/lib/register/register.service.js +173 -0
  84. package/esm2015/lib/scenario/scenario.constants.js +1 -1
  85. package/esm2015/lib/scenario/scenario.controller.js +2 -2
  86. package/esm2015/lib/scenario/scenario.gql.js +1 -1
  87. package/esm2015/lib/scenario/scenario.private.gql.js +198 -0
  88. package/esm2015/lib/scenario/scenario.service.js +19 -17
  89. package/esm2015/lib/scenario/scenario.types.js +2 -1
  90. package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +119 -0
  91. package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +41 -0
  92. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +117 -0
  93. package/esm2015/lib/slip39/slip39.service.js +167 -0
  94. package/esm2015/lib/time/time.service.js +146 -0
  95. package/esm2015/lib/tp-assembly/tp-assembly.js +365 -0
  96. package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +22 -0
  97. package/esm2015/lib/tp-assembly/tp-assembly.types.js +2 -0
  98. package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +100 -0
  99. package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +118 -0
  100. package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +4 -0
  101. package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +34 -0
  102. package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +74 -0
  103. package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +165 -0
  104. package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +54 -0
  105. package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +92 -0
  106. package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +2 -0
  107. package/esm2015/lib/trusted-party/trusted-party.gql.js +148 -0
  108. package/esm2015/lib/trusted-party/trusted-party.service.js +327 -0
  109. package/esm2015/lib/trusted-party/trusted-party.types.js +41 -0
  110. package/esm2015/lib/trusted-party/trusted-party2.gql.js +64 -0
  111. package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +25 -0
  112. package/esm2015/lib/trusted-party/trusted-party2.service.js +224 -0
  113. package/esm2015/lib/trusted-party/trusted-party2.types.js +2 -0
  114. package/esm2015/lib/two-factor/two-factor.service.js +74 -0
  115. package/esm2015/lib/user/user.gql.js +60 -0
  116. package/esm2015/lib/user/user.service.js +80 -0
  117. package/esm2015/lib/user/user.types.js +2 -0
  118. package/esm2015/lib/web-crypto/web-crypto.service.js +29 -0
  119. package/esm2015/lifeready-core.js +15 -13
  120. package/esm2015/public-api.js +49 -51
  121. package/fesm2015/lifeready-core.js +8764 -8737
  122. package/fesm2015/lifeready-core.js.map +1 -1
  123. package/lib/_common/types.d.ts +3 -1
  124. package/lib/_common/utils.d.ts +2 -2
  125. package/lib/api/lr-apollo.service.d.ts +2 -2
  126. package/lib/api/lr-graphql/lr-graphql.service.d.ts +26 -8
  127. package/lib/api/lr-graphql/lr-merged-mutation.d.ts +22 -4
  128. package/lib/api/lr-graphql/lr-mutation.d.ts +1 -2
  129. package/lib/api/query-processor/common-processors.service.d.ts +1 -1
  130. package/lib/api/query-processor/query-processor.service.d.ts +1 -1
  131. package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +2 -2
  132. package/lib/api/types/lr-graphql.types.d.ts +14 -3
  133. package/lib/auth/auth.gql.d.ts +0 -3
  134. package/lib/auth/auth.types.d.ts +5 -5
  135. package/lib/auth/life-ready-auth.service.d.ts +13 -13
  136. package/lib/category/category.gql.d.ts +1 -1
  137. package/lib/category/category.service.d.ts +3 -3
  138. package/lib/{api → contact-card}/contact-card.service.d.ts +9 -9
  139. package/lib/contact-card/contact-card2.gql.d.ts +25 -0
  140. package/lib/contact-card/contact-card2.service.d.ts +64 -0
  141. package/lib/{cryptography → encryption}/encryption.service.d.ts +10 -9
  142. package/lib/{api/file.service.d.ts → file-upload/file-upload.service.d.ts} +5 -8
  143. package/lib/file-upload/file-upload.types.d.ts +5 -0
  144. package/lib/{auth → idle}/idle.service.d.ts +6 -6
  145. package/lib/{items2 → item2}/item2.gql.d.ts +16 -16
  146. package/lib/{items2 → item2}/item2.service.d.ts +34 -35
  147. package/lib/{cryptography → key}/key-factory.service.d.ts +4 -3
  148. package/lib/{cryptography → key}/key-graph.service.d.ts +6 -6
  149. package/lib/{cryptography → key}/key-meta.service.d.ts +1 -1
  150. package/lib/{cryptography → key}/key.service.d.ts +2 -2
  151. package/lib/{cryptography/cryptography.types.d.ts → key/key.types.d.ts} +13 -17
  152. package/lib/{api → key-exchange}/key-exchange.service.d.ts +5 -5
  153. package/lib/{api → key-exchange}/key-exchange.types.d.ts +4 -4
  154. package/lib/{api → key-exchange}/key-exchange2.gql.d.ts +1 -1
  155. package/lib/{api → key-exchange}/key-exchange2.service.d.ts +82 -29
  156. package/lib/{auth → lbop}/lbop.service.d.ts +7 -7
  157. package/lib/life-ready.config.d.ts +1 -1
  158. package/lib/{api → lock}/lock.gql.d.ts +1 -1
  159. package/lib/{api → lock}/lock.service.d.ts +1 -1
  160. package/lib/message/message.gql.d.ts +13 -0
  161. package/lib/message/message.service.d.ts +36 -0
  162. package/lib/message/message.types.d.ts +12 -0
  163. package/lib/notification/notification.service.d.ts +3 -2
  164. package/lib/password/password.gql.d.ts +3 -0
  165. package/lib/{auth → password}/password.service.d.ts +9 -9
  166. package/lib/{api → persist}/persist.service.d.ts +3 -3
  167. package/lib/plan/plan.service.d.ts +3 -2
  168. package/lib/plan/plan.types.d.ts +2 -1
  169. package/lib/{users → profile}/profile-details.service.d.ts +3 -3
  170. package/lib/{users → profile}/profile.gql.d.ts +2 -2
  171. package/lib/{users → profile}/profile.service.d.ts +6 -6
  172. package/lib/{users → profile}/profile.types.d.ts +3 -2
  173. package/lib/record/record-attachment.service.d.ts +6 -6
  174. package/lib/record/record.service.d.ts +3 -3
  175. package/lib/{auth → register}/register.service.d.ts +4 -4
  176. package/lib/scenario/scenario.controller.d.ts +1 -1
  177. package/lib/scenario/scenario.service.d.ts +105 -5
  178. package/lib/scenario/scenario.types.d.ts +1 -1
  179. package/lib/{api → shared-contact-card}/shared-contact-card.service.d.ts +9 -9
  180. package/lib/{api → shared-contact-card}/shared-contact-card2.gql.d.ts +1 -1
  181. package/lib/{api → shared-contact-card}/shared-contact-card2.service.d.ts +6 -6
  182. package/lib/{cryptography → slip39}/slip39.service.d.ts +0 -1
  183. package/lib/{trusted-parties → tp-assembly}/tp-assembly.d.ts +7 -7
  184. package/lib/{trusted-parties → tp-assembly}/tp-assembly.types.d.ts +3 -3
  185. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-request.service.d.ts +5 -9
  186. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-user.service.d.ts +7 -13
  187. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.controller.d.ts +1 -1
  188. package/lib/tp-password-reset/tp-password-reset.gql.d.ts +63 -0
  189. package/lib/{trusted-parties/tp-password-reset.gql.d.ts → tp-password-reset/tp-password-reset.private.gql.d.ts} +1 -63
  190. package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +59 -0
  191. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.service.d.ts +6 -89
  192. package/lib/tp-password-reset/tp-password-reset.types.d.ts +40 -0
  193. package/lib/{trusted-parties → trusted-party}/trusted-party.service.d.ts +7 -7
  194. package/lib/{trusted-parties → trusted-party}/trusted-party.types.d.ts +2 -3
  195. package/lib/{trusted-parties → trusted-party}/trusted-party2.gql.d.ts +0 -22
  196. package/lib/trusted-party/trusted-party2.gql.private.d.ts +23 -0
  197. package/lib/{trusted-parties → trusted-party}/trusted-party2.service.d.ts +11 -35
  198. package/lib/trusted-party/trusted-party2.types.d.ts +12 -0
  199. package/lib/{users → user}/user.gql.d.ts +1 -1
  200. package/lib/{users → user}/user.service.d.ts +1 -1
  201. package/lib/{users → user}/user.types.d.ts +1 -1
  202. package/lifeready-core.d.ts +14 -12
  203. package/lifeready-core.metadata.json +1 -1
  204. package/package.json +2 -2
  205. package/public-api.d.ts +48 -50
  206. package/esm2015/lib/api/contact-card.gql.js +0 -79
  207. package/esm2015/lib/api/contact-card.service.js +0 -154
  208. package/esm2015/lib/api/contact-card2.gql.js +0 -60
  209. package/esm2015/lib/api/contact-card2.service.js +0 -103
  210. package/esm2015/lib/api/file.service.js +0 -74
  211. package/esm2015/lib/api/key-exchange.gql.js +0 -188
  212. package/esm2015/lib/api/key-exchange.service.js +0 -442
  213. package/esm2015/lib/api/key-exchange.types.js +0 -7
  214. package/esm2015/lib/api/key-exchange2.gql.js +0 -171
  215. package/esm2015/lib/api/key-exchange2.service.js +0 -480
  216. package/esm2015/lib/api/lock.gql.js +0 -40
  217. package/esm2015/lib/api/lock.service.js +0 -64
  218. package/esm2015/lib/api/message.service.js +0 -138
  219. package/esm2015/lib/api/persist.service.js +0 -181
  220. package/esm2015/lib/api/shared-contact-card.service.js +0 -119
  221. package/esm2015/lib/api/shared-contact-card2.gql.js +0 -41
  222. package/esm2015/lib/api/shared-contact-card2.service.js +0 -117
  223. package/esm2015/lib/api/time.service.js +0 -146
  224. package/esm2015/lib/auth/idle.service.js +0 -168
  225. package/esm2015/lib/auth/idle.types.js +0 -7
  226. package/esm2015/lib/auth/lbop.service.js +0 -355
  227. package/esm2015/lib/auth/password.service.js +0 -315
  228. package/esm2015/lib/auth/register.service.js +0 -172
  229. package/esm2015/lib/auth/two-factor.service.js +0 -74
  230. package/esm2015/lib/cryptography/cryptography.types.js +0 -11
  231. package/esm2015/lib/cryptography/encryption.service.js +0 -189
  232. package/esm2015/lib/cryptography/key-factory.service.js +0 -237
  233. package/esm2015/lib/cryptography/key-graph.service.js +0 -299
  234. package/esm2015/lib/cryptography/key-meta.service.js +0 -200
  235. package/esm2015/lib/cryptography/slip39.service.js +0 -169
  236. package/esm2015/lib/cryptography/web-crypto.service.js +0 -29
  237. package/esm2015/lib/items2/item2.gql.js +0 -127
  238. package/esm2015/lib/items2/item2.gql.private.js +0 -23
  239. package/esm2015/lib/items2/item2.service.js +0 -516
  240. package/esm2015/lib/items2/item2.types.js +0 -1
  241. package/esm2015/lib/scenario/scenario.gql.private.js +0 -198
  242. package/esm2015/lib/trusted-parties/tp-assembly.gql.private.js +0 -22
  243. package/esm2015/lib/trusted-parties/tp-assembly.js +0 -365
  244. package/esm2015/lib/trusted-parties/tp-assembly.types.js +0 -1
  245. package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +0 -113
  246. package/esm2015/lib/trusted-parties/tp-password-reset-user.service.js +0 -129
  247. package/esm2015/lib/trusted-parties/tp-password-reset.constants.js +0 -4
  248. package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +0 -34
  249. package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +0 -237
  250. package/esm2015/lib/trusted-parties/tp-password-reset.service.js +0 -95
  251. package/esm2015/lib/trusted-parties/trusted-party.gql.js +0 -148
  252. package/esm2015/lib/trusted-parties/trusted-party.service.js +0 -326
  253. package/esm2015/lib/trusted-parties/trusted-party.types.js +0 -41
  254. package/esm2015/lib/trusted-parties/trusted-party2.gql.js +0 -87
  255. package/esm2015/lib/trusted-parties/trusted-party2.service.js +0 -218
  256. package/esm2015/lib/users/profile-details.service.js +0 -214
  257. package/esm2015/lib/users/profile.gql.js +0 -97
  258. package/esm2015/lib/users/profile.service.js +0 -169
  259. package/esm2015/lib/users/profile.types.js +0 -34
  260. package/esm2015/lib/users/user.gql.js +0 -60
  261. package/esm2015/lib/users/user.service.js +0 -79
  262. package/esm2015/lib/users/user.types.js +0 -1
  263. package/lib/api/contact-card2.gql.d.ts +0 -34
  264. package/lib/api/contact-card2.service.d.ts +0 -50
  265. package/lib/api/message.service.d.ts +0 -59
  266. /package/lib/{api → contact-card}/contact-card.gql.d.ts +0 -0
  267. /package/lib/{auth → idle}/idle.types.d.ts +0 -0
  268. /package/lib/{items2 → item2}/item2.gql.private.d.ts +0 -0
  269. /package/lib/{items2 → item2}/item2.types.d.ts +0 -0
  270. /package/lib/{api → key-exchange}/key-exchange.gql.d.ts +0 -0
  271. /package/lib/scenario/{scenario.gql.private.d.ts → scenario.private.gql.d.ts} +0 -0
  272. /package/lib/{api → time}/time.service.d.ts +0 -0
  273. /package/lib/{trusted-parties/tp-assembly.gql.private.d.ts → tp-assembly/tp-assembly.private.gql.d.ts} +0 -0
  274. /package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.constants.d.ts +0 -0
  275. /package/lib/{trusted-parties → trusted-party}/trusted-party.gql.d.ts +0 -0
  276. /package/lib/{auth → two-factor}/two-factor.service.d.ts +0 -0
  277. /package/lib/{cryptography → web-crypto}/web-crypto.service.d.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  import { GenericScalar, ID } from '../api/types';
2
- import { TpClaimState, TpClaimApproverState } from '../api/types/lr-graphql.types';
3
2
  import { DateTime, JSONObject } from '../api/types/graphql.types';
3
+ import { TpClaimApproverState, TpClaimState } from '../api/types/lr-graphql.types';
4
4
  export interface SharedTpPasswordResetFragmentResult {
5
5
  id: ID;
6
6
  tp: {
@@ -69,46 +69,6 @@ export interface SharedTpPasswordResetQueryResult {
69
69
  sharedTpPasswordReset: SharedTpPasswordResetFragmentResult;
70
70
  }
71
71
  export declare const SharedTpPasswordResetQuery: import("../_common/ast").TypedDocumentNode<SharedTpPasswordResetQueryResult>;
72
- export interface CancelTpPasswordResetRequestMutationResult {
73
- cancelTpPasswordResetRequest: {
74
- id: ID;
75
- };
76
- }
77
- export declare const CancelTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CancelTpPasswordResetRequestMutationResult>;
78
- export interface CreateTpAssemblyKeyChallengeMutationResult {
79
- createTpAssemblyKeyChallenge: {
80
- challenge: any;
81
- };
82
- }
83
- export declare const CreateTpAssemblyKeyChallengeMutation: import("../_common/ast").TypedDocumentNode<CreateTpAssemblyKeyChallengeMutationResult>;
84
- export interface PreCompleteTpPasswordResetRequestMutationResult {
85
- preCompleteTpPasswordResetRequest: {
86
- idpPassword: string;
87
- };
88
- }
89
- export declare const PreCompleteTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<PreCompleteTpPasswordResetRequestMutationResult>;
90
- export interface CompleteTpPasswordResetRequestMutationResult {
91
- completeTpPasswordResetRequest: {
92
- id: ID;
93
- };
94
- }
95
- export declare const CompleteTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CompleteTpPasswordResetRequestMutationResult>;
96
- export interface ApproveTpPasswordResetRequestMutationResult {
97
- approveTpPasswordResetRequest: {
98
- claimApprover: {
99
- id: ID;
100
- };
101
- };
102
- }
103
- export declare const ApproveTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<ApproveTpPasswordResetRequestMutationResult>;
104
- export interface RejectTpPasswordResetRequestMutationResult {
105
- rejectTpPasswordResetRequest: {
106
- claimApprover: {
107
- id: ID;
108
- };
109
- };
110
- }
111
- export declare const RejectTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<RejectTpPasswordResetRequestMutationResult>;
112
72
  export interface TpPasswordResetUserQueryResult {
113
73
  tpPasswordResetUser: {
114
74
  username: string;
@@ -200,25 +160,3 @@ export interface TpPasswordResetQueryResult {
200
160
  };
201
161
  }
202
162
  export declare const TpPasswordResetQuery: import("../_common/ast").TypedDocumentNode<TpPasswordResetQueryResult>;
203
- export interface CreateTpPasswordResetMutationResult {
204
- createTpPasswordReset: {
205
- tpPasswordReset: {
206
- id: ID;
207
- };
208
- };
209
- }
210
- export declare const CreateTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<CreateTpPasswordResetMutationResult>;
211
- export interface DeleteTpPasswordResetMutationResult {
212
- deleteTpPasswordReset: {
213
- id: ID;
214
- };
215
- }
216
- export declare const DeleteTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<DeleteTpPasswordResetMutationResult>;
217
- export interface UpdateTpPasswordResetMutationResult {
218
- updateTpPasswordReset: {
219
- tpPasswordReset: {
220
- id: ID;
221
- };
222
- };
223
- }
224
- export declare const UpdateTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<UpdateTpPasswordResetMutationResult>;
@@ -0,0 +1,59 @@
1
+ import { Injector, NgZone } from '@angular/core';
2
+ import { LrService } from '../api/lr-graphql';
3
+ export declare class TpPasswordResetPrivateService extends LrService {
4
+ private ngZone;
5
+ private injector;
6
+ constructor(ngZone: NgZone, injector: Injector);
7
+ getReset(): Promise<{
8
+ id: string;
9
+ applied: boolean;
10
+ assembly: {
11
+ singleReject: boolean;
12
+ quorum: number;
13
+ canMeetQuorum: boolean;
14
+ subjectCipherData: string;
15
+ subjectCipherDataClearJson: any;
16
+ subjectKey: {
17
+ id: string;
18
+ };
19
+ assemblyKey: {
20
+ id: string;
21
+ };
22
+ assemblyCipherData: string;
23
+ subAssemblies: {
24
+ edges: {
25
+ node: {
26
+ id: string;
27
+ singleReject: boolean;
28
+ quorum: number;
29
+ subjectCipherData: string;
30
+ subjectCipherDataClearJson: any;
31
+ subjectKey: {
32
+ id: string;
33
+ };
34
+ approvers: {
35
+ edges: {
36
+ node: {
37
+ id: string;
38
+ tp: {
39
+ id: string;
40
+ };
41
+ sharedKey: {
42
+ id: string;
43
+ };
44
+ sharedCipherData: string;
45
+ };
46
+ }[];
47
+ };
48
+ };
49
+ }[];
50
+ };
51
+ };
52
+ }>;
53
+ getSharedResets(): Promise<{
54
+ edges: {
55
+ node: import("./tp-password-reset.private.gql").SharedTpPasswordResetFragmentResult;
56
+ }[];
57
+ }>;
58
+ getSharedReset(id: any): Promise<import("./tp-password-reset.private.gql").SharedTpPasswordResetFragmentResult>;
59
+ }
@@ -1,99 +1,16 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
- import { Key } from '../cryptography/cryptography.types';
3
- import { TpPasswordResetAssemblyController } from './tp-password-reset.controller';
4
2
  import { LrMutation, LrService } from '../api/lr-graphql';
5
- import { JSONObject, TpNode } from '../api/types';
6
- import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from './tp-assembly.types';
7
- export interface TpAssemblyApprovers {
8
- id: string;
9
- tp: {
10
- id: string;
11
- };
12
- sharedKey: Key;
13
- sharedCipherData?: string;
14
- sharedCipherDataClearJson?: JSONObject;
15
- sharedCipherApprovalData?: string;
16
- sharedCipherApprovalDataClearJson?: JSONObject;
17
- }
18
- export interface TpSubAssembly {
19
- id: string;
20
- singleReject: boolean;
21
- quorum: number;
22
- subjectCipherData: string;
23
- plainSubjectCipherData: any;
24
- approvers: TpAssemblyApprovers[];
25
- }
26
- export interface TpAssembly {
27
- singleReject: boolean;
28
- quorum: number;
29
- subjectKey: Key;
30
- assemblyKey: Key;
31
- assemblyCipherData: string;
32
- plainAssemblyCipherData: any;
33
- subAssemblies: TpSubAssembly[];
34
- }
35
- export interface TpPasswordReset {
36
- id: string;
37
- assembly: TpAssembly;
38
- applied: boolean;
39
- }
40
- export interface RequestResetResult {
41
- id: string;
42
- associate_reset_user_token: string;
43
- reset_username: string;
44
- }
3
+ import { TpNode } from '../api/types';
4
+ import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../tp-assembly/tp-assembly.types';
5
+ import { TpPasswordResetAssemblyController } from './tp-password-reset.controller';
6
+ import { TpPasswordResetPrivateService } from './tp-password-reset.private.service';
45
7
  export declare class TpPasswordResetService extends LrService {
46
8
  private ngZone;
47
9
  private injector;
10
+ private privateService;
48
11
  private assemblyController;
49
12
  slip39Passphrase: string;
50
- constructor(ngZone: NgZone, injector: Injector, assemblyController: TpPasswordResetAssemblyController);
51
- getReset(): Promise<{
52
- id: string;
53
- applied: boolean;
54
- assembly: {
55
- singleReject: boolean;
56
- quorum: number;
57
- canMeetQuorum: boolean;
58
- subjectCipherData: string;
59
- subjectCipherDataClearJson: any;
60
- subjectKey: {
61
- id: string;
62
- };
63
- assemblyKey: {
64
- id: string;
65
- };
66
- assemblyCipherData: string;
67
- subAssemblies: {
68
- edges: {
69
- node: {
70
- id: string;
71
- singleReject: boolean;
72
- quorum: number;
73
- subjectCipherData: string;
74
- subjectCipherDataClearJson: any;
75
- subjectKey: {
76
- id: string;
77
- };
78
- approvers: {
79
- edges: {
80
- node: {
81
- id: string;
82
- tp: {
83
- id: string;
84
- };
85
- sharedKey: {
86
- id: string;
87
- };
88
- sharedCipherData: string;
89
- };
90
- }[];
91
- };
92
- };
93
- }[];
94
- };
95
- };
96
- }>;
13
+ constructor(ngZone: NgZone, injector: Injector, privateService: TpPasswordResetPrivateService, assemblyController: TpPasswordResetAssemblyController);
97
14
  cancelResetRequest(): Promise<import("./tp-password-reset.gql").CancelTpPasswordResetRequestMutationResult>;
98
15
  cancelResetRequestMutation(): LrMutation<import("./tp-password-reset.gql").CancelTpPasswordResetRequestMutationResult, Record<string, any>>;
99
16
  deleteReset(): Promise<import("./tp-password-reset.gql").DeleteTpPasswordResetMutationResult>;
@@ -0,0 +1,40 @@
1
+ import { JSONObject } from '../api/types';
2
+ import { Key } from '../key/key.types';
3
+ export interface TpAssemblyApprovers {
4
+ id: string;
5
+ tp: {
6
+ id: string;
7
+ };
8
+ sharedKey: Key;
9
+ sharedCipherData?: string;
10
+ sharedCipherDataClearJson?: JSONObject;
11
+ sharedCipherApprovalData?: string;
12
+ sharedCipherApprovalDataClearJson?: JSONObject;
13
+ }
14
+ export interface TpSubAssembly {
15
+ id: string;
16
+ singleReject: boolean;
17
+ quorum: number;
18
+ subjectCipherData: string;
19
+ plainSubjectCipherData: JSONObject;
20
+ approvers: TpAssemblyApprovers[];
21
+ }
22
+ export interface TpAssembly {
23
+ singleReject: boolean;
24
+ quorum: number;
25
+ subjectKey: Key;
26
+ assemblyKey: Key;
27
+ assemblyCipherData: string;
28
+ plainAssemblyCipherData: JSONObject;
29
+ subAssemblies: TpSubAssembly[];
30
+ }
31
+ export interface TpPasswordReset {
32
+ id: string;
33
+ assembly: TpAssembly;
34
+ applied: boolean;
35
+ }
36
+ export interface RequestResetResult {
37
+ id: string;
38
+ associate_reset_user_token: string;
39
+ reset_username: string;
40
+ }
@@ -1,15 +1,15 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
- import { KeyExchangeService } from '../api/key-exchange.service';
3
2
  import { LrApolloService } from '../api/lr-apollo.service';
4
- import { SharedContactCardService } from '../api/shared-contact-card.service';
5
3
  import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
6
4
  import { AccessLevel } from '../category/category.types';
7
- import { EncryptionService } from '../cryptography/encryption.service';
8
- import { KeyGraphService } from '../cryptography/key-graph.service';
9
- import { KeyService } from '../cryptography/key.service';
10
- import { UserService } from '../users/user.service';
5
+ import { EncryptionService } from '../encryption/encryption.service';
6
+ import { KeyExchangeService } from '../key-exchange/key-exchange.service';
7
+ import { KeyFactoryService } from '../key/key-factory.service';
8
+ import { KeyGraphService } from '../key/key-graph.service';
9
+ import { KeyService } from '../key/key.service';
10
+ import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
11
+ import { UserService } from '../user/user.service';
11
12
  import { AcceptTrustedPartyInvite, ConfirmTrustedPartyInvite, FoundTrustedParty, InviteTrustedParty, TrustedParties, TrustedParty, TrustedPartyInvite, TrustedPartyRole, TrustedPartyRoleType } from './trusted-party.types';
12
- import { KeyFactoryService } from '../cryptography/key-factory.service';
13
13
  export declare class TrustedPartyService {
14
14
  private http;
15
15
  private lrApollo;
@@ -1,7 +1,6 @@
1
- import { DecryptedOtk, PreparedPermissions, UserSharedKey } from '../api/key-exchange.types';
2
- import { KeyExchangeMessage } from './../api/key-exchange.types';
1
+ import { DecryptedOtk, KeyExchangeMessage, PreparedPermissions, UserSharedKey } from '../key-exchange/key-exchange.types';
2
+ import { TrustedPartyDetails } from '../profile/profile.types';
3
3
  import { AccessLevel } from './../category/category.types';
4
- import { TrustedPartyDetails } from './../users/profile.types';
5
4
  export declare class TrustedPartyRole {
6
5
  id: string;
7
6
  name: string;
@@ -37,28 +37,6 @@ export interface UnshareFileMutation {
37
37
  };
38
38
  }
39
39
  export declare const UnshareFileMutation: import("../_common/ast").TypedDocumentNode<UnshareFileMutation>;
40
- export interface TpCurrentUserSharedKeyQuery {
41
- tp: {
42
- currentUserSharedKey: {
43
- userSharedKey: {
44
- sharedKey: {
45
- id: ID;
46
- };
47
- mkSharedKey: {
48
- id: ID;
49
- };
50
- mkPxk: {
51
- id: ID;
52
- };
53
- mkReshareRequestCipher: string;
54
- mkReshareRequestSent: boolean;
55
- mkReshareResponseCipher: string;
56
- mkReshareResponseSent: boolean;
57
- };
58
- };
59
- };
60
- }
61
- export declare const TpCurrentUserSharedKeyQuery: import("../_common/ast").TypedDocumentNode<TpCurrentUserSharedKeyQuery>;
62
40
  export interface RequestTpMkReshareMutation {
63
41
  requestTpMkReshare: {
64
42
  id: ID;
@@ -0,0 +1,23 @@
1
+ import { ID } from '../api/types';
2
+ export interface TpCurrentUserSharedKeyQuery {
3
+ tp: {
4
+ currentUserSharedKey: {
5
+ userSharedKey: {
6
+ sharedKey: {
7
+ id: ID;
8
+ };
9
+ mkSharedKey: {
10
+ id: ID;
11
+ };
12
+ mkPxk: {
13
+ id: ID;
14
+ };
15
+ mkReshareRequestCipher: string;
16
+ mkReshareRequestSent: boolean;
17
+ mkReshareResponseCipher: string;
18
+ mkReshareResponseSent: boolean;
19
+ };
20
+ };
21
+ };
22
+ }
23
+ export declare const TpCurrentUserSharedKeyQuery: import("../_common/ast").TypedDocumentNode<TpCurrentUserSharedKeyQuery>;
@@ -1,23 +1,13 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
- import { Item2Service } from '../items2/item2.service';
3
2
  import { LrMutation, LrService } from '../api/lr-graphql';
4
- import { AccessRoleChoice, LrRelayIdInput } from '../api/types';
5
- import { EncryptionService } from '../cryptography/encryption.service';
6
- import { KeyFactoryService } from '../cryptography/key-factory.service';
7
- import { KeyGraphService } from '../cryptography/key-graph.service';
8
- import { KeyService } from '../cryptography/key.service';
3
+ import { LrRelayIdInput } from '../api/types';
4
+ import { EncryptionService } from '../encryption/encryption.service';
5
+ import { Item2Service } from '../item2/item2.service';
6
+ import { KeyFactoryService } from '../key/key-factory.service';
7
+ import { KeyGraphService } from '../key/key-graph.service';
8
+ import { KeyService } from '../key/key.service';
9
9
  import { CompleteTpMkReshareMutation, DeleteTpMutation, RequestTpMkReshareMutation, RespondTpMkReshareMutation, ShareDirectoryMutation, UnshareDirectoryMutation } from './trusted-party2.gql';
10
- export interface ShareItemOptions {
11
- itemId: LrRelayIdInput;
12
- itemKeyId?: LrRelayIdInput;
13
- tpId: LrRelayIdInput;
14
- tpSharedKeyId?: LrRelayIdInput;
15
- accessRole: AccessRoleChoice;
16
- }
17
- export interface UnshareItemOptions {
18
- itemId: string;
19
- tpId: string;
20
- }
10
+ import { ShareItemOptions, UnshareItemOptions } from './trusted-party2.types';
21
11
  export declare class TrustedParty2Service extends LrService {
22
12
  private ngZone;
23
13
  private injector;
@@ -38,26 +28,11 @@ export declare class TrustedParty2Service extends LrService {
38
28
  id: string;
39
29
  };
40
30
  }>;
41
- getTpCurrentUserSharedKey(tpId: LrRelayIdInput): Promise<{
42
- sharedKey: {
43
- id: string;
44
- };
45
- mkSharedKey: {
46
- id: string;
47
- };
48
- mkPxk: {
49
- id: string;
50
- };
51
- mkReshareRequestCipher: string;
52
- mkReshareRequestSent: boolean;
53
- mkReshareResponseCipher: string;
54
- mkReshareResponseSent: boolean;
55
- }>;
56
31
  shareDirectory(options: ShareItemOptions): Promise<LrMutation<ShareDirectoryMutation, {
57
32
  input: {
58
33
  id: string;
59
34
  tpId: string;
60
- accessRole: AccessRoleChoice;
35
+ accessRole: import("../api/types").AccessRoleChoice;
61
36
  keyId: string;
62
37
  wrappingKeyId: string;
63
38
  wrappedKey: string;
@@ -67,7 +42,7 @@ export declare class TrustedParty2Service extends LrService {
67
42
  input: {
68
43
  id: string;
69
44
  tpId: string;
70
- accessRole: AccessRoleChoice;
45
+ accessRole: import("../api/types").AccessRoleChoice;
71
46
  keyId: string;
72
47
  wrappingKeyId: string;
73
48
  wrappedKey: string;
@@ -86,7 +61,6 @@ export declare class TrustedParty2Service extends LrService {
86
61
  tpId: string;
87
62
  };
88
63
  }>>;
89
- private unshareItem;
90
64
  requestMkReshare(tpId: LrRelayIdInput): Promise<LrMutation<RequestTpMkReshareMutation, {
91
65
  input: {
92
66
  tpId: string;
@@ -112,4 +86,6 @@ export declare class TrustedParty2Service extends LrService {
112
86
  mkWrappedMkSharedKey: string;
113
87
  };
114
88
  }>>;
89
+ private getTpCurrentUserSharedKey;
90
+ private unshareItem;
115
91
  }
@@ -0,0 +1,12 @@
1
+ import { AccessRoleChoice, LrRelayIdInput } from '../api/types';
2
+ export interface ShareItemOptions {
3
+ itemId: LrRelayIdInput;
4
+ itemKeyId?: LrRelayIdInput;
5
+ tpId: LrRelayIdInput;
6
+ tpSharedKeyId?: LrRelayIdInput;
7
+ accessRole: AccessRoleChoice;
8
+ }
9
+ export interface UnshareItemOptions {
10
+ itemId: string;
11
+ tpId: string;
12
+ }
@@ -1,5 +1,5 @@
1
1
  import { User } from './user.types';
2
- import { HasKeyGraph } from '../cryptography/cryptography.types';
2
+ import { HasKeyGraph } from '../key/key.types';
3
3
  export interface UserQueryType extends HasKeyGraph {
4
4
  user: User;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { User, GetUserInput } from './user.types';
2
1
  import { LrApolloService } from '../api/lr-apollo.service';
3
2
  import { UserDeleteNode } from '../api/types';
3
+ import { GetUserInput, User } from './user.types';
4
4
  export declare class UserService {
5
5
  private lrApollo;
6
6
  constructor(lrApollo: LrApolloService);
@@ -1,4 +1,4 @@
1
- import { Key } from '../cryptography/cryptography.types';
1
+ import { Key } from '../key/key.types';
2
2
  export interface GetUserInput {
3
3
  email?: string;
4
4
  username?: string;
@@ -3,17 +3,19 @@
3
3
  */
4
4
  export * from './public-api';
5
5
  export { RunOutsideAngular as ɵj } from './lib/_common/run-outside-angular';
6
- export { LrGraphQLService as ɵh, LrService as ɵp } from './lib/api/lr-graphql';
6
+ export { LrGraphQLService as ɵh, LrService as ɵn } from './lib/api/lr-graphql';
7
7
  export { TpPasswordResetProcessorService as ɵi } from './lib/api/query-processor/tp-password-reset-processor.service';
8
- export { SharedContactCardFields as ɵn, SharedContactCardService as ɵo } from './lib/api/shared-contact-card.service';
9
- export { TimeService as ɵe } from './lib/api/time.service';
10
- export { EncryptionService as ɵd } from './lib/cryptography/encryption.service';
11
- export { KeyFactoryService as ɵa } from './lib/cryptography/key-factory.service';
12
- export { KeyGraphService as ɵf } from './lib/cryptography/key-graph.service';
13
- export { KeyMetaService as ɵg } from './lib/cryptography/key-meta.service';
14
- export { KeyService as ɵc } from './lib/cryptography/key.service';
15
- export { Slip39Service as ɵk } from './lib/cryptography/slip39.service';
16
- export { WebCryptoService as ɵb } from './lib/cryptography/web-crypto.service';
8
+ export { EncryptionService as ɵb } from './lib/encryption/encryption.service';
9
+ export { KeyFactoryService as ɵe } from './lib/key/key-factory.service';
10
+ export { KeyGraphService as ɵa } from './lib/key/key-graph.service';
11
+ export { KeyMetaService as ɵg } from './lib/key/key-meta.service';
12
+ export { KeyService as ɵd } from './lib/key/key.service';
17
13
  export { ScenarioAssemblyController as ɵq } from './lib/scenario/scenario.controller';
18
- export { TpAssemblyController as ɵm } from './lib/trusted-parties/tp-assembly';
19
- export { TpPasswordResetAssemblyController as ɵl } from './lib/trusted-parties/tp-password-reset.controller';
14
+ export { SharedContactCardService as ɵo } from './lib/shared-contact-card/shared-contact-card.service';
15
+ export { Slip39Service as ɵk } from './lib/slip39/slip39.service';
16
+ export { TimeService as ɵc } from './lib/time/time.service';
17
+ export { TpAssemblyController as ɵm } from './lib/tp-assembly/tp-assembly';
18
+ export { TpPasswordResetAssemblyController as ɵl } from './lib/tp-password-reset/tp-password-reset.controller';
19
+ export { TpPasswordResetPrivateService as ɵr } from './lib/tp-password-reset/tp-password-reset.private.service';
20
+ export { TrustedPartyService as ɵp } from './lib/trusted-party/trusted-party.service';
21
+ export { WebCryptoService as ɵf } from './lib/web-crypto/web-crypto.service';