@cratis/chronicle 2.1.1 → 3.1.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 (320) hide show
  1. package/EventStore.ts +17 -1
  2. package/IEventStore.ts +16 -0
  3. package/auditing/CausationType.ts +10 -0
  4. package/compliance/ComplianceContracts.ts +84 -0
  5. package/compliance/IPIIManager.ts +17 -0
  6. package/compliance/PIIManager.ts +31 -0
  7. package/compliance/index.ts +2 -0
  8. package/connection/ChronicleConnection.ts +7 -1
  9. package/connection/ChronicleServices.ts +2 -0
  10. package/connection/Guid.ts +18 -0
  11. package/dist/EventStore.d.ts +8 -0
  12. package/dist/EventStore.d.ts.map +1 -1
  13. package/dist/EventStore.js +13 -1
  14. package/dist/EventStore.js.map +1 -1
  15. package/dist/IEventStore.d.ts +12 -0
  16. package/dist/IEventStore.d.ts.map +1 -1
  17. package/dist/auditing/CausationType.d.ts +8 -0
  18. package/dist/auditing/CausationType.d.ts.map +1 -1
  19. package/dist/auditing/CausationType.js +8 -0
  20. package/dist/auditing/CausationType.js.map +1 -1
  21. package/dist/compliance/ComplianceContracts.d.ts +40 -0
  22. package/dist/compliance/ComplianceContracts.d.ts.map +1 -1
  23. package/dist/compliance/ComplianceContracts.js +71 -0
  24. package/dist/compliance/ComplianceContracts.js.map +1 -1
  25. package/dist/compliance/IPIIManager.d.ts +15 -0
  26. package/dist/compliance/IPIIManager.d.ts.map +1 -0
  27. package/dist/compliance/IPIIManager.js +4 -0
  28. package/dist/compliance/IPIIManager.js.map +1 -0
  29. package/dist/compliance/PIIManager.d.ts +20 -0
  30. package/dist/compliance/PIIManager.d.ts.map +1 -0
  31. package/dist/compliance/PIIManager.js +30 -0
  32. package/dist/compliance/PIIManager.js.map +1 -0
  33. package/dist/compliance/index.d.ts +2 -0
  34. package/dist/compliance/index.d.ts.map +1 -1
  35. package/dist/compliance/index.js +1 -0
  36. package/dist/compliance/index.js.map +1 -1
  37. package/dist/connection/ChronicleConnection.d.ts +1 -0
  38. package/dist/connection/ChronicleConnection.d.ts.map +1 -1
  39. package/dist/connection/ChronicleConnection.js +6 -1
  40. package/dist/connection/ChronicleConnection.js.map +1 -1
  41. package/dist/connection/ChronicleServices.d.ts +2 -0
  42. package/dist/connection/ChronicleServices.d.ts.map +1 -1
  43. package/dist/connection/Guid.d.ts +5 -0
  44. package/dist/connection/Guid.d.ts.map +1 -1
  45. package/dist/connection/Guid.js +15 -0
  46. package/dist/connection/Guid.js.map +1 -1
  47. package/dist/eventSequences/AppendOperationsBroadcaster.d.ts +16 -0
  48. package/dist/eventSequences/AppendOperationsBroadcaster.d.ts.map +1 -0
  49. package/dist/eventSequences/AppendOperationsBroadcaster.js +77 -0
  50. package/dist/eventSequences/AppendOperationsBroadcaster.js.map +1 -0
  51. package/dist/eventSequences/AppendOptions.d.ts +7 -0
  52. package/dist/eventSequences/AppendOptions.d.ts.map +1 -1
  53. package/dist/eventSequences/AppendResult.d.ts +14 -0
  54. package/dist/eventSequences/AppendResult.d.ts.map +1 -1
  55. package/dist/eventSequences/AppendedEventWithResult.d.ts +13 -0
  56. package/dist/eventSequences/AppendedEventWithResult.d.ts.map +1 -0
  57. package/dist/eventSequences/AppendedEventWithResult.js +4 -0
  58. package/dist/eventSequences/AppendedEventWithResult.js.map +1 -0
  59. package/dist/eventSequences/CompleteStreamError.d.ts +17 -0
  60. package/dist/eventSequences/CompleteStreamError.d.ts.map +1 -0
  61. package/dist/eventSequences/CompleteStreamError.js +20 -0
  62. package/dist/eventSequences/CompleteStreamError.js.map +1 -0
  63. package/dist/eventSequences/CompleteStreamResult.d.ts +14 -0
  64. package/dist/eventSequences/CompleteStreamResult.d.ts.map +1 -0
  65. package/dist/eventSequences/CompleteStreamResult.js +4 -0
  66. package/dist/eventSequences/CompleteStreamResult.js.map +1 -0
  67. package/dist/eventSequences/ConcurrencyViolation.d.ts +13 -0
  68. package/dist/eventSequences/ConcurrencyViolation.d.ts.map +1 -0
  69. package/dist/eventSequences/ConcurrencyViolation.js +4 -0
  70. package/dist/eventSequences/ConcurrencyViolation.js.map +1 -0
  71. package/dist/eventSequences/EventForEventSourceId.d.ts +8 -0
  72. package/dist/eventSequences/EventForEventSourceId.d.ts.map +1 -1
  73. package/dist/eventSequences/EventSequence.d.ts +35 -1
  74. package/dist/eventSequences/EventSequence.d.ts.map +1 -1
  75. package/dist/eventSequences/EventSequence.js +350 -19
  76. package/dist/eventSequences/EventSequence.js.map +1 -1
  77. package/dist/eventSequences/IEventSequence.d.ts +85 -1
  78. package/dist/eventSequences/IEventSequence.d.ts.map +1 -1
  79. package/dist/eventSequences/WaitForCompletionResult.d.ts +11 -0
  80. package/dist/eventSequences/WaitForCompletionResult.d.ts.map +1 -0
  81. package/dist/eventSequences/WaitForCompletionResult.js +4 -0
  82. package/dist/eventSequences/WaitForCompletionResult.js.map +1 -0
  83. package/dist/eventSequences/index.d.ts +5 -0
  84. package/dist/eventSequences/index.d.ts.map +1 -1
  85. package/dist/eventSequences/index.js +1 -0
  86. package/dist/eventSequences/index.js.map +1 -1
  87. package/dist/eventStoreSubscriptions/EventStoreSubscriptions.d.ts +3 -0
  88. package/dist/eventStoreSubscriptions/EventStoreSubscriptions.d.ts.map +1 -1
  89. package/dist/eventStoreSubscriptions/EventStoreSubscriptions.js +9 -0
  90. package/dist/eventStoreSubscriptions/EventStoreSubscriptions.js.map +1 -1
  91. package/dist/eventStoreSubscriptions/IEventStoreSubscriptions.d.ts +6 -0
  92. package/dist/eventStoreSubscriptions/IEventStoreSubscriptions.d.ts.map +1 -1
  93. package/dist/eventStoreSubscriptions/contracts.d.ts +18 -0
  94. package/dist/eventStoreSubscriptions/contracts.d.ts.map +1 -1
  95. package/dist/eventStoreSubscriptions/contracts.js +106 -0
  96. package/dist/eventStoreSubscriptions/contracts.js.map +1 -1
  97. package/dist/events/constraints/Constraints.js +1 -1
  98. package/dist/events/constraints/Constraints.js.map +1 -1
  99. package/dist/externalServices/ExternalServiceBuilder.d.ts +42 -0
  100. package/dist/externalServices/ExternalServiceBuilder.d.ts.map +1 -0
  101. package/dist/externalServices/ExternalServiceBuilder.js +110 -0
  102. package/dist/externalServices/ExternalServiceBuilder.js.map +1 -0
  103. package/dist/externalServices/ExternalServices.d.ts +19 -0
  104. package/dist/externalServices/ExternalServices.d.ts.map +1 -0
  105. package/dist/externalServices/ExternalServices.js +30 -0
  106. package/dist/externalServices/ExternalServices.js.map +1 -0
  107. package/dist/externalServices/ExternalServicesContracts.d.ts +137 -0
  108. package/dist/externalServices/ExternalServicesContracts.d.ts.map +1 -0
  109. package/dist/externalServices/ExternalServicesContracts.js +654 -0
  110. package/dist/externalServices/ExternalServicesContracts.js.map +1 -0
  111. package/dist/externalServices/IExternalServiceBuilder.d.ts +67 -0
  112. package/dist/externalServices/IExternalServiceBuilder.d.ts.map +1 -0
  113. package/dist/externalServices/IExternalServiceBuilder.js +4 -0
  114. package/dist/externalServices/IExternalServiceBuilder.js.map +1 -0
  115. package/dist/externalServices/IExternalServices.d.ts +13 -0
  116. package/dist/externalServices/IExternalServices.d.ts.map +1 -0
  117. package/dist/externalServices/IExternalServices.js +4 -0
  118. package/dist/externalServices/IExternalServices.js.map +1 -0
  119. package/dist/externalServices/index.d.ts +5 -0
  120. package/dist/externalServices/index.d.ts.map +1 -0
  121. package/dist/externalServices/index.js +5 -0
  122. package/dist/externalServices/index.js.map +1 -0
  123. package/dist/identities/IIdentityManager.d.ts +17 -0
  124. package/dist/identities/IIdentityManager.d.ts.map +1 -0
  125. package/dist/identities/IIdentityManager.js +4 -0
  126. package/dist/identities/IIdentityManager.js.map +1 -0
  127. package/dist/identities/IdentityManager.d.ts +20 -0
  128. package/dist/identities/IdentityManager.d.ts.map +1 -0
  129. package/dist/identities/IdentityManager.js +31 -0
  130. package/dist/identities/IdentityManager.js.map +1 -0
  131. package/dist/identities/index.d.ts +3 -0
  132. package/dist/identities/index.d.ts.map +1 -0
  133. package/dist/identities/index.js +4 -0
  134. package/dist/identities/index.js.map +1 -0
  135. package/dist/index.d.ts +5 -1
  136. package/dist/index.d.ts.map +1 -1
  137. package/dist/index.js +5 -1
  138. package/dist/index.js.map +1 -1
  139. package/dist/observation/FailedPartition.d.ts +15 -0
  140. package/dist/observation/FailedPartition.d.ts.map +1 -0
  141. package/dist/observation/FailedPartition.js +4 -0
  142. package/dist/observation/FailedPartition.js.map +1 -0
  143. package/dist/observation/FailedPartitionAttempt.d.ts +15 -0
  144. package/dist/observation/FailedPartitionAttempt.d.ts.map +1 -0
  145. package/dist/observation/FailedPartitionAttempt.js +4 -0
  146. package/dist/observation/FailedPartitionAttempt.js.map +1 -0
  147. package/dist/observation/FailedPartitions.d.ts +24 -0
  148. package/dist/observation/FailedPartitions.d.ts.map +1 -0
  149. package/dist/observation/FailedPartitions.js +39 -0
  150. package/dist/observation/FailedPartitions.js.map +1 -0
  151. package/dist/observation/ICanBeNotifiedWhenPartitionReplayed.d.ts +19 -0
  152. package/dist/observation/ICanBeNotifiedWhenPartitionReplayed.d.ts.map +1 -0
  153. package/dist/observation/ICanBeNotifiedWhenPartitionReplayed.js +4 -0
  154. package/dist/observation/ICanBeNotifiedWhenPartitionReplayed.js.map +1 -0
  155. package/dist/observation/ICanBeNotifiedWhenReplay.d.ts +17 -0
  156. package/dist/observation/ICanBeNotifiedWhenReplay.d.ts.map +1 -0
  157. package/dist/observation/ICanBeNotifiedWhenReplay.js +4 -0
  158. package/dist/observation/ICanBeNotifiedWhenReplay.js.map +1 -0
  159. package/dist/observation/IFailedPartitions.d.ts +18 -0
  160. package/dist/observation/IFailedPartitions.d.ts.map +1 -0
  161. package/dist/observation/IFailedPartitions.js +4 -0
  162. package/dist/observation/IFailedPartitions.js.map +1 -0
  163. package/dist/observation/index.d.ts +6 -0
  164. package/dist/observation/index.d.ts.map +1 -1
  165. package/dist/observation/index.js +1 -0
  166. package/dist/observation/index.js.map +1 -1
  167. package/dist/observation/notifyReplayLifecycle.d.ts +13 -0
  168. package/dist/observation/notifyReplayLifecycle.d.ts.map +1 -0
  169. package/dist/observation/notifyReplayLifecycle.js +54 -0
  170. package/dist/observation/notifyReplayLifecycle.js.map +1 -0
  171. package/dist/observation/toClientFailedPartition.d.ts +9 -0
  172. package/dist/observation/toClientFailedPartition.d.ts.map +1 -0
  173. package/dist/observation/toClientFailedPartition.js +23 -0
  174. package/dist/observation/toClientFailedPartition.js.map +1 -0
  175. package/dist/projections/Projections.d.ts +0 -4
  176. package/dist/projections/Projections.d.ts.map +1 -1
  177. package/dist/projections/Projections.js +25 -103
  178. package/dist/projections/Projections.js.map +1 -1
  179. package/dist/projections/declarative/AddBuilder.d.ts +17 -0
  180. package/dist/projections/declarative/AddBuilder.d.ts.map +1 -0
  181. package/dist/projections/declarative/AddBuilder.js +28 -0
  182. package/dist/projections/declarative/AddBuilder.js.map +1 -0
  183. package/dist/projections/declarative/AddChildBuilder.d.ts +56 -0
  184. package/dist/projections/declarative/AddChildBuilder.d.ts.map +1 -0
  185. package/dist/projections/declarative/AddChildBuilder.js +72 -0
  186. package/dist/projections/declarative/AddChildBuilder.js.map +1 -0
  187. package/dist/projections/declarative/ChildrenBuilder.d.ts +28 -0
  188. package/dist/projections/declarative/ChildrenBuilder.d.ts.map +1 -0
  189. package/dist/projections/declarative/ChildrenBuilder.js +72 -0
  190. package/dist/projections/declarative/ChildrenBuilder.js.map +1 -0
  191. package/dist/projections/declarative/CompositeKeyBuilder.d.ts +16 -0
  192. package/dist/projections/declarative/CompositeKeyBuilder.d.ts.map +1 -0
  193. package/dist/projections/declarative/CompositeKeyBuilder.js +29 -0
  194. package/dist/projections/declarative/CompositeKeyBuilder.js.map +1 -0
  195. package/dist/projections/declarative/FromBuilder.d.ts +8 -6
  196. package/dist/projections/declarative/FromBuilder.d.ts.map +1 -1
  197. package/dist/projections/declarative/FromBuilder.js +44 -14
  198. package/dist/projections/declarative/FromBuilder.js.map +1 -1
  199. package/dist/projections/declarative/ICompositeKeyBuilder.d.ts +5 -0
  200. package/dist/projections/declarative/ICompositeKeyBuilder.d.ts.map +1 -1
  201. package/dist/projections/declarative/JoinBuilder.d.ts +7 -5
  202. package/dist/projections/declarative/JoinBuilder.d.ts.map +1 -1
  203. package/dist/projections/declarative/JoinBuilder.js +50 -16
  204. package/dist/projections/declarative/JoinBuilder.js.map +1 -1
  205. package/dist/projections/declarative/NestedBuilder.d.ts +24 -0
  206. package/dist/projections/declarative/NestedBuilder.d.ts.map +1 -0
  207. package/dist/projections/declarative/NestedBuilder.js +60 -0
  208. package/dist/projections/declarative/NestedBuilder.js.map +1 -0
  209. package/dist/projections/declarative/ProjectionBuilderCore.d.ts +127 -0
  210. package/dist/projections/declarative/ProjectionBuilderCore.d.ts.map +1 -0
  211. package/dist/projections/declarative/ProjectionBuilderCore.js +180 -0
  212. package/dist/projections/declarative/ProjectionBuilderCore.js.map +1 -0
  213. package/dist/projections/declarative/ProjectionBuilderFor.d.ts +6 -32
  214. package/dist/projections/declarative/ProjectionBuilderFor.d.ts.map +1 -1
  215. package/dist/projections/declarative/ProjectionBuilderFor.js +24 -118
  216. package/dist/projections/declarative/ProjectionBuilderFor.js.map +1 -1
  217. package/dist/projections/declarative/SubtractBuilder.d.ts +17 -0
  218. package/dist/projections/declarative/SubtractBuilder.d.ts.map +1 -0
  219. package/dist/projections/declarative/SubtractBuilder.js +28 -0
  220. package/dist/projections/declarative/SubtractBuilder.js.map +1 -0
  221. package/dist/projections/declarative/index.d.ts +9 -0
  222. package/dist/projections/declarative/index.d.ts.map +1 -1
  223. package/dist/projections/declarative/index.js +8 -0
  224. package/dist/projections/declarative/index.js.map +1 -1
  225. package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts +90 -0
  226. package/dist/projections/modelBound/childrenAndNestedBuilder.d.ts.map +1 -0
  227. package/dist/projections/modelBound/childrenAndNestedBuilder.js +290 -0
  228. package/dist/projections/modelBound/childrenAndNestedBuilder.js.map +1 -0
  229. package/dist/reactors/ReactorSideEffects.d.ts +29 -0
  230. package/dist/reactors/ReactorSideEffects.d.ts.map +1 -0
  231. package/dist/reactors/ReactorSideEffects.js +70 -0
  232. package/dist/reactors/ReactorSideEffects.js.map +1 -0
  233. package/dist/reactors/Reactors.d.ts +4 -1
  234. package/dist/reactors/Reactors.d.ts.map +1 -1
  235. package/dist/reactors/Reactors.js +23 -4
  236. package/dist/reactors/Reactors.js.map +1 -1
  237. package/dist/reducers/Reducers.d.ts.map +1 -1
  238. package/dist/reducers/Reducers.js +15 -3
  239. package/dist/reducers/Reducers.js.map +1 -1
  240. package/dist/reducers/reducer.d.ts +9 -1
  241. package/dist/reducers/reducer.d.ts.map +1 -1
  242. package/dist/reducers/reducer.js +4 -2
  243. package/dist/reducers/reducer.js.map +1 -1
  244. package/dist/transactions/IUnitOfWork.d.ts +18 -0
  245. package/dist/transactions/IUnitOfWork.d.ts.map +1 -1
  246. package/dist/transactions/UnitOfWork.d.ts +9 -0
  247. package/dist/transactions/UnitOfWork.d.ts.map +1 -1
  248. package/dist/transactions/UnitOfWork.js +14 -0
  249. package/dist/transactions/UnitOfWork.js.map +1 -1
  250. package/dist/tsconfig.tsbuildinfo +1 -1
  251. package/eventSequences/AppendOperationsBroadcaster.ts +83 -0
  252. package/eventSequences/AppendOptions.ts +8 -0
  253. package/eventSequences/AppendResult.ts +16 -0
  254. package/eventSequences/AppendedEventWithResult.ts +17 -0
  255. package/eventSequences/CompleteStreamError.ts +20 -0
  256. package/eventSequences/CompleteStreamResult.ts +13 -0
  257. package/eventSequences/ConcurrencyViolation.ts +18 -0
  258. package/eventSequences/EventForEventSourceId.ts +12 -0
  259. package/eventSequences/EventSequence.spec.ts +588 -0
  260. package/eventSequences/EventSequence.ts +406 -20
  261. package/eventSequences/IEventSequence.ts +109 -1
  262. package/eventSequences/WaitForCompletionResult.ts +15 -0
  263. package/eventSequences/index.ts +5 -0
  264. package/eventStoreSubscriptions/EventStoreSubscriptions.spec.ts +52 -0
  265. package/eventStoreSubscriptions/EventStoreSubscriptions.ts +19 -1
  266. package/eventStoreSubscriptions/IEventStoreSubscriptions.ts +7 -0
  267. package/eventStoreSubscriptions/contracts.ts +126 -0
  268. package/events/constraints/Constraints.ts +1 -1
  269. package/externalServices/ExternalServiceBuilder.ts +128 -0
  270. package/externalServices/ExternalServices.ts +34 -0
  271. package/externalServices/ExternalServicesContracts.ts +709 -0
  272. package/externalServices/IExternalServiceBuilder.ts +76 -0
  273. package/externalServices/IExternalServices.ts +16 -0
  274. package/externalServices/index.ts +7 -0
  275. package/fundamentalsPeerRange.spec.ts +31 -0
  276. package/identities/IIdentityManager.ts +19 -0
  277. package/identities/IdentityManager.ts +32 -0
  278. package/identities/index.ts +5 -0
  279. package/index.ts +6 -0
  280. package/observation/FailedPartition.ts +21 -0
  281. package/observation/FailedPartitionAttempt.ts +21 -0
  282. package/observation/FailedPartitions.spec.ts +75 -0
  283. package/observation/FailedPartitions.ts +44 -0
  284. package/observation/ICanBeNotifiedWhenPartitionReplayed.ts +22 -0
  285. package/observation/ICanBeNotifiedWhenReplay.ts +20 -0
  286. package/observation/IFailedPartitions.ts +22 -0
  287. package/observation/index.ts +6 -0
  288. package/observation/notifyReplayLifecycle.spec.ts +98 -0
  289. package/observation/notifyReplayLifecycle.ts +61 -0
  290. package/observation/toClientFailedPartition.ts +26 -0
  291. package/package.json +16 -3
  292. package/projections/Projections.childrenAndNested.spec.ts +188 -0
  293. package/projections/Projections.spec.ts +131 -0
  294. package/projections/Projections.ts +37 -119
  295. package/projections/declarative/AddBuilder.ts +28 -0
  296. package/projections/declarative/AddChildBuilder.ts +97 -0
  297. package/projections/declarative/ChildrenBuilder.spec.ts +157 -0
  298. package/projections/declarative/ChildrenBuilder.ts +90 -0
  299. package/projections/declarative/CompositeKeyBuilder.spec.ts +117 -0
  300. package/projections/declarative/CompositeKeyBuilder.ts +38 -0
  301. package/projections/declarative/FromBuilder.ts +60 -15
  302. package/projections/declarative/ICompositeKeyBuilder.ts +6 -0
  303. package/projections/declarative/JoinBuilder.ts +66 -17
  304. package/projections/declarative/NestedBuilder.ts +76 -0
  305. package/projections/declarative/ProjectionBuilderCore.ts +257 -0
  306. package/projections/declarative/ProjectionBuilderFor.spec.ts +115 -0
  307. package/projections/declarative/ProjectionBuilderFor.ts +29 -168
  308. package/projections/declarative/SubtractBuilder.ts +28 -0
  309. package/projections/declarative/index.ts +9 -0
  310. package/projections/modelBound/childrenAndNestedBuilder.ts +354 -0
  311. package/reactors/ReactorSideEffects.spec.ts +182 -0
  312. package/reactors/ReactorSideEffects.ts +97 -0
  313. package/reactors/Reactors.ts +29 -4
  314. package/reducers/Reducers.spec.ts +87 -0
  315. package/reducers/Reducers.ts +15 -3
  316. package/reducers/reducer.spec.ts +40 -0
  317. package/reducers/reducer.ts +11 -2
  318. package/transactions/IUnitOfWork.ts +21 -0
  319. package/transactions/UnitOfWork.spec.ts +82 -0
  320. package/transactions/UnitOfWork.ts +20 -0
