actor-ts 0.9.0 → 0.10.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 (886) hide show
  1. package/CHANGELOG.md +408 -0
  2. package/README.md +285 -269
  3. package/dist/ActorSystem.d.ts +3 -38
  4. package/dist/ActorSystem.d.ts.map +1 -1
  5. package/dist/ActorSystem.js +2 -2
  6. package/dist/ActorSystem.js.map +1 -1
  7. package/dist/ActorSystemOptions.d.ts +91 -0
  8. package/dist/ActorSystemOptions.d.ts.map +1 -0
  9. package/dist/ActorSystemOptions.js +45 -0
  10. package/dist/ActorSystemOptions.js.map +1 -0
  11. package/dist/Logger.d.ts +63 -0
  12. package/dist/Logger.d.ts.map +1 -1
  13. package/dist/Logger.js +146 -0
  14. package/dist/Logger.js.map +1 -1
  15. package/dist/cache/MemcachedCache.d.ts +2 -12
  16. package/dist/cache/MemcachedCache.d.ts.map +1 -1
  17. package/dist/cache/MemcachedCache.js +2 -1
  18. package/dist/cache/MemcachedCache.js.map +1 -1
  19. package/dist/cache/MemcachedCacheOptions.d.ts +40 -0
  20. package/dist/cache/MemcachedCacheOptions.d.ts.map +1 -0
  21. package/dist/cache/MemcachedCacheOptions.js +32 -0
  22. package/dist/cache/MemcachedCacheOptions.js.map +1 -0
  23. package/dist/cache/RedisCache.d.ts +2 -22
  24. package/dist/cache/RedisCache.d.ts.map +1 -1
  25. package/dist/cache/RedisCache.js +2 -1
  26. package/dist/cache/RedisCache.js.map +1 -1
  27. package/dist/cache/RedisCacheOptions.d.ts +56 -0
  28. package/dist/cache/RedisCacheOptions.d.ts.map +1 -0
  29. package/dist/cache/RedisCacheOptions.js +43 -0
  30. package/dist/cache/RedisCacheOptions.js.map +1 -0
  31. package/dist/cache/index.d.ts +6 -2
  32. package/dist/cache/index.d.ts.map +1 -1
  33. package/dist/cache/index.js +2 -0
  34. package/dist/cache/index.js.map +1 -1
  35. package/dist/cluster/Cluster.d.ts +4 -63
  36. package/dist/cluster/Cluster.d.ts.map +1 -1
  37. package/dist/cluster/Cluster.js +10 -5
  38. package/dist/cluster/Cluster.js.map +1 -1
  39. package/dist/cluster/ClusterBootstrap.d.ts +6 -84
  40. package/dist/cluster/ClusterBootstrap.d.ts.map +1 -1
  41. package/dist/cluster/ClusterBootstrap.js +33 -21
  42. package/dist/cluster/ClusterBootstrap.js.map +1 -1
  43. package/dist/cluster/ClusterBootstrapOptions.d.ts +152 -0
  44. package/dist/cluster/ClusterBootstrapOptions.d.ts.map +1 -0
  45. package/dist/cluster/ClusterBootstrapOptions.js +103 -0
  46. package/dist/cluster/ClusterBootstrapOptions.js.map +1 -0
  47. package/dist/cluster/ClusterClient.d.ts +21 -31
  48. package/dist/cluster/ClusterClient.d.ts.map +1 -1
  49. package/dist/cluster/ClusterClient.js +21 -6
  50. package/dist/cluster/ClusterClient.js.map +1 -1
  51. package/dist/cluster/ClusterClientOptions.d.ts +65 -0
  52. package/dist/cluster/ClusterClientOptions.d.ts.map +1 -0
  53. package/dist/cluster/ClusterClientOptions.js +43 -0
  54. package/dist/cluster/ClusterClientOptions.js.map +1 -0
  55. package/dist/cluster/ClusterClientReceptionist.d.ts +2 -8
  56. package/dist/cluster/ClusterClientReceptionist.d.ts.map +1 -1
  57. package/dist/cluster/ClusterClientReceptionist.js +3 -1
  58. package/dist/cluster/ClusterClientReceptionist.js.map +1 -1
  59. package/dist/cluster/ClusterClientReceptionistOptions.d.ts +32 -0
  60. package/dist/cluster/ClusterClientReceptionistOptions.d.ts.map +1 -0
  61. package/dist/cluster/ClusterClientReceptionistOptions.js +22 -0
  62. package/dist/cluster/ClusterClientReceptionistOptions.js.map +1 -0
  63. package/dist/cluster/ClusterOptions.d.ts +116 -0
  64. package/dist/cluster/ClusterOptions.d.ts.map +1 -0
  65. package/dist/cluster/ClusterOptions.js +77 -0
  66. package/dist/cluster/ClusterOptions.js.map +1 -0
  67. package/dist/cluster/FailureDetector.d.ts +4 -11
  68. package/dist/cluster/FailureDetector.d.ts.map +1 -1
  69. package/dist/cluster/FailureDetector.js +4 -3
  70. package/dist/cluster/FailureDetector.js.map +1 -1
  71. package/dist/cluster/FailureDetectorOptions.d.ts +38 -0
  72. package/dist/cluster/FailureDetectorOptions.d.ts.map +1 -0
  73. package/dist/cluster/FailureDetectorOptions.js +31 -0
  74. package/dist/cluster/FailureDetectorOptions.js.map +1 -0
  75. package/dist/cluster/PhiAccrualFailureDetector.d.ts +3 -19
  76. package/dist/cluster/PhiAccrualFailureDetector.d.ts.map +1 -1
  77. package/dist/cluster/PhiAccrualFailureDetector.js +2 -2
  78. package/dist/cluster/PhiAccrualFailureDetector.js.map +1 -1
  79. package/dist/cluster/PhiAccrualOptions.d.ts +53 -0
  80. package/dist/cluster/PhiAccrualOptions.d.ts.map +1 -0
  81. package/dist/cluster/PhiAccrualOptions.js +43 -0
  82. package/dist/cluster/PhiAccrualOptions.js.map +1 -0
  83. package/dist/cluster/downing/KeepOldest.d.ts +2 -11
  84. package/dist/cluster/downing/KeepOldest.d.ts.map +1 -1
  85. package/dist/cluster/downing/KeepOldest.js +2 -2
  86. package/dist/cluster/downing/KeepOldest.js.map +1 -1
  87. package/dist/cluster/downing/KeepOldestOptions.d.ts +34 -0
  88. package/dist/cluster/downing/KeepOldestOptions.d.ts.map +1 -0
  89. package/dist/cluster/downing/KeepOldestOptions.js +23 -0
  90. package/dist/cluster/downing/KeepOldestOptions.js.map +1 -0
  91. package/dist/cluster/downing/KeepReferee.d.ts +2 -10
  92. package/dist/cluster/downing/KeepReferee.d.ts.map +1 -1
  93. package/dist/cluster/downing/KeepReferee.js +3 -3
  94. package/dist/cluster/downing/KeepReferee.js.map +1 -1
  95. package/dist/cluster/downing/KeepRefereeOptions.d.ts +35 -0
  96. package/dist/cluster/downing/KeepRefereeOptions.d.ts.map +1 -0
  97. package/dist/cluster/downing/KeepRefereeOptions.js +25 -0
  98. package/dist/cluster/downing/KeepRefereeOptions.js.map +1 -0
  99. package/dist/cluster/downing/LeaseMajority.d.ts +63 -21
  100. package/dist/cluster/downing/LeaseMajority.d.ts.map +1 -1
  101. package/dist/cluster/downing/LeaseMajority.js +132 -9
  102. package/dist/cluster/downing/LeaseMajority.js.map +1 -1
  103. package/dist/cluster/downing/LeaseMajorityOptions.d.ts +49 -0
  104. package/dist/cluster/downing/LeaseMajorityOptions.d.ts.map +1 -0
  105. package/dist/cluster/downing/LeaseMajorityOptions.js +31 -0
  106. package/dist/cluster/downing/LeaseMajorityOptions.js.map +1 -0
  107. package/dist/cluster/downing/StaticQuorum.d.ts +2 -7
  108. package/dist/cluster/downing/StaticQuorum.d.ts.map +1 -1
  109. package/dist/cluster/downing/StaticQuorum.js +3 -3
  110. package/dist/cluster/downing/StaticQuorum.js.map +1 -1
  111. package/dist/cluster/downing/StaticQuorumOptions.d.ts +30 -0
  112. package/dist/cluster/downing/StaticQuorumOptions.d.ts.map +1 -0
  113. package/dist/cluster/downing/StaticQuorumOptions.js +23 -0
  114. package/dist/cluster/downing/StaticQuorumOptions.js.map +1 -0
  115. package/dist/cluster/downing/index.d.ts +8 -4
  116. package/dist/cluster/downing/index.d.ts.map +1 -1
  117. package/dist/cluster/downing/index.js +4 -0
  118. package/dist/cluster/downing/index.js.map +1 -1
  119. package/dist/cluster/index.d.ts +34 -19
  120. package/dist/cluster/index.d.ts.map +1 -1
  121. package/dist/cluster/index.js +15 -4
  122. package/dist/cluster/index.js.map +1 -1
  123. package/dist/cluster/pubsub/DistributedPubSubExtension.d.ts +2 -2
  124. package/dist/cluster/pubsub/DistributedPubSubExtension.d.ts.map +1 -1
  125. package/dist/cluster/pubsub/DistributedPubSubExtension.js +5 -2
  126. package/dist/cluster/pubsub/DistributedPubSubExtension.js.map +1 -1
  127. package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts +3 -7
  128. package/dist/cluster/pubsub/DistributedPubSubMediator.d.ts.map +1 -1
  129. package/dist/cluster/pubsub/DistributedPubSubMediator.js +3 -3
  130. package/dist/cluster/pubsub/DistributedPubSubMediator.js.map +1 -1
  131. package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts +29 -0
  132. package/dist/cluster/pubsub/DistributedPubSubOptions.d.ts.map +1 -0
  133. package/dist/cluster/pubsub/DistributedPubSubOptions.js +23 -0
  134. package/dist/cluster/pubsub/DistributedPubSubOptions.js.map +1 -0
  135. package/dist/cluster/pubsub/index.d.ts +2 -1
  136. package/dist/cluster/pubsub/index.d.ts.map +1 -1
  137. package/dist/cluster/pubsub/index.js +1 -0
  138. package/dist/cluster/pubsub/index.js.map +1 -1
  139. package/dist/cluster/router/ClusterRouter.d.ts +12 -32
  140. package/dist/cluster/router/ClusterRouter.d.ts.map +1 -1
  141. package/dist/cluster/router/ClusterRouter.js +4 -2
  142. package/dist/cluster/router/ClusterRouter.js.map +1 -1
  143. package/dist/cluster/router/ClusterRouterOptions.d.ts +60 -0
  144. package/dist/cluster/router/ClusterRouterOptions.d.ts.map +1 -0
  145. package/dist/cluster/router/ClusterRouterOptions.js +41 -0
  146. package/dist/cluster/router/ClusterRouterOptions.js.map +1 -0
  147. package/dist/cluster/router/index.d.ts +3 -1
  148. package/dist/cluster/router/index.d.ts.map +1 -1
  149. package/dist/cluster/router/index.js +1 -0
  150. package/dist/cluster/router/index.js.map +1 -1
  151. package/dist/cluster/sharding/CassandraRememberEntitiesStore.d.ts +1 -15
  152. package/dist/cluster/sharding/CassandraRememberEntitiesStore.d.ts.map +1 -1
  153. package/dist/cluster/sharding/CassandraRememberEntitiesStore.js +35 -2
  154. package/dist/cluster/sharding/CassandraRememberEntitiesStore.js.map +1 -1
  155. package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.d.ts +63 -0
  156. package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.d.ts.map +1 -0
  157. package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.js +63 -0
  158. package/dist/cluster/sharding/CassandraRememberEntitiesStoreOptions.js.map +1 -0
  159. package/dist/cluster/sharding/ClusterSharding.d.ts +18 -64
  160. package/dist/cluster/sharding/ClusterSharding.d.ts.map +1 -1
  161. package/dist/cluster/sharding/ClusterSharding.js +44 -20
  162. package/dist/cluster/sharding/ClusterSharding.js.map +1 -1
  163. package/dist/cluster/sharding/CoordinatorState.d.ts +1 -1
  164. package/dist/cluster/sharding/CoordinatorState.js +1 -1
  165. package/dist/cluster/sharding/ShardCoordinator.d.ts +3 -63
  166. package/dist/cluster/sharding/ShardCoordinator.d.ts.map +1 -1
  167. package/dist/cluster/sharding/ShardCoordinator.js +3 -3
  168. package/dist/cluster/sharding/ShardCoordinator.js.map +1 -1
  169. package/dist/cluster/sharding/ShardCoordinatorOptions.d.ts +111 -0
  170. package/dist/cluster/sharding/ShardCoordinatorOptions.d.ts.map +1 -0
  171. package/dist/cluster/sharding/ShardCoordinatorOptions.js +69 -0
  172. package/dist/cluster/sharding/ShardCoordinatorOptions.js.map +1 -0
  173. package/dist/cluster/sharding/ShardRegion.d.ts +2 -33
  174. package/dist/cluster/sharding/ShardRegion.d.ts.map +1 -1
  175. package/dist/cluster/sharding/ShardRegion.js.map +1 -1
  176. package/dist/cluster/sharding/ShardedDaemonProcess.d.ts +2 -22
  177. package/dist/cluster/sharding/ShardedDaemonProcess.d.ts.map +1 -1
  178. package/dist/cluster/sharding/ShardedDaemonProcess.js +14 -11
  179. package/dist/cluster/sharding/ShardedDaemonProcess.js.map +1 -1
  180. package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts +51 -0
  181. package/dist/cluster/sharding/ShardedDaemonProcessOptions.d.ts.map +1 -0
  182. package/dist/cluster/sharding/ShardedDaemonProcessOptions.js +35 -0
  183. package/dist/cluster/sharding/ShardedDaemonProcessOptions.js.map +1 -0
  184. package/dist/cluster/sharding/ShardingOptions.d.ts +84 -0
  185. package/dist/cluster/sharding/ShardingOptions.d.ts.map +1 -0
  186. package/dist/cluster/sharding/ShardingOptions.js +62 -0
  187. package/dist/cluster/sharding/ShardingOptions.js.map +1 -0
  188. package/dist/cluster/sharding/StartShardingOptions.d.ts +98 -0
  189. package/dist/cluster/sharding/StartShardingOptions.d.ts.map +1 -0
  190. package/dist/cluster/sharding/StartShardingOptions.js +52 -0
  191. package/dist/cluster/sharding/StartShardingOptions.js.map +1 -0
  192. package/dist/cluster/singleton/ClusterSingleton.d.ts +2 -30
  193. package/dist/cluster/singleton/ClusterSingleton.d.ts.map +1 -1
  194. package/dist/cluster/singleton/ClusterSingleton.js +15 -9
  195. package/dist/cluster/singleton/ClusterSingleton.js.map +1 -1
  196. package/dist/cluster/singleton/ClusterSingletonManager.d.ts +3 -18
  197. package/dist/cluster/singleton/ClusterSingletonManager.d.ts.map +1 -1
  198. package/dist/cluster/singleton/ClusterSingletonManager.js +3 -3
  199. package/dist/cluster/singleton/ClusterSingletonManager.js.map +1 -1
  200. package/dist/cluster/singleton/ClusterSingletonManagerOptions.d.ts +49 -0
  201. package/dist/cluster/singleton/ClusterSingletonManagerOptions.d.ts.map +1 -0
  202. package/dist/cluster/singleton/ClusterSingletonManagerOptions.js +40 -0
  203. package/dist/cluster/singleton/ClusterSingletonManagerOptions.js.map +1 -0
  204. package/dist/cluster/singleton/StartSingletonOptions.d.ts +64 -0
  205. package/dist/cluster/singleton/StartSingletonOptions.d.ts.map +1 -0
  206. package/dist/cluster/singleton/StartSingletonOptions.js +40 -0
  207. package/dist/cluster/singleton/StartSingletonOptions.js.map +1 -0
  208. package/dist/cluster/singleton/index.d.ts +6 -2
  209. package/dist/cluster/singleton/index.d.ts.map +1 -1
  210. package/dist/cluster/singleton/index.js +2 -0
  211. package/dist/cluster/singleton/index.js.map +1 -1
  212. package/dist/config/ConfigKeys.d.ts +5 -0
  213. package/dist/config/ConfigKeys.d.ts.map +1 -1
  214. package/dist/config/ConfigKeys.js +5 -0
  215. package/dist/config/ConfigKeys.js.map +1 -1
  216. package/dist/coordination/Lease.d.ts +32 -14
  217. package/dist/coordination/Lease.d.ts.map +1 -1
  218. package/dist/coordination/LeaseOptions.d.ts +61 -0
  219. package/dist/coordination/LeaseOptions.d.ts.map +1 -0
  220. package/dist/coordination/LeaseOptions.js +50 -0
  221. package/dist/coordination/LeaseOptions.js.map +1 -0
  222. package/dist/coordination/index.d.ts +5 -2
  223. package/dist/coordination/index.d.ts.map +1 -1
  224. package/dist/coordination/index.js +2 -0
  225. package/dist/coordination/index.js.map +1 -1
  226. package/dist/coordination/leases/InMemoryLease.d.ts +18 -5
  227. package/dist/coordination/leases/InMemoryLease.d.ts.map +1 -1
  228. package/dist/coordination/leases/InMemoryLease.js +23 -11
  229. package/dist/coordination/leases/InMemoryLease.js.map +1 -1
  230. package/dist/coordination/leases/KubernetesLease.d.ts +19 -24
  231. package/dist/coordination/leases/KubernetesLease.d.ts.map +1 -1
  232. package/dist/coordination/leases/KubernetesLease.js +28 -9
  233. package/dist/coordination/leases/KubernetesLease.js.map +1 -1
  234. package/dist/coordination/leases/KubernetesLeaseOptions.d.ts +58 -0
  235. package/dist/coordination/leases/KubernetesLeaseOptions.d.ts.map +1 -0
  236. package/dist/coordination/leases/KubernetesLeaseOptions.js +42 -0
  237. package/dist/coordination/leases/KubernetesLeaseOptions.js.map +1 -0
  238. package/dist/crdt/DistributedData.d.ts +2 -22
  239. package/dist/crdt/DistributedData.d.ts.map +1 -1
  240. package/dist/crdt/DistributedData.js +3 -2
  241. package/dist/crdt/DistributedData.js.map +1 -1
  242. package/dist/crdt/DistributedDataOptions.d.ts +50 -0
  243. package/dist/crdt/DistributedDataOptions.d.ts.map +1 -0
  244. package/dist/crdt/DistributedDataOptions.js +28 -0
  245. package/dist/crdt/DistributedDataOptions.js.map +1 -0
  246. package/dist/crdt/index.d.ts +3 -1
  247. package/dist/crdt/index.d.ts.map +1 -1
  248. package/dist/crdt/index.js +1 -0
  249. package/dist/crdt/index.js.map +1 -1
  250. package/dist/delivery/ProducerController.d.ts +4 -19
  251. package/dist/delivery/ProducerController.d.ts.map +1 -1
  252. package/dist/delivery/ProducerController.js +4 -3
  253. package/dist/delivery/ProducerController.js.map +1 -1
  254. package/dist/delivery/ProducerControllerOptions.d.ts +50 -0
  255. package/dist/delivery/ProducerControllerOptions.d.ts.map +1 -0
  256. package/dist/delivery/ProducerControllerOptions.js +36 -0
  257. package/dist/delivery/ProducerControllerOptions.js.map +1 -0
  258. package/dist/delivery/ReliableDelivery.d.ts +3 -2
  259. package/dist/delivery/ReliableDelivery.d.ts.map +1 -1
  260. package/dist/delivery/ReliableDelivery.js +2 -2
  261. package/dist/delivery/ReliableDelivery.js.map +1 -1
  262. package/dist/delivery/index.d.ts +3 -1
  263. package/dist/delivery/index.d.ts.map +1 -1
  264. package/dist/delivery/index.js +1 -0
  265. package/dist/delivery/index.js.map +1 -1
  266. package/dist/discovery/AutoDiscoveryOptions.d.ts +72 -0
  267. package/dist/discovery/AutoDiscoveryOptions.d.ts.map +1 -0
  268. package/dist/discovery/AutoDiscoveryOptions.js +34 -0
  269. package/dist/discovery/AutoDiscoveryOptions.js.map +1 -0
  270. package/dist/discovery/ConfigSeedProvider.d.ts +2 -7
  271. package/dist/discovery/ConfigSeedProvider.d.ts.map +1 -1
  272. package/dist/discovery/ConfigSeedProvider.js +4 -3
  273. package/dist/discovery/ConfigSeedProvider.js.map +1 -1
  274. package/dist/discovery/ConfigSeedProviderOptions.d.ts +34 -0
  275. package/dist/discovery/ConfigSeedProviderOptions.d.ts.map +1 -0
  276. package/dist/discovery/ConfigSeedProviderOptions.js +27 -0
  277. package/dist/discovery/ConfigSeedProviderOptions.js.map +1 -0
  278. package/dist/discovery/DnsSeedProvider.d.ts +3 -27
  279. package/dist/discovery/DnsSeedProvider.d.ts.map +1 -1
  280. package/dist/discovery/DnsSeedProvider.js +4 -4
  281. package/dist/discovery/DnsSeedProvider.js.map +1 -1
  282. package/dist/discovery/DnsSeedProviderOptions.d.ts +67 -0
  283. package/dist/discovery/DnsSeedProviderOptions.d.ts.map +1 -0
  284. package/dist/discovery/DnsSeedProviderOptions.js +48 -0
  285. package/dist/discovery/DnsSeedProviderOptions.js.map +1 -0
  286. package/dist/discovery/KubernetesApiSeedProvider.d.ts +2 -13
  287. package/dist/discovery/KubernetesApiSeedProvider.d.ts.map +1 -1
  288. package/dist/discovery/KubernetesApiSeedProvider.js +2 -2
  289. package/dist/discovery/KubernetesApiSeedProvider.js.map +1 -1
  290. package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts +46 -0
  291. package/dist/discovery/KubernetesApiSeedProviderOptions.d.ts.map +1 -0
  292. package/dist/discovery/KubernetesApiSeedProviderOptions.js +39 -0
  293. package/dist/discovery/KubernetesApiSeedProviderOptions.js.map +1 -0
  294. package/dist/discovery/Receptionist.d.ts +3 -6
  295. package/dist/discovery/Receptionist.d.ts.map +1 -1
  296. package/dist/discovery/Receptionist.js +10 -3
  297. package/dist/discovery/Receptionist.js.map +1 -1
  298. package/dist/discovery/ReceptionistOptions.d.ts +30 -0
  299. package/dist/discovery/ReceptionistOptions.d.ts.map +1 -0
  300. package/dist/discovery/ReceptionistOptions.js +24 -0
  301. package/dist/discovery/ReceptionistOptions.js.map +1 -0
  302. package/dist/discovery/autoDiscovery.d.ts +3 -44
  303. package/dist/discovery/autoDiscovery.d.ts.map +1 -1
  304. package/dist/discovery/autoDiscovery.js +31 -32
  305. package/dist/discovery/autoDiscovery.js.map +1 -1
  306. package/dist/discovery/index.d.ts +10 -5
  307. package/dist/discovery/index.d.ts.map +1 -1
  308. package/dist/discovery/index.js +5 -0
  309. package/dist/discovery/index.js.map +1 -1
  310. package/dist/http/HttpExtension.d.ts.map +1 -1
  311. package/dist/http/HttpExtension.js +69 -8
  312. package/dist/http/HttpExtension.js.map +1 -1
  313. package/dist/http/Route.d.ts +76 -4
  314. package/dist/http/Route.d.ts.map +1 -1
  315. package/dist/http/Route.js +74 -1
  316. package/dist/http/Route.js.map +1 -1
  317. package/dist/http/backend/ExpressBackend.d.ts +18 -12
  318. package/dist/http/backend/ExpressBackend.d.ts.map +1 -1
  319. package/dist/http/backend/ExpressBackend.js +134 -8
  320. package/dist/http/backend/ExpressBackend.js.map +1 -1
  321. package/dist/http/backend/ExpressBackendOptions.d.ts +47 -0
  322. package/dist/http/backend/ExpressBackendOptions.d.ts.map +1 -0
  323. package/dist/http/backend/ExpressBackendOptions.js +35 -0
  324. package/dist/http/backend/ExpressBackendOptions.js.map +1 -0
  325. package/dist/http/backend/FastifyBackend.d.ts +4 -1
  326. package/dist/http/backend/FastifyBackend.d.ts.map +1 -1
  327. package/dist/http/backend/FastifyBackend.js +71 -1
  328. package/dist/http/backend/FastifyBackend.js.map +1 -1
  329. package/dist/http/backend/HonoBackend.d.ts +19 -13
  330. package/dist/http/backend/HonoBackend.d.ts.map +1 -1
  331. package/dist/http/backend/HonoBackend.js +152 -5
  332. package/dist/http/backend/HonoBackend.js.map +1 -1
  333. package/dist/http/backend/HonoBackendOptions.d.ts +47 -0
  334. package/dist/http/backend/HonoBackendOptions.d.ts.map +1 -0
  335. package/dist/http/backend/HonoBackendOptions.js +35 -0
  336. package/dist/http/backend/HonoBackendOptions.js.map +1 -0
  337. package/dist/http/backend/HttpServerBackend.d.ts +24 -0
  338. package/dist/http/backend/HttpServerBackend.d.ts.map +1 -1
  339. package/dist/http/index.d.ts +11 -5
  340. package/dist/http/index.d.ts.map +1 -1
  341. package/dist/http/index.js +8 -1
  342. package/dist/http/index.js.map +1 -1
  343. package/dist/http/middleware/BearerToken.d.ts +44 -0
  344. package/dist/http/middleware/BearerToken.d.ts.map +1 -0
  345. package/dist/http/middleware/BearerToken.js +72 -0
  346. package/dist/http/middleware/BearerToken.js.map +1 -0
  347. package/dist/http/middleware/IpAllowlist.d.ts +45 -0
  348. package/dist/http/middleware/IpAllowlist.d.ts.map +1 -0
  349. package/dist/http/middleware/IpAllowlist.js +148 -0
  350. package/dist/http/middleware/IpAllowlist.js.map +1 -0
  351. package/dist/http/middleware/index.d.ts +5 -0
  352. package/dist/http/middleware/index.d.ts.map +1 -0
  353. package/dist/http/middleware/index.js +3 -0
  354. package/dist/http/middleware/index.js.map +1 -0
  355. package/dist/http/types.d.ts +9 -0
  356. package/dist/http/types.d.ts.map +1 -1
  357. package/dist/http/types.js.map +1 -1
  358. package/dist/http/ws/ConnectionWiring.d.ts +59 -0
  359. package/dist/http/ws/ConnectionWiring.d.ts.map +1 -0
  360. package/dist/http/ws/ConnectionWiring.js +112 -0
  361. package/dist/http/ws/ConnectionWiring.js.map +1 -0
  362. package/dist/http/ws/SocketAdapter.d.ts +72 -0
  363. package/dist/http/ws/SocketAdapter.d.ts.map +1 -0
  364. package/dist/http/ws/SocketAdapter.js +97 -0
  365. package/dist/http/ws/SocketAdapter.js.map +1 -0
  366. package/dist/http/ws/WebSocketClientActor.d.ts +66 -0
  367. package/dist/http/ws/WebSocketClientActor.d.ts.map +1 -0
  368. package/dist/http/ws/WebSocketClientActor.js +194 -0
  369. package/dist/http/ws/WebSocketClientActor.js.map +1 -0
  370. package/dist/http/ws/WebSocketClientOptions.d.ts +77 -0
  371. package/dist/http/ws/WebSocketClientOptions.d.ts.map +1 -0
  372. package/dist/http/ws/WebSocketClientOptions.js +69 -0
  373. package/dist/http/ws/WebSocketClientOptions.js.map +1 -0
  374. package/dist/http/ws/WebSocketConnectionActor.d.ts +51 -0
  375. package/dist/http/ws/WebSocketConnectionActor.d.ts.map +1 -0
  376. package/dist/http/ws/WebSocketConnectionActor.js +170 -0
  377. package/dist/http/ws/WebSocketConnectionActor.js.map +1 -0
  378. package/dist/http/ws/WebSocketRoute.d.ts +20 -0
  379. package/dist/http/ws/WebSocketRoute.d.ts.map +1 -0
  380. package/dist/http/ws/WebSocketRoute.js +44 -0
  381. package/dist/http/ws/WebSocketRoute.js.map +1 -0
  382. package/dist/http/ws/WebSocketRouteOptions.d.ts +54 -0
  383. package/dist/http/ws/WebSocketRouteOptions.d.ts.map +1 -0
  384. package/dist/http/ws/WebSocketRouteOptions.js +55 -0
  385. package/dist/http/ws/WebSocketRouteOptions.js.map +1 -0
  386. package/dist/http/ws/WebSocketServerActor.d.ts +65 -0
  387. package/dist/http/ws/WebSocketServerActor.d.ts.map +1 -0
  388. package/dist/http/ws/WebSocketServerActor.js +133 -0
  389. package/dist/http/ws/WebSocketServerActor.js.map +1 -0
  390. package/dist/http/ws/WsCodec.d.ts +65 -0
  391. package/dist/http/ws/WsCodec.d.ts.map +1 -0
  392. package/dist/http/ws/WsCodec.js +82 -0
  393. package/dist/http/ws/WsCodec.js.map +1 -0
  394. package/dist/http/ws/WsConnection.d.ts +59 -0
  395. package/dist/http/ws/WsConnection.d.ts.map +1 -0
  396. package/dist/http/ws/WsConnection.js +45 -0
  397. package/dist/http/ws/WsConnection.js.map +1 -0
  398. package/dist/http/ws/WsMessages.d.ts +91 -0
  399. package/dist/http/ws/WsMessages.d.ts.map +1 -0
  400. package/dist/http/ws/WsMessages.js +90 -0
  401. package/dist/http/ws/WsMessages.js.map +1 -0
  402. package/dist/http/ws/WsPolicy.d.ts +32 -0
  403. package/dist/http/ws/WsPolicy.d.ts.map +1 -0
  404. package/dist/http/ws/WsPolicy.js +43 -0
  405. package/dist/http/ws/WsPolicy.js.map +1 -0
  406. package/dist/http/ws/index.d.ts +22 -0
  407. package/dist/http/ws/index.d.ts.map +1 -0
  408. package/dist/http/ws/index.js +15 -0
  409. package/dist/http/ws/index.js.map +1 -0
  410. package/dist/http/ws/matchPattern.d.ts +12 -0
  411. package/dist/http/ws/matchPattern.d.ts.map +1 -0
  412. package/dist/http/ws/matchPattern.js +29 -0
  413. package/dist/http/ws/matchPattern.js.map +1 -0
  414. package/dist/http/ws/rawResponse.d.ts +15 -0
  415. package/dist/http/ws/rawResponse.d.ts.map +1 -0
  416. package/dist/http/ws/rawResponse.js +54 -0
  417. package/dist/http/ws/rawResponse.js.map +1 -0
  418. package/dist/http/ws/types.d.ts +70 -0
  419. package/dist/http/ws/types.d.ts.map +1 -0
  420. package/dist/http/ws/types.js +81 -0
  421. package/dist/http/ws/types.js.map +1 -0
  422. package/dist/http/ws/wsCtor.d.ts +34 -0
  423. package/dist/http/ws/wsCtor.d.ts.map +1 -0
  424. package/dist/http/ws/wsCtor.js +38 -0
  425. package/dist/http/ws/wsCtor.js.map +1 -0
  426. package/dist/index.d.ts +25 -23
  427. package/dist/index.d.ts.map +1 -1
  428. package/dist/index.js +15 -11
  429. package/dist/index.js.map +1 -1
  430. package/dist/internal/ActorCell.d.ts +16 -1
  431. package/dist/internal/ActorCell.d.ts.map +1 -1
  432. package/dist/internal/ActorCell.js +32 -2
  433. package/dist/internal/ActorCell.js.map +1 -1
  434. package/dist/io/broker/AmqpActor.d.ts +19 -16
  435. package/dist/io/broker/AmqpActor.d.ts.map +1 -1
  436. package/dist/io/broker/AmqpActor.js +13 -5
  437. package/dist/io/broker/AmqpActor.js.map +1 -1
  438. package/dist/io/broker/AmqpOptions.d.ts +41 -0
  439. package/dist/io/broker/AmqpOptions.d.ts.map +1 -0
  440. package/dist/io/broker/AmqpOptions.js +34 -0
  441. package/dist/io/broker/AmqpOptions.js.map +1 -0
  442. package/dist/io/broker/BrokerActor.d.ts +4 -3
  443. package/dist/io/broker/BrokerActor.d.ts.map +1 -1
  444. package/dist/io/broker/BrokerActor.js +4 -2
  445. package/dist/io/broker/BrokerActor.js.map +1 -1
  446. package/dist/io/broker/BrokerOptions.d.ts +24 -0
  447. package/dist/io/broker/BrokerOptions.d.ts.map +1 -0
  448. package/dist/io/broker/BrokerOptions.js +29 -0
  449. package/dist/io/broker/BrokerOptions.js.map +1 -0
  450. package/dist/io/broker/BrokerSettings.d.ts +2 -2
  451. package/dist/io/broker/BrokerSettings.d.ts.map +1 -1
  452. package/dist/io/broker/BrokerSettings.js.map +1 -1
  453. package/dist/io/broker/GrpcClientActor.d.ts +6 -19
  454. package/dist/io/broker/GrpcClientActor.d.ts.map +1 -1
  455. package/dist/io/broker/GrpcClientActor.js +1 -1
  456. package/dist/io/broker/GrpcClientActor.js.map +1 -1
  457. package/dist/io/broker/GrpcClientOptions.d.ts +48 -0
  458. package/dist/io/broker/GrpcClientOptions.d.ts.map +1 -0
  459. package/dist/io/broker/GrpcClientOptions.js +42 -0
  460. package/dist/io/broker/GrpcClientOptions.js.map +1 -0
  461. package/dist/io/broker/GrpcServerActor.d.ts +3 -24
  462. package/dist/io/broker/GrpcServerActor.d.ts.map +1 -1
  463. package/dist/io/broker/GrpcServerActor.js +3 -3
  464. package/dist/io/broker/GrpcServerActor.js.map +1 -1
  465. package/dist/io/broker/GrpcServerOptions.d.ts +58 -0
  466. package/dist/io/broker/GrpcServerOptions.d.ts.map +1 -0
  467. package/dist/io/broker/GrpcServerOptions.js +44 -0
  468. package/dist/io/broker/GrpcServerOptions.js.map +1 -0
  469. package/dist/io/broker/JetStreamActor.d.ts +13 -35
  470. package/dist/io/broker/JetStreamActor.d.ts.map +1 -1
  471. package/dist/io/broker/JetStreamActor.js +2 -2
  472. package/dist/io/broker/JetStreamActor.js.map +1 -1
  473. package/dist/io/broker/JetStreamOptions.d.ts +64 -0
  474. package/dist/io/broker/JetStreamOptions.d.ts.map +1 -0
  475. package/dist/io/broker/JetStreamOptions.js +54 -0
  476. package/dist/io/broker/JetStreamOptions.js.map +1 -0
  477. package/dist/io/broker/KafkaActor.d.ts +13 -54
  478. package/dist/io/broker/KafkaActor.d.ts.map +1 -1
  479. package/dist/io/broker/KafkaActor.js +20 -8
  480. package/dist/io/broker/KafkaActor.js.map +1 -1
  481. package/dist/io/broker/KafkaOptions.d.ts +82 -0
  482. package/dist/io/broker/KafkaOptions.d.ts.map +1 -0
  483. package/dist/io/broker/KafkaOptions.js +50 -0
  484. package/dist/io/broker/KafkaOptions.js.map +1 -0
  485. package/dist/io/broker/MqttActor.d.ts +174 -114
  486. package/dist/io/broker/MqttActor.d.ts.map +1 -1
  487. package/dist/io/broker/MqttActor.js +328 -103
  488. package/dist/io/broker/MqttActor.js.map +1 -1
  489. package/dist/io/broker/MqttCodec.d.ts +70 -0
  490. package/dist/io/broker/MqttCodec.d.ts.map +1 -0
  491. package/dist/io/broker/MqttCodec.js +98 -0
  492. package/dist/io/broker/MqttCodec.js.map +1 -0
  493. package/dist/io/broker/MqttMessages.d.ts +145 -0
  494. package/dist/io/broker/MqttMessages.d.ts.map +1 -0
  495. package/dist/io/broker/MqttMessages.js +102 -0
  496. package/dist/io/broker/MqttMessages.js.map +1 -0
  497. package/dist/io/broker/MqttOptions.d.ts +100 -0
  498. package/dist/io/broker/MqttOptions.d.ts.map +1 -0
  499. package/dist/io/broker/MqttOptions.js +73 -0
  500. package/dist/io/broker/MqttOptions.js.map +1 -0
  501. package/dist/io/broker/NatsActor.d.ts +6 -21
  502. package/dist/io/broker/NatsActor.d.ts.map +1 -1
  503. package/dist/io/broker/NatsActor.js +1 -1
  504. package/dist/io/broker/NatsActor.js.map +1 -1
  505. package/dist/io/broker/NatsOptions.d.ts +51 -0
  506. package/dist/io/broker/NatsOptions.d.ts.map +1 -0
  507. package/dist/io/broker/NatsOptions.js +42 -0
  508. package/dist/io/broker/NatsOptions.js.map +1 -0
  509. package/dist/io/broker/RedisStreamsActor.d.ts +6 -24
  510. package/dist/io/broker/RedisStreamsActor.d.ts.map +1 -1
  511. package/dist/io/broker/RedisStreamsActor.js +1 -1
  512. package/dist/io/broker/RedisStreamsActor.js.map +1 -1
  513. package/dist/io/broker/RedisStreamsOptions.d.ts +51 -0
  514. package/dist/io/broker/RedisStreamsOptions.d.ts.map +1 -0
  515. package/dist/io/broker/RedisStreamsOptions.js +38 -0
  516. package/dist/io/broker/RedisStreamsOptions.js.map +1 -0
  517. package/dist/io/broker/SseActor.d.ts +6 -15
  518. package/dist/io/broker/SseActor.d.ts.map +1 -1
  519. package/dist/io/broker/SseActor.js +1 -1
  520. package/dist/io/broker/SseActor.js.map +1 -1
  521. package/dist/io/broker/SseOptions.d.ts +38 -0
  522. package/dist/io/broker/SseOptions.d.ts.map +1 -0
  523. package/dist/io/broker/SseOptions.js +30 -0
  524. package/dist/io/broker/SseOptions.js.map +1 -0
  525. package/dist/io/broker/TcpSocketActor.d.ts +6 -21
  526. package/dist/io/broker/TcpSocketActor.d.ts.map +1 -1
  527. package/dist/io/broker/TcpSocketActor.js +1 -1
  528. package/dist/io/broker/TcpSocketActor.js.map +1 -1
  529. package/dist/io/broker/TcpSocketOptions.d.ts +46 -0
  530. package/dist/io/broker/TcpSocketOptions.d.ts.map +1 -0
  531. package/dist/io/broker/TcpSocketOptions.js +34 -0
  532. package/dist/io/broker/TcpSocketOptions.js.map +1 -0
  533. package/dist/io/broker/UdpSocketActor.d.ts +6 -17
  534. package/dist/io/broker/UdpSocketActor.d.ts.map +1 -1
  535. package/dist/io/broker/UdpSocketActor.js +1 -1
  536. package/dist/io/broker/UdpSocketActor.js.map +1 -1
  537. package/dist/io/broker/UdpSocketOptions.d.ts +42 -0
  538. package/dist/io/broker/UdpSocketOptions.d.ts.map +1 -0
  539. package/dist/io/broker/UdpSocketOptions.js +34 -0
  540. package/dist/io/broker/UdpSocketOptions.js.map +1 -0
  541. package/dist/io/broker/index.d.ts +39 -19
  542. package/dist/io/broker/index.d.ts.map +1 -1
  543. package/dist/io/broker/index.js +21 -4
  544. package/dist/io/broker/index.js.map +1 -1
  545. package/dist/mailbox/BoundedMailbox.d.ts +12 -0
  546. package/dist/mailbox/BoundedMailbox.d.ts.map +1 -1
  547. package/dist/mailbox/BoundedMailbox.js +7 -1
  548. package/dist/mailbox/BoundedMailbox.js.map +1 -1
  549. package/dist/management/HttpManagement.d.ts +34 -1
  550. package/dist/management/HttpManagement.d.ts.map +1 -1
  551. package/dist/management/HttpManagement.js +30 -4
  552. package/dist/management/HttpManagement.js.map +1 -1
  553. package/dist/metrics/PromClientAdapter.d.ts +2 -12
  554. package/dist/metrics/PromClientAdapter.d.ts.map +1 -1
  555. package/dist/metrics/PromClientAdapter.js +2 -2
  556. package/dist/metrics/PromClientAdapter.js.map +1 -1
  557. package/dist/metrics/PromClientAdapterOptions.d.ts +46 -0
  558. package/dist/metrics/PromClientAdapterOptions.d.ts.map +1 -0
  559. package/dist/metrics/PromClientAdapterOptions.js +35 -0
  560. package/dist/metrics/PromClientAdapterOptions.js.map +1 -0
  561. package/dist/metrics/index.d.ts +3 -1
  562. package/dist/metrics/index.d.ts.map +1 -1
  563. package/dist/metrics/index.js +1 -0
  564. package/dist/metrics/index.js.map +1 -1
  565. package/dist/persistence/DurableStateActor.d.ts +4 -9
  566. package/dist/persistence/DurableStateActor.d.ts.map +1 -1
  567. package/dist/persistence/DurableStateActor.js +3 -3
  568. package/dist/persistence/DurableStateActor.js.map +1 -1
  569. package/dist/persistence/DurableStateOptions.d.ts +40 -0
  570. package/dist/persistence/DurableStateOptions.d.ts.map +1 -0
  571. package/dist/persistence/DurableStateOptions.js +36 -0
  572. package/dist/persistence/DurableStateOptions.js.map +1 -0
  573. package/dist/persistence/PersistenceOptions.d.ts +45 -0
  574. package/dist/persistence/PersistenceOptions.d.ts.map +1 -1
  575. package/dist/persistence/ReplicatedEventSourcedActor.d.ts.map +1 -1
  576. package/dist/persistence/ReplicatedEventSourcedActor.js +2 -2
  577. package/dist/persistence/ReplicatedEventSourcedActor.js.map +1 -1
  578. package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.d.ts +32 -0
  579. package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.d.ts.map +1 -0
  580. package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.js +120 -0
  581. package/dist/persistence/durable-state-stores/MariaDbDurableStateStore.js.map +1 -0
  582. package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.d.ts +38 -0
  583. package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.d.ts.map +1 -0
  584. package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.js +38 -0
  585. package/dist/persistence/durable-state-stores/MariaDbDurableStateStoreOptions.js.map +1 -0
  586. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts +4 -9
  587. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.d.ts.map +1 -1
  588. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js +49 -7
  589. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStore.js.map +1 -1
  590. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts +61 -0
  591. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.d.ts.map +1 -0
  592. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js +42 -0
  593. package/dist/persistence/durable-state-stores/ObjectStorageDurableStateStoreOptions.js.map +1 -0
  594. package/dist/persistence/durable-state-stores/PostgresDurableStateStore.d.ts +38 -0
  595. package/dist/persistence/durable-state-stores/PostgresDurableStateStore.d.ts.map +1 -0
  596. package/dist/persistence/durable-state-stores/PostgresDurableStateStore.js +121 -0
  597. package/dist/persistence/durable-state-stores/PostgresDurableStateStore.js.map +1 -0
  598. package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.d.ts +38 -0
  599. package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.d.ts.map +1 -0
  600. package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.js +38 -0
  601. package/dist/persistence/durable-state-stores/PostgresDurableStateStoreOptions.js.map +1 -0
  602. package/dist/persistence/index.d.ts +59 -16
  603. package/dist/persistence/index.d.ts.map +1 -1
  604. package/dist/persistence/index.js +33 -2
  605. package/dist/persistence/index.js.map +1 -1
  606. package/dist/persistence/journals/CassandraJournal.d.ts +1 -48
  607. package/dist/persistence/journals/CassandraJournal.d.ts.map +1 -1
  608. package/dist/persistence/journals/CassandraJournal.js +2 -2
  609. package/dist/persistence/journals/CassandraJournal.js.map +1 -1
  610. package/dist/persistence/journals/CassandraJournalOptions.d.ts +107 -0
  611. package/dist/persistence/journals/CassandraJournalOptions.d.ts.map +1 -0
  612. package/dist/persistence/journals/CassandraJournalOptions.js +90 -0
  613. package/dist/persistence/journals/CassandraJournalOptions.js.map +1 -0
  614. package/dist/persistence/journals/CassandraPlugin.d.ts +1 -16
  615. package/dist/persistence/journals/CassandraPlugin.d.ts.map +1 -1
  616. package/dist/persistence/journals/CassandraPlugin.js +9 -4
  617. package/dist/persistence/journals/CassandraPlugin.js.map +1 -1
  618. package/dist/persistence/journals/CassandraPluginOptions.d.ts +51 -0
  619. package/dist/persistence/journals/CassandraPluginOptions.d.ts.map +1 -0
  620. package/dist/persistence/journals/CassandraPluginOptions.js +37 -0
  621. package/dist/persistence/journals/CassandraPluginOptions.js.map +1 -0
  622. package/dist/persistence/journals/MariaDbClient.d.ts +54 -0
  623. package/dist/persistence/journals/MariaDbClient.d.ts.map +1 -0
  624. package/dist/persistence/journals/MariaDbClient.js +40 -0
  625. package/dist/persistence/journals/MariaDbClient.js.map +1 -0
  626. package/dist/persistence/journals/MariaDbJournal.d.ts +29 -0
  627. package/dist/persistence/journals/MariaDbJournal.d.ts.map +1 -0
  628. package/dist/persistence/journals/MariaDbJournal.js +161 -0
  629. package/dist/persistence/journals/MariaDbJournal.js.map +1 -0
  630. package/dist/persistence/journals/MariaDbJournalOptions.d.ts +43 -0
  631. package/dist/persistence/journals/MariaDbJournalOptions.d.ts.map +1 -0
  632. package/dist/persistence/journals/MariaDbJournalOptions.js +43 -0
  633. package/dist/persistence/journals/MariaDbJournalOptions.js.map +1 -0
  634. package/dist/persistence/journals/MariaDbPlugin.d.ts +27 -0
  635. package/dist/persistence/journals/MariaDbPlugin.d.ts.map +1 -0
  636. package/dist/persistence/journals/MariaDbPlugin.js +30 -0
  637. package/dist/persistence/journals/MariaDbPlugin.js.map +1 -0
  638. package/dist/persistence/journals/MariaDbPluginOptions.d.ts +52 -0
  639. package/dist/persistence/journals/MariaDbPluginOptions.d.ts.map +1 -0
  640. package/dist/persistence/journals/MariaDbPluginOptions.js +38 -0
  641. package/dist/persistence/journals/MariaDbPluginOptions.js.map +1 -0
  642. package/dist/persistence/journals/PostgresClient.d.ts +56 -0
  643. package/dist/persistence/journals/PostgresClient.d.ts.map +1 -0
  644. package/dist/persistence/journals/PostgresClient.js +35 -0
  645. package/dist/persistence/journals/PostgresClient.js.map +1 -0
  646. package/dist/persistence/journals/PostgresJournal.d.ts +41 -0
  647. package/dist/persistence/journals/PostgresJournal.d.ts.map +1 -0
  648. package/dist/persistence/journals/PostgresJournal.js +176 -0
  649. package/dist/persistence/journals/PostgresJournal.js.map +1 -0
  650. package/dist/persistence/journals/PostgresJournalOptions.d.ts +44 -0
  651. package/dist/persistence/journals/PostgresJournalOptions.d.ts.map +1 -0
  652. package/dist/persistence/journals/PostgresJournalOptions.js +44 -0
  653. package/dist/persistence/journals/PostgresJournalOptions.js.map +1 -0
  654. package/dist/persistence/journals/PostgresPlugin.d.ts +32 -0
  655. package/dist/persistence/journals/PostgresPlugin.d.ts.map +1 -0
  656. package/dist/persistence/journals/PostgresPlugin.js +35 -0
  657. package/dist/persistence/journals/PostgresPlugin.js.map +1 -0
  658. package/dist/persistence/journals/PostgresPluginOptions.d.ts +54 -0
  659. package/dist/persistence/journals/PostgresPluginOptions.d.ts.map +1 -0
  660. package/dist/persistence/journals/PostgresPluginOptions.js +39 -0
  661. package/dist/persistence/journals/PostgresPluginOptions.js.map +1 -0
  662. package/dist/persistence/journals/SqliteJournal.d.ts +5 -19
  663. package/dist/persistence/journals/SqliteJournal.d.ts.map +1 -1
  664. package/dist/persistence/journals/SqliteJournal.js +10 -9
  665. package/dist/persistence/journals/SqliteJournal.js.map +1 -1
  666. package/dist/persistence/journals/SqliteJournalOptions.d.ts +41 -0
  667. package/dist/persistence/journals/SqliteJournalOptions.d.ts.map +1 -0
  668. package/dist/persistence/journals/SqliteJournalOptions.js +31 -0
  669. package/dist/persistence/journals/SqliteJournalOptions.js.map +1 -0
  670. package/dist/persistence/object-storage/BodyCodec.d.ts +43 -0
  671. package/dist/persistence/object-storage/BodyCodec.d.ts.map +1 -1
  672. package/dist/persistence/object-storage/BodyCodec.js +78 -20
  673. package/dist/persistence/object-storage/BodyCodec.js.map +1 -1
  674. package/dist/persistence/object-storage/Compression.d.ts +21 -7
  675. package/dist/persistence/object-storage/Compression.d.ts.map +1 -1
  676. package/dist/persistence/object-storage/Compression.js +79 -29
  677. package/dist/persistence/object-storage/Compression.js.map +1 -1
  678. package/dist/persistence/object-storage/FilesystemObjectStorageBackend.d.ts +2 -61
  679. package/dist/persistence/object-storage/FilesystemObjectStorageBackend.d.ts.map +1 -1
  680. package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js +56 -11
  681. package/dist/persistence/object-storage/FilesystemObjectStorageBackend.js.map +1 -1
  682. package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts +45 -0
  683. package/dist/persistence/object-storage/FilesystemObjectStorageOptions.d.ts.map +1 -0
  684. package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js +30 -0
  685. package/dist/persistence/object-storage/FilesystemObjectStorageOptions.js.map +1 -0
  686. package/dist/persistence/object-storage/Integrity.d.ts +43 -0
  687. package/dist/persistence/object-storage/Integrity.d.ts.map +1 -0
  688. package/dist/persistence/object-storage/Integrity.js +66 -0
  689. package/dist/persistence/object-storage/Integrity.js.map +1 -0
  690. package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts +6 -22
  691. package/dist/persistence/object-storage/ObjectStoragePlugin.d.ts.map +1 -1
  692. package/dist/persistence/object-storage/ObjectStoragePlugin.js +36 -28
  693. package/dist/persistence/object-storage/ObjectStoragePlugin.js.map +1 -1
  694. package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts +60 -0
  695. package/dist/persistence/object-storage/ObjectStoragePluginOptions.d.ts.map +1 -0
  696. package/dist/persistence/object-storage/ObjectStoragePluginOptions.js +52 -0
  697. package/dist/persistence/object-storage/ObjectStoragePluginOptions.js.map +1 -0
  698. package/dist/persistence/object-storage/PluginConfig.d.ts +5 -2
  699. package/dist/persistence/object-storage/PluginConfig.d.ts.map +1 -1
  700. package/dist/persistence/object-storage/PluginConfig.js +8 -0
  701. package/dist/persistence/object-storage/PluginConfig.js.map +1 -1
  702. package/dist/persistence/object-storage/S3ObjectStorageBackend.d.ts +1 -30
  703. package/dist/persistence/object-storage/S3ObjectStorageBackend.d.ts.map +1 -1
  704. package/dist/persistence/object-storage/S3ObjectStorageBackend.js +12 -7
  705. package/dist/persistence/object-storage/S3ObjectStorageBackend.js.map +1 -1
  706. package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts +64 -0
  707. package/dist/persistence/object-storage/S3ObjectStorageOptions.d.ts.map +1 -0
  708. package/dist/persistence/object-storage/S3ObjectStorageOptions.js +42 -0
  709. package/dist/persistence/object-storage/S3ObjectStorageOptions.js.map +1 -0
  710. package/dist/persistence/object-storage/reEncryptionSweep.d.ts +72 -0
  711. package/dist/persistence/object-storage/reEncryptionSweep.d.ts.map +1 -1
  712. package/dist/persistence/object-storage/reEncryptionSweep.js +82 -2
  713. package/dist/persistence/object-storage/reEncryptionSweep.js.map +1 -1
  714. package/dist/persistence/projection/ProjectionActor.d.ts +4 -24
  715. package/dist/persistence/projection/ProjectionActor.d.ts.map +1 -1
  716. package/dist/persistence/projection/ProjectionActor.js +36 -2
  717. package/dist/persistence/projection/ProjectionActor.js.map +1 -1
  718. package/dist/persistence/projection/ProjectionOptions.d.ts +109 -0
  719. package/dist/persistence/projection/ProjectionOptions.d.ts.map +1 -0
  720. package/dist/persistence/projection/ProjectionOptions.js +108 -0
  721. package/dist/persistence/projection/ProjectionOptions.js.map +1 -0
  722. package/dist/persistence/snapshot-stores/CachedSnapshotStore.d.ts +2 -10
  723. package/dist/persistence/snapshot-stores/CachedSnapshotStore.d.ts.map +1 -1
  724. package/dist/persistence/snapshot-stores/CachedSnapshotStore.js +12 -6
  725. package/dist/persistence/snapshot-stores/CachedSnapshotStore.js.map +1 -1
  726. package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts +37 -0
  727. package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.d.ts.map +1 -0
  728. package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js +31 -0
  729. package/dist/persistence/snapshot-stores/CachedSnapshotStoreOptions.js.map +1 -0
  730. package/dist/persistence/snapshot-stores/CassandraSnapshotStore.d.ts +1 -11
  731. package/dist/persistence/snapshot-stores/CassandraSnapshotStore.d.ts.map +1 -1
  732. package/dist/persistence/snapshot-stores/CassandraSnapshotStore.js +3 -3
  733. package/dist/persistence/snapshot-stores/CassandraSnapshotStore.js.map +1 -1
  734. package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.d.ts +61 -0
  735. package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.d.ts.map +1 -0
  736. package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.js +73 -0
  737. package/dist/persistence/snapshot-stores/CassandraSnapshotStoreOptions.js.map +1 -0
  738. package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.d.ts +30 -0
  739. package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.d.ts.map +1 -0
  740. package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.js +102 -0
  741. package/dist/persistence/snapshot-stores/MariaDbSnapshotStore.js.map +1 -0
  742. package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.d.ts +42 -0
  743. package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.d.ts.map +1 -0
  744. package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.js +42 -0
  745. package/dist/persistence/snapshot-stores/MariaDbSnapshotStoreOptions.js.map +1 -0
  746. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts +2 -15
  747. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.d.ts.map +1 -1
  748. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js +10 -6
  749. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStore.js.map +1 -1
  750. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts +45 -0
  751. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.d.ts.map +1 -0
  752. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js +38 -0
  753. package/dist/persistence/snapshot-stores/ObjectStorageSnapshotStoreOptions.js.map +1 -0
  754. package/dist/persistence/snapshot-stores/PostgresSnapshotStore.d.ts +31 -0
  755. package/dist/persistence/snapshot-stores/PostgresSnapshotStore.d.ts.map +1 -0
  756. package/dist/persistence/snapshot-stores/PostgresSnapshotStore.js +101 -0
  757. package/dist/persistence/snapshot-stores/PostgresSnapshotStore.js.map +1 -0
  758. package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.d.ts +42 -0
  759. package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.d.ts.map +1 -0
  760. package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.js +42 -0
  761. package/dist/persistence/snapshot-stores/PostgresSnapshotStoreOptions.js.map +1 -0
  762. package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts +2 -15
  763. package/dist/persistence/snapshot-stores/SqliteSnapshotStore.d.ts.map +1 -1
  764. package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js +7 -6
  765. package/dist/persistence/snapshot-stores/SqliteSnapshotStore.js.map +1 -1
  766. package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.d.ts +40 -0
  767. package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.d.ts.map +1 -0
  768. package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.js +31 -0
  769. package/dist/persistence/snapshot-stores/SqliteSnapshotStoreOptions.js.map +1 -0
  770. package/dist/runtime/http/BunHonoRunner.d.ts +7 -1
  771. package/dist/runtime/http/BunHonoRunner.d.ts.map +1 -1
  772. package/dist/runtime/http/BunHonoRunner.js +22 -0
  773. package/dist/runtime/http/BunHonoRunner.js.map +1 -1
  774. package/dist/runtime/http/DenoHonoRunner.d.ts +5 -2
  775. package/dist/runtime/http/DenoHonoRunner.d.ts.map +1 -1
  776. package/dist/runtime/http/DenoHonoRunner.js +19 -2
  777. package/dist/runtime/http/DenoHonoRunner.js.map +1 -1
  778. package/dist/runtime/http/HonoServerRunner.d.ts +39 -0
  779. package/dist/runtime/http/HonoServerRunner.d.ts.map +1 -1
  780. package/dist/runtime/http/NodeHonoRunner.d.ts +3 -1
  781. package/dist/runtime/http/NodeHonoRunner.d.ts.map +1 -1
  782. package/dist/runtime/http/NodeHonoRunner.js +22 -0
  783. package/dist/runtime/http/NodeHonoRunner.js.map +1 -1
  784. package/dist/runtime/http/index.d.ts +1 -1
  785. package/dist/runtime/http/index.d.ts.map +1 -1
  786. package/dist/runtime/http/index.js.map +1 -1
  787. package/dist/testkit/ManualScheduler.d.ts +2 -1
  788. package/dist/testkit/ManualScheduler.d.ts.map +1 -1
  789. package/dist/testkit/ManualScheduler.js +2 -1
  790. package/dist/testkit/ManualScheduler.js.map +1 -1
  791. package/dist/testkit/MockCluster.d.ts +74 -0
  792. package/dist/testkit/MockCluster.d.ts.map +1 -0
  793. package/dist/testkit/MockCluster.js +163 -0
  794. package/dist/testkit/MockCluster.js.map +1 -0
  795. package/dist/testkit/MultiNodeClusterFixture.d.ts +62 -0
  796. package/dist/testkit/MultiNodeClusterFixture.d.ts.map +1 -0
  797. package/dist/testkit/MultiNodeClusterFixture.js +43 -0
  798. package/dist/testkit/MultiNodeClusterFixture.js.map +1 -0
  799. package/dist/testkit/MultiNodeSpec.d.ts +45 -3
  800. package/dist/testkit/MultiNodeSpec.d.ts.map +1 -1
  801. package/dist/testkit/MultiNodeSpec.js +108 -14
  802. package/dist/testkit/MultiNodeSpec.js.map +1 -1
  803. package/dist/testkit/ParallelMultiNodeSpec.d.ts +12 -2
  804. package/dist/testkit/ParallelMultiNodeSpec.d.ts.map +1 -1
  805. package/dist/testkit/ParallelMultiNodeSpec.js +49 -4
  806. package/dist/testkit/ParallelMultiNodeSpec.js.map +1 -1
  807. package/dist/testkit/SnapshotMigrationTest.d.ts +86 -0
  808. package/dist/testkit/SnapshotMigrationTest.d.ts.map +1 -0
  809. package/dist/testkit/SnapshotMigrationTest.js +77 -0
  810. package/dist/testkit/SnapshotMigrationTest.js.map +1 -0
  811. package/dist/testkit/TestKit.d.ts +6 -8
  812. package/dist/testkit/TestKit.d.ts.map +1 -1
  813. package/dist/testkit/TestKit.js +10 -6
  814. package/dist/testkit/TestKit.js.map +1 -1
  815. package/dist/testkit/TestKitOptions.d.ts +26 -0
  816. package/dist/testkit/TestKitOptions.d.ts.map +1 -0
  817. package/dist/testkit/TestKitOptions.js +19 -0
  818. package/dist/testkit/TestKitOptions.js.map +1 -0
  819. package/dist/testkit/TestProbe.d.ts +2 -7
  820. package/dist/testkit/TestProbe.d.ts.map +1 -1
  821. package/dist/testkit/TestProbe.js +2 -1
  822. package/dist/testkit/TestProbe.js.map +1 -1
  823. package/dist/testkit/TestProbeOptions.d.ts +26 -0
  824. package/dist/testkit/TestProbeOptions.d.ts.map +1 -0
  825. package/dist/testkit/TestProbeOptions.js +19 -0
  826. package/dist/testkit/TestProbeOptions.js.map +1 -0
  827. package/dist/testkit/index.d.ts +10 -2
  828. package/dist/testkit/index.d.ts.map +1 -1
  829. package/dist/testkit/index.js +5 -0
  830. package/dist/testkit/index.js.map +1 -1
  831. package/dist/testkit/internal/parallel-multi-node-bootstrap.d.ts.map +1 -1
  832. package/dist/testkit/internal/parallel-multi-node-bootstrap.js +16 -12
  833. package/dist/testkit/internal/parallel-multi-node-bootstrap.js.map +1 -1
  834. package/dist/tracing/OtelAdapter.d.ts +4 -12
  835. package/dist/tracing/OtelAdapter.d.ts.map +1 -1
  836. package/dist/tracing/OtelAdapter.js +4 -2
  837. package/dist/tracing/OtelAdapter.js.map +1 -1
  838. package/dist/tracing/OtelAdapterOptions.d.ts +42 -0
  839. package/dist/tracing/OtelAdapterOptions.d.ts.map +1 -0
  840. package/dist/tracing/OtelAdapterOptions.js +34 -0
  841. package/dist/tracing/OtelAdapterOptions.js.map +1 -0
  842. package/dist/tracing/OtelLogsAdapter.d.ts +100 -0
  843. package/dist/tracing/OtelLogsAdapter.d.ts.map +1 -0
  844. package/dist/tracing/OtelLogsAdapter.js +130 -0
  845. package/dist/tracing/OtelLogsAdapter.js.map +1 -0
  846. package/dist/tracing/index.d.ts +5 -1
  847. package/dist/tracing/index.d.ts.map +1 -1
  848. package/dist/tracing/index.js +2 -0
  849. package/dist/tracing/index.js.map +1 -1
  850. package/dist/util/Constants.d.ts +23 -0
  851. package/dist/util/Constants.d.ts.map +1 -1
  852. package/dist/util/Constants.js +23 -0
  853. package/dist/util/Constants.js.map +1 -1
  854. package/dist/util/Lazy.d.ts +31 -0
  855. package/dist/util/Lazy.d.ts.map +1 -1
  856. package/dist/util/Lazy.js +70 -0
  857. package/dist/util/Lazy.js.map +1 -1
  858. package/dist/util/OptionsBuilder.d.ts +48 -0
  859. package/dist/util/OptionsBuilder.d.ts.map +1 -0
  860. package/dist/util/OptionsBuilder.js +53 -0
  861. package/dist/util/OptionsBuilder.js.map +1 -0
  862. package/dist/worker/WorkerCluster.d.ts +2 -11
  863. package/dist/worker/WorkerCluster.d.ts.map +1 -1
  864. package/dist/worker/WorkerCluster.js +2 -1
  865. package/dist/worker/WorkerCluster.js.map +1 -1
  866. package/dist/worker/WorkerClusterOptions.d.ts +55 -0
  867. package/dist/worker/WorkerClusterOptions.d.ts.map +1 -0
  868. package/dist/worker/WorkerClusterOptions.js +55 -0
  869. package/dist/worker/WorkerClusterOptions.js.map +1 -0
  870. package/dist/worker/index.d.ts +3 -1
  871. package/dist/worker/index.d.ts.map +1 -1
  872. package/dist/worker/index.js +1 -0
  873. package/dist/worker/index.js.map +1 -1
  874. package/package.json +56 -13
  875. package/dist/io/broker/ServerWebSocketActor.d.ts +0 -109
  876. package/dist/io/broker/ServerWebSocketActor.d.ts.map +0 -1
  877. package/dist/io/broker/ServerWebSocketActor.js +0 -128
  878. package/dist/io/broker/ServerWebSocketActor.js.map +0 -1
  879. package/dist/io/broker/WebSocketActor.d.ts +0 -77
  880. package/dist/io/broker/WebSocketActor.d.ts.map +0 -1
  881. package/dist/io/broker/WebSocketActor.js +0 -217
  882. package/dist/io/broker/WebSocketActor.js.map +0 -1
  883. package/dist/io/broker/WebSocketServerAdapters.d.ts +0 -140
  884. package/dist/io/broker/WebSocketServerAdapters.d.ts.map +0 -1
  885. package/dist/io/broker/WebSocketServerAdapters.js +0 -155
  886. package/dist/io/broker/WebSocketServerAdapters.js.map +0 -1
