@lifeready/core 9.0.8 → 10.0.0

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 (225) hide show
  1. package/fesm2022/lifeready-core.mjs +10522 -0
  2. package/fesm2022/lifeready-core.mjs.map +1 -0
  3. package/package.json +21 -16
  4. package/types/lifeready-core.d.ts +5329 -0
  5. package/bundles/lifeready-core.umd.js +0 -13231
  6. package/bundles/lifeready-core.umd.js.map +0 -1
  7. package/bundles/lifeready-core.umd.min.js +0 -2
  8. package/bundles/lifeready-core.umd.min.js.map +0 -1
  9. package/esm2015/lib/_common/ast.js +0 -41
  10. package/esm2015/lib/_common/deferred-promise.js +0 -24
  11. package/esm2015/lib/_common/exceptions.js +0 -186
  12. package/esm2015/lib/_common/index.js +0 -3
  13. package/esm2015/lib/_common/kc-lodash.js +0 -11
  14. package/esm2015/lib/_common/key.js +0 -28
  15. package/esm2015/lib/_common/queries.gql.js +0 -43
  16. package/esm2015/lib/_common/run-outside-angular.js +0 -80
  17. package/esm2015/lib/_common/storage.js +0 -28
  18. package/esm2015/lib/_common/types.js +0 -2
  19. package/esm2015/lib/_common/utils.js +0 -73
  20. package/esm2015/lib/api/lr-apollo.service.js +0 -47
  21. package/esm2015/lib/api/lr-graphql/index.js +0 -6
  22. package/esm2015/lib/api/lr-graphql/lr-graphql.service.js +0 -170
  23. package/esm2015/lib/api/lr-graphql/lr-merged-mutation.js +0 -216
  24. package/esm2015/lib/api/lr-graphql/lr-mutation-base.js +0 -51
  25. package/esm2015/lib/api/lr-graphql/lr-mutation.js +0 -91
  26. package/esm2015/lib/api/lr-graphql/lr.service.js +0 -18
  27. package/esm2015/lib/api/query-processor/common-processors.service.js +0 -94
  28. package/esm2015/lib/api/query-processor/index.js +0 -3
  29. package/esm2015/lib/api/query-processor/query-processor.service.js +0 -307
  30. package/esm2015/lib/api/query-processor/tp-password-reset-processor.service.js +0 -110
  31. package/esm2015/lib/api/types/graphql.types.js +0 -8
  32. package/esm2015/lib/api/types/index.js +0 -3
  33. package/esm2015/lib/api/types/lr-graphql.types.js +0 -182
  34. package/esm2015/lib/auth/auth.config.js +0 -57
  35. package/esm2015/lib/auth/auth.gql.private.js +0 -85
  36. package/esm2015/lib/auth/auth.service.js +0 -616
  37. package/esm2015/lib/auth/auth.types.js +0 -19
  38. package/esm2015/lib/contact-card/contact-card.gql.js +0 -79
  39. package/esm2015/lib/contact-card/contact-card.service.js +0 -156
  40. package/esm2015/lib/contact-card/contact-card2.gql.js +0 -29
  41. package/esm2015/lib/contact-card/contact-card2.service.js +0 -103
  42. package/esm2015/lib/encryption/encryption.service.js +0 -188
  43. package/esm2015/lib/file-upload/file-upload.service.js +0 -70
  44. package/esm2015/lib/file-upload/file-upload.types.js +0 -2
  45. package/esm2015/lib/idle/idle.service.js +0 -159
  46. package/esm2015/lib/idle/idle.types.js +0 -7
  47. package/esm2015/lib/item/item.gql.js +0 -166
  48. package/esm2015/lib/item/item.gql.private.js +0 -41
  49. package/esm2015/lib/item/item.service.js +0 -662
  50. package/esm2015/lib/item/item.types.js +0 -2
  51. package/esm2015/lib/key/key-factory.service.js +0 -226
  52. package/esm2015/lib/key/key-graph.service.js +0 -314
  53. package/esm2015/lib/key/key-meta.service.js +0 -153
  54. package/esm2015/lib/key/key.service.js +0 -124
  55. package/esm2015/lib/key/key.types.js +0 -16
  56. package/esm2015/lib/key-exchange/key-exchange.gql.js +0 -174
  57. package/esm2015/lib/key-exchange/key-exchange.service.js +0 -496
  58. package/esm2015/lib/lbop/lbop.service.js +0 -351
  59. package/esm2015/lib/life-ready.config.js +0 -96
  60. package/esm2015/lib/life-ready.module.js +0 -42
  61. package/esm2015/lib/lock/lock.gql.js +0 -40
  62. package/esm2015/lib/lock/lock.service.js +0 -64
  63. package/esm2015/lib/notification/notification.gql.js +0 -43
  64. package/esm2015/lib/notification/notification.service.js +0 -118
  65. package/esm2015/lib/password/password.gql.js +0 -28
  66. package/esm2015/lib/password/password.service.js +0 -309
  67. package/esm2015/lib/persist/persist.service.js +0 -181
  68. package/esm2015/lib/plan/plan.gql.js +0 -91
  69. package/esm2015/lib/plan/plan.service.js +0 -191
  70. package/esm2015/lib/plan/plan.types.js +0 -2
  71. package/esm2015/lib/profile/profile-details.service.js +0 -261
  72. package/esm2015/lib/profile/profile.gql.js +0 -170
  73. package/esm2015/lib/profile/profile.service.js +0 -166
  74. package/esm2015/lib/profile/profile.types.js +0 -45
  75. package/esm2015/lib/register/register.service.js +0 -173
  76. package/esm2015/lib/register/register.types.js +0 -3
  77. package/esm2015/lib/reminder/reminder.gql.js +0 -27
  78. package/esm2015/lib/reminder/reminder.service.js +0 -85
  79. package/esm2015/lib/reminder/reminder.types.js +0 -2
  80. package/esm2015/lib/scenario/scenario.constants.js +0 -2
  81. package/esm2015/lib/scenario/scenario.controller.js +0 -34
  82. package/esm2015/lib/scenario/scenario.gql.js +0 -90
  83. package/esm2015/lib/scenario/scenario.private.gql.js +0 -200
  84. package/esm2015/lib/scenario/scenario.service.js +0 -679
  85. package/esm2015/lib/scenario/scenario.types.js +0 -2
  86. package/esm2015/lib/server-config/server-config.gql.js +0 -9
  87. package/esm2015/lib/server-config/server-config.service.js +0 -41
  88. package/esm2015/lib/shared-contact-card/shared-contact-card.service.js +0 -119
  89. package/esm2015/lib/shared-contact-card/shared-contact-card2.gql.js +0 -41
  90. package/esm2015/lib/shared-contact-card/shared-contact-card2.service.js +0 -117
  91. package/esm2015/lib/slip39/slip39.service.js +0 -167
  92. package/esm2015/lib/time/time.service.js +0 -152
  93. package/esm2015/lib/tp-assembly/tp-assembly.js +0 -363
  94. package/esm2015/lib/tp-assembly/tp-assembly.private.gql.js +0 -22
  95. package/esm2015/lib/tp-assembly/tp-assembly.types.js +0 -2
  96. package/esm2015/lib/tp-password-reset/tp-password-reset-request.service.js +0 -98
  97. package/esm2015/lib/tp-password-reset/tp-password-reset-user.service.js +0 -121
  98. package/esm2015/lib/tp-password-reset/tp-password-reset.constants.js +0 -4
  99. package/esm2015/lib/tp-password-reset/tp-password-reset.controller.js +0 -34
  100. package/esm2015/lib/tp-password-reset/tp-password-reset.gql.js +0 -74
  101. package/esm2015/lib/tp-password-reset/tp-password-reset.private.gql.js +0 -166
  102. package/esm2015/lib/tp-password-reset/tp-password-reset.private.service.js +0 -54
  103. package/esm2015/lib/tp-password-reset/tp-password-reset.service.js +0 -110
  104. package/esm2015/lib/tp-password-reset/tp-password-reset.types.js +0 -2
  105. package/esm2015/lib/trusted-party/trusted-party.gql.js +0 -96
  106. package/esm2015/lib/trusted-party/trusted-party.gql.private.js +0 -51
  107. package/esm2015/lib/trusted-party/trusted-party.service.js +0 -461
  108. package/esm2015/lib/trusted-party/trusted-party.types.js +0 -2
  109. package/esm2015/lib/two-factor/two-factor.service.js +0 -74
  110. package/esm2015/lib/user/user.gql.js +0 -32
  111. package/esm2015/lib/user/user.service.js +0 -58
  112. package/esm2015/lib/user/user.types.js +0 -2
  113. package/esm2015/lib/web-crypto/web-crypto.service.js +0 -29
  114. package/esm2015/lifeready-core.js +0 -17
  115. package/esm2015/public-api.js +0 -60
  116. package/fesm2015/lifeready-core.js +0 -10970
  117. package/fesm2015/lifeready-core.js.map +0 -1
  118. package/lib/_common/ast.d.ts +0 -11
  119. package/lib/_common/deferred-promise.d.ts +0 -12
  120. package/lib/_common/exceptions.d.ts +0 -126
  121. package/lib/_common/index.d.ts +0 -2
  122. package/lib/_common/kc-lodash.d.ts +0 -5
  123. package/lib/_common/key.d.ts +0 -14
  124. package/lib/_common/queries.gql.d.ts +0 -4
  125. package/lib/_common/run-outside-angular.d.ts +0 -14
  126. package/lib/_common/storage.d.ts +0 -13
  127. package/lib/_common/types.d.ts +0 -15
  128. package/lib/_common/utils.d.ts +0 -12
  129. package/lib/api/lr-apollo.service.d.ts +0 -15
  130. package/lib/api/lr-graphql/index.d.ts +0 -5
  131. package/lib/api/lr-graphql/lr-graphql.service.d.ts +0 -81
  132. package/lib/api/lr-graphql/lr-merged-mutation.d.ts +0 -46
  133. package/lib/api/lr-graphql/lr-mutation-base.d.ts +0 -28
  134. package/lib/api/lr-graphql/lr-mutation.d.ts +0 -48
  135. package/lib/api/lr-graphql/lr.service.d.ts +0 -9
  136. package/lib/api/query-processor/common-processors.service.d.ts +0 -36
  137. package/lib/api/query-processor/index.d.ts +0 -2
  138. package/lib/api/query-processor/query-processor.service.d.ts +0 -18
  139. package/lib/api/query-processor/tp-password-reset-processor.service.d.ts +0 -15
  140. package/lib/api/types/graphql.types.d.ts +0 -30
  141. package/lib/api/types/index.d.ts +0 -2
  142. package/lib/api/types/lr-graphql.types.d.ts +0 -807
  143. package/lib/auth/auth.config.d.ts +0 -5
  144. package/lib/auth/auth.gql.private.d.ts +0 -25
  145. package/lib/auth/auth.service.d.ts +0 -72
  146. package/lib/auth/auth.types.d.ts +0 -70
  147. package/lib/contact-card/contact-card.gql.d.ts +0 -7
  148. package/lib/contact-card/contact-card.service.d.ts +0 -53
  149. package/lib/contact-card/contact-card2.gql.d.ts +0 -25
  150. package/lib/contact-card/contact-card2.service.d.ts +0 -64
  151. package/lib/encryption/encryption.service.d.ts +0 -42
  152. package/lib/file-upload/file-upload.service.d.ts +0 -15
  153. package/lib/file-upload/file-upload.types.d.ts +0 -5
  154. package/lib/idle/idle.service.d.ts +0 -47
  155. package/lib/idle/idle.types.d.ts +0 -10
  156. package/lib/item/item.gql.d.ts +0 -134
  157. package/lib/item/item.gql.private.d.ts +0 -35
  158. package/lib/item/item.service.d.ts +0 -201
  159. package/lib/item/item.types.d.ts +0 -95
  160. package/lib/key/key-factory.service.d.ts +0 -40
  161. package/lib/key/key-graph.service.d.ts +0 -41
  162. package/lib/key/key-meta.service.d.ts +0 -51
  163. package/lib/key/key.service.d.ts +0 -36
  164. package/lib/key/key.types.d.ts +0 -86
  165. package/lib/key-exchange/key-exchange.gql.d.ts +0 -141
  166. package/lib/key-exchange/key-exchange.service.d.ts +0 -179
  167. package/lib/lbop/lbop.service.d.ts +0 -99
  168. package/lib/life-ready.config.d.ts +0 -26
  169. package/lib/life-ready.module.d.ts +0 -5
  170. package/lib/lock/lock.gql.d.ts +0 -27
  171. package/lib/lock/lock.service.d.ts +0 -34
  172. package/lib/notification/notification.gql.d.ts +0 -37
  173. package/lib/notification/notification.service.d.ts +0 -64
  174. package/lib/password/password.gql.d.ts +0 -3
  175. package/lib/password/password.service.d.ts +0 -79
  176. package/lib/persist/persist.service.d.ts +0 -31
  177. package/lib/plan/plan.gql.d.ts +0 -69
  178. package/lib/plan/plan.service.d.ts +0 -111
  179. package/lib/plan/plan.types.d.ts +0 -16
  180. package/lib/profile/profile-details.service.d.ts +0 -20
  181. package/lib/profile/profile.gql.d.ts +0 -21
  182. package/lib/profile/profile.service.d.ts +0 -32
  183. package/lib/profile/profile.types.d.ts +0 -121
  184. package/lib/register/register.service.d.ts +0 -25
  185. package/lib/register/register.types.d.ts +0 -6
  186. package/lib/reminder/reminder.gql.d.ts +0 -23
  187. package/lib/reminder/reminder.service.d.ts +0 -33
  188. package/lib/reminder/reminder.types.d.ts +0 -17
  189. package/lib/scenario/scenario.constants.d.ts +0 -1
  190. package/lib/scenario/scenario.controller.d.ts +0 -10
  191. package/lib/scenario/scenario.gql.d.ts +0 -78
  192. package/lib/scenario/scenario.private.gql.d.ts +0 -16
  193. package/lib/scenario/scenario.service.d.ts +0 -655
  194. package/lib/scenario/scenario.types.d.ts +0 -64
  195. package/lib/server-config/server-config.gql.d.ts +0 -5
  196. package/lib/server-config/server-config.service.d.ts +0 -9
  197. package/lib/shared-contact-card/shared-contact-card.service.d.ts +0 -33
  198. package/lib/shared-contact-card/shared-contact-card2.gql.d.ts +0 -36
  199. package/lib/shared-contact-card/shared-contact-card2.service.d.ts +0 -45
  200. package/lib/slip39/slip39.service.d.ts +0 -42
  201. package/lib/time/time.service.d.ts +0 -26
  202. package/lib/tp-assembly/tp-assembly.d.ts +0 -177
  203. package/lib/tp-assembly/tp-assembly.private.gql.d.ts +0 -5
  204. package/lib/tp-assembly/tp-assembly.types.d.ts +0 -40
  205. package/lib/tp-password-reset/tp-password-reset-request.service.d.ts +0 -16
  206. package/lib/tp-password-reset/tp-password-reset-user.service.d.ts +0 -29
  207. package/lib/tp-password-reset/tp-password-reset.constants.d.ts +0 -3
  208. package/lib/tp-password-reset/tp-password-reset.controller.d.ts +0 -10
  209. package/lib/tp-password-reset/tp-password-reset.gql.d.ts +0 -63
  210. package/lib/tp-password-reset/tp-password-reset.private.gql.d.ts +0 -163
  211. package/lib/tp-password-reset/tp-password-reset.private.service.d.ts +0 -59
  212. package/lib/tp-password-reset/tp-password-reset.service.d.ts +0 -112
  213. package/lib/tp-password-reset/tp-password-reset.types.d.ts +0 -40
  214. package/lib/trusted-party/trusted-party.gql.d.ts +0 -85
  215. package/lib/trusted-party/trusted-party.gql.private.d.ts +0 -40
  216. package/lib/trusted-party/trusted-party.service.d.ts +0 -192
  217. package/lib/trusted-party/trusted-party.types.d.ts +0 -31
  218. package/lib/two-factor/two-factor.service.d.ts +0 -15
  219. package/lib/user/user.gql.d.ts +0 -8
  220. package/lib/user/user.service.d.ts +0 -9
  221. package/lib/user/user.types.d.ts +0 -16
  222. package/lib/web-crypto/web-crypto.service.d.ts +0 -5
  223. package/lifeready-core.d.ts +0 -16
  224. package/lifeready-core.metadata.json +0 -1
  225. package/public-api.d.ts +0 -56