package/EventStore.ts CHANGED
@@ -37,6 +37,14 @@ import { IWebhooks } from './webhooks/IWebhooks';
37
37
  import { Webhooks } from './webhooks/Webhooks';
38
38
  import { EventStoreSubscriptions } from './eventStoreSubscriptions/EventStoreSubscriptions';
39
39
  import { IEventStoreSubscriptions } from './eventStoreSubscriptions/IEventStoreSubscriptions';
40
+ import { ExternalServices } from './externalServices/ExternalServices';
41
+ import { IExternalServices } from './externalServices/IExternalServices';
42
+ import { IdentityManager } from './identities/IdentityManager';
43
+ import { IIdentityManager } from './identities/IIdentityManager';
44
+ import { PIIManager } from './compliance/PIIManager';
45
+ import { IPIIManager } from './compliance/IPIIManager';
46
+ import { FailedPartitions } from './observation/FailedPartitions';
47
+ import { IFailedPartitions } from './observation/IFailedPartitions';
40
48
 
41
49
  /**
42
50
  * Implements {@link IEventStore} by communicating with the Chronicle Kernel
@@ -59,6 +67,10 @@ export class EventStore implements IEventStore {
59
67
  readonly webhooks: IWebhooks;
60
68
  readonly subscriptions: IEventStoreSubscriptions;
61
69
  readonly seeding: IEventSeeding;
70
+ readonly externalServices: IExternalServices;
71
+ readonly identities: IIdentityManager;
72
+ readonly pii: IPIIManager;
73
+ readonly failedPartitions: IFailedPartitions;
62
74
 
63
75
  private readonly _sequences: Map<string, IEventSequence> = new Map();
64
76
 
@@ -78,13 +90,17 @@ export class EventStore implements IEventStore {
78
90
  this.eventTypes = new EventTypes(name.value, _connection, artifacts);
79
91
  this.constraints = new Constraints(name.value, _connection, artifacts);
80
92
  this.projections = new Projections(name.value, _connection, artifacts, defaultSinkTypeId);
81
- this.reactors = new Reactors(artifacts, _connection, name.value, namespace.value, lifecycle);
93
+ this.reactors = new Reactors(artifacts, _connection, name.value, namespace.value, lifecycle, this.eventLog);
82
94
  this.reducers = new Reducers(artifacts, _connection, name.value, namespace.value, lifecycle, defaultSinkTypeId);
83
95
  this.readModels = new ReadModels(name.value, namespace.value, _connection, artifacts, defaultSinkTypeId);
84
96
  this.jobs = new Jobs(name.value, namespace.value, _connection);
85
97
  this.webhooks = new Webhooks(name.value, _connection, this.eventTypes, artifacts);
86
98
  this.subscriptions = new EventStoreSubscriptions(this.eventTypes, name.value, _connection);
87
99
  this.seeding = new EventSeeding(name.value, _connection, artifacts);
100
+ this.externalServices = new ExternalServices(name.value, _connection);
101
+ this.identities = new IdentityManager(name.value, namespace.value, _connection);
102
+ this.pii = new PIIManager(name.value, namespace.value, _connection);
103
+ this.failedPartitions = new FailedPartitions(name.value, namespace.value, _connection);
88
104
  }
89
105
 
90
106
  /**
package/IEventStore.ts CHANGED
@@ -17,6 +17,10 @@ import { IWebhooks } from './webhooks/IWebhooks';
17
17
  import { IEventSeeding } from './seeding/IEventSeeding';
18
18
  import { IEventStoreSubscriptions } from './eventStoreSubscriptions/IEventStoreSubscriptions';
19
19
  import { IReadModels } from './readModels/IReadModels';
20
+ import { IExternalServices } from './externalServices/IExternalServices';
21
+ import { IIdentityManager } from './identities/IIdentityManager';
22
+ import { IPIIManager } from './compliance/IPIIManager';
23
+ import { IFailedPartitions } from './observation/IFailedPartitions';
20
24
 
21
25
  /**
22
26
  * Defines the API surface for an event store.
@@ -65,6 +69,18 @@ export interface IEventStore {
65
69
  /** The event seeding manager for this event store. */
