@lifeready/core 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/bundles/lifeready-core.umd.js +9745 -9700
  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 +1 -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.service.js +20 -20
  28. package/esm2015/lib/key/key-factory.service.js +237 -0
  29. package/esm2015/lib/{cryptography → key}/key-graph.service.js +10 -10
  30. package/esm2015/lib/key/key-meta.service.js +200 -0
  31. package/esm2015/lib/key/key.service.js +124 -0
  32. package/esm2015/lib/key/key.types.js +11 -0
  33. package/esm2015/lib/key-exchange/key-exchange.gql.js +188 -0
  34. package/esm2015/lib/key-exchange/key-exchange.service.js +443 -0
  35. package/esm2015/lib/key-exchange/key-exchange.types.js +7 -0
  36. package/esm2015/lib/key-exchange/key-exchange2.gql.js +171 -0
  37. package/esm2015/lib/key-exchange/key-exchange2.service.js +500 -0
  38. package/esm2015/lib/lbop/lbop.service.js +355 -0
  39. package/esm2015/lib/life-ready.module.js +2 -27
  40. package/esm2015/lib/lock/lock.gql.js +40 -0
  41. package/esm2015/lib/lock/lock.service.js +64 -0
  42. package/esm2015/lib/message/message.gql.js +32 -0
  43. package/esm2015/lib/message/message.service.js +116 -0
  44. package/esm2015/lib/message/message.types.js +1 -0
  45. package/esm2015/lib/password/password.gql.js +28 -0
  46. package/esm2015/lib/password/password.service.js +315 -0
  47. package/esm2015/lib/persist/persist.service.js +180 -0
  48. package/esm2015/lib/profile/profile-details.service.js +214 -0
  49. package/esm2015/lib/profile/profile.gql.js +97 -0
  50. package/esm2015/lib/profile/profile.service.js +169 -0
  51. package/esm2015/lib/profile/profile.types.js +34 -0
  52. package/esm2015/lib/record/record-attachment.service.js +15 -15
  53. package/esm2015/lib/record/record.service.js +3 -3
  54. package/esm2015/lib/register/register.service.js +172 -0
  55. package/esm2015/lib/scenario/scenario.controller.js +2 -2
  56. package/esm2015/lib/scenario/{scenario.gql.private.js → scenario.private.gql.js} +1 -1
  57. package/esm2015/lib/scenario/scenario.service.js +9 -9
  58. package/esm2015/lib/scenario/scenario.types.js +1 -1
  59. package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +119 -0
  60. package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +41 -0
  61. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +117 -0
  62. package/esm2015/lib/slip39/slip39.service.js +169 -0
  63. package/esm2015/lib/time/time.service.js +146 -0
  64. package/esm2015/lib/tp-assembly/tp-assembly.js +365 -0
  65. package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +22 -0
  66. package/esm2015/lib/tp-assembly/tp-assembly.types.js +1 -0
  67. package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +100 -0
  68. package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +117 -0
  69. package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +4 -0
  70. package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +34 -0
  71. package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +74 -0
  72. package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +165 -0
  73. package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +54 -0
  74. package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +92 -0
  75. package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +1 -0
  76. package/esm2015/lib/trusted-party/trusted-party.gql.js +148 -0
  77. package/esm2015/lib/trusted-party/trusted-party.service.js +326 -0
  78. package/esm2015/lib/trusted-party/trusted-party.types.js +41 -0
  79. package/esm2015/lib/trusted-party/trusted-party2.gql.js +64 -0
  80. package/esm2015/lib/trusted-party/trusted-party2.gql.private.js +25 -0
  81. package/esm2015/lib/trusted-party/trusted-party2.service.js +224 -0
  82. package/esm2015/lib/trusted-party/trusted-party2.types.js +1 -0
  83. package/esm2015/lib/two-factor/two-factor.service.js +74 -0
  84. package/esm2015/lib/user/user.gql.js +60 -0
  85. package/esm2015/lib/user/user.service.js +79 -0
  86. package/esm2015/lib/user/user.types.js +1 -0
  87. package/esm2015/lib/web-crypto/web-crypto.service.js +29 -0
  88. package/esm2015/lifeready-core.js +15 -13
  89. package/esm2015/public-api.js +49 -51
  90. package/fesm2015/lifeready-core.js +9232 -9214
  91. package/fesm2015/lifeready-core.js.map +1 -1
  92. package/lib/_common/types.d.ts +3 -1
  93. package/lib/api/lr-apollo.service.d.ts +1 -1
  94. package/lib/api/lr-graphql/lr-graphql.service.d.ts +1 -1
  95. package/lib/api/query-processor/common-processors.service.d.ts +1 -1
  96. package/lib/api/query-processor/query-processor.service.d.ts +1 -1
  97. package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +1 -1
  98. package/lib/api/types/lr-graphql.types.d.ts +11 -0
  99. package/lib/auth/auth.gql.d.ts +0 -3
  100. package/lib/auth/auth.types.d.ts +2 -2
  101. package/lib/auth/life-ready-auth.service.d.ts +12 -12
  102. package/lib/category/category.gql.d.ts +1 -1
  103. package/lib/category/category.service.d.ts +2 -2
  104. package/lib/{api → contact-card}/contact-card.service.d.ts +9 -9
  105. package/lib/contact-card/contact-card2.gql.d.ts +25 -0
  106. package/lib/{api → contact-card}/contact-card2.service.d.ts +11 -12
  107. package/lib/{cryptography → encryption}/encryption.service.d.ts +2 -2
  108. package/lib/{api/file.service.d.ts → file-upload/file-upload.service.d.ts} +3 -7
  109. package/lib/file-upload/file-upload.types.d.ts +5 -0
  110. package/lib/{auth → idle}/idle.service.d.ts +4 -4
  111. package/lib/items2/item2.service.d.ts +11 -11
  112. package/lib/{cryptography → key}/key-factory.service.d.ts +2 -2
  113. package/lib/{cryptography → key}/key-graph.service.d.ts +5 -5
  114. package/lib/{cryptography → key}/key-meta.service.d.ts +1 -1
  115. package/lib/{cryptography → key}/key.service.d.ts +2 -2
  116. package/lib/{cryptography/cryptography.types.d.ts → key/key.types.d.ts} +9 -13
  117. package/lib/{api → key-exchange}/key-exchange.service.d.ts +5 -5
  118. package/lib/{api → key-exchange}/key-exchange.types.d.ts +4 -4
  119. package/lib/{api → key-exchange}/key-exchange2.gql.d.ts +1 -1
  120. package/lib/{api → key-exchange}/key-exchange2.service.d.ts +71 -18
  121. package/lib/{auth → lbop}/lbop.service.d.ts +7 -7
  122. package/lib/{api → lock}/lock.gql.d.ts +1 -1
  123. package/lib/{api → lock}/lock.service.d.ts +1 -1
  124. package/lib/message/message.gql.d.ts +13 -0
  125. package/lib/message/message.service.d.ts +29 -0
  126. package/lib/message/message.types.d.ts +12 -0
  127. package/lib/password/password.gql.d.ts +3 -0
  128. package/lib/{auth → password}/password.service.d.ts +8 -8
  129. package/lib/{api → persist}/persist.service.d.ts +3 -3
  130. package/lib/{users → profile}/profile-details.service.d.ts +3 -3
  131. package/lib/{users → profile}/profile.gql.d.ts +2 -2
  132. package/lib/{users → profile}/profile.service.d.ts +6 -6
  133. package/lib/{users → profile}/profile.types.d.ts +1 -1
  134. package/lib/record/record-attachment.service.d.ts +6 -6
  135. package/lib/record/record.service.d.ts +1 -1
  136. package/lib/{auth → register}/register.service.d.ts +4 -4
  137. package/lib/scenario/scenario.controller.d.ts +1 -1
  138. package/lib/scenario/scenario.service.d.ts +2 -2
  139. package/lib/scenario/scenario.types.d.ts +1 -1
  140. package/lib/{api → shared-contact-card}/shared-contact-card.service.d.ts +9 -9
  141. package/lib/{api → shared-contact-card}/shared-contact-card2.gql.d.ts +1 -1
  142. package/lib/{api → shared-contact-card}/shared-contact-card2.service.d.ts +6 -6
  143. package/lib/{trusted-parties → tp-assembly}/tp-assembly.d.ts +7 -7
  144. package/lib/{trusted-parties → tp-assembly}/tp-assembly.types.d.ts +1 -1
  145. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-request.service.d.ts +4 -8
  146. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset-user.service.d.ts +7 -13
  147. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.controller.d.ts +1 -1
  148. package/lib/tp-password-reset/tp-password-reset.gql.d.ts +63 -0
  149. package/lib/{trusted-parties/tp-password-reset.gql.d.ts → tp-password-reset/tp-password-reset.private.gql.d.ts} +1 -63
  150. package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +59 -0
  151. package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.service.d.ts +6 -89
  152. package/lib/tp-password-reset/tp-password-reset.types.d.ts +40 -0
  153. package/lib/{trusted-parties → trusted-party}/trusted-party.service.d.ts +7 -7
  154. package/lib/{trusted-parties → trusted-party}/trusted-party.types.d.ts +2 -3
  155. package/lib/{trusted-parties → trusted-party}/trusted-party2.gql.d.ts +0 -22
  156. package/lib/trusted-party/trusted-party2.gql.private.d.ts +23 -0
  157. package/lib/{trusted-parties → trusted-party}/trusted-party2.service.d.ts +11 -35
  158. package/lib/trusted-party/trusted-party2.types.d.ts +12 -0
  159. package/lib/{users → user}/user.gql.d.ts +1 -1
  160. package/lib/{users → user}/user.types.d.ts +1 -1
  161. package/lifeready-core.d.ts +14 -12
  162. package/lifeready-core.metadata.json +1 -1
  163. package/package.json +1 -1
  164. package/public-api.d.ts +48 -50
  165. package/esm2015/lib/api/contact-card.gql.js +0 -79
  166. package/esm2015/lib/api/contact-card.service.js +0 -154
  167. package/esm2015/lib/api/contact-card2.gql.js +0 -60
  168. package/esm2015/lib/api/contact-card2.service.js +0 -103
  169. package/esm2015/lib/api/file.service.js +0 -74
  170. package/esm2015/lib/api/key-exchange.gql.js +0 -188
  171. package/esm2015/lib/api/key-exchange.service.js +0 -442
  172. package/esm2015/lib/api/key-exchange.types.js +0 -7
  173. package/esm2015/lib/api/key-exchange2.gql.js +0 -171
  174. package/esm2015/lib/api/key-exchange2.service.js +0 -480
  175. package/esm2015/lib/api/lock.gql.js +0 -40
  176. package/esm2015/lib/api/lock.service.js +0 -64
  177. package/esm2015/lib/api/message.service.js +0 -138
  178. package/esm2015/lib/api/persist.service.js +0 -181
  179. package/esm2015/lib/api/shared-contact-card.service.js +0 -119
  180. package/esm2015/lib/api/shared-contact-card2.gql.js +0 -41
  181. package/esm2015/lib/api/shared-contact-card2.service.js +0 -117
  182. package/esm2015/lib/api/time.service.js +0 -146
  183. package/esm2015/lib/auth/lbop.service.js +0 -355
  184. package/esm2015/lib/auth/password.service.js +0 -315
  185. package/esm2015/lib/auth/register.service.js +0 -172
  186. package/esm2015/lib/auth/two-factor.service.js +0 -74
  187. package/esm2015/lib/cryptography/cryptography.types.js +0 -11
  188. package/esm2015/lib/cryptography/encryption.service.js +0 -189
  189. package/esm2015/lib/cryptography/key-factory.service.js +0 -237
  190. package/esm2015/lib/cryptography/key-meta.service.js +0 -200
  191. package/esm2015/lib/cryptography/key.service.js +0 -124
  192. package/esm2015/lib/cryptography/slip39.service.js +0 -169
  193. package/esm2015/lib/cryptography/web-crypto.service.js +0 -29
  194. package/esm2015/lib/trusted-parties/tp-assembly.gql.private.js +0 -22
  195. package/esm2015/lib/trusted-parties/tp-assembly.js +0 -365
  196. package/esm2015/lib/trusted-parties/tp-assembly.types.js +0 -1
  197. package/esm2015/lib/trusted-parties/tp-password-reset-request.service.js +0 -113
  198. package/esm2015/lib/trusted-parties/tp-password-reset-user.service.js +0 -129
  199. package/esm2015/lib/trusted-parties/tp-password-reset.constants.js +0 -4
  200. package/esm2015/lib/trusted-parties/tp-password-reset.controller.js +0 -34
  201. package/esm2015/lib/trusted-parties/tp-password-reset.gql.js +0 -237
  202. package/esm2015/lib/trusted-parties/tp-password-reset.service.js +0 -95
  203. package/esm2015/lib/trusted-parties/trusted-party.gql.js +0 -148
  204. package/esm2015/lib/trusted-parties/trusted-party.service.js +0 -326
  205. package/esm2015/lib/trusted-parties/trusted-party.types.js +0 -41
  206. package/esm2015/lib/trusted-parties/trusted-party2.gql.js +0 -87
  207. package/esm2015/lib/trusted-parties/trusted-party2.service.js +0 -218
  208. package/esm2015/lib/users/profile-details.service.js +0 -214
  209. package/esm2015/lib/users/profile.gql.js +0 -97
  210. package/esm2015/lib/users/profile.service.js +0 -169
  211. package/esm2015/lib/users/profile.types.js +0 -34
  212. package/esm2015/lib/users/user.gql.js +0 -60
  213. package/esm2015/lib/users/user.service.js +0 -79
  214. package/esm2015/lib/users/user.types.js +0 -1
  215. package/lib/api/contact-card2.gql.d.ts +0 -34
  216. package/lib/api/message.service.d.ts +0 -59
  217. /package/lib/{api → contact-card}/contact-card.gql.d.ts +0 -0
  218. /package/lib/{auth → idle}/idle.types.d.ts +0 -0
  219. /package/lib/{api → key-exchange}/key-exchange.gql.d.ts +0 -0
  220. /package/lib/scenario/{scenario.gql.private.d.ts → scenario.private.gql.d.ts} +0 -0
  221. /package/lib/{cryptography → slip39}/slip39.service.d.ts +0 -0
  222. /package/lib/{api → time}/time.service.d.ts +0 -0
  223. /package/lib/{trusted-parties/tp-assembly.gql.private.d.ts → tp-assembly/tp-assembly.private.gql.d.ts} +0 -0
  224. /package/lib/{trusted-parties → tp-password-reset}/tp-password-reset.constants.d.ts +0 -0
  225. /package/lib/{trusted-parties → trusted-party}/trusted-party.gql.d.ts +0 -0
  226. /package/lib/{auth → two-factor}/two-factor.service.d.ts +0 -0
  227. /package/lib/{users → user}/user.service.d.ts +0 -0
  228. /package/lib/{cryptography → web-crypto}/web-crypto.service.d.ts +0 -0