@@ -0,0 +1,121 @@
1
+ import { DurableStateConcurrencyError, } from '../DurableStateStore.js';
2
+ import { JournalError } from '../JournalTypes.js';
3
+ import { none, some } from '../../util/Option.js';
4
+ import { assertSafeIdentifier, buildPgPool, } from '../journals/PostgresClient.js';
5
+ /**
6
+ * DurableStateStore backed by PostgreSQL (`pg`) — the first SQL-based
7
+ * durable-state store (SQLite / Cassandra ship journal + snapshot only).
8
+ *
9
+ * One row per `persistence_id`, rewritten in place. Optimistic
10
+ * concurrency via the `revision` column:
11
+ *
12
+ * - `expectedRevision === 0` → `INSERT … ON CONFLICT DO NOTHING`; zero
13
+ * rows affected means the row already exists → conflict.
14
+ * - `expectedRevision > 0` → `UPDATE … WHERE revision = expected`;
15
+ * zero rows affected means the stored revision diverged → conflict.
16
+ *
17
+ * On conflict the current revision is read back and reported in the
18
+ * `DurableStateConcurrencyError`. `PersistenceOptions` are ignored
19
+ * (JSON-text payload, like the other SQL stores).
20
+ */
21
+ export class PostgresDurableStateStore {
22
+ settings;
23
+ table;
24
+ autoCreate;
25
+ pool = null;
26
+ initPromise = null;
27
+ closed = false;
28
+ constructor(options = {}) {
29
+ const s = options;
30
+ this.settings = s;
31
+ this.table = assertSafeIdentifier(s.table ?? 'durable_state', 'durable-state table');
32
+ this.autoCreate = s.autoCreateTables ?? true;
33
+ }
34
+ async upsert(persistenceId, expectedRevision, state, _options) {
35
+ if (!Number.isInteger(expectedRevision) || expectedRevision < 0) {
36
+ throw new JournalError(`PostgresDurableStateStore.upsert: expectedRevision must be a non-negative integer, got ${expectedRevision}`);
37
+ }
38
+ const pool = await this.ensureOpen();
39
+ const now = Date.now();
40
+ const newRevision = expectedRevision + 1;
41
+ const payload = JSON.stringify(state);
42
+ try {
43
+ if (expectedRevision === 0) {
44
+ const res = await pool.query(`INSERT INTO ${this.table}(persistence_id, revision, payload, timestamp) VALUES ($1, $2, $3, $4)
45
+ ON CONFLICT (persistence_id) DO NOTHING`, [persistenceId, newRevision, payload, now]);
46
+ if ((res.rowCount ?? 0) === 0) {
47
+ throw new DurableStateConcurrencyError(persistenceId, expectedRevision, await this.currentRevision(pool, persistenceId));
48
+ }
49
+ }
50
+ else {
51
+ const res = await pool.query(`UPDATE ${this.table} SET revision = $1, payload = $2, timestamp = $3 WHERE persistence_id = $4 AND revision = $5`, [newRevision, payload, now, persistenceId, expectedRevision]);
52
+ if ((res.rowCount ?? 0) === 0) {
53
+ throw new DurableStateConcurrencyError(persistenceId, expectedRevision, await this.currentRevision(pool, persistenceId));
54
+ }
55
+ }
56
+ return { persistenceId, revision: newRevision, state, timestamp: now };
57
+ }
58
+ catch (e) {
59
+ if (e instanceof DurableStateConcurrencyError)
60
+ throw e;
61
+ throw new JournalError(`PostgresDurableStateStore.upsert failed: ${e.message}`, e);
62
+ }
63
+ }
64
+ async load(persistenceId, _options) {
65
+ const pool = await this.ensureOpen();
66
+ const res = await pool.query(`SELECT revision, payload, timestamp FROM ${this.table} WHERE persistence_id = $1`, [persistenceId]);
67
+ const row = res.rows[0];
68
+ if (!row)
69
+ return none;
70
+ return some({
71
+ persistenceId,
72
+ revision: Number(row.revision),
73
+ state: JSON.parse(row.payload),
74
+ timestamp: Number(row.timestamp),
75
+ });
76
+ }
77
+ async delete(persistenceId) {
78
+ const pool = await this.ensureOpen();
79
+ await pool.query(`DELETE FROM ${this.table} WHERE persistence_id = $1`, [persistenceId]);
80
+ }
81
+ async close() {
82
+ if (this.closed)
83
+ return;
84
+ this.closed = true;
85
+ try {
86
+ await this.pool?.end();
87
+ }
88
+ catch { /* ignore */ }
89
+ this.pool = null;
90
+ }
91
+ /* --------------------------- internals -------------------------------- */
92
+ /** Read the current revision for conflict reporting; 0 if the row is gone. */
93
+ async currentRevision(pool, pid) {
94
+ const res = await pool.query(`SELECT revision FROM ${this.table} WHERE persistence_id = $1`, [pid]);
95
+ const row = res.rows[0];
96
+ return row ? Number(row.revision) : 0;
97
+ }
98
+ async ensureOpen() {
99
+ if (this.closed)
100
+ throw new JournalError('PostgresDurableStateStore is closed');
101
+ if (this.pool)
102
+ return this.pool;
103
+ if (!this.initPromise)
104
+ this.initPromise = this.init();
105
+ await this.initPromise;
106
+ return this.pool;
107
+ }
108
+ async init() {
109
+ const pool = await buildPgPool(this.settings);
110
+ if (this.autoCreate) {
111
+ await pool.query(`CREATE TABLE IF NOT EXISTS ${this.table} (
112
+ persistence_id TEXT PRIMARY KEY,
113
+ revision BIGINT NOT NULL,
114
+ payload TEXT NOT NULL,
115
+ timestamp BIGINT NOT NULL
116
+ )`);
117
+ }
118
+ this.pool = pool;
119
+ }
120
+ }
121
+ //# sourceMappingURL=PostgresDurableStateStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresDurableStateStore.js","sourceRoot":"","sources":["../../../src/persistence/durable-state-stores/PostgresDurableStateStore.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,GAG7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAe,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EACL,oBAAoB,EACpB,WAAW,GAEZ,MAAM,+BAA+B,CAAC;AASvC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,yBAAyB;IACnB,QAAQ,CAAuC;IAC/C,KAAK,CAAS;IACd,UAAU,CAAU;IAE7B,IAAI,GAAsB,IAAI,CAAC;IAC/B,WAAW,GAAyB,IAAI,CAAC;IACzC,MAAM,GAAG,KAAK,CAAC;IAEvB,YAAY,UAA4C,EAAE;QACxD,MAAM,CAAC,GAAI,OAAgD,CAAC;QAC5D,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,KAAK,GAAG,oBAAoB,CAAC,CAAC,CAAC,KAAK,IAAI,eAAe,EAAE,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IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,MAAM,IAAI,CAAC,KAAK,CACd,8BAA8B,IAAI,CAAC,KAAK;;;;;WAKrC,CACJ,CAAC;QACJ,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF"}
@@ -0,0 +1,38 @@
1
+ import { OptionsBuilder } from '../../util/OptionsBuilder.js';
2
+ import type { PgPoolLike, PostgresConnection } from '../journals/PostgresClient.js';
3
+ export interface PostgresDurableStateStoreOptionsType extends PostgresConnection {
4
+ /** Table name. Default: `durable_state`. */
5
+ readonly table?: string;
6
+ /** Run `CREATE TABLE IF NOT EXISTS` on first use. Default: true. */
7
+ readonly autoCreateTables?: boolean;
8
+ }
9
+ /**
10
+ * Fluent builder for {@link PostgresDurableStateStoreOptionsType}:
11
+ *
12
+ * new PostgresDurableStateStore(PostgresDurableStateStoreOptions.create().withUrl('postgres://…').withTable('state'))
13
+ *
14
+ * The connection fields (`withUrl` / `withPoolConfig` / `withPool`) come
15
+ * from the shared {@link PostgresConnection} mixin.
16
+ */
17
+ export declare class PostgresDurableStateStoreOptionsBuilder extends OptionsBuilder<PostgresDurableStateStoreOptionsType> {
18
+ /** Start a fresh builder. Equivalent to `new PostgresDurableStateStoreOptionsBuilder()`. */
19
+ static create(): PostgresDurableStateStoreOptionsBuilder;
20
+ /** Connection string, e.g. `postgres://user:pass@host:5432/db`. */
21
+ withUrl(url: string): this;
22
+ /** Extra node-postgres `Pool` config, merged over `{ connectionString: url }`. */
23
+ withPoolConfig(poolConfig: Record<string, unknown>): this;
24
+ /** Pre-built pool — bypasses the lazy `pg` import; share it across stores. */
25
+ withPool(pool: PgPoolLike): this;
26
+ /** Table name. Default: `durable_state`. */
27
+ withTable(table: string): this;
28
+ /** Run `CREATE TABLE IF NOT EXISTS` on first use. Default: true. */
29
+ withAutoCreateTables(autoCreateTables: boolean): this;
30
+ }
31
+ /**
32
+ * Accepted input for the Postgres durable-state-store constructor: the fluent
33
+ * {@link PostgresDurableStateStoreOptionsBuilder} OR a plain {@link PostgresDurableStateStoreOptionsType} object.
34
+ */
35
+ export type PostgresDurableStateStoreOptions = PostgresDurableStateStoreOptionsBuilder | Partial<PostgresDurableStateStoreOptionsType>;
36
+ /** Value alias so `PostgresDurableStateStoreOptions.create()` / `new PostgresDurableStateStoreOptions()` resolve to the builder. */
37
+ export declare const PostgresDurableStateStoreOptions: typeof PostgresDurableStateStoreOptionsBuilder;
38
+ //# sourceMappingURL=PostgresDurableStateStoreOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresDurableStateStoreOptions.d.ts","sourceRoot":"","sources":["../../../src/persistence/durable-state-stores/PostgresDurableStateStoreOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEpF,MAAM,WAAW,oCAAqC,SAAQ,kBAAkB;IAC9E,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;;;;;;GAOG;AACH,qBAAa,uCAAwC,SAAQ,cAAc,CAAC,oCAAoC,CAAC;IAC/G,6FAA6F;IAC7F,MAAM,CAAC,MAAM,IAAI,uCAAuC;IAIxD,mEAAmE;IACnE,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI1B,kFAAkF;IAClF,cAAc,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAIzD,8EAA8E;IAC9E,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI;IAIhC,6CAA6C;IAC7C,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI9B,qEAAqE;IACrE,oBAAoB,CAAC,gBAAgB,EAAE,OAAO,GAAG,IAAI;CAGtD;AAED;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,uCAAuC,GAAG,OAAO,CAAC,oCAAoC,CAAC,CAAC;AACvI,oIAAoI;AACpI,eAAO,MAAM,gCAAgC,gDAA0C,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { OptionsBuilder } from '../../util/OptionsBuilder.js';
2
+ /**
3
+ * Fluent builder for {@link PostgresDurableStateStoreOptionsType}:
4
+ *
5
+ * new PostgresDurableStateStore(PostgresDurableStateStoreOptions.create().withUrl('postgres://…').withTable('state'))
6
+ *
7
+ * The connection fields (`withUrl` / `withPoolConfig` / `withPool`) come
8
+ * from the shared {@link PostgresConnection} mixin.
9
+ */
10
+ export class PostgresDurableStateStoreOptionsBuilder extends OptionsBuilder {
11
+ /** Start a fresh builder. Equivalent to `new PostgresDurableStateStoreOptionsBuilder()`. */
12
+ static create() {
13
+ return new PostgresDurableStateStoreOptionsBuilder();
14
+ }
15
+ /** Connection string, e.g. `postgres://user:pass@host:5432/db`. */
16
+ withUrl(url) {
17
+ return this.set('url', url);
18
+ }
19
+ /** Extra node-postgres `Pool` config, merged over `{ connectionString: url }`. */
20
+ withPoolConfig(poolConfig) {
21
+ return this.set('poolConfig', poolConfig);
22
+ }
23
+ /** Pre-built pool — bypasses the lazy `pg` import; share it across stores. */
24
+ withPool(pool) {
25
+ return this.set('pool', pool);
26
+ }
27
+ /** Table name. Default: `durable_state`. */
28
+ withTable(table) {
29
+ return this.set('table', table);
30
+ }
31
+ /** Run `CREATE TABLE IF NOT EXISTS` on first use. Default: true. */
32
+ withAutoCreateTables(autoCreateTables) {
33
+ return this.set('autoCreateTables', autoCreateTables);
34
+ }
35
+ }
36
+ /** Value alias so `PostgresDurableStateStoreOptions.create()` / `new PostgresDurableStateStoreOptions()` resolve to the builder. */
37
+ export const PostgresDurableStateStoreOptions = PostgresDurableStateStoreOptionsBuilder;
38
+ //# sourceMappingURL=PostgresDurableStateStoreOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostgresDurableStateStoreOptions.js","sourceRoot":"","sources":["../../../src/persistence/durable-state-stores/PostgresDurableStateStoreOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAU9D;;;;;;;GAOG;AACH,MAAM,OAAO,uCAAwC,SAAQ,cAAoD;IAC/G,6FAA6F;IAC7F,MAAM,CAAC,MAAM;QACX,OAAO,IAAI,uCAAuC,EAAE,CAAC;IACvD,CAAC;IAED,mEAAmE;IACnE,OAAO,CAAC,GAAW;QACjB,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,kFAAkF;IAClF,cAAc,CAAC,UAAmC;QAChD,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;IAC5C,CAAC;IAED,8EAA8E;IAC9E,QAAQ,CAAC,IAAgB;QACvB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,6CAA6C;IAC7C,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,qEAAqE;IACrE,oBAAoB,CAAC,gBAAyB;QAC5C,OAAO,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IACxD,CAAC;CACF;AAOD,oIAAoI;AACpI,MAAM,CAAC,MAAM,gCAAgC,GAAG,uCAAuC,CAAC"}
@@ -10,22 +10,57 @@ export { JournalConcurrencyError, JournalError } from './JournalTypes.js';
10
10
  export type { CompressionAlgo, CompressionConfig, EncryptionConfig, PersistenceOptions, } from './PersistenceOptions.js';