66
70
  readonly seeding: IEventSeeding;
67
71
 
72
+ /** The external services manager for this event store. */
73
+ readonly externalServices: IExternalServices;
74
+
75
+ /** The identities manager for this event store. */
76
+ readonly identities: IIdentityManager;
77
+
78
+ /** The PII (Personal Identifiable Information) compliance manager for this event store. */
79
+ readonly pii: IPIIManager;
80
+
81
+ /** The failed partitions manager for this event store. */
82
+ readonly failedPartitions: IFailedPartitions;
83
+
68
84
  /**
69
85
  * Gets an event sequence by its identifier.
70
86
  * @param id - The identifier of the event sequence to retrieve.
@@ -25,6 +25,16 @@ export class CausationType {
25
25
  */
26
26
  static readonly appendManyEvents = new CausationType('TypeScriptClient.AppendMany');
27
27
 
28
+ /**
29
+ * Represents the causation type for redacting a single event via the TypeScript client.
30
+ */
31
+ static readonly redact = new CausationType('TypeScriptClient.Redact');
32
+
33
+ /**
34
+ * Represents the causation type for redacting all events for an event source via the TypeScript client.
35
+ */
36
+ static readonly redactForEventSource = new CausationType('TypeScriptClient.RedactForEventSource');
37
+
28
38
  /**
29
39
  * Initializes a new instance of the {@link CausationType} class.
30
40
  * @param name - The name of the causation type.
@@ -24,6 +24,20 @@ export interface ReleaseResponse {
24
24
  Error: string;
25
25
  }
26
26
 
27
+ /**
28
+ * Request to delete the encryption key for a PII encryption key identifier (GDPR right-to-erasure).
29
+ */
30
+ export interface DeleteEncryptionKeyRequest {
31
+ EventStore: string;
32
+ Namespace: string;
33
+ Identifier: string;
34
+ }
35
+
36
+ /**
37
+ * An empty protobuf message.
38
+ */
39
+ export interface Empty {}
40
+
27
41
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
28
42
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
29
43
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -34,6 +48,7 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<
34
48
  */