@@ -1,14 +1,14 @@
1
- import { LrApolloService } from '../api/lr-apollo.service';
2
1
  import { HttpClient } from '@angular/common/http';
3
2
  import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
4
3
  import { JWK } from 'node-jose';
5
- import { EncryptionService } from '../cryptography/encryption.service';
6
- import { KeyGraphService } from '../cryptography/key-graph.service';
7
- import { KeyService } from '../cryptography/key.service';
4
+ import { LrApolloService } from '../api/lr-apollo.service';
5
+ import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
6
+ import { EncryptionService } from '../encryption/encryption.service';
7
+ import { KeyFactoryService as KFS } from '../key/key-factory.service';
8
+ import { KeyGraphService } from '../key/key-graph.service';
9
+ import { KeyService } from '../key/key.service';
8
10
  import { LifeReadyConfig } from '../life-ready.config';
9
- import { LifeReadyAuthService } from './life-ready-auth.service';
10
- import { PasswordService } from './password.service';
11
- import { KeyFactoryService as KFS } from '../cryptography/key-factory.service';
11
+ import { PasswordService } from '../password/password.service';
12
12
  export interface SetPasswordParams {
13
13
  lbopId: string;
14
14
  newPassword: string;
@@ -1,4 +1,4 @@
1
- import { DateTime, LockState, UUID } from './types';
1
+ import { DateTime, LockState, UUID } from '../api/types';
2
2
  export interface LockFragmentResult {
3
3
  created: DateTime;
4
4
  modified: DateTime;
@@ -1,5 +1,5 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
- import { LrMutation, LrService } from './lr-graphql';
2
+ import { LrMutation, LrService } from '../api/lr-graphql';
3
3
  export declare class LockService extends LrService {
4
4
  private ngZone;
5
5
  private injector;
@@ -0,0 +1,13 @@
1
+ import { ID, MessageNode } from '../api/types';
2
+ export interface SendMessageMutationResult {
3
+ sendMessage: {
4
+ message: {
5
+ id: ID;
6
+ };
7
+ };
8
+ }
9
+ export declare const SendMessageMutation: import("../_common/ast").TypedDocumentNode<SendMessageMutationResult>;
10
+ export interface MessageQueryResult {
11
+ message: MessageNode;
12
+ }
13
+ export declare const MessageQuery: import("../_common/ast").TypedDocumentNode<MessageQueryResult>;
@@ -0,0 +1,29 @@
1
+ import { Injector, NgZone } from '@angular/core';
2
+ import { JWK } from 'node-jose';
3
+ import { LrMutation, LrService } from '../api/lr-graphql';
4
+ import { MessageNode } from '../api/types';
5
+ import { EncryptionService } from '../encryption/encryption.service';
6
+ import { KeyExchangeService } from '../key-exchange/key-exchange.service';
7
+ import { KeyGraphService } from '../key/key-graph.service';
8
+ import { SendMessageInput } from './message.types';
9
+ export declare class MessageService extends LrService {
10
+ private ngZone;
11
+ private injector;
12
+ private keyGraph;
13
+ private encryptionService;
14
+ private keyExchangeService;
15
+ private readonly encrypt;
16
+ private readonly decrypt;
17
+ private readonly sign;
18
+ private readonly verify;
19
+ constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, encryptionService: EncryptionService, keyExchangeService: KeyExchangeService);
20
+ sendMessage(input: SendMessageInput): Promise<import("./message.gql").SendMessageMutationResult>;
21
+ sendMessageMutation({ username, userId, plainMessageJson, plainCipherMessageJson, }: SendMessageInput): Promise<LrMutation<import("./message.gql").SendMessageMutationResult, {
22
+ input: any;
23
+ }>>;
24
+ decryptMessage(message: MessageNode, options: {
25
+ sharedKey: JWK.Key;
26
+ senderSigPbk: JWK.Key;
27
+ }): Promise<void>;
28
+ getMessage(id: string): Promise<MessageNode>;
29
+ }
@@ -0,0 +1,12 @@
1
+ import { JWK } from 'node-jose';
2
+ import { JSONObject } from '../api/types';
3
+ export interface SendMessageInput {
4
+ username?: string;
5
+ userId?: string;
6
+ plainMessageJson?: JSONObject;
7
+ plainCipherMessageJson?: JSONObject;
8
+ }
9
+ export interface DecryptMessageOptions {
10
+ sharedKey: JWK.Key;
11
+ senderSigPbk: JWK.Key;
12
+ }
@@ -0,0 +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;
@@ -1,16 +1,16 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
3
+ import { Duration } from 'moment';
3
4
  import { JWK } from 'node-jose';
4
- import { ProfileService } from '../users/profile.service';
5
- import { EncryptionService } from '../cryptography/encryption.service';
6
- import { KeyGraphService } from '../cryptography/key-graph.service';
5
+ import { PassKeyBundle } from '../auth/auth.types';
6
+ import { EncryptionService } from '../encryption/encryption.service';
7
+ import { IdleService } from '../idle/idle.service';
8
+ import { KeyFactoryService as KFS } from '../key/key-factory.service';
9
+ import { KeyGraphService } from '../key/key-graph.service';
7
10
  import { LifeReadyConfig } from '../life-ready.config';
11
+ import { ProfileService } from '../profile/profile.service';
12
+ import { WebCryptoService } from '../web-crypto/web-crypto.service';
8
13
  import { LrApolloService } from './../api/lr-apollo.service';
9
- import { PassKeyBundle } from './auth.types';
10
- import { WebCryptoService } from '../cryptography/web-crypto.service';
11
- import { Duration } from 'moment';
12
- import { IdleService } from '../auth/idle.service';
13
- import { KeyFactoryService as KFS } from '../cryptography/key-factory.service';
14
14
  export interface PasswordChangeConfig {
15
15
  maxAuthAgeSeconds: number;
16
16
  authTime: string | Date;
@@ -1,8 +1,8 @@
1
- import { JWK } from 'node-jose';
2
1
  import { Injector } from '@angular/core';
3
2
  import { CookieService } from 'ngx-cookie-service';
4
- import { EncryptionService } from '../cryptography/encryption.service';
5
- import { KeyFactoryService as KFS } from '../cryptography/key-factory.service';
3
+ import { JWK } from 'node-jose';
4
+ import { EncryptionService } from '../encryption/encryption.service';
5
+ import { KeyFactoryService as KFS } from '../key/key-factory.service';
6
6
  export declare class PersistService {
7
7
  private keyFactory;
8
8
  private cookieService;
@@ -1,8 +1,8 @@
1
- import { SharedContactCardService } from '../api/shared-contact-card.service';
1
+ import { SharedContactCardService } from '../shared-contact-card/shared-contact-card.service';
2
2
  import { CurrentUser } from '../auth/auth.types';
3
3
  import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
4
- import { TrustedPartyService } from '../trusted-parties/trusted-party.service';
5
- import { SharedTrustedPartyDetails } from '../trusted-parties/trusted-party.types';
4
+ import { TrustedPartyService } from '../trusted-party/trusted-party.service';
5
+ import { SharedTrustedPartyDetails } from '../trusted-party/trusted-party.types';
6
6
  import { ProfileService } from './profile.service';
7
7
  import { MainContactCardFields, TrustedPartyDetails } from './profile.types';
8
8
  export declare class ProfileDetailsService {
@@ -1,6 +1,6 @@
1
+ import { HasKeyGraph } from '../key/key.types';
1
2
  import { HasEdges } from './../_common/types';
2
- import { HasKeyGraph } from './../cryptography/cryptography.types';
3
- import { ApiCurrentUser, ApiContactCard } from './profile.types';
3
+ import { ApiContactCard, ApiCurrentUser } from './profile.types';
4
4
  export interface CurrentUserQueryType extends HasKeyGraph {
5
5
  currentUser: ApiCurrentUser;
6
6
  contactCards: HasEdges<ApiContactCard>;
@@ -1,13 +1,13 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { LrApolloService } from '../api/lr-apollo.service';
3
+ import { ContactCard } from '../contact-card/contact-card.service';
4
+ import { EncryptionService } from '../encryption/encryption.service';
5
+ import { KeyGraphService } from '../key/key-graph.service';
6
+ import { KeyMetaService } from '../key/key-meta.service';
7
+ import { KeyService } from '../key/key.service';
3
8
  import { LifeReadyConfig } from '../life-ready.config';
4
- import { ApiCurrentUser, PassIdpApiResult, MainContactCard, ApiContactCard, MainContactCardFields } from './profile.types';
5
- import { KeyMetaService } from '../cryptography/key-meta.service';
6
- import { KeyService } from '../cryptography/key.service';
7
- import { EncryptionService } from '../cryptography/encryption.service';
8
- import { ContactCard } from '../api/contact-card.service';
9
9
  import { UserPlan } from '../plan/plan.types';
10
- import { KeyGraphService } from '../cryptography/key-graph.service';
10
+ import { ApiContactCard, ApiCurrentUser, MainContactCard, MainContactCardFields, PassIdpApiResult } from './profile.types';
11
11
  export declare class ProfileService {
12
12
  private config;
13
13
  private http;
@@ -1,5 +1,5 @@
1
1
  import { UserDeleteNode } from '../api/types';
2
- import { PassIdpParams, PassKey } from '../cryptography/cryptography.types';
2
+ import { PassIdpParams, PassKey } from '../key/key.types';
3
3
  export declare class CurrentUserKey {
4
4
  passKey?: PassKey;
5
5
  masterKey?: {
@@ -1,14 +1,14 @@
1
- import { NewOrUpdatedAttachment } from './record.types';
2
1
  import { LrApolloService } from '../api/lr-apollo.service';
3
- import { KeyMetaService } from '../cryptography/key-meta.service';
4
- import { FileService } from '../api/file.service';
5
- import { KeyGraphService } from '../cryptography/key-graph.service';
2
+ import { FileUploadService } from '../file-upload/file-upload.service';
3
+ import { KeyGraphService } from '../key/key-graph.service';
4
+ import { KeyMetaService } from '../key/key-meta.service';
5
+ import { NewOrUpdatedAttachment } from './record.types';
6
6
  export declare class RecordAttachmentService {
7
- private fileService;
7
+ private fileUploadService;
8
8
  private lrApollo;
9
9
  private keyMetaService;
10
10
  private keyGraph;
11
- constructor(fileService: FileService, lrApollo: LrApolloService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService);
11
+ constructor(fileUploadService: FileUploadService, lrApollo: LrApolloService, keyMetaService: KeyMetaService, keyGraph: KeyGraphService);
12
12
  downloadAttachment(fileStateNodeId: string, keyId: string): Promise<any>;
13
13
  uploadAttachments(recordId: string, attachments: NewOrUpdatedAttachment[]): Promise<string[]>;
14
14
  private addAttachment;
@@ -1,6 +1,6 @@
1
1
  import { RecordAttachmentService } from './record-attachment.service';
2
2
  import { LrApolloService } from '../api/lr-apollo.service';
3
- import { KeyMetaService } from '../cryptography/key-meta.service';
3
+ import { KeyMetaService } from '../key/key-meta.service';
4
4
  import { LrRecord, NewRecord, UpdatedRecord } from './record.types';
5
5
  import { CategoryService } from '../category/category.service';
6
6
  export declare class RecordService {
@@ -1,10 +1,10 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
3
- import { EncryptionService } from '../cryptography/encryption.service';
4
- import { KeyFactoryService } from '../cryptography/key-factory.service';
3
+ import { RegisterResult } from '../auth/auth.types';
4
+ import { EncryptionService } from '../encryption/encryption.service';
5
+ import { KeyFactoryService } from '../key/key-factory.service';
5
6
  import { LifeReadyConfig } from '../life-ready.config';
6
- import { PasswordService } from './password.service';
7
- import { RegisterResult } from './auth.types';
7
+ import { PasswordService } from '../password/password.service';
8
8
  export declare class RegisterService {
9
9
  private config;
10
10
  private auth;
@@ -1,6 +1,6 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { TpNode } from '../api/types';
3
- import { TpAssemblyController } from '../trusted-parties/tp-assembly';
3
+ import { TpAssemblyController } from '../tp-assembly/tp-assembly';
4
4
  export declare class ScenarioAssemblyController extends TpAssemblyController {
5
5
  private ngZone;
6
6
  private injector;
@@ -1,10 +1,10 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMergedMutation, LrMutation, LrService } from '../api/lr-graphql';
3
- import { KeyGraphService } from '../cryptography/key-graph.service';
3
+ import { EncryptionService } from '../encryption/encryption.service';
4
4
  import { Item2Service } from '../items2/item2.service';
5
+ import { KeyGraphService } from '../key/key-graph.service';
5
6
  import { ScenarioAssemblyController } from './scenario.controller';
6
7
  import { CreateScenarioOptions, ResetScenarioOptions, UpdateScenarioOptions } from './scenario.types';
7
- import { EncryptionService } from '../cryptography/encryption.service';
8
8
  export declare function throwClaimIdMismatch(): void;
9
9
  export declare function throwClaimNotApproved(): void;
10
10
  export declare class ScenarioService extends LrService {
@@ -1,5 +1,5 @@
1
1
  import { AccessRoleChoice, JSONObject } from '../api/types';
2
- import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../trusted-parties/tp-assembly.types';
2
+ import { CreateTpAssemblyInput, UpdateTpAssemblyInput } from '../tp-assembly/tp-assembly.types';
3
3
  export interface ParticipantOptions {
4
4
  tpId: string;
5
5
  sharedCipherDataClearJson: JSONObject;
@@ -1,12 +1,12 @@
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';
5
- import { SharedTrustedPartyDetails } from '../trusted-parties/trusted-party.types';
6
- import { TrustedPartyDetails } from '../users/profile.types';
7
- import { User } from '../users/user.types';
8
- import { LrApolloService } from './lr-apollo.service';
9
- import { JSONObject } from './types';
1
+ import { EncryptionService } from '../encryption/encryption.service';
2
+ import { KeyGraphService } from '../key/key-graph.service';
3
+ import { KeyService } from '../key/key.service';
4
+ import { Key } from '../key/key.types';
5
+ import { TrustedPartyDetails } from '../profile/profile.types';
6
+ import { SharedTrustedPartyDetails } from '../trusted-party/trusted-party.types';
7
+ import { User } from '../user/user.types';
8
+ import { LrApolloService } from '../api/lr-apollo.service';
9
+ import { JSONObject } from '../api/types';
10
10
  export declare const SharedContactCardFields = "\n id\n owner {\n id\n username\n }\n ownerKey {\n id\n }\n ownerCipherData\n receiver {\n id\n username\n }\n receiverKey {\n id\n }\n receiverCipherData\n sharedKey {\n id\n }\n sharedCipherData\n sharedCipherDataSig\n sharedCipherDataSigPxk {\n id\n }\n";
11
11
  export interface SharedContactCard {
12
12
  id: string;
@@ -1,4 +1,4 @@
1
- import { ID } from './types';
1
+ import { ID } from '../api/types';
2
2
  export interface UpdateOwnedContactCardMutation {
3
3
  updateOwnedContactCard: {
4
4
  ownedContactCard: {
@@ -1,11 +1,11 @@
1
1
  import { NgZone } from '@angular/core';
2
- import { EncryptionService } from '../cryptography/encryption.service';
3
- import { KeyGraphService } from '../cryptography/key-graph.service';
4
- import { KeyService } from '../cryptography/key.service';
5
- import { ContactCardReceiverCipherData, SendContactCardInput } from './key-exchange2.service';
6
- import { LrGraphQLService, LrMutation } from './lr-graphql';
2
+ import { LrGraphQLService, LrMutation } from '../api/lr-graphql';
3
+ import { LrRelayIdInput } from '../api/types';
4
+ import { EncryptionService } from '../encryption/encryption.service';
5
+ import { ContactCardReceiverCipherData, SendContactCardInput } from '../key-exchange/key-exchange2.service';
6
+ import { KeyGraphService } from '../key/key-graph.service';
7
+ import { KeyService } from '../key/key.service';
7
8
  import { UpdateOwnedContactCardMutation, UpdateReceivedContactCardMutation } from './shared-contact-card2.gql';
8
- import { LrRelayIdInput } from './types';
9
9
  export interface UpdateOwnedContactCardInput extends SendContactCardInput {
10
10
  id: LrRelayIdInput;
11
11
  ownerKeyId?: LrRelayIdInput;
@@ -1,14 +1,14 @@
1
1
  import { Injector } from '@angular/core';
2
2
  import { JWK } from 'node-jose';
3
+ import { LrGraphQLService } from '../api/lr-graphql';
3
4
  import { Connection, TpAssemblyNode, TpNode, TpSubAssemblyNode } from '../api/types';
4
- import { EncryptionService } from '../cryptography/encryption.service';
5
- import { KeyFactoryService } from '../cryptography/key-factory.service';
6
- import { KeyGraphService } from '../cryptography/key-graph.service';
7
- import * as slip from '../cryptography/slip39.service';
8
- import { Key } from '../cryptography/cryptography.types';
9
- import { KeyService } from '../cryptography/key.service';
5
+ import { EncryptionService } from '../encryption/encryption.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
+ import { Key } from '../key/key.types';
10
+ import * as slip from '../slip39/slip39.service';
10
11
  import { CreateTpAssemblyInput, CreateTpSubAssemblyInput, PartialAssemblyKey, TpAssemblyApproverInput, UpdateTpAssemblyInput, UpdateTpSubAssemblyInput } from './tp-assembly.types';
11
- import { LrGraphQLService } from '../api/lr-graphql';
12
12
  export declare abstract class TpAssemblyController {
13
13
  abstract slip39Passphrase: string;
14
14
  protected keyFactory: KeyFactoryService;
@@ -1,5 +1,5 @@
1
1
  import { JSONObject } from '../api/types';
2
- import * as slip from '../cryptography/slip39.service';
2
+ import * as slip from '../slip39/slip39.service';
3
3
  export interface PartialAssemblyKey {
4
4
  slip39: {
5
5
  share: slip.SecretShare;
@@ -1,17 +1,13 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { LrMergedMutation, LrService } from '../api/lr-graphql';
3
- import { EncryptionService } from '../cryptography/encryption.service';
3
+ import { EncryptionService } from '../encryption/encryption.service';
4
+ import { TpPasswordResetPrivateService } from './tp-password-reset.private.service';
4
5
  export declare class TpPasswordResetRequestService extends LrService {
5
6
  private ngZone;
6
7
  private injector;
7
8
  private encryptionService;
8
- constructor(ngZone: NgZone, injector: Injector, encryptionService: EncryptionService);
9
- getSharedResets(): Promise<{
10
- edges: {
11
- node: import("./tp-password-reset.gql").SharedTpPasswordResetFragmentResult;
12
- }[];
13
- }>;
14
- getSharedReset(id: any): Promise<import("./tp-password-reset.gql").SharedTpPasswordResetFragmentResult>;
9
+ private privateService;
10
+ constructor(ngZone: NgZone, injector: Injector, encryptionService: EncryptionService, privateService: TpPasswordResetPrivateService);
15
11
  private activeRequestOrRaise;
16
12
  rejectRequest(sharedResetId: string): Promise<any>;
17
13
  rejectRequestMutation(sharedResetId: string): Promise<LrMergedMutation<import("./tp-password-reset.gql").RejectTpPasswordResetRequestMutationResult[]>>;
@@ -1,29 +1,23 @@
1
- import { Injector, NgZone } from '@angular/core';
2
- import { EncryptionService } from '../cryptography/encryption.service';
3
- import { KeyGraphService } from '../cryptography/key-graph.service';
4
- import { LifeReadyConfig } from '../life-ready.config';
5
- import * as slip from '../cryptography/slip39.service';
6
- import { PasswordService } from '../auth/password.service';
7
1
  import { HttpClient } from '@angular/common/http';
2
+ import { Injector, NgZone } from '@angular/core';
8
3
  import { AuthClass } from '@aws-amplify/auth/lib-esm/Auth';
9
- import { RequestResetResult } from './tp-password-reset.service';
10
4
  import { ISignUpResult } from 'amazon-cognito-identity-js';
11
- import { LifeReadyAuthService } from '../auth/life-ready-auth.service';
12
- import { KeyFactoryService } from '../cryptography/key-factory.service';
13
5
  import { LrService } from '../api/lr-graphql';
6
+ import { EncryptionService } from '../encryption/encryption.service';
7
+ import { KeyFactoryService } from '../key/key-factory.service';
8
+ import { LifeReadyConfig } from '../life-ready.config';
9
+ import { PasswordService } from '../password/password.service';
10
+ import { RequestResetResult } from './tp-password-reset.types';
14
11
  export declare class TpPasswordResetUserService extends LrService {
15
12
  private ngZone;
16
13
  private injector;
17
14
  private config;
18
15
  private keyFactory;
19
16
  private encryptionService;
20
- private keyGraphService;
21
- private slip39Service;
22
17
  private passwordService;
23
18
  private http;
24
19
  private auth;
25
- private lrAuth;
26
- constructor(ngZone: NgZone, injector: Injector, config: LifeReadyConfig, keyFactory: KeyFactoryService, encryptionService: EncryptionService, keyGraphService: KeyGraphService, slip39Service: slip.Slip39Service, passwordService: PasswordService, http: HttpClient, auth: AuthClass, lrAuth: LifeReadyAuthService);
20
+ constructor(ngZone: NgZone, injector: Injector, config: LifeReadyConfig, keyFactory: KeyFactoryService, encryptionService: EncryptionService, passwordService: PasswordService, http: HttpClient, auth: AuthClass);
27
21
  verifyEmailContact(email: any): Promise<{
28
22
  claimId: string;
29
23
  }>;
@@ -1,6 +1,6 @@
1
1
  import { Injector, NgZone } from '@angular/core';
2
2
  import { TpNode } from '../api/types';
3
- import { TpAssemblyController } from './tp-assembly';
3
+ import { TpAssemblyController } from '../tp-assembly/tp-assembly';
4
4
  export declare class TpPasswordResetAssemblyController extends TpAssemblyController {
5
5
  private ngZone;
6
6
  private injector;
@@ -0,0 +1,63 @@
1
+ import { ID } from '../api/types';
2
+ export interface CancelTpPasswordResetRequestMutationResult {
3
+ cancelTpPasswordResetRequest: {
4
+ id: ID;
5
+ };
6
+ }
7
+ export declare const CancelTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CancelTpPasswordResetRequestMutationResult>;
8
+ export interface CreateTpAssemblyKeyChallengeMutationResult {
9
+ createTpAssemblyKeyChallenge: {
10
+ challenge: any;
11
+ };
12
+ }
13
+ export declare const CreateTpAssemblyKeyChallengeMutation: import("../_common/ast").TypedDocumentNode<CreateTpAssemblyKeyChallengeMutationResult>;
14
+ export interface PreCompleteTpPasswordResetRequestMutationResult {
15
+ preCompleteTpPasswordResetRequest: {
16
+ idpPassword: string;
17
+ };
18
+ }
19
+ export declare const PreCompleteTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<PreCompleteTpPasswordResetRequestMutationResult>;
20
+ export interface CompleteTpPasswordResetRequestMutationResult {
21
+ completeTpPasswordResetRequest: {
22
+ id: ID;
23
+ };
24
+ }
25
+ export declare const CompleteTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<CompleteTpPasswordResetRequestMutationResult>;
26
+ export interface ApproveTpPasswordResetRequestMutationResult {
27
+ approveTpPasswordResetRequest: {
28
+ claimApprover: {
29
+ id: ID;
30
+ };
31
+ };
32
+ }
33
+ export declare const ApproveTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<ApproveTpPasswordResetRequestMutationResult>;
34
+ export interface RejectTpPasswordResetRequestMutationResult {
35
+ rejectTpPasswordResetRequest: {
36
+ claimApprover: {
37
+ id: ID;
38
+ };
39
+ };
40
+ }
41
+ export declare const RejectTpPasswordResetRequestMutation: import("../_common/ast").TypedDocumentNode<RejectTpPasswordResetRequestMutationResult>;
42
+ export interface CreateTpPasswordResetMutationResult {
43
+ createTpPasswordReset: {
44
+ tpPasswordReset: {
45
+ id: ID;
46
+ };
47
+ };
48
+ }
49
+ export declare const CreateTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<CreateTpPasswordResetMutationResult>;
50
+ export interface DeleteTpPasswordResetMutationResult {
51
+ deleteTpPasswordReset: {
52
+ id: ID;
53
+ };
54
+ }
55
+ export declare const DeleteTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<DeleteTpPasswordResetMutationResult>;
56
+ export interface UpdateTpPasswordResetMutationResult {
57
+ updateTpPasswordReset: {
58
+ tpPasswordReset: {
59
+ id: ID;
60
+ };
61
+ };
62
+ }
63
+ export declare const UpdateTpPasswordResetMutation: import("../_common/ast").TypedDocumentNode<UpdateTpPasswordResetMutationResult>;
@@ -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
+ }