11
11
  export { InMemoryJournal } from './journals/InMemoryJournal.js';
12
12
  export { SqliteJournal } from './journals/SqliteJournal.js';
13
- export type { SqliteJournalOptions } from './journals/SqliteJournal.js';
13
+ export { SqliteJournalOptions, SqliteJournalOptionsBuilder } from './journals/SqliteJournalOptions.js';
14
+ export type { SqliteJournalOptionsType } from './journals/SqliteJournalOptions.js';
14
15
  export { InMemorySnapshotStore } from './snapshot-stores/InMemorySnapshotStore.js';
15
16
  export { SqliteSnapshotStore } from './snapshot-stores/SqliteSnapshotStore.js';
16
- export type { SqliteSnapshotStoreOptions } from './snapshot-stores/SqliteSnapshotStore.js';
17
+ export { SqliteSnapshotStoreOptions, SqliteSnapshotStoreOptionsBuilder } from './snapshot-stores/SqliteSnapshotStoreOptions.js';
18
+ export type { SqliteSnapshotStoreOptionsType } from './snapshot-stores/SqliteSnapshotStoreOptions.js';
17
19
  export { CachedSnapshotStore } from './snapshot-stores/CachedSnapshotStore.js';
18
- export type { CachedSnapshotStoreOptions } from './snapshot-stores/CachedSnapshotStore.js';
20
+ export { CachedSnapshotStoreOptions, CachedSnapshotStoreOptionsBuilder } from './snapshot-stores/CachedSnapshotStoreOptions.js';
21
+ export type { CachedSnapshotStoreOptionsType } from './snapshot-stores/CachedSnapshotStoreOptions.js';
19
22
  export { CassandraJournal } from './journals/CassandraJournal.js';