35
49
  export interface ComplianceClient<CallOptionsExt = {}> {
36
50
  release(request: DeepPartial<ReleaseRequest>, options?: CallOptions & CallOptionsExt): Promise<ReleaseResponse>;
51
+ deleteEncryptionKey(request: DeepPartial<DeleteEncryptionKeyRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
37
52
  }
38
53
 
39
54
  export const ReleaseRequest = {
@@ -126,6 +141,67 @@ export const ReleaseResponse = {
126
141
  }
127
142
  };
128
143
 
144
+ export const DeleteEncryptionKeyRequest = {
145
+ encode(message: DeleteEncryptionKeyRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
146
+ if (message.EventStore !== '') {
147
+ writer.uint32(10).string(message.EventStore);
148
+ }
149
+ if (message.Namespace !== '') {
150
+ writer.uint32(18).string(message.Namespace);
151
+ }
152
+ if (message.Identifier !== '') {
153
+ writer.uint32(26).string(message.Identifier);
154
+ }
155
+ return writer;
156
+ },
157
+
158
+ decode(input: BinaryReader | Uint8Array, length?: number): DeleteEncryptionKeyRequest {
159
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
160
+ const end = length === undefined ? reader.len : reader.pos + length;
161
+ const message: DeleteEncryptionKeyRequest = { EventStore: '', Namespace: '', Identifier: '' };
162
+ while (reader.pos < end) {
163
+ const tag = reader.uint32();
164
+ switch (tag >>> 3) {
165
+ case 1: message.EventStore = reader.string(); continue;
166
+ case 2: message.Namespace = reader.string(); continue;
167
+ case 3: message.Identifier = reader.string(); continue;
168
+ }
169
+ if ((tag & 7) === 4 || tag === 0) break;
170
+ reader.skip(tag & 7);
171
+ }
172
+ return message;
173
+ },
174
+
175
+ fromPartial(object: DeepPartial<DeleteEncryptionKeyRequest>): DeleteEncryptionKeyRequest {
176
+ return {
177
+ EventStore: object.EventStore ?? '',
178
+ Namespace: object.Namespace ?? '',
179
+ Identifier: object.Identifier ?? ''
180
+ };
181
+ }
182
+ };
183
+
184
+ export const Empty = {
185
+ encode(_: Empty, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
186
+ return writer;
187
+ },
188
+
189
+ decode(input: BinaryReader | Uint8Array, length?: number): Empty {
190
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
191
+ const end = length === undefined ? reader.len : reader.pos + length;
192
+ while (reader.pos < end) {
193
+ const tag = reader.uint32();
194
+ if ((tag & 7) === 4 || tag === 0) break;
195
+ reader.skip(tag & 7);
196
+ }
197
+ return {};
198
+ },
199
+
200
+ fromPartial(_: DeepPartial<Empty>): Empty {
201
+ return {};
202
+ }
203
+ };
204
+
129
205
  /**
130
206
  * Compliance service definition for nice-grpc.
131
207
  */
@@ -140,6 +216,14 @@ export const ComplianceDefinition = {
140
216
  responseType: ReleaseResponse,
141
217
  responseStream: false as const,
142
218
  options: {}
219
+ },
220
+ deleteEncryptionKey: {
221
+ name: 'DeleteEncryptionKey',
222
+ requestType: DeleteEncryptionKeyRequest,
223
+ requestStream: false as const,
224
+ responseType: Empty,
225
+ responseStream: false as const,
226
+ options: {}
143
227
  }
144
228
  }
