@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,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 {
@@ -458,6 +458,7 @@ export declare enum ScenarioLastClaimState {
458
458
  export interface ScenarioLatestClaim {
459
459
  state?: ScenarioLastClaimState;
460
460
  created?: DateTime;
461
+ claimAgainAfter?: DateTime;
461
462
  }
462
463
  export interface ScenarioNode extends Node, TimeStamped {
463
464
  subject?: UserNode;
@@ -569,3 +570,13 @@ export declare enum LinkTypeField {
569
570
  HARD = "HARD",
570
571
  SOFT = "SOFT"
571
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,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,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;
@@ -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;
@@ -1,14 +1,13 @@
1
- import { NgZone } from '@angular/core';
1
+ import { Injector, NgZone } from '@angular/core';
2
2
  import { JWK } from 'node-jose';
3
- import { EncryptionService } from '../cryptography/encryption.service';
4
- import { KeyFactoryService } from '../cryptography/key-factory.service';
5
- import { KeyGraphService } from '../cryptography/key-graph.service';
6
- import { KeyService } from '../cryptography/key.service';
7
- import { UserService } from './../users/user.service';
8
- import { OwnerPlainDataJson } from './contact-card2.service';
3
+ import { LrMutation, LrService } from '../api/lr-graphql';
4
+ import { ContactCardSharedCipherData, JSONObject, OtKeyCipherClearJson2 } from '../api/types';
5
+ import { OwnerPlainDataJson } from '../contact-card/contact-card2.service';
6
+ import { EncryptionService } from '../encryption/encryption.service';
7
+ import { KeyFactoryService } from '../key/key-factory.service';
8
+ import { KeyGraphService } from '../key/key-graph.service';
9
+ import { KeyService } from '../key/key.service';
9
10
  import { CancelKeyExchangeMutation, CompleteKeyExchangeOtkMutation, CurrentUserSharedKeyQuery2, DeclineKeyExchangeMutation, InitiateKeyExchangeOtkMutation, KeyExchangeFragment, KeyExchangeState2, RespondKeyExchangeOtkMutation } from './key-exchange2.gql';
10
- import { LrGraphQLService, LrMutation } from './lr-graphql';
11
- import { ContactCardSharedCipherData, JSONObject, OtKeyCipherClearJson2 } from './types';
12
11
  /**
13
12
  * The decrypted content of the one-time key cipher;
14
13
  * When user supplies this information the lib doesn't need to do another API call
@@ -81,16 +80,15 @@ export interface GetKeyExchangeOptions2 {
81
80
  otKeyK?: string;
82
81
  token?: string;
83
82
  }
84
- export declare class KeyExchange2Service {
83
+ export declare class KeyExchange2Service extends LrService {
85
84
  private ngZone;
85
+ private injector;
86
86
  private keyFactory;
87
87
  private keyService;
88
88
  private encryptionService;
89
- private userService;
90
89
  private keyGraph;
91
- private lrGraphQL;
92
90
  private readonly CLIENT_NONCE_LENGTH;
93
- constructor(ngZone: NgZone, keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService, userService: UserService, keyGraph: KeyGraphService, lrGraphQL: LrGraphQLService);
91
+ constructor(ngZone: NgZone, injector: Injector, keyFactory: KeyFactoryService, keyService: KeyService, encryptionService: EncryptionService, keyGraph: KeyGraphService);
94
92
  private getOtKey;
95
93
  private decryptOtk;
96
94
  private decryptResponseCipher;
@@ -121,19 +119,21 @@ export declare class KeyExchange2Service {
121
119
  id: string;
122
120
  };
123
121
  }>;
124
- declineKeyExchange(id: string, token: string): Promise<LrMutation<DeclineKeyExchangeMutation, {
122
+ declineKeyExchangeExec(id: string, token: string): Promise<DeclineKeyExchangeMutation>;
123
+ declineKeyExchange(id: string, token: string): LrMutation<DeclineKeyExchangeMutation, {
125
124
  input: {
126
125
  id: string;
127
126
  token: string;
128
127
  };
129
- }>>;
128
+ }>;
130
129
  declineKeyExchangeMutation(id: string, token: string): LrMutation<DeclineKeyExchangeMutation, {
131
130
  input: {
132
131
  id: string;
133
132
  token: string;
134
133
  };
135
134
  }>;
136
- initiateOtk({ message, email, contactCard, upgrade, }?: InitiateOtkInput2): Promise<{
135
+ initiateOtkExec(input?: InitiateOtkInput2): Promise<InitiateKeyExchangeOtkMutation>;
136
+ initiateOtk(input?: InitiateOtkInput2): Promise<{
137
137
  lrMutation: LrMutation<InitiateKeyExchangeOtkMutation, {
138
138
  input: {
139
139
  initiatorRootKeyCipher: string;
@@ -152,7 +152,44 @@ export declare class KeyExchange2Service {
152
152
  }>;
153
153
  otKeyK: string;
154
154
  }>;
155
- respondOtk({ keyExchangeId, token, decryptedOtk, message, initiatorContactCard, responderContactCard, }: RespondOtkInput2): Promise<LrMutation<RespondKeyExchangeOtkMutation, {
155
+ initiateOtkMutation({ message, email, contactCard, upgrade, }?: InitiateOtkInput2): Promise<{
156
+ lrMutation: LrMutation<InitiateKeyExchangeOtkMutation, {
157
+ input: {
158
+ initiatorRootKeyCipher: string;
159
+ initiatorPxkId: string;
160
+ initiatorSigPxkId: string;
161
+ otKeyParams: string;
162
+ otKeyCipher: string;
163
+ sendEmail: {
164
+ email: string;
165
+ rawOtKey: string;
166
+ };
167
+ createTp: boolean;
168
+ initiatorPlainDataSig: string;
169
+ upgrade: boolean;
170
+ };
171
+ }>;
172
+ otKeyK: string;
173
+ }>;
174
+ respondOtkExec(input: RespondOtkInput2): Promise<RespondKeyExchangeOtkMutation>;
175
+ respondOtk(input: RespondOtkInput2): Promise<LrMutation<RespondKeyExchangeOtkMutation, {
176
+ input: {
177
+ keyExchangeId: string;
178
+ keyExchangeToken: string;
179
+ rootKeyId: string;
180
+ masterKeyId: string;
181
+ responderPxkId: string;
182
+ responderSigPxkId: string;
183
+ signedInitiatorPbk: string;
184
+ signedInitiatorSigPbk: string;
185
+ rkWrappedSharedKey: string;
186
+ mkWrappedMkSharedKey: string;
187
+ initiatorOneTimePbkCipher: string;
188
+ initiatorContactCard: any;
189
+ responderContactCard: any;
190
+ };
191
+ }>>;
192
+ respondOtkMutation({ keyExchangeId, token, decryptedOtk, message, initiatorContactCard, responderContactCard, }: RespondOtkInput2): Promise<LrMutation<RespondKeyExchangeOtkMutation, {
156
193
  input: {
157
194
  keyExchangeId: string;
158
195
  keyExchangeToken: string;
@@ -169,7 +206,23 @@ export declare class KeyExchange2Service {
169
206
  responderContactCard: any;
170
207
  };
171
208
  }>>;
172
- completeOtk({ keyExchangeId, initiatorRootKeyCipher, initiatorOneTimePbkCipher, responderContactCard, initiatorContactCard, }: CompleteOtkInput2): Promise<LrMutation<CompleteKeyExchangeOtkMutation, {
209
+ completeOtkExec(input: CompleteOtkInput2): Promise<CompleteKeyExchangeOtkMutation>;
210
+ completeOtk(input: CompleteOtkInput2): Promise<LrMutation<CompleteKeyExchangeOtkMutation, {
211
+ input: {
212
+ keyExchangeId: string;
213
+ rootKeyId: string;
214
+ masterKeyId: string;
215
+ initiatorSigPxkId: string;
216
+ signedResponderPbk: string;
217
+ signedResponderSigPbk: string;
218
+ rkWrappedSharedKey: string;
219
+ mkWrappedMkSharedKey: string;
220
+ responderContactCardCipher: any;
221
+ initiatorContactCardCipher: any;
222
+ initiatorContactCardSharedCipher: any;
223
+ };
224
+ }>>;
225
+ completeOtkMutation({ keyExchangeId, initiatorRootKeyCipher, initiatorOneTimePbkCipher, responderContactCard, initiatorContactCard, }: CompleteOtkInput2): Promise<LrMutation<CompleteKeyExchangeOtkMutation, {
173
226
  input: {
174
227
  keyExchangeId: string;
175
228
  rootKeyId: string;