20
- export type { CassandraJournalOptions } from './journals/CassandraJournal.js';
23
+ export { CassandraJournalOptions, CassandraJournalOptionsBuilder } from './journals/CassandraJournalOptions.js';
24
+ export type { CassandraJournalOptionsType } from './journals/CassandraJournalOptions.js';
21
25
  export { CassandraSnapshotStore } from './snapshot-stores/CassandraSnapshotStore.js';
22
- export type { CassandraSnapshotStoreOptions } from './snapshot-stores/CassandraSnapshotStore.js';
26
+ export { CassandraSnapshotStoreOptions, CassandraSnapshotStoreOptionsBuilder } from './snapshot-stores/CassandraSnapshotStoreOptions.js';
27
+ export type { CassandraSnapshotStoreOptionsType } from './snapshot-stores/CassandraSnapshotStoreOptions.js';
23
28
  export { createCassandraClient, keyspaceDdl, tagIndexDdl, } from './journals/CassandraClient.js';
24
29
  export type { CassandraClientLike, CassandraConnection, CassandraRowResult, CassandraBatchQuery, } from './journals/CassandraClient.js';
25
30
  export { registerCassandraPlugins, CASSANDRA_JOURNAL_PLUGIN_ID, CASSANDRA_SNAPSHOT_PLUGIN_ID, } from './journals/CassandraPlugin.js';