145
229
  } as const;
@@ -0,0 +1,17 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ /**
5
+ * Defines a manager for working with Personal Identifiable Information (PII) compliance concerns.
6
+ */
7
+ export interface IPIIManager {
8
+ /**
9
+ * Deletes the encryption key for a given PII encryption key identifier, effectively performing
10
+ * a GDPR right-to-erasure for all data encrypted with that key.
11
+ * @param identifier - The identifier of the encryption key to delete.
12
+ * @remarks
13
+ * Once the encryption key is deleted, any data encrypted with it can no longer be decrypted -
14
+ * this operation cannot be undone.
15
+ */
16
+ deleteEncryptionKey(identifier: string): Promise<void>;
17
+ }
@@ -0,0 +1,31 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+
4
+ import { ChronicleConnection } from '../connection';
5
+ import { IPIIManager } from './IPIIManager';
6
+
7
+ /**
8
+ * Implements {@link IPIIManager} by proxying to the Chronicle Kernel over the client connection.
9
+ */
10
+ export class PIIManager implements IPIIManager {
11
+ /**
12
+ * Creates a new {@link PIIManager} instance.
13
+ * @param _eventStore - Event store name.
14
+ * @param _namespace - Event store namespace.
15
+ * @param _connection - Chronicle connection.
16
+ */
17
+ constructor(
18
+ private readonly _eventStore: string,
19
+ private readonly _namespace: string,
20
+ private readonly _connection: ChronicleConnection
21
+ ) {}
22
+
23
+ /** @inheritdoc */
24
+ async deleteEncryptionKey(identifier: string): Promise<void> {
25
+ await this._connection.compliance.deleteEncryptionKey({
26
+ EventStore: this._eventStore,
27
+ Namespace: this._namespace,
28
+ Identifier: identifier
29
+ });
30
+ }
31
+ }
@@ -5,3 +5,5 @@ export { ComplianceMetadataType } from './ComplianceMetadataType';
5
5
  export type { ComplianceMetadata } from './ComplianceMetadata';