@@ -1,655 +0,0 @@
1
- import { Injector, NgZone } from '@angular/core';
2
- import { LrMergedMutation, LrMutation, LrService } from '../api/lr-graphql';
3
- import { AccessRoleChoice } from '../api/types';
4
- import { EncryptionService } from '../encryption/encryption.service';
5
- import { ItemService } from '../item/item.service';
6
- import { KeyGraphService } from '../key/key-graph.service';
7
- import { ScenarioAssemblyController } from './scenario.controller';
8
- import { CreateScenarioOptions, ResetScenarioOptions, UpdateScenarioOptions } from './scenario.types';
9
- export declare function throwClaimIdMismatch(): void;
10
- export declare function throwClaimNotApproved(): void;
11
- export declare class ScenarioService extends LrService {
12
- private ngZone;
13
- private injector;
14
- private keyGraph;
15
- private itemService;
16
- private assemblyController;
17
- private encryptionService;
18
- constructor(ngZone: NgZone, injector: Injector, keyGraph: KeyGraphService, itemService: ItemService, assemblyController: ScenarioAssemblyController, encryptionService: EncryptionService);
19
- static SLIP39_PASSPHRASE: string;
20
- private prepareAddReceiverDirectory;
21
- private prepareUpdateReceiverDirectory;
22
- private prepareAddReceiverFile;
23
- private prepareUpdateReceiverFile;
24
- createScenario(options: CreateScenarioOptions): Promise<import("./scenario.gql").CreateScenarioMutationResult>;
25
- createScenarioMutation(options: CreateScenarioOptions): Promise<LrMutation<import("./scenario.gql").CreateScenarioMutationResult, {
26
- input: {
27
- enabled: boolean;
28
- inactiveSeconds: number;
29
- createAssembly: {
30
- singleReject: boolean;
31
- quorum: number;
32
- subjectCipherData: string;
33
- createSubAssemblies: {
34
- singleReject: boolean;
35
- quorum: number;
36
- subjectCipherData: string;
37
- createApprovers: {
38
- tpWrappingKeyId: string;
39
- tpWrappedSharedKey: string;
40
- subjectKeyWrappedSharedKey: string;
41
- sharedCipherData: string;
42
- sharedCipherApprovalData: string;
43
- sharedCipherPartialAssemblyKey: string;
44
- approverId: string;
45
- tpId: string;
46
- }[];
47
- }[];
48
- rootKeyId: string;
49
- rootKeyWrappedSubjectKey: string;
50
- subjectKeyWrappedAssemblyKey: string;
51
- assemblyCipherData: string;
52
- assemblyKeyVerifierPbk: string;
53
- wrappedAssemblyKeyVerifierPrk: string;
54
- };
55
- createReceivers: {
56
- addDirectories: ({
57
- directoryId: string;
58
- accessRole: AccessRoleChoice.DENY;
59
- itemKeyId: any;
60
- wrappedItemKey: any;
61
- sharedCipherData: any;
62
- } | {
63
- fileId: string;
64
- accessRole: AccessRoleChoice.DENY;
65
- itemKeyId: any;
66
- wrappedItemKey: any;
67
- sharedCipherData: any;
68
- } | {
69
- directoryId: string;
70
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
71
- itemKeyId: any;
72
- wrappedItemKey: string;
73
- sharedCipherData: string;
74
- } | {
75
- fileId: string;
76
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
77
- itemKeyId: any;
78
- wrappedItemKey: string;
79
- sharedCipherData: string;
80
- })[];
81
- addFiles: ({
82
- directoryId: string;
83
- accessRole: AccessRoleChoice.DENY;
84
- itemKeyId: any;
85
- wrappedItemKey: any;
86
- sharedCipherData: any;
87
- } | {
88
- fileId: string;
89
- accessRole: AccessRoleChoice.DENY;
90
- itemKeyId: any;
91
- wrappedItemKey: any;
92
- sharedCipherData: any;
93
- } | {
94
- directoryId: string;
95
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
96
- itemKeyId: any;
97
- wrappedItemKey: string;
98
- sharedCipherData: string;
99
- } | {
100
- fileId: string;
101
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
102
- itemKeyId: any;
103
- wrappedItemKey: string;
104
- sharedCipherData: string;
105
- })[];
106
- tpId: string;
107
- tpSharedKeyId: string;
108
- tpSharedKeyWrappedSharedKey: string;
109
- sharedCipherData: string;
110
- }[];
111
- createClaimants: {
112
- tpId: string;
113
- tpSharedKeyId: string;
114
- tpSharedKeyWrappedSharedKey: string;
115
- sharedCipherData: string;
116
- }[];
117
- };
118
- }>>;
119
- updateScenario(options: UpdateScenarioOptions): Promise<import("./scenario.gql").UpdateScenarioMutationResult>;
120
- updateScenarioMutation(options: UpdateScenarioOptions): Promise<LrMutation<import("./scenario.gql").UpdateScenarioMutationResult, {
121
- input: {
122
- scenarioId: string;
123
- enabled: boolean;
124
- inactiveSeconds: number;
125
- updateAssembly: {
126
- singleReject: boolean;
127
- quorum: number;
128
- subjectCipherData: string;
129
- subjectKeyId: string;
130
- createSubAssemblies: {
131
- singleReject: boolean;
132
- quorum: number;
133
- subjectCipherData: string;
134
- createApprovers: {
135
- tpWrappingKeyId: string;
136
- tpWrappedSharedKey: string;
137
- subjectKeyWrappedSharedKey: string;
138
- sharedCipherData: string;
139
- sharedCipherApprovalData: string;
140
- sharedCipherPartialAssemblyKey: string;
141
- approverId: string;
142
- tpId: string;
143
- }[];
144
- }[];
145
- updateSubAssemblies: {
146
- subAssemblyId: string;
147
- singleReject: boolean;
148
- quorum: number;
149
- subjectCipherData: string;
150
- createApprovers: {
151
- tpWrappingKeyId: string;
152
- tpWrappedSharedKey: string;
153
- subjectKeyWrappedSharedKey: string;
154
- sharedCipherData: string;
155
- sharedCipherApprovalData: string;
156
- sharedCipherPartialAssemblyKey: string;
157
- approverId: string;
158
- tpId: string;
159
- }[];
160
- updateApprovers: {
161
- tpWrappingKeyId: string;
162
- tpWrappedSharedKey: string;
163
- subjectKeyWrappedSharedKey: string;
164
- sharedCipherData: string;
165
- sharedCipherApprovalData: string;
166
- sharedCipherPartialAssemblyKey: string;
167
- approverId: string;
168
- tpId: string;
169
- }[];
170
- }[];
171
- subjectKeyWrappedAssemblyKey: string;
172
- assemblyCipherData: string;
173
- assemblyKeyVerifierPbk: string;
174
- wrappedAssemblyKeyVerifierPrk: string;
175
- };
176
- createReceivers: {
177
- addDirectories: ({
178
- directoryId: string;
179
- accessRole: AccessRoleChoice.DENY;
180
- itemKeyId: any;
181
- wrappedItemKey: any;
182
- sharedCipherData: any;
183
- } | {
184
- fileId: string;
185
- accessRole: AccessRoleChoice.DENY;
186
- itemKeyId: any;
187
- wrappedItemKey: any;
188
- sharedCipherData: any;
189
- } | {
190
- directoryId: string;
191
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
192
- itemKeyId: any;
193
- wrappedItemKey: string;
194
- sharedCipherData: string;
195
- } | {
196
- fileId: string;
197
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
198
- itemKeyId: any;
199
- wrappedItemKey: string;
200
- sharedCipherData: string;
201
- })[];
202
- addFiles: ({
203
- directoryId: string;
204
- accessRole: AccessRoleChoice.DENY;
205
- itemKeyId: any;
206
- wrappedItemKey: any;
207
- sharedCipherData: any;
208
- } | {
209
- fileId: string;
210
- accessRole: AccessRoleChoice.DENY;
211
- itemKeyId: any;
212
- wrappedItemKey: any;
213
- sharedCipherData: any;
214
- } | {
215
- directoryId: string;
216
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
217
- itemKeyId: any;
218
- wrappedItemKey: string;
219
- sharedCipherData: string;
220
- } | {
221
- fileId: string;
222
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
223
- itemKeyId: any;
224
- wrappedItemKey: string;
225
- sharedCipherData: string;
226
- })[];
227
- tpId: string;
228
- tpSharedKeyId: string;
229
- tpSharedKeyWrappedSharedKey: string;
230
- sharedCipherData: string;
231
- }[];
232
- updateReceivers: {
233
- addDirectories: ({
234
- directoryId: string;
235
- accessRole: AccessRoleChoice.DENY;
236
- itemKeyId: any;
237
- wrappedItemKey: any;
238
- sharedCipherData: any;
239
- } | {
240
- fileId: string;
241
- accessRole: AccessRoleChoice.DENY;
242
- itemKeyId: any;
243
- wrappedItemKey: any;
244
- sharedCipherData: any;
245
- } | {
246
- directoryId: string;
247
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
248
- itemKeyId: any;
249
- wrappedItemKey: string;
250
- sharedCipherData: string;
251
- } | {
252
- fileId: string;
253
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
254
- itemKeyId: any;
255
- wrappedItemKey: string;
256
- sharedCipherData: string;
257
- })[];
258
- addFiles: ({
259
- directoryId: string;
260
- accessRole: AccessRoleChoice.DENY;
261
- itemKeyId: any;
262
- wrappedItemKey: any;
263
- sharedCipherData: any;
264
- } | {
265
- fileId: string;
266
- accessRole: AccessRoleChoice.DENY;
267
- itemKeyId: any;
268
- wrappedItemKey: any;
269
- sharedCipherData: any;
270
- } | {
271
- directoryId: string;
272
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
273
- itemKeyId: any;
274
- wrappedItemKey: string;
275
- sharedCipherData: string;
276
- } | {
277
- fileId: string;
278
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
279
- itemKeyId: any;
280
- wrappedItemKey: string;
281
- sharedCipherData: string;
282
- })[];
283
- updateDirectories: ({
284
- directoryId: string;
285
- accessRole: AccessRoleChoice.DENY;
286
- itemKeyId: any;
287
- wrappedItemKey: any;
288
- sharedCipherData: any;
289
- } | {
290
- fileId: string;
291
- accessRole: AccessRoleChoice.DENY;
292
- itemKeyId: any;
293
- wrappedItemKey: any;
294
- sharedCipherData: any;
295
- } | {
296
- directoryId: string;
297
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
298
- itemKeyId: any;
299
- wrappedItemKey: string;
300
- sharedCipherData: string;
301
- } | {
302
- fileId: string;
303
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
304
- itemKeyId: any;
305
- wrappedItemKey: string;
306
- sharedCipherData: string;
307
- })[];
308
- updateFiles: ({
309
- directoryId: string;
310
- accessRole: AccessRoleChoice.DENY;
311
- itemKeyId: any;
312
- wrappedItemKey: any;
313
- sharedCipherData: any;
314
- } | {
315
- fileId: string;
316
- accessRole: AccessRoleChoice.DENY;
317
- itemKeyId: any;
318
- wrappedItemKey: any;
319
- sharedCipherData: any;
320
- } | {
321
- directoryId: string;
322
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
323
- itemKeyId: any;
324
- wrappedItemKey: string;
325
- sharedCipherData: string;
326
- } | {
327
- fileId: string;
328
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
329
- itemKeyId: any;
330
- wrappedItemKey: string;
331
- sharedCipherData: string;
332
- })[];
333
- deleteDirectories: string[];
334
- deleteFiles: string[];
335
- tpId: string;
336
- sharedKeyId: string;
337
- sharedCipherData: string;
338
- }[];
339
- deleteReceivers: string[];
340
- createClaimants: {
341
- tpId: string;
342
- tpSharedKeyId: string;
343
- tpSharedKeyWrappedSharedKey: string;
344
- sharedCipherData: string;
345
- }[];
346
- updateClaimants: {
347
- tpId: string;
348
- sharedKeyId: string;
349
- sharedCipherData: string;
350
- }[];
351
- deleteClaimants: string[];
352
- };
353
- }>>;
354
- resetScenario(options: ResetScenarioOptions): Promise<import("./scenario.gql").UpdateScenarioMutationResult>;
355
- resetScenarioMutation(options: ResetScenarioOptions): Promise<LrMutation<import("./scenario.gql").UpdateScenarioMutationResult, {
356
- input: {
357
- scenarioId: string;
358
- enabled: boolean;
359
- inactiveSeconds: number;
360
- updateAssembly: {
361
- singleReject: boolean;
362
- quorum: number;
363
- subjectCipherData: string;
364
- subjectKeyId: string;
365
- createSubAssemblies: {
366
- singleReject: boolean;
367
- quorum: number;
368
- subjectCipherData: string;
369
- createApprovers: {
370
- tpWrappingKeyId: string;
371
- tpWrappedSharedKey: string;
372
- subjectKeyWrappedSharedKey: string;
373
- sharedCipherData: string;
374
- sharedCipherApprovalData: string;
375
- sharedCipherPartialAssemblyKey: string;
376
- approverId: string;
377
- tpId: string;
378
- }[];
379
- }[];
380
- updateSubAssemblies: {
381
- subAssemblyId: string;
382
- singleReject: boolean;
383
- quorum: number;
384
- subjectCipherData: string;
385
- createApprovers: {
386
- tpWrappingKeyId: string;
387
- tpWrappedSharedKey: string;
388
- subjectKeyWrappedSharedKey: string;
389
- sharedCipherData: string;
390
- sharedCipherApprovalData: string;
391
- sharedCipherPartialAssemblyKey: string;
392
- approverId: string;
393
- tpId: string;
394
- }[];
395
- updateApprovers: {
396
- tpWrappingKeyId: string;
397
- tpWrappedSharedKey: string;
398
- subjectKeyWrappedSharedKey: string;
399
- sharedCipherData: string;
400
- sharedCipherApprovalData: string;
401
- sharedCipherPartialAssemblyKey: string;
402
- approverId: string;
403
- tpId: string;
404
- }[];
405
- }[];
406
- subjectKeyWrappedAssemblyKey: string;
407
- assemblyCipherData: string;
408
- assemblyKeyVerifierPbk: string;
409
- wrappedAssemblyKeyVerifierPrk: string;
410
- };
411
- createReceivers: {
412
- addDirectories: ({
413
- directoryId: string;
414
- accessRole: AccessRoleChoice.DENY;
415
- itemKeyId: any;
416
- wrappedItemKey: any;
417
- sharedCipherData: any;
418
- } | {
419
- fileId: string;
420
- accessRole: AccessRoleChoice.DENY;
421
- itemKeyId: any;
422
- wrappedItemKey: any;
423
- sharedCipherData: any;
424
- } | {
425
- directoryId: string;
426
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
427
- itemKeyId: any;
428
- wrappedItemKey: string;
429
- sharedCipherData: string;
430
- } | {
431
- fileId: string;
432
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
433
- itemKeyId: any;
434
- wrappedItemKey: string;
435
- sharedCipherData: string;
436
- })[];
437
- addFiles: ({
438
- directoryId: string;
439
- accessRole: AccessRoleChoice.DENY;
440
- itemKeyId: any;
441
- wrappedItemKey: any;
442
- sharedCipherData: any;
443
- } | {
444
- fileId: string;
445
- accessRole: AccessRoleChoice.DENY;
446
- itemKeyId: any;
447
- wrappedItemKey: any;
448
- sharedCipherData: any;
449
- } | {
450
- directoryId: string;
451
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
452
- itemKeyId: any;
453
- wrappedItemKey: string;
454
- sharedCipherData: string;
455
- } | {
456
- fileId: string;
457
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
458
- itemKeyId: any;
459
- wrappedItemKey: string;
460
- sharedCipherData: string;
461
- })[];
462
- tpId: string;
463
- tpSharedKeyId: string;
464
- tpSharedKeyWrappedSharedKey: string;
465
- sharedCipherData: string;
466
- }[];
467
- updateReceivers: {
468
- addDirectories: ({
469
- directoryId: string;
470
- accessRole: AccessRoleChoice.DENY;
471
- itemKeyId: any;
472
- wrappedItemKey: any;
473
- sharedCipherData: any;
474
- } | {
475
- fileId: string;
476
- accessRole: AccessRoleChoice.DENY;
477
- itemKeyId: any;
478
- wrappedItemKey: any;
479
- sharedCipherData: any;
480
- } | {
481
- directoryId: string;
482
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
483
- itemKeyId: any;
484
- wrappedItemKey: string;
485
- sharedCipherData: string;
486
- } | {
487
- fileId: string;
488
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
489
- itemKeyId: any;
490
- wrappedItemKey: string;
491
- sharedCipherData: string;
492
- })[];
493
- addFiles: ({
494
- directoryId: string;
495
- accessRole: AccessRoleChoice.DENY;
496
- itemKeyId: any;
497
- wrappedItemKey: any;
498
- sharedCipherData: any;
499
- } | {
500
- fileId: string;
501
- accessRole: AccessRoleChoice.DENY;
502
- itemKeyId: any;
503
- wrappedItemKey: any;
504
- sharedCipherData: any;
505
- } | {
506
- directoryId: string;
507
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
508
- itemKeyId: any;
509
- wrappedItemKey: string;
510
- sharedCipherData: string;
511
- } | {
512
- fileId: string;
513
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
514
- itemKeyId: any;
515
- wrappedItemKey: string;
516
- sharedCipherData: string;
517
- })[];
518
- updateDirectories: ({
519
- directoryId: string;
520
- accessRole: AccessRoleChoice.DENY;
521
- itemKeyId: any;
522
- wrappedItemKey: any;
523
- sharedCipherData: any;
524
- } | {
525
- fileId: string;
526
- accessRole: AccessRoleChoice.DENY;
527
- itemKeyId: any;
528
- wrappedItemKey: any;
529
- sharedCipherData: any;
530
- } | {
531
- directoryId: string;
532
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
533
- itemKeyId: any;
534
- wrappedItemKey: string;
535
- sharedCipherData: string;
536
- } | {
537
- fileId: string;
538
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
539
- itemKeyId: any;
540
- wrappedItemKey: string;
541
- sharedCipherData: string;
542
- })[];
543
- updateFiles: ({
544
- directoryId: string;
545
- accessRole: AccessRoleChoice.DENY;
546
- itemKeyId: any;
547
- wrappedItemKey: any;
548
- sharedCipherData: any;
549
- } | {
550
- fileId: string;
551
- accessRole: AccessRoleChoice.DENY;
552
- itemKeyId: any;
553
- wrappedItemKey: any;
554
- sharedCipherData: any;
555
- } | {
556
- directoryId: string;
557
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
558
- itemKeyId: any;
559
- wrappedItemKey: string;
560
- sharedCipherData: string;
561
- } | {
562
- fileId: string;
563
- accessRole: AccessRoleChoice.READER | AccessRoleChoice.WRITER | AccessRoleChoice.ADMIN | AccessRoleChoice.CUSTODIAN | AccessRoleChoice.OWNER;
564
- itemKeyId: any;
565
- wrappedItemKey: string;
566
- sharedCipherData: string;
567
- })[];
568
- deleteDirectories: string[];
569
- deleteFiles: string[];
570
- tpId: string;
571
- sharedKeyId: string;
572
- sharedCipherData: string;
573
- }[];
574
- deleteReceivers: string[];
575
- createClaimants: {
576
- tpId: string;
577
- tpSharedKeyId: string;
578
- tpSharedKeyWrappedSharedKey: string;
579
- sharedCipherData: string;
580
- }[];
581
- updateClaimants: {
582
- tpId: string;
583
- sharedKeyId: string;
584
- sharedCipherData: string;
585
- }[];
586
- deleteClaimants: string[];
587
- };
588
- }>>;
589
- deleteScenario(scenarioId: string): Promise<import("./scenario.gql").DeleteScenarioMutationResult>;
590
- deleteScenarioMutation(scenarioId: string): Promise<LrMutation<import("./scenario.gql").DeleteScenarioMutationResult, {
591
- input: {
592
- scenarioId: string;
593
- };
594
- }>>;
595
- createClaim(scenarioId: string): Promise<import("./scenario.gql").CreateScenarioClaimMutationResult>;
596
- createClaimMutation(scenarioId: string): Promise<LrMutation<import("./scenario.gql").CreateScenarioClaimMutationResult, {
597
- input: {
598
- scenarioId: string;
599
- };
600
- }>>;
601
- cancelClaim(claimId: string): Promise<import("./scenario.gql").CancelScenarioClaimMutationResult>;
602
- cancelClaimMutation(claimId: string): Promise<LrMutation<import("./scenario.gql").CancelScenarioClaimMutationResult, {
603
- input: {
604
- claimId: string;
605
- };
606
- }>>;
607
- rejectClaim(sharedScenarioId: string, claimId: string): Promise<any>;
608
- rejectClaimMutation(sharedScenarioId: string, claimId: string): Promise<LrMergedMutation<import("./scenario.gql").RejectScenarioClaimMutationResult[]>>;
609
- approveClaim(sharedScenarioId: string, sharedClaimId: string): Promise<any>;
610
- approveClaimMutation(sharedScenarioId: string, sharedClaimId: string): Promise<LrMergedMutation<import("./scenario.gql").ApproveScenarioClaimMutationResult[]>>;
611
- receiveClaim(scenarioId: string, sharedClaimId: string): Promise<import("./scenario.gql").ReceiveScenarioClaimMutationResult>;
612
- receiveClaim2Mutation(scenarioId: string, sharedClaimId: string): Promise<LrMutation<import("./scenario.gql").ReceiveScenarioClaimMutationResult, {
613
- input: {
614
- scenarioClaimId: string;
615
- sharedKeyWrappedAssemblyKey: string;
616
- sharedKeyId: string;
617
- assemblyKeyId: string;
618
- };
619
- }>>;
620
- debugExpireClaim(scenarioId: string): Promise<import("./scenario.gql").DebugExpireScenarioClaimMutationResult>;
621
- debugExpireClaimMutation(scenarioId: string): Promise<LrMutation<import("./scenario.gql").DebugExpireScenarioClaimMutationResult, {
622
- input: {
623
- scenarioId: string;
624
- };
625
- }>>;
626
- private getScenario;
627
- private getSharedScenario;
628
- private getParticipantTpsKeys;
629
- private fillTpSharedKeyId;
630
- private prepareCreateScenarioMutation;
631
- private prepareUpdateScenario;
632
- private prepareReceiverItem;
633
- private prepareReceiverDirectory;
634
- private prepareReceiverFile;
635
- private prepareCreateReceiver;
636
- private prepareUpdateReceiver;
637
- private prepareExistingReceiver;
638
- private prepareExistingReceivers;
639
- private prepareCreateParticipant;
640
- private prepareUpdateParticipant;
641
- private prepareCreateClaimant;
642
- private prepareUpdateClaimant;
643
- prepareReceiveClaim2(scenarioId: string, sharedClaimId: string): Promise<{
644
- scenarioClaimId: string;
645
- sharedKeyWrappedAssemblyKey: string;
646
- sharedKeyId: string;
647
- assemblyKeyId: string;
648
- }>;
649
- private recoverAssemblyKey;
650
- private asClaimApprovers;
651
- private prepareApproveClaimMutations;
652
- private prepareApproveClaim;
653
- private prepareReceiverApproval;
654
- private prepareRejectClaimMutations;
655
- }