26
- export type { RegisterCassandraPluginsOptions } from './journals/CassandraPlugin.js';
31
+ export { RegisterCassandraPluginsOptions, RegisterCassandraPluginsOptionsBuilder } from './journals/CassandraPluginOptions.js';
32
+ export type { RegisterCassandraPluginsOptionsType } from './journals/CassandraPluginOptions.js';
33
+ export { PostgresJournal } from './journals/PostgresJournal.js';
34
+ export { PostgresJournalOptions, PostgresJournalOptionsBuilder } from './journals/PostgresJournalOptions.js';
35
+ export type { PostgresJournalOptionsType } from './journals/PostgresJournalOptions.js';
36
+ export { PostgresSnapshotStore } from './snapshot-stores/PostgresSnapshotStore.js';
37
+ export { PostgresSnapshotStoreOptions, PostgresSnapshotStoreOptionsBuilder } from './snapshot-stores/PostgresSnapshotStoreOptions.js';
38
+ export type { PostgresSnapshotStoreOptionsType } from './snapshot-stores/PostgresSnapshotStoreOptions.js';
39
+ export { PostgresDurableStateStore } from './durable-state-stores/PostgresDurableStateStore.js';
40
+ export { PostgresDurableStateStoreOptions, PostgresDurableStateStoreOptionsBuilder } from './durable-state-stores/PostgresDurableStateStoreOptions.js';
41
+ export type { PostgresDurableStateStoreOptionsType } from './durable-state-stores/PostgresDurableStateStoreOptions.js';
42
+ export { registerPostgresPlugins, POSTGRES_JOURNAL_PLUGIN_ID, POSTGRES_SNAPSHOT_PLUGIN_ID, POSTGRES_DURABLE_STATE_PLUGIN_ID, } from './journals/PostgresPlugin.js';
43
+ export { RegisterPostgresPluginsOptions, RegisterPostgresPluginsOptionsBuilder } from './journals/PostgresPluginOptions.js';
44
+ export type { RegisterPostgresPluginsOptionsType } from './journals/PostgresPluginOptions.js';
45
+ export type { PostgresPluginHandles } from './journals/PostgresPlugin.js';
46
+ export type { PostgresConnection, PgPoolLike, PgClientLike, } from './journals/PostgresClient.js';
47
+ export { MariaDbJournal } from './journals/MariaDbJournal.js';
48
+ export { MariaDbJournalOptions, MariaDbJournalOptionsBuilder } from './journals/MariaDbJournalOptions.js';
49
+ export type { MariaDbJournalOptionsType } from './journals/MariaDbJournalOptions.js';
50
+ export { MariaDbSnapshotStore } from './snapshot-stores/MariaDbSnapshotStore.js';
51
+ export { MariaDbSnapshotStoreOptions, MariaDbSnapshotStoreOptionsBuilder } from './snapshot-stores/MariaDbSnapshotStoreOptions.js';
52
+ export type { MariaDbSnapshotStoreOptionsType } from './snapshot-stores/MariaDbSnapshotStoreOptions.js';
53
+ export { MariaDbDurableStateStore } from './durable-state-stores/MariaDbDurableStateStore.js';
54
+ export { MariaDbDurableStateStoreOptions, MariaDbDurableStateStoreOptionsBuilder } from './durable-state-stores/MariaDbDurableStateStoreOptions.js';
55
+ export type { MariaDbDurableStateStoreOptionsType } from './durable-state-stores/MariaDbDurableStateStoreOptions.js';
56
+ export { registerMariaDbPlugins, MARIADB_JOURNAL_PLUGIN_ID, MARIADB_SNAPSHOT_PLUGIN_ID, MARIADB_DURABLE_STATE_PLUGIN_ID, } from './journals/MariaDbPlugin.js';
57
+ export { RegisterMariaDbPluginsOptions, RegisterMariaDbPluginsOptionsBuilder } from './journals/MariaDbPluginOptions.js';
58
+ export type { RegisterMariaDbPluginsOptionsType } from './journals/MariaDbPluginOptions.js';
59
+ export type { MariaDbPluginHandles } from './journals/MariaDbPlugin.js';
60
+ export type { MariaDbConnection, MariaDbPoolLike, MariaDbConnectionLike, } from './journals/MariaDbClient.js';
27
61
  export { DurableStateActor } from './DurableStateActor.js';