6
6
  export { pii, getPIIMetadata, hasPIIMetadata, getTypePIIMetadata, isPII } from './pii';
7
7
  export { ComplianceMetadataResolver } from './ComplianceMetadataResolver';
8
+ export type { IPIIManager } from './IPIIManager';
9
+ export { PIIManager } from './PIIManager';
@@ -29,6 +29,7 @@ import { createChannel, createClientFactory, waitForChannelReady } from 'nice-gr
29
29
  import type { ClientMiddleware } from 'nice-grpc-common';
30
30
  import { Metadata } from 'nice-grpc-common';
31
31
  import { EventStoreSubscriptionsDefinition } from '../eventStoreSubscriptions/contracts';
32
+ import { ExternalServicesDefinition } from '../externalServices/ExternalServicesContracts';
32
33
  import { AuthenticationMode, ChronicleConnectionString } from './ChronicleConnectionString';
33
34
  import { ChronicleServerAddressResolver } from './ChronicleServerAddressResolver';
34
35
  import { ChronicleServices } from './ChronicleServices';
@@ -207,6 +208,10 @@ export class ChronicleConnection implements ChronicleServices {
207
208
  return this._services.compliance;
208
209
  }
209
210
 
211
+ get externalServices() {
212
+ return this._services.externalServices;
213
+ }
214
+
210
215
  get connections(): ConnectionServiceClient {
211
216
  return this._connections;
212
217
  }
@@ -286,7 +291,8 @@ export class ChronicleConnection implements ChronicleServices {
286
291
  webhooks: factory.create(WebhooksDefinition, this._channel),
287
292
  eventSeeding: factory.create(EventSeedingDefinition, this._channel),
288
293
  server: factory.create(ServerDefinition, this._channel),
289
- compliance: factory.create(ComplianceDefinition as any, this._channel) as any
294
+ compliance: factory.create(ComplianceDefinition as any, this._channel) as any,
295
+ externalServices: factory.create(ExternalServicesDefinition, this._channel)
290
296
  };
291
297
  this._connections = factory.create(ConnectionServiceDefinition, this._channel);
292
298
  }
@@ -23,6 +23,7 @@ import type {
23
23
  } from '@cratis/chronicle.contracts';
24
24
  import type { ComplianceClient } from '../compliance/ComplianceContracts';
25
25
  import type { EventStoreSubscriptionsClient } from '../eventStoreSubscriptions/contracts';
26
+ import type { ExternalServicesClient } from '../externalServices/ExternalServicesContracts';
26
27
 
27
28
  /**
28
29
  * Represents all Chronicle gRPC services.
@@ -48,4 +49,5 @@ export interface ChronicleServices {
48
49
  eventSeeding: EventSeedingClient;
49
50
  server: ServerClient;
50
51
  compliance: ComplianceClient;
52
+ externalServices: ExternalServicesClient;
51
53
  }
@@ -27,4 +27,22 @@ export function toContractsGuid(guid: FundamentalGuid): ContractsGuid {
27
27
  lo,
28
28
  hi
29
29
  };
30
+ }
31
+
32
+ /**
33
+ * Converts a protobuf-net bcl.Guid from the contracts package into a Chronicle Guid.
34
+ * The reverse of {@link toContractsGuid}.
35
+ */
36
+ export function fromContractsGuid(guid: ContractsGuid | undefined): FundamentalGuid {
37
+ if (!guid) {
38
+ return FundamentalGuid.empty;
39
+ }
40
+
41
+ const bytes = new Array<number>(16).fill(0);
42
+ for (let index = 0; index < 8; index++) {
43
+ bytes[index] = Number((guid.lo >> BigInt(index * 8)) & 0xffn);
44
+ bytes[index + 8] = Number((guid.hi >> BigInt(index * 8)) & 0xffn);
45
+ }
46
+
47
+ return new FundamentalGuid(bytes);
30
48
  }
@@ -17,6 +17,10 @@ import { IUnitOfWorkManager } from './transactions/IUnitOfWorkManager';
17
17
  import { IJobs } from './jobs/IJobs';
18
18
  import { IWebhooks } from './webhooks/IWebhooks';
19
19
  import { IEventStoreSubscriptions } from './eventStoreSubscriptions/IEventStoreSubscriptions';