28
- export type { DurableStateSettings } from './DurableStateActor.js';
62
+ export { DurableStateOptions, DurableStateOptionsBuilder } from './DurableStateOptions.js';
63
+ export type { DurableStateOptionsType } from './DurableStateOptions.js';
29
64
  export { DurableStateConcurrencyError, } from './DurableStateStore.js';
30
65
  export type { DurableStateStore, DurableStateRecord, } from './DurableStateStore.js';
31
66
  export { InMemoryDurableStateStore } from './durable-state-stores/InMemoryDurableStateStore.js';
@@ -42,24 +77,32 @@ export { VectorClock } from './replicated/VectorClock.js';
42
77
  export type { VectorClockData, VectorClockOrder } from './replicated/VectorClock.js';
43
78
  export { LastWriterWinsResolver, CustomMergeResolver, } from './replicated/ConflictResolver.js';
44
79
  export type { ConflictResolver, ConflictCandidate, } from './replicated/ConflictResolver.js';
45
- export { ProjectionActor } from './projection/ProjectionActor.js';
46
- export type { ProjectionSettings, ByPidSettings, ByTagSettings, } from './projection/ProjectionActor.js';
80
+ export { ProjectionActor, } from './projection/ProjectionActor.js';
81
+ export { ProjectionOptions, ProjectionOptionsBuilder, ByPidProjectionOptions, ByPidProjectionOptionsBuilder, ByTagProjectionOptions, ByTagProjectionOptionsBuilder, } from './projection/ProjectionOptions.js';
82
+ export type { ProjectionOptionsType, ByPidProjectionOptionsType, ByTagProjectionOptionsType, } from './projection/ProjectionOptions.js';
47
83
  export type { OffsetStore } from './projection/OffsetStore.js';