20
+ import { IExternalServices } from './externalServices/IExternalServices';
21
+ import { IIdentityManager } from './identities/IIdentityManager';
22
+ import { IPIIManager } from './compliance/IPIIManager';
23
+ import { IFailedPartitions } from './observation/IFailedPartitions';
20
24
  /**
21
25
  * Implements {@link IEventStore} by communicating with the Chronicle Kernel
22
26
  * via gRPC using the provided {@link ChronicleConnection}.
@@ -38,6 +42,10 @@ export declare class EventStore implements IEventStore {
38
42
  readonly webhooks: IWebhooks;
39
43
  readonly subscriptions: IEventStoreSubscriptions;
40
44
  readonly seeding: IEventSeeding;
45
+ readonly externalServices: IExternalServices;
46
+ readonly identities: IIdentityManager;
47
+ readonly pii: IPIIManager;
48
+ readonly failedPartitions: IFailedPartitions;
41
49
  private readonly _sequences;
42
50
  constructor(name: EventStoreName, namespace: EventStoreNamespaceName, _connection: ChronicleConnection, lifecycle: ConnectionLifecycle, defaultSinkTypeId: string);
43
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"EventStore.d.ts","sourceRoot":"","sources":["../EventStore.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAGvE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,O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AAC;IAC7C,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAE7C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA0C;gBAGxD,IAAI,EAAE,cAAc,EACpB,SAAS,EAAE,uBAAuB,EAC1B,WAAW,EAAE,mBAAmB,EACjD,SAAS,EAAE,mBAAmB,EAC9B,iBAAiB,EAAE,MAAM;IAwB7B;;;;OAIG;IACG,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC;IAsCxC,kBAAkB;IAClB,gBAAgB,CAAC,EAAE,EAAE,eAAe,GAAG,cAAc;IAWrD,kBAAkB;IACZ,aAAa,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC;CAiB5D"}
@@ -19,6 +19,10 @@ import { UnitOfWorkManager } from './transactions/UnitOfWorkManager';
19
19
  import { Jobs } from './jobs/Jobs';
20
20
  import { Webhooks } from './webhooks/Webhooks';
21
21
  import { EventStoreSubscriptions } from './eventStoreSubscriptions/EventStoreSubscriptions';
22
+ import { ExternalServices } from './externalServices/ExternalServices';
23
+ import { IdentityManager } from './identities/IdentityManager';
24
+ import { PIIManager } from './compliance/PIIManager';
25
+ import { FailedPartitions } from './observation/FailedPartitions';
22
26
  /**
23
27
  * Implements {@link IEventStore} by communicating with the Chronicle Kernel
24
28
  * via gRPC using the provided {@link ChronicleConnection}.
@@ -42,6 +46,10 @@ export class EventStore {
42
46
  webhooks;
43
47
  subscriptions;
44
48
  seeding;
49
+ externalServices;
50
+ identities;
51
+ pii;
52
+ failedPartitions;
45
53
  _sequences = new Map();
46
54
  constructor(name, namespace, _connection, lifecycle, defaultSinkTypeId) {
47
55
  this.name = name;
@@ -54,13 +62,17 @@ export class EventStore {
54
62
  this.eventTypes = new EventTypes(name.value, _connection, artifacts);
55
63
  this.constraints = new Constraints(name.value, _connection, artifacts);
56
64
  this.projections = new Projections(name.value, _connection, artifacts, defaultSinkTypeId);
57
- this.reactors = new Reactors(artifacts, _connection, name.value, namespace.value, lifecycle);
65
+ this.reactors = new Reactors(artifacts, _connection, name.value, namespace.value, lifecycle, this.eventLog);
58
66
  this.reducers = new Reducers(artifacts, _connection, name.value, namespace.value, lifecycle, defaultSinkTypeId);
59
67
  this.readModels = new ReadModels(name.value, namespace.value, _connection, artifacts, defaultSinkTypeId);
60
68
  this.jobs = new Jobs(name.value, namespace.value, _connection);
61
69
  this.webhooks = new Webhooks(name.value, _connection, this.eventTypes, artifacts);
62
70
  this.subscriptions = new EventStoreSubscriptions(this.eventTypes, name.value, _connection);
63
71
  this.seeding = new EventSeeding(name.value, _connection, artifacts);
72
+ this.externalServices = new ExternalServices(name.value, _connection);
73
+ this.identities = new IdentityManager(name.value, namespace.value, _connection);
74
+ this.pii = new PIIManager(name.value, namespace.value, _connection);
75
+ this.failedPartitions = new FailedPartitions(name.value, namespace.value, _connection);
64
76
  }
65
77
  /**
66
78
  * Registers all discovered artifacts with the Chronicle Kernel.
@@ -1 +1 @@
1
- {"version":3,"file":"EventStore.js","sourceRoot":"","sources":["../EventStore.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAEx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gBACrC,MAAM,KAAK,CAAC;YAChB,CAAC;oBAAS,CAAC;gBACP,IAAI,CAAC,GAAG,EAAE,CAAC;YACf,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
@@ -14,6 +14,10 @@ import { IWebhooks } from './webhooks/IWebhooks';
14
14
  import { IEventSeeding } from './seeding/IEventSeeding';
15
15
  import { IEventStoreSubscriptions } from './eventStoreSubscriptions/IEventStoreSubscriptions';
16
16
  import { IReadModels } from './readModels/IReadModels';
17
+ import { IExternalServices } from './externalServices/IExternalServices';
18
+ import { IIdentityManager } from './identities/IIdentityManager';
19
+ import { IPIIManager } from './compliance/IPIIManager';
20
+ import { IFailedPartitions } from './observation/IFailedPartitions';
17
21
  /**
18
22
  * Defines the API surface for an event store.
19
23
  * An event store is a logical grouping of event sequences within a namespace.
@@ -47,6 +51,14 @@ export interface IEventStore {
47
51
  readonly subscriptions: IEventStoreSubscriptions;
48
52
  /** The event seeding manager for this event store. */
49
53
  readonly seeding: IEventSeeding;
54
+ /** The external services manager for this event store. */
55
+ readonly externalServices: IExternalServices;
56
+ /** The identities manager for this event store. */
57
+ readonly identities: IIdentityManager;
58
+ /** The PII (Personal Identifiable Information) compliance manager for this event store. */
59
+ readonly pii: IPIIManager;
60
+ /** The failed partitions manager for this event store. */
61
+ readonly failedPartitions: IFailedPartitions;
50
62
  /**
51
63
  * Gets an event sequence by its identifier.
52
64
  * @param id - The identifier of the event sequence to retrieve.
@@ -1 +1 @@
1
- {"version":3,"file":"IEventStore.d.ts","sourceRoot":"","sources":["../IEventStore.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2B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AgB,CAAC;IAEtC,2FAA2F;IAC3F,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAE1B,0DAA0D;IAC1D,QAAQ,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAE7C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,EAAE,eAAe,GAAG,cAAc,CAAC;IAEtD;;;OAGG;IACH,aAAa,IAAI,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAC;CACvD"}
@@ -19,6 +19,14 @@ export declare class CausationType {
19
19
  * Represents the causation type for a batch event append via the TypeScript client.
20
20
  */
21
21
  static readonly appendManyEvents: CausationType;
22
+ /**
23
+ * Represents the causation type for redacting a single event via the TypeScript client.
24
+ */
25
+ static readonly redact: CausationType;
26
+ /**
27
+ * Represents the causation type for redacting all events for an event source via the TypeScript client.
28
+ */
29
+ static readonly redactForEventSource: CausationType;
22
30
  /**
23
31
  * Initializes a new instance of the {@link CausationType} class.
24
32
  * @param name - The name of the causation type.
@@ -1 +1 @@
1
- {"version":3,"file":"CausationType.d.ts","sourceRoot":"","sources":["../../auditing/CausationType.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,aAAa;IAyBV,QAAQ,CAAC,IAAI,EAAE,MAAM;IAxBjC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAA6B;IAEjD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,gBAAgC;IAEvD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAgD;IAE3E;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,gBAAoD;IAEpF;;;OAGG;gBACkB,IAAI,EAAE,MAAM;IAEjC,kBAAkB;IAClB,QAAQ,IAAI,MAAM;CAGrB"}
1
+ {"version":3,"file":"CausationType.d.ts","sourceRoot":"","sources":["../../auditing/CausationType.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,aAAa;IAmCV,QAAQ,CAAC,IAAI,EAAE,MAAM;IAlCjC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,IAAI,gBAA6B;IAEjD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,OAAO,gBAAgC;IAEvD;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,gBAAgD;IAE3E;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,gBAAgB,gBAAoD;IAEpF;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,MAAM,gBAAgD;IAEtE;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,oBAAoB,gBAA8D;IAElG;;;OAGG;gBACkB,IAAI,EAAE,MAAM;IAEjC,kBAAkB;IAClB,QAAQ,IAAI,MAAM;CAGrB"}
@@ -21,6 +21,14 @@ export class CausationType {
21
21
  * Represents the causation type for a batch event append via the TypeScript client.
22
22
  */