48
84
  export { InMemoryOffsetStore, DurableStateOffsetStore, } from './projection/OffsetStore.js';
49
85
  export { ObjectStorageBackendError, ObjectStorageConcurrencyError, } from './object-storage/ObjectStorageBackend.js';
50
86
  export type { ObjectStorageBackend, ObjectFetched, ObjectInfo, PutOptions, } from './object-storage/ObjectStorageBackend.js';
51
87
  export { FilesystemObjectStorageBackend } from './object-storage/FilesystemObjectStorageBackend.js';
52
- export type { FilesystemObjectStorageOptions } from './object-storage/FilesystemObjectStorageBackend.js';
88
+ export { FilesystemObjectStorageOptions, FilesystemObjectStorageOptionsBuilder } from './object-storage/FilesystemObjectStorageOptions.js';
89
+ export type { FilesystemObjectStorageOptionsType } from './object-storage/FilesystemObjectStorageOptions.js';
53
90
  export { S3ObjectStorageBackend } from './object-storage/S3ObjectStorageBackend.js';
54
- export type { S3ObjectStorageOptions, S3Credentials, S3ClientLike, } from './object-storage/S3ObjectStorageBackend.js';
91
+ export { S3ObjectStorageOptions, S3ObjectStorageOptionsBuilder } from './object-storage/S3ObjectStorageOptions.js';
92
+ export type { S3ObjectStorageOptionsType } from './object-storage/S3ObjectStorageOptions.js';
93
+ export type { S3Credentials, S3ClientLike, } from './object-storage/S3ObjectStorageBackend.js';
55
94
  export { ObjectStorageSnapshotStore, } from './snapshot-stores/ObjectStorageSnapshotStore.js';
56
- export type { ObjectStorageSnapshotStoreOptions, } from './snapshot-stores/ObjectStorageSnapshotStore.js';
95
+ export { ObjectStorageSnapshotStoreOptions, ObjectStorageSnapshotStoreOptionsBuilder } from './snapshot-stores/ObjectStorageSnapshotStoreOptions.js';
96
+ export type { ObjectStorageSnapshotStoreOptionsType } from './snapshot-stores/ObjectStorageSnapshotStoreOptions.js';
57
97
  export { ObjectStorageDurableStateStore } from './durable-state-stores/ObjectStorageDurableStateStore.js';
58
- export type { ObjectStorageDurableStateStoreOptions } from './durable-state-stores/ObjectStorageDurableStateStore.js';
98
+ export { ObjectStorageDurableStateStoreOptions, ObjectStorageDurableStateStoreOptionsBuilder } from './durable-state-stores/ObjectStorageDurableStateStoreOptions.js';
99
+ export type { ObjectStorageDurableStateStoreOptionsType } from './durable-state-stores/ObjectStorageDurableStateStoreOptions.js';
59
100
  export { registerObjectStoragePlugins, OBJECT_STORAGE_SNAPSHOT_PLUGIN_ID, OBJECT_STORAGE_DURABLE_STATE_PLUGIN_ID, } from './object-storage/ObjectStoragePlugin.js';
60
- export type { ObjectStoragePluginOptions, ObjectStoragePluginHandles, ObjectStorageBackendSpec, } from './object-storage/ObjectStoragePlugin.js';
101
+ export { ObjectStoragePluginOptions, ObjectStoragePluginOptionsBuilder } from './object-storage/ObjectStoragePluginOptions.js';
102
+ export type { ObjectStoragePluginOptionsType } from './object-storage/ObjectStoragePluginOptions.js';
103
+ export type { ObjectStoragePluginHandles, ObjectStorageBackendSpec, } from './object-storage/ObjectStoragePlugin.js';
61
104
  export { compressionByPrefix, encryptionByPrefix, resolveCompression, resolveEncryption, } from './object-storage/PluginConfig.js';
62
105
  export type { CompressionResolver, EncryptionResolver, } from './object-storage/PluginConfig.js';
63
- export { reEncryptObjectStorage } from './object-storage/reEncryptionSweep.js';
64
- export type { ReEncryptOptions, ReEncryptResult, ReEncryptProgress, } from './object-storage/reEncryptionSweep.js';
106
+ export { reEncryptObjectStorage, InMemoryReEncryptProgressStore, } from './object-storage/reEncryptionSweep.js';
107
+ export type { ReEncryptOptions, ReEncryptResult, ReEncryptProgress, ReEncryptResumeState, ReEncryptProgressStore, } from './object-storage/reEncryptionSweep.js';
65
108
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/persistence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACrE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,YAAY,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAE9F,YAAY,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1E,YAAY,EACV,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,YAAY,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF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C,CAAC;AAC/C,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,uCAAuC,CAAC"}
@@ -4,16 +4,41 @@ export { eventDispatcher } from './EventDispatcher.js';
4
4
  export { JournalConcurrencyError, JournalError } from './JournalTypes.js';
5
5
  export { InMemoryJournal } from './journals/InMemoryJournal.js';
6
6
  export { SqliteJournal } from './journals/SqliteJournal.js';
7
+ export { SqliteJournalOptions, SqliteJournalOptionsBuilder } from './journals/SqliteJournalOptions.js';
7
8
  export { InMemorySnapshotStore } from './snapshot-stores/InMemorySnapshotStore.js';
8
9
  export { SqliteSnapshotStore } from './snapshot-stores/SqliteSnapshotStore.js';
10
+ export { SqliteSnapshotStoreOptions, SqliteSnapshotStoreOptionsBuilder } from './snapshot-stores/SqliteSnapshotStoreOptions.js';
9
11
  export { CachedSnapshotStore } from './snapshot-stores/CachedSnapshotStore.js';
12
+ export { CachedSnapshotStoreOptions, CachedSnapshotStoreOptionsBuilder } from './snapshot-stores/CachedSnapshotStoreOptions.js';
10
13
  // Cassandra / ScyllaDB plug-in (same CQL protocol — one plug-in).
11
14
  export { CassandraJournal } from './journals/CassandraJournal.js';
15
+ export { CassandraJournalOptions, CassandraJournalOptionsBuilder } from './journals/CassandraJournalOptions.js';
12
16
  export { CassandraSnapshotStore } from './snapshot-stores/CassandraSnapshotStore.js';
17
+ export { CassandraSnapshotStoreOptions, CassandraSnapshotStoreOptionsBuilder } from './snapshot-stores/CassandraSnapshotStoreOptions.js';
13
18
  export { createCassandraClient, keyspaceDdl, tagIndexDdl, } from './journals/CassandraClient.js';
14
19
  export { registerCassandraPlugins, CASSANDRA_JOURNAL_PLUGIN_ID, CASSANDRA_SNAPSHOT_PLUGIN_ID, } from './journals/CassandraPlugin.js';
20
+ export { RegisterCassandraPluginsOptions, RegisterCassandraPluginsOptionsBuilder } from './journals/CassandraPluginOptions.js';
21
+ // PostgreSQL plug-in (journal + snapshot + durable-state).
22
+ export { PostgresJournal } from './journals/PostgresJournal.js';
23
+ export { PostgresJournalOptions, PostgresJournalOptionsBuilder } from './journals/PostgresJournalOptions.js';
24
+ export { PostgresSnapshotStore } from './snapshot-stores/PostgresSnapshotStore.js';
25
+ export { PostgresSnapshotStoreOptions, PostgresSnapshotStoreOptionsBuilder } from './snapshot-stores/PostgresSnapshotStoreOptions.js';
26
+ export { PostgresDurableStateStore } from './durable-state-stores/PostgresDurableStateStore.js';
27
+ export { PostgresDurableStateStoreOptions, PostgresDurableStateStoreOptionsBuilder } from './durable-state-stores/PostgresDurableStateStoreOptions.js';
28
+ export { registerPostgresPlugins, POSTGRES_JOURNAL_PLUGIN_ID, POSTGRES_SNAPSHOT_PLUGIN_ID, POSTGRES_DURABLE_STATE_PLUGIN_ID, } from './journals/PostgresPlugin.js';
29
+ export { RegisterPostgresPluginsOptions, RegisterPostgresPluginsOptionsBuilder } from './journals/PostgresPluginOptions.js';
30
+ // MariaDB / MySQL plug-in (journal + snapshot + durable-state).
31
+ export { MariaDbJournal } from './journals/MariaDbJournal.js';
32
+ export { MariaDbJournalOptions, MariaDbJournalOptionsBuilder } from './journals/MariaDbJournalOptions.js';
33
+ export { MariaDbSnapshotStore } from './snapshot-stores/MariaDbSnapshotStore.js';
34
+ export { MariaDbSnapshotStoreOptions, MariaDbSnapshotStoreOptionsBuilder } from './snapshot-stores/MariaDbSnapshotStoreOptions.js';
35
+ export { MariaDbDurableStateStore } from './durable-state-stores/MariaDbDurableStateStore.js';
36
+ export { MariaDbDurableStateStoreOptions, MariaDbDurableStateStoreOptionsBuilder } from './durable-state-stores/MariaDbDurableStateStoreOptions.js';
37
+ export { registerMariaDbPlugins, MARIADB_JOURNAL_PLUGIN_ID, MARIADB_SNAPSHOT_PLUGIN_ID, MARIADB_DURABLE_STATE_PLUGIN_ID, } from './journals/MariaDbPlugin.js';
38
+ export { RegisterMariaDbPluginsOptions, RegisterMariaDbPluginsOptionsBuilder } from './journals/MariaDbPluginOptions.js';
15
39
  // Durable State (state-oriented alternative to Event Sourcing).
16
40
  export { DurableStateActor } from './DurableStateActor.js';
41
+ export { DurableStateOptions, DurableStateOptionsBuilder } from './DurableStateOptions.js';
17
42
  export { DurableStateConcurrencyError, } from './DurableStateStore.js';
18
43
  export { InMemoryDurableStateStore } from './durable-state-stores/InMemoryDurableStateStore.js';
19
44
  export { MigrationError, MigrationChain, defaultsAdapter, defaultsSnapshotAdapter, migratingAdapter, migratingSnapshotAdapter, isEnvelope, encodeEvent, decodeEvent, encodeState, decodeState, wrapEventAsEnvelope, wrapStateAsEnvelope, migrateInMemoryJournal, migrateSnapshotStore, formatMigrationResult,
@@ -30,15 +55,21 @@ export { ReplicatedEventSourcedActor } from './ReplicatedEventSourcedActor.js';
30
55
  export { VectorClock } from './replicated/VectorClock.js';
31
56
  export { LastWriterWinsResolver, CustomMergeResolver, } from './replicated/ConflictResolver.js';
32
57
  // Projections — actor wrapper with at-least-once delivery + offset persistence.
33
- export { ProjectionActor } from './projection/ProjectionActor.js';
58
+ export { ProjectionActor, } from './projection/ProjectionActor.js';
59
+ export { ProjectionOptions, ProjectionOptionsBuilder, ByPidProjectionOptions, ByPidProjectionOptionsBuilder, ByTagProjectionOptions, ByTagProjectionOptionsBuilder, } from './projection/ProjectionOptions.js';
34
60
  export { InMemoryOffsetStore, DurableStateOffsetStore, } from './projection/OffsetStore.js';
35
61
  // Object-storage plug-in (S3 / filesystem) for snapshots + durable state.
36
62
  export { ObjectStorageBackendError, ObjectStorageConcurrencyError, } from './object-storage/ObjectStorageBackend.js';
37
63
  export { FilesystemObjectStorageBackend } from './object-storage/FilesystemObjectStorageBackend.js';
64
+ export { FilesystemObjectStorageOptions, FilesystemObjectStorageOptionsBuilder } from './object-storage/FilesystemObjectStorageOptions.js';
38
65
  export { S3ObjectStorageBackend } from './object-storage/S3ObjectStorageBackend.js';
66
+ export { S3ObjectStorageOptions, S3ObjectStorageOptionsBuilder } from './object-storage/S3ObjectStorageOptions.js';
39
67
  export { ObjectStorageSnapshotStore, } from './snapshot-stores/ObjectStorageSnapshotStore.js';
68
+ export { ObjectStorageSnapshotStoreOptions, ObjectStorageSnapshotStoreOptionsBuilder } from './snapshot-stores/ObjectStorageSnapshotStoreOptions.js';
40
69
  export { ObjectStorageDurableStateStore } from './durable-state-stores/ObjectStorageDurableStateStore.js';
70
+ export { ObjectStorageDurableStateStoreOptions, ObjectStorageDurableStateStoreOptionsBuilder } from './durable-state-stores/ObjectStorageDurableStateStoreOptions.js';
41
71
  export { registerObjectStoragePlugins, OBJECT_STORAGE_SNAPSHOT_PLUGIN_ID, OBJECT_STORAGE_DURABLE_STATE_PLUGIN_ID, } from './object-storage/ObjectStoragePlugin.js';
72
+ export { ObjectStoragePluginOptions, ObjectStoragePluginOptionsBuilder } from './object-storage/ObjectStoragePluginOptions.js';
42
73
  export { compressionByPrefix, encryptionByPrefix, resolveCompression, resolveEncryption, } from './object-storage/PluginConfig.js';
43
- export { reEncryptObjectStorage } from './object-storage/reEncryptionSweep.js';
74
+ export { reEncryptObjectStorage, InMemoryReEncryptProgressStore, } from './object-storage/reEncryptionSweep.js';
44
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/persistence/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQ1E,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,mBAAmB,E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AC;AACzD,OAAO,EAAE,iCAAiC,EAAE,wCAAwC,EAAE,MAAM,wDAAwD,CAAC;AAErJ,OAAO,EAAE,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AAC1G,OAAO,EAAE,qCAAqC,EAAE,4CAA4C,EAAE,MAAM,iEAAiE,CAAC;AAEtK,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,EACjC,sCAAsC,GACvC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,MAAM,gDAAgD,CAAC;AAM/H,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,kCAAkC,CAAC;AAK1C,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,uCAAuC,CAAC"}
@@ -1,53 +1,6 @@
1
1
  import type { Journal } from '../Journal.js';
2
2
  import { type PersistentEvent } from '../JournalTypes.js';
3
- import { type CassandraClientLike, type CassandraConnection } from './CassandraClient.js';
4
- export interface CassandraJournalOptions extends CassandraConnection {
5
- /** Table name for events. Default: `events`. */
6
- readonly eventsTable?: string;
7
- /** Table tracking the highest sequence number per pid. Default: `metadata`. */
8
- readonly metadataTable?: string;
9
- /** Lookup table for `persistenceIds()`. Default: `all_persistence_ids`. */
10
- readonly allIdsTable?: string;
11
- /** Tag-index side table populated when `useTagIndex` is set. Default: `events_by_tag`. */
12
- readonly tagIndexTable?: string;
13
- /**
14
- * Rows per partition before rolling over to a new one. Keeps Cassandra
15
- * partitions bounded. Default: 500_000 — a good balance between write
16
- * amplification and read-scan cost for long-lived streams.
17
- */
18
- readonly partitionSize?: number;
19
- /** Auto-create the events/metadata/all-ids tables on first connect. */
20
- readonly autoCreateTables?: boolean;
21
- /**
22
- * Opt in to maintaining an `events_by_tag` side table for indexed
23
- * `eventsByTag` queries (#44). When set, every `append` writes one
24
- * extra row per `(event, tag)` pair to the side table inside the same
25
- * batch as the primary `events` insert; `CassandraQuery.currentEventsBy
26
- * Tag` then walks a single tag-partition instead of scanning the
27
- * whole journal client-side.
28
- *
29
- * Off by default to keep existing schemas compatible — operators
30
- * opting in must run the side-table DDL on their cluster (the journal
31
- * issues `CREATE TABLE IF NOT EXISTS` when `autoCreateTables` is also
32
- * true; otherwise the DDL in {@link CassandraClient.tagIndexDdl} can
33
- * be applied manually).
34
- *
35
- * **Caveat:** `delete(toSeq)` does NOT propagate to the side table —
36
- * deleting from `events_by_tag` would require either a secondary
37
- * index on `persistence_id` or pre-reading the event's tags (extra
38
- * round-trips on the hot path). Operators with delete-heavy
39
- * workloads should rely on Cassandra TTLs or accept stale tag
40
- * entries (queries dedupe via the primary key, so they're harmless
41
- * — just storage overhead).
42
- */
43
- readonly useTagIndex?: boolean;
44
- /**
45
- * Inject a pre-built client instead of letting the journal instantiate
46
- * `cassandra-driver` itself — useful for tests and when the host already
47
- * owns the client lifecycle.
48
- */
49
- readonly client?: CassandraClientLike;
50
- }
3
+ import type { CassandraJournalOptions } from './CassandraJournalOptions.js';
51
4
  /**
52
5
  * Journal backed by Apache Cassandra or ScyllaDB — same CQL protocol, one
53
6
  * plug-in serves both. Schema:
@@ -1 +1 @@
1
- {"version":3,"file":"CassandraJournal.d.ts","sourceRoot":"","sources":["../../../src/persistence/journals/CassandraJournal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,WAAW,uBAAwB,SAAQ,mBAAmB;IAClE,iDAAiD;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,gFAAgF;IAChF,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,CAAC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AAE,CAAC;IA4F1B,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAgCpF,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKxC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBjD,cAAc,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAUnC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAU5B,OAAO,KAAK,WAAW,GAA2D;IAClF,OAAO,KAAK,aAAa,GAA+D;IACxF,OAAO,KAAK,WAAW,GAAwE;IAC/F;mDAC+C;IAC/C,IAAI,aAAa,IAAI,MAAM,CAA0D;IACrF,mEAAmE;IACnE,IAAI,WAAW,IAAI,OAAO,CAA8C;IAExE,OAAO,CAAC,SAAS;YAIH,cAAc;YAUd,aAAa;YAKb,YAAY;CA8C3B"}
@@ -25,8 +25,8 @@ export class CassandraJournal {
25
25
  ownsClient;
26
26
  constructor(options) {
27
27
  this.options = options;
28
- this.client = options.client ?? undefined;
29
- this.ownsClient = !options.client;
28
+ this.client = this.options.client ?? undefined;
29
+ this.ownsClient = !this.options.client;
30
30
  }
31
31
  /** Explicitly connect + ensure schema. Called lazily on first use. */
32
32
  async start() {
@@ -1 +1 @@
1
- {"version":3,"file":"CassandraJournal.js","sourceRoot":"","sources":["../../../src/persistence/journals/CassandraJournal.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,YAAY,GAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,WAAW,GAGZ,MAAM,sBAAsB,CAAC;AA2D9B;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,gBAAgB;IACV,OAAO,CAA0B;IAC1C,M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BAChB,kBAAkB;kBAClB,8DAA8D;kBAC9D,kFAAkF,CACrF,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"CassandraJournal.js","sourceRoot":"","sources":["../../../src/persistence/journals/CassandraJournal.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EACvB,YAAY,GAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,WAAW,GAGZ,MAAM,sBAAsB,CAAC;AAY9B;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,gBAAgB;IACV,OAAO,CAAuC;IACvD,MAAM,CAAsB;IACpC,gEAAgE;IACxD,OAAO,GAAG,KAAK,CAAC;IACxB,4CAA4C;IACpC,OAAO,GAAG,KAAK,CAAC;IACxB,+EAA+E;IACvE,UAAU,CAAU;IAE5B,YAAY,OAAgC;QAC1C,IAAI,CAAC,OAAO,GAAI,OAAuC,CAAC;QACxD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,IAAK,SAA4C,CAAC;QACnF,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IACzC,CAAC;IAED,uEAAuE;IACvE,KAAK,CAAC,KAAK;QACT,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO;QACzB,IAAI,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACpC,IAAI,CAAC,MAAM,GAAG,MAAM,qBAAqB,CAAC,IAAI,CAAC,OAA8B,CAAC,CAAC;QACjF,CAAC;QACD,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAC5B,IAAI,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC;YACpC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,OAA8B,CAAC,CAAC,CAAC;QAC9E,CAAC;QACD,IAAI,IAAI,CAAC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