23
23
  static appendManyEvents = new CausationType('TypeScriptClient.AppendMany');
24
+ /**
25
+ * Represents the causation type for redacting a single event via the TypeScript client.
26
+ */
27
+ static redact = new CausationType('TypeScriptClient.Redact');
28
+ /**
29
+ * Represents the causation type for redacting all events for an event source via the TypeScript client.
30
+ */
31
+ static redactForEventSource = new CausationType('TypeScriptClient.RedactForEventSource');
24
32
  /**
25
33
  * Initializes a new instance of the {@link CausationType} class.
26
34
  * @param name - The name of the causation type.
@@ -1 +1 @@
1
- {"version":3,"file":"CausationType.js","sourceRoot":"","sources":["../../auditing/CausationType.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,OAAO,aAAa;IAyBD;IAxBrB;;OAEG;IACH,MAAM,CAAU,IAAI,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAU,OAAO,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;IAEvD;;OAEG;IACH,MAAM,CAAU,WAAW,GAAG,IAAI,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAE3E;;OAEG;IACH,MAAM,CAAU,gBAAgB,GAAG,IAAI,aAAa,CAAC,6BAA6B,CAAC,CAAC;IAEpF;;;OAGG;IACH,YAAqB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;IAAG,CAAC;IAErC,kBAAkB;IAClB,QAAQ;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC"}
1
+ {"version":3,"file":"CausationType.js","sourceRoot":"","sources":["../../auditing/CausationType.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,qGAAqG;AAErG;;GAEG;AACH,MAAM,OAAO,aAAa;IAmCD;IAlCrB;;OAEG;IACH,MAAM,CAAU,IAAI,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IAEjD;;OAEG;IACH,MAAM,CAAU,OAAO,GAAG,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC;IAEvD;;OAEG;IACH,MAAM,CAAU,WAAW,GAAG,IAAI,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAE3E;;OAEG;IACH,MAAM,CAAU,gBAAgB,GAAG,IAAI,aAAa,CAAC,6BAA6B,CAAC,CAAC;IAEpF;;OAEG;IACH,MAAM,CAAU,MAAM,GAAG,IAAI,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAEtE;;OAEG;IACH,MAAM,CAAU,oBAAoB,GAAG,IAAI,aAAa,CAAC,uCAAuC,CAAC,CAAC;IAElG;;;OAGG;IACH,YAAqB,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;IAAG,CAAC;IAErC,kBAAkB;IAClB,QAAQ;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC"}
@@ -18,6 +18,19 @@ export interface ReleaseResponse {
18
18
  HasError: boolean;
19
19
  Error: string;
20
20
  }
21
+ /**
22
+ * Request to delete the encryption key for a PII encryption key identifier (GDPR right-to-erasure).
23
+ */
24
+ export interface DeleteEncryptionKeyRequest {
25
+ EventStore: string;
26
+ Namespace: string;
27
+ Identifier: string;
28
+ }
29
+ /**
30
+ * An empty protobuf message.
31
+ */
32
+ export interface Empty {
33
+ }
21
34
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
22
35
  export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
23
36
  [K in keyof T]?: DeepPartial<T[K]>;
@@ -27,6 +40,7 @@ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<
27
40
  */
28
41
  export interface ComplianceClient<CallOptionsExt = {}> {
29
42
  release(request: DeepPartial<ReleaseRequest>, options?: CallOptions & CallOptionsExt): Promise<ReleaseResponse>;
43
+ deleteEncryptionKey(request: DeepPartial<DeleteEncryptionKeyRequest>, options?: CallOptions & CallOptionsExt): Promise<Empty>;
30
44
  }
31
45
  export declare const ReleaseRequest: {
32
46
  encode(message: ReleaseRequest, writer?: BinaryWriter): BinaryWriter;
@@ -38,6 +52,16 @@ export declare const ReleaseResponse: {
38
52
  decode(input: BinaryReader | Uint8Array, length?: number): ReleaseResponse;
39
53
  fromPartial(object: DeepPartial<ReleaseResponse>): ReleaseResponse;
40
54
  };
55
+ export declare const DeleteEncryptionKeyRequest: {
56
+ encode(message: DeleteEncryptionKeyRequest, writer?: BinaryWriter): BinaryWriter;
57
+ decode(input: BinaryReader | Uint8Array, length?: number): DeleteEncryptionKeyRequest;
58
+ fromPartial(object: DeepPartial<DeleteEncryptionKeyRequest>): DeleteEncryptionKeyRequest;
59
+ };
60
+ export declare const Empty: {
61
+ encode(_: Empty, writer?: BinaryWriter): BinaryWriter;
62
+ decode(input: BinaryReader | Uint8Array, length?: number): Empty;
63
+ fromPartial(_: DeepPartial<Empty>): Empty;
64
+ };
41
65
  /**
42
66
  * Compliance service definition for nice-grpc.
43
67
  */
@@ -61,6 +85,22 @@ export declare const ComplianceDefinition: {
61
85
  readonly responseStream: false;
62
86
  readonly options: {};
63
87
  };
88
+ readonly deleteEncryptionKey: {
89
+ readonly name: "DeleteEncryptionKey";
90
+ readonly requestType: {
91
+ encode(message: DeleteEncryptionKeyRequest, writer?: BinaryWriter): BinaryWriter;
92
+ decode(input: BinaryReader | Uint8Array, length?: number): DeleteEncryptionKeyRequest;
93
+ fromPartial(object: DeepPartial<DeleteEncryptionKeyRequest>): DeleteEncryptionKeyRequest;
94
+ };
95
+ readonly requestStream: false;
96
+ readonly responseType: {
97
+ encode(_: Empty, writer?: BinaryWriter): BinaryWriter;
98
+ decode(input: BinaryReader | Uint8Array, length?: number): Empty;
99
+ fromPartial(_: DeepPartial<Empty>): Empty;
100
+ };
101
+ readonly responseStream: false;
102
+ readonly options: {};
103
+ };
64
104
  };
65
105
  };
66
106
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ComplianceContracts.d.ts","sourceRoot":"","sources":["../../compliance/ComplianceContracts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAC7F,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAAG,CA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