@decaf-ts/integrations 0.8.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 (892) hide show
  1. package/README.md +4 -0
  2. package/dist/integrations.cjs +1 -1
  3. package/docker/minio-compose.yml +1 -1
  4. package/jest.config.cjs +1 -11
  5. package/lib/cjs/blob/azure/AzureBlobEnvironment.cjs +25 -0
  6. package/lib/cjs/blob/azure/AzureBlobEnvironment.cjs.map +1 -0
  7. package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +85 -10
  8. package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -1
  9. package/lib/cjs/blob/azure/index.cjs +1 -0
  10. package/lib/cjs/blob/azure/index.cjs.map +1 -1
  11. package/lib/cjs/blob/core/BlobEnvironment.cjs +19 -0
  12. package/lib/cjs/blob/core/BlobEnvironment.cjs.map +1 -0
  13. package/lib/cjs/blob/core/BlobStoreService.cjs +181 -3
  14. package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -1
  15. package/lib/cjs/blob/core/index.cjs +1 -0
  16. package/lib/cjs/blob/core/index.cjs.map +1 -1
  17. package/lib/cjs/blob/gcp/GcsBlobEnvironment.cjs +26 -0
  18. package/lib/cjs/blob/gcp/GcsBlobEnvironment.cjs.map +1 -0
  19. package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +63 -2
  20. package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -1
  21. package/lib/cjs/blob/gcp/index.cjs +1 -0
  22. package/lib/cjs/blob/gcp/index.cjs.map +1 -1
  23. package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs +30 -0
  24. package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs.map +1 -0
  25. package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +68 -2
  26. package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +1 -1
  27. package/lib/cjs/blob/ipfs/index.cjs +1 -0
  28. package/lib/cjs/blob/ipfs/index.cjs.map +1 -1
  29. package/lib/cjs/blob/local/LocalBlobEnvironment.cjs +22 -0
  30. package/lib/cjs/blob/local/LocalBlobEnvironment.cjs.map +1 -0
  31. package/lib/cjs/blob/local/LocalBlobStoreService.cjs +59 -2
  32. package/lib/cjs/blob/local/LocalBlobStoreService.cjs.map +1 -1
  33. package/lib/cjs/blob/local/index.cjs +1 -0
  34. package/lib/cjs/blob/local/index.cjs.map +1 -1
  35. package/lib/cjs/blob/memory/MemoryBlobEnvironment.cjs +21 -0
  36. package/lib/cjs/blob/memory/MemoryBlobEnvironment.cjs.map +1 -0
  37. package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs +58 -2
  38. package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs.map +1 -1
  39. package/lib/cjs/blob/memory/index.cjs +1 -0
  40. package/lib/cjs/blob/memory/index.cjs.map +1 -1
  41. package/lib/cjs/blob/s3/MinioBlobEnvironment.cjs +32 -0
  42. package/lib/cjs/blob/s3/MinioBlobEnvironment.cjs.map +1 -0
  43. package/lib/cjs/blob/s3/MinioBlobStoreService.cjs +45 -4
  44. package/lib/cjs/blob/s3/MinioBlobStoreService.cjs.map +1 -1
  45. package/lib/cjs/blob/s3/R2BlobEnvironment.cjs +32 -0
  46. package/lib/cjs/blob/s3/R2BlobEnvironment.cjs.map +1 -0
  47. package/lib/cjs/blob/s3/R2BlobStoreService.cjs +45 -4
  48. package/lib/cjs/blob/s3/R2BlobStoreService.cjs.map +1 -1
  49. package/lib/cjs/blob/s3/S3BlobEnvironment.cjs +32 -0
  50. package/lib/cjs/blob/s3/S3BlobEnvironment.cjs.map +1 -0
  51. package/lib/cjs/blob/s3/S3BlobStoreService.cjs +43 -310
  52. package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -1
  53. package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs +358 -0
  54. package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs.map +1 -0
  55. package/lib/cjs/blob/s3/index.cjs +4 -0
  56. package/lib/cjs/blob/s3/index.cjs.map +1 -1
  57. package/lib/cjs/calendar/CalendarService.cjs +393 -0
  58. package/lib/cjs/calendar/CalendarService.cjs.map +1 -0
  59. package/lib/cjs/calendar/index.cjs +21 -0
  60. package/lib/cjs/calendar/index.cjs.map +1 -0
  61. package/lib/cjs/calendar/types.cjs.map +1 -0
  62. package/lib/cjs/calendar/validators/cron.cjs +58 -0
  63. package/lib/cjs/calendar/validators/cron.cjs.map +1 -0
  64. package/lib/cjs/calendar/writers/CalendarFsWriter.cjs +39 -0
  65. package/lib/cjs/calendar/writers/CalendarFsWriter.cjs.map +1 -0
  66. package/lib/cjs/calendar/writers/CalenderDownloader.cjs +47 -0
  67. package/lib/cjs/calendar/writers/CalenderDownloader.cjs.map +1 -0
  68. package/lib/cjs/calendar/writers/ICalendarWriter.cjs +4 -0
  69. package/lib/cjs/calendar/writers/ICalendarWriter.cjs.map +1 -0
  70. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +100 -0
  71. package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -0
  72. package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs +29 -0
  73. package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs.map +1 -0
  74. package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs +270 -0
  75. package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs.map +1 -0
  76. package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs +169 -0
  77. package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs.map +1 -0
  78. package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs +64 -0
  79. package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs.map +1 -0
  80. package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs +17 -0
  81. package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs.map +1 -0
  82. package/lib/cjs/graph/engine/catalog/index.cjs +24 -0
  83. package/lib/cjs/graph/engine/catalog/index.cjs.map +1 -0
  84. package/lib/cjs/graph/engine/constants.cjs +2 -2
  85. package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +1 -0
  86. package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +1 -1
  87. package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs +18 -0
  88. package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs.map +1 -0
  89. package/lib/cjs/graph/engine/errors/index.cjs +1 -0
  90. package/lib/cjs/graph/engine/errors/index.cjs.map +1 -1
  91. package/lib/cjs/graph/engine/events/index.cjs +0 -1
  92. package/lib/cjs/graph/engine/events/index.cjs.map +1 -1
  93. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +2 -2
  94. package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +1 -1
  95. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +10 -6
  96. package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +1 -1
  97. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +30 -18
  98. package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
  99. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +354 -73
  100. package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
  101. package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +3 -3
  102. package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +1 -1
  103. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +9 -6
  104. package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +1 -1
  105. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +11 -10
  106. package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +1 -1
  107. package/lib/cjs/graph/engine/index.cjs +8 -11
  108. package/lib/cjs/graph/engine/index.cjs.map +1 -1
  109. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +37 -12
  110. package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +1 -1
  111. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +38 -13
  112. package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +1 -1
  113. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +38 -13
  114. package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +1 -1
  115. package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +2 -2
  116. package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +1 -1
  117. package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +43 -14
  118. package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +1 -1
  119. package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +1 -1
  120. package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +79 -88
  121. package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +1 -1
  122. package/lib/cjs/graph/engine/planning/index.cjs +0 -1
  123. package/lib/cjs/graph/engine/planning/index.cjs.map +1 -1
  124. package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +28 -15
  125. package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +1 -1
  126. package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs +69 -0
  127. package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs.map +1 -0
  128. package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs +291 -0
  129. package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs.map +1 -0
  130. package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs +29 -0
  131. package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs.map +1 -0
  132. package/lib/cjs/graph/engine/runs/GraphRunService.cjs +259 -0
  133. package/lib/cjs/graph/engine/runs/GraphRunService.cjs.map +1 -0
  134. package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs +69 -0
  135. package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs.map +1 -0
  136. package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs +26 -0
  137. package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs.map +1 -0
  138. package/lib/cjs/graph/engine/runs/index.cjs +26 -0
  139. package/lib/cjs/graph/engine/runs/index.cjs.map +1 -0
  140. package/lib/cjs/graph/engine/runs/ownership.cjs +34 -0
  141. package/lib/cjs/graph/engine/runs/ownership.cjs.map +1 -0
  142. package/lib/cjs/graph/engine/runs/types.cjs +4 -0
  143. package/lib/cjs/graph/engine/runs/types.cjs.map +1 -0
  144. package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +2 -2
  145. package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -1
  146. package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs +142 -0
  147. package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs.map +1 -0
  148. package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs +160 -0
  149. package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs.map +1 -0
  150. package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +6 -10
  151. package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +1 -1
  152. package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs +166 -0
  153. package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs.map +1 -0
  154. package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs +86 -0
  155. package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -0
  156. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +423 -0
  157. package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +1 -0
  158. package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs +4 -0
  159. package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs.map +1 -0
  160. package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs +50 -0
  161. package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs.map +1 -0
  162. package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs +4 -0
  163. package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs.map +1 -0
  164. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +478 -0
  165. package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -0
  166. package/lib/cjs/graph/engine/validation/index.cjs +12 -1
  167. package/lib/cjs/graph/engine/validation/index.cjs.map +1 -1
  168. package/lib/cjs/graph/index.cjs +4 -4
  169. package/lib/cjs/graph/log/GraphRunLogger.cjs +9 -6
  170. package/lib/cjs/graph/log/GraphRunLogger.cjs.map +1 -1
  171. package/lib/cjs/graph/log/LogParameters.cjs +13 -13
  172. package/lib/cjs/graph/log/LogParameters.cjs.map +1 -1
  173. package/lib/cjs/index.cjs +3 -3
  174. package/lib/cjs/nest/graph/GraphExecutionController.cjs +140 -16
  175. package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +1 -1
  176. package/lib/cjs/nest/graph/GraphExecutionModule.cjs +94 -7
  177. package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -1
  178. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +11 -0
  179. package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +1 -1
  180. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +63 -61
  181. package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
  182. package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +270 -0
  183. package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -0
  184. package/lib/cjs/nest/graph/GraphResultService.cjs +16 -1
  185. package/lib/cjs/nest/graph/GraphResultService.cjs.map +1 -1
  186. package/lib/cjs/nest/graph/GraphRunController.cjs +279 -0
  187. package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -0
  188. package/lib/cjs/nest/graph/GraphRunModel.cjs +83 -0
  189. package/lib/cjs/nest/graph/GraphRunModel.cjs.map +1 -0
  190. package/lib/cjs/nest/graph/GraphRunModelService.cjs +121 -0
  191. package/lib/cjs/nest/graph/GraphRunModelService.cjs.map +1 -0
  192. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +169 -0
  193. package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +1 -0
  194. package/lib/cjs/nest/graph/GraphWorkflowController.cjs +162 -0
  195. package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -0
  196. package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs +12 -0
  197. package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs.map +1 -0
  198. package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs +23 -0
  199. package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs.map +1 -0
  200. package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +27 -1
  201. package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +1 -1
  202. package/lib/cjs/nest/graph/GraphWorkflowService.cjs +211 -8
  203. package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +1 -1
  204. package/lib/cjs/nest/graph/index.cjs +8 -0
  205. package/lib/cjs/nest/graph/index.cjs.map +1 -1
  206. package/lib/cjs/nest/graph/main.cjs +22 -5
  207. package/lib/cjs/nest/graph/main.cjs.map +1 -1
  208. package/lib/cjs/nest/keycloakModule.cjs +3 -1
  209. package/lib/cjs/nest/keycloakModule.cjs.map +1 -1
  210. package/lib/cjs/secrets/aws/AwsSecretEnvironment.cjs +27 -0
  211. package/lib/cjs/secrets/aws/AwsSecretEnvironment.cjs.map +1 -0
  212. package/lib/cjs/secrets/aws/AwsSecretService.cjs +53 -19
  213. package/lib/cjs/secrets/aws/AwsSecretService.cjs.map +1 -1
  214. package/lib/cjs/secrets/aws/index.cjs +1 -0
  215. package/lib/cjs/secrets/aws/index.cjs.map +1 -1
  216. package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs +45 -16
  217. package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs.map +1 -1
  218. package/lib/cjs/secrets/azure/AzureSecretEnvironment.cjs +23 -0
  219. package/lib/cjs/secrets/azure/AzureSecretEnvironment.cjs.map +1 -0
  220. package/lib/cjs/secrets/azure/index.cjs +1 -0
  221. package/lib/cjs/secrets/azure/index.cjs.map +1 -1
  222. package/lib/cjs/secrets/core/ClientBasedSecretService.cjs +29 -0
  223. package/lib/cjs/secrets/core/ClientBasedSecretService.cjs.map +1 -0
  224. package/lib/cjs/secrets/core/SecretEnvironment.cjs +19 -0
  225. package/lib/cjs/secrets/core/SecretEnvironment.cjs.map +1 -0
  226. package/lib/cjs/secrets/core/index.cjs +2 -0
  227. package/lib/cjs/secrets/core/index.cjs.map +1 -1
  228. package/lib/cjs/secrets/gcp/GcpSecretEnvironment.cjs +25 -0
  229. package/lib/cjs/secrets/gcp/GcpSecretEnvironment.cjs.map +1 -0
  230. package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs +45 -17
  231. package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs.map +1 -1
  232. package/lib/cjs/secrets/gcp/index.cjs +1 -0
  233. package/lib/cjs/secrets/gcp/index.cjs.map +1 -1
  234. package/lib/cjs/secrets/model/ModelSecretEnvironment.cjs +21 -0
  235. package/lib/cjs/secrets/model/ModelSecretEnvironment.cjs.map +1 -0
  236. package/lib/cjs/secrets/model/ModelSecretService.cjs +29 -3
  237. package/lib/cjs/secrets/model/ModelSecretService.cjs.map +1 -1
  238. package/lib/cjs/secrets/model/index.cjs +1 -0
  239. package/lib/cjs/secrets/model/index.cjs.map +1 -1
  240. package/lib/cjs/secrets/onepassword/OnePasswordSecretEnvironment.cjs +24 -0
  241. package/lib/cjs/secrets/onepassword/OnePasswordSecretEnvironment.cjs.map +1 -0
  242. package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs +34 -3
  243. package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs.map +1 -1
  244. package/lib/cjs/secrets/onepassword/index.cjs +1 -0
  245. package/lib/cjs/secrets/onepassword/index.cjs.map +1 -1
  246. package/lib/cjs/secrets/vault/VaultSecretEnvironment.cjs +24 -0
  247. package/lib/cjs/secrets/vault/VaultSecretEnvironment.cjs.map +1 -0
  248. package/lib/cjs/secrets/vault/VaultSecretService.cjs +47 -16
  249. package/lib/cjs/secrets/vault/VaultSecretService.cjs.map +1 -1
  250. package/lib/cjs/secrets/vault/index.cjs +1 -0
  251. package/lib/cjs/secrets/vault/index.cjs.map +1 -1
  252. package/lib/cjs/sftp/aws/AwsSftpEnvironment.cjs +31 -0
  253. package/lib/cjs/sftp/aws/AwsSftpEnvironment.cjs.map +1 -0
  254. package/lib/cjs/sftp/aws/AwsSftpService.cjs +55 -5
  255. package/lib/cjs/sftp/aws/AwsSftpService.cjs.map +1 -1
  256. package/lib/cjs/sftp/core/SftpEnvironment.cjs +19 -0
  257. package/lib/cjs/sftp/core/SftpEnvironment.cjs.map +1 -0
  258. package/lib/cjs/sftp/core/SftpSource.cjs +10 -0
  259. package/lib/cjs/sftp/core/SftpSource.cjs.map +1 -1
  260. package/lib/cjs/sftp/core/index.cjs +1 -0
  261. package/lib/cjs/sftp/core/index.cjs.map +1 -1
  262. package/lib/cjs/sftp/index.cjs +3 -0
  263. package/lib/cjs/sftp/index.cjs.map +1 -1
  264. package/lib/cjs/sftp/ssh2/Ssh2SftpEnvironment.cjs +28 -0
  265. package/lib/cjs/sftp/ssh2/Ssh2SftpEnvironment.cjs.map +1 -0
  266. package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs +46 -5
  267. package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs.map +1 -1
  268. package/lib/cjs/shared/environmentValue.cjs +31 -0
  269. package/lib/cjs/shared/environmentValue.cjs.map +1 -0
  270. package/lib/esm/blob/azure/AzureBlobEnvironment.js +21 -0
  271. package/lib/esm/blob/azure/AzureBlobEnvironment.js.map +1 -0
  272. package/lib/esm/blob/azure/AzureBlobStoreService.js +84 -12
  273. package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -1
  274. package/lib/esm/blob/azure/index.js +1 -0
  275. package/lib/esm/blob/azure/index.js.map +1 -1
  276. package/lib/esm/blob/core/BlobEnvironment.js +15 -0
  277. package/lib/esm/blob/core/BlobEnvironment.js.map +1 -0
  278. package/lib/esm/blob/core/BlobStoreService.js +181 -3
  279. package/lib/esm/blob/core/BlobStoreService.js.map +1 -1
  280. package/lib/esm/blob/core/index.js +1 -0
  281. package/lib/esm/blob/core/index.js.map +1 -1
  282. package/lib/esm/blob/gcp/GcsBlobEnvironment.js +22 -0
  283. package/lib/esm/blob/gcp/GcsBlobEnvironment.js.map +1 -0
  284. package/lib/esm/blob/gcp/GcsBlobStoreService.js +61 -3
  285. package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -1
  286. package/lib/esm/blob/gcp/index.js +1 -0
  287. package/lib/esm/blob/gcp/index.js.map +1 -1
  288. package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js +26 -0
  289. package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js.map +1 -0
  290. package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +66 -3
  291. package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +1 -1
  292. package/lib/esm/blob/ipfs/index.js +1 -0
  293. package/lib/esm/blob/ipfs/index.js.map +1 -1
  294. package/lib/esm/blob/local/LocalBlobEnvironment.js +18 -0
  295. package/lib/esm/blob/local/LocalBlobEnvironment.js.map +1 -0
  296. package/lib/esm/blob/local/LocalBlobStoreService.js +57 -3
  297. package/lib/esm/blob/local/LocalBlobStoreService.js.map +1 -1
  298. package/lib/esm/blob/local/index.js +1 -0
  299. package/lib/esm/blob/local/index.js.map +1 -1
  300. package/lib/esm/blob/memory/MemoryBlobEnvironment.js +17 -0
  301. package/lib/esm/blob/memory/MemoryBlobEnvironment.js.map +1 -0
  302. package/lib/esm/blob/memory/MemoryBlobStoreService.js +56 -3
  303. package/lib/esm/blob/memory/MemoryBlobStoreService.js.map +1 -1
  304. package/lib/esm/blob/memory/index.js +1 -0
  305. package/lib/esm/blob/memory/index.js.map +1 -1
  306. package/lib/esm/blob/s3/MinioBlobEnvironment.js +28 -0
  307. package/lib/esm/blob/s3/MinioBlobEnvironment.js.map +1 -0
  308. package/lib/esm/blob/s3/MinioBlobStoreService.js +42 -4
  309. package/lib/esm/blob/s3/MinioBlobStoreService.js.map +1 -1
  310. package/lib/esm/blob/s3/R2BlobEnvironment.js +28 -0
  311. package/lib/esm/blob/s3/R2BlobEnvironment.js.map +1 -0
  312. package/lib/esm/blob/s3/R2BlobStoreService.js +42 -4
  313. package/lib/esm/blob/s3/R2BlobStoreService.js.map +1 -1
  314. package/lib/esm/blob/s3/S3BlobEnvironment.js +28 -0
  315. package/lib/esm/blob/s3/S3BlobEnvironment.js.map +1 -0
  316. package/lib/esm/blob/s3/S3BlobStoreService.js +41 -311
  317. package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -1
  318. package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js +353 -0
  319. package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js.map +1 -0
  320. package/lib/esm/blob/s3/index.js +4 -0
  321. package/lib/esm/blob/s3/index.js.map +1 -1
  322. package/lib/esm/calendar/CalendarService.js +384 -0
  323. package/lib/esm/calendar/CalendarService.js.map +1 -0
  324. package/lib/esm/calendar/index.js +4 -0
  325. package/lib/esm/calendar/index.js.map +1 -0
  326. package/lib/esm/{graph/shared → calendar}/types.js.map +1 -1
  327. package/lib/esm/calendar/validators/cron.js +48 -0
  328. package/lib/esm/calendar/validators/cron.js.map +1 -0
  329. package/lib/esm/calendar/writers/CalendarFsWriter.js +31 -0
  330. package/lib/esm/calendar/writers/CalendarFsWriter.js.map +1 -0
  331. package/lib/esm/calendar/writers/CalenderDownloader.js +39 -0
  332. package/lib/esm/calendar/writers/CalenderDownloader.js.map +1 -0
  333. package/lib/esm/calendar/writers/ICalendarWriter.js +2 -0
  334. package/lib/esm/calendar/writers/ICalendarWriter.js.map +1 -0
  335. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +95 -0
  336. package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +1 -0
  337. package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js +22 -0
  338. package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js.map +1 -0
  339. package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js +265 -0
  340. package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js.map +1 -0
  341. package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js +162 -0
  342. package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js.map +1 -0
  343. package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js +59 -0
  344. package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js.map +1 -0
  345. package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js +12 -0
  346. package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js.map +1 -0
  347. package/lib/esm/graph/engine/catalog/index.js +7 -0
  348. package/lib/esm/graph/engine/catalog/index.js.map +1 -0
  349. package/lib/esm/graph/engine/constants.js +2 -2
  350. package/lib/esm/graph/engine/errors/GraphExecutionError.js +1 -0
  351. package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +1 -1
  352. package/lib/esm/graph/engine/errors/GraphRunCancelledError.js +13 -0
  353. package/lib/esm/graph/engine/errors/GraphRunCancelledError.js.map +1 -0
  354. package/lib/esm/graph/engine/errors/index.js +1 -0
  355. package/lib/esm/graph/engine/errors/index.js.map +1 -1
  356. package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +1 -1
  357. package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +1 -1
  358. package/lib/esm/graph/engine/events/index.js +0 -1
  359. package/lib/esm/graph/engine/events/index.js.map +1 -1
  360. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +2 -2
  361. package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +1 -1
  362. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +10 -6
  363. package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +1 -1
  364. package/lib/esm/graph/engine/execution/GraphExecutionContext.js +28 -16
  365. package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
  366. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +322 -41
  367. package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
  368. package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -1
  369. package/lib/esm/graph/engine/execution/GraphExecutionResult.js +3 -3
  370. package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +1 -1
  371. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +9 -6
  372. package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +1 -1
  373. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +11 -10
  374. package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +1 -1
  375. package/lib/esm/graph/engine/index.js +8 -11
  376. package/lib/esm/graph/engine/index.js.map +1 -1
  377. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +32 -7
  378. package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +1 -1
  379. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +32 -7
  380. package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +1 -1
  381. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +32 -7
  382. package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +1 -1
  383. package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +2 -2
  384. package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +1 -1
  385. package/lib/esm/graph/engine/pinning/GraphPinningService.js +43 -14
  386. package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +1 -1
  387. package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +3 -1
  388. package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +1 -1
  389. package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +79 -88
  390. package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +1 -1
  391. package/lib/esm/graph/engine/planning/index.js +0 -1
  392. package/lib/esm/graph/engine/planning/index.js.map +1 -1
  393. package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +28 -15
  394. package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +1 -1
  395. package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js +64 -0
  396. package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js.map +1 -0
  397. package/lib/esm/graph/engine/runs/GraphRunExecutor.js +286 -0
  398. package/lib/esm/graph/engine/runs/GraphRunExecutor.js.map +1 -0
  399. package/lib/esm/graph/engine/runs/GraphRunFingerprint.js +25 -0
  400. package/lib/esm/graph/engine/runs/GraphRunFingerprint.js.map +1 -0
  401. package/lib/esm/graph/engine/runs/GraphRunService.js +254 -0
  402. package/lib/esm/graph/engine/runs/GraphRunService.js.map +1 -0
  403. package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js +64 -0
  404. package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js.map +1 -0
  405. package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js +21 -0
  406. package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js.map +1 -0
  407. package/lib/esm/graph/engine/runs/index.js +9 -0
  408. package/lib/esm/graph/engine/runs/index.js.map +1 -0
  409. package/lib/esm/graph/engine/runs/ownership.js +30 -0
  410. package/lib/esm/graph/engine/runs/ownership.js.map +1 -0
  411. package/lib/esm/graph/engine/runs/types.js +2 -0
  412. package/lib/esm/graph/engine/runs/types.js.map +1 -0
  413. package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +1 -1
  414. package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +1 -1
  415. package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js +137 -0
  416. package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js.map +1 -0
  417. package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js +155 -0
  418. package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js.map +1 -0
  419. package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +6 -10
  420. package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +1 -1
  421. package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js +161 -0
  422. package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js.map +1 -0
  423. package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js +81 -0
  424. package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js.map +1 -0
  425. package/lib/esm/graph/engine/validation/GraphParameterValidator.js +416 -0
  426. package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +1 -0
  427. package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js +2 -0
  428. package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js.map +1 -0
  429. package/lib/esm/graph/engine/validation/GraphValidationErrors.js +43 -0
  430. package/lib/esm/graph/engine/validation/GraphValidationErrors.js.map +1 -0
  431. package/lib/esm/graph/engine/validation/GraphValidationIssue.js +2 -0
  432. package/lib/esm/graph/engine/validation/GraphValidationIssue.js.map +1 -0
  433. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +472 -0
  434. package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -0
  435. package/lib/esm/graph/engine/validation/index.js +12 -1
  436. package/lib/esm/graph/engine/validation/index.js.map +1 -1
  437. package/lib/esm/graph/index.js +4 -4
  438. package/lib/esm/graph/log/GraphRunLogger.js +4 -1
  439. package/lib/esm/graph/log/GraphRunLogger.js.map +1 -1
  440. package/lib/esm/graph/log/LogParameters.js +1 -1
  441. package/lib/esm/graph/log/LogParameters.js.map +1 -1
  442. package/lib/esm/index.js +3 -3
  443. package/lib/esm/nest/graph/GraphExecutionController.js +143 -19
  444. package/lib/esm/nest/graph/GraphExecutionController.js.map +1 -1
  445. package/lib/esm/nest/graph/GraphExecutionModule.js +97 -10
  446. package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -1
  447. package/lib/esm/nest/graph/GraphExecutionResultModel.js +11 -0
  448. package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +1 -1
  449. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +62 -62
  450. package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
  451. package/lib/esm/nest/graph/GraphNodeCatalogueController.js +261 -0
  452. package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -0
  453. package/lib/esm/nest/graph/GraphResultService.js +16 -1
  454. package/lib/esm/nest/graph/GraphResultService.js.map +1 -1
  455. package/lib/esm/nest/graph/GraphRunController.js +270 -0
  456. package/lib/esm/nest/graph/GraphRunController.js.map +1 -0
  457. package/lib/esm/nest/graph/GraphRunModel.js +74 -0
  458. package/lib/esm/nest/graph/GraphRunModel.js.map +1 -0
  459. package/lib/esm/nest/graph/GraphRunModelService.js +112 -0
  460. package/lib/esm/nest/graph/GraphRunModelService.js.map +1 -0
  461. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +164 -0
  462. package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +1 -0
  463. package/lib/esm/nest/graph/GraphWorkflowController.js +153 -0
  464. package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -0
  465. package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js +8 -0
  466. package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js.map +1 -0
  467. package/lib/esm/nest/graph/GraphWorkflowErrors.js +18 -0
  468. package/lib/esm/nest/graph/GraphWorkflowErrors.js.map +1 -0
  469. package/lib/esm/nest/graph/GraphWorkflowModel.js +27 -1
  470. package/lib/esm/nest/graph/GraphWorkflowModel.js.map +1 -1
  471. package/lib/esm/nest/graph/GraphWorkflowService.js +210 -8
  472. package/lib/esm/nest/graph/GraphWorkflowService.js.map +1 -1
  473. package/lib/esm/nest/graph/index.js +8 -0
  474. package/lib/esm/nest/graph/index.js.map +1 -1
  475. package/lib/esm/nest/graph/main.js +22 -5
  476. package/lib/esm/nest/graph/main.js.map +1 -1
  477. package/lib/esm/nest/keycloakModule.js +3 -1
  478. package/lib/esm/nest/keycloakModule.js.map +1 -1
  479. package/lib/esm/secrets/aws/AwsSecretEnvironment.js +23 -0
  480. package/lib/esm/secrets/aws/AwsSecretEnvironment.js.map +1 -0
  481. package/lib/esm/secrets/aws/AwsSecretService.js +39 -8
  482. package/lib/esm/secrets/aws/AwsSecretService.js.map +1 -1
  483. package/lib/esm/secrets/aws/index.js +1 -0
  484. package/lib/esm/secrets/aws/index.js.map +1 -1
  485. package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js +30 -4
  486. package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js.map +1 -1
  487. package/lib/esm/secrets/azure/AzureSecretEnvironment.js +19 -0
  488. package/lib/esm/secrets/azure/AzureSecretEnvironment.js.map +1 -0
  489. package/lib/esm/secrets/azure/index.js +1 -0
  490. package/lib/esm/secrets/azure/index.js.map +1 -1
  491. package/lib/esm/secrets/core/ClientBasedSecretService.js +24 -0
  492. package/lib/esm/secrets/core/ClientBasedSecretService.js.map +1 -0
  493. package/lib/esm/secrets/core/SecretEnvironment.js +15 -0
  494. package/lib/esm/secrets/core/SecretEnvironment.js.map +1 -0
  495. package/lib/esm/secrets/core/index.js +2 -0
  496. package/lib/esm/secrets/core/index.js.map +1 -1
  497. package/lib/esm/secrets/gcp/GcpSecretEnvironment.js +21 -0
  498. package/lib/esm/secrets/gcp/GcpSecretEnvironment.js.map +1 -0
  499. package/lib/esm/secrets/gcp/GcpSecretManagerService.js +30 -5
  500. package/lib/esm/secrets/gcp/GcpSecretManagerService.js.map +1 -1
  501. package/lib/esm/secrets/gcp/index.js +1 -0
  502. package/lib/esm/secrets/gcp/index.js.map +1 -1
  503. package/lib/esm/secrets/model/ModelSecretEnvironment.js +17 -0
  504. package/lib/esm/secrets/model/ModelSecretEnvironment.js.map +1 -0
  505. package/lib/esm/secrets/model/ModelSecretService.js +28 -5
  506. package/lib/esm/secrets/model/ModelSecretService.js.map +1 -1
  507. package/lib/esm/secrets/model/index.js +1 -0
  508. package/lib/esm/secrets/model/index.js.map +1 -1
  509. package/lib/esm/secrets/onepassword/OnePasswordSecretEnvironment.js +20 -0
  510. package/lib/esm/secrets/onepassword/OnePasswordSecretEnvironment.js.map +1 -0
  511. package/lib/esm/secrets/onepassword/OnePasswordSecretService.js +33 -5
  512. package/lib/esm/secrets/onepassword/OnePasswordSecretService.js.map +1 -1
  513. package/lib/esm/secrets/onepassword/index.js +1 -0
  514. package/lib/esm/secrets/onepassword/index.js.map +1 -1
  515. package/lib/esm/secrets/vault/VaultSecretEnvironment.js +20 -0
  516. package/lib/esm/secrets/vault/VaultSecretEnvironment.js.map +1 -0
  517. package/lib/esm/secrets/vault/VaultSecretService.js +33 -5
  518. package/lib/esm/secrets/vault/VaultSecretService.js.map +1 -1
  519. package/lib/esm/secrets/vault/index.js +1 -0
  520. package/lib/esm/secrets/vault/index.js.map +1 -1
  521. package/lib/esm/sftp/aws/AwsSftpEnvironment.js +27 -0
  522. package/lib/esm/sftp/aws/AwsSftpEnvironment.js.map +1 -0
  523. package/lib/esm/sftp/aws/AwsSftpService.js +52 -6
  524. package/lib/esm/sftp/aws/AwsSftpService.js.map +1 -1
  525. package/lib/esm/sftp/core/SftpEnvironment.js +15 -0
  526. package/lib/esm/sftp/core/SftpEnvironment.js.map +1 -0
  527. package/lib/esm/sftp/core/SftpSource.js +12 -2
  528. package/lib/esm/sftp/core/SftpSource.js.map +1 -1
  529. package/lib/esm/sftp/core/index.js +1 -0
  530. package/lib/esm/sftp/core/index.js.map +1 -1
  531. package/lib/esm/sftp/index.js +3 -0
  532. package/lib/esm/sftp/index.js.map +1 -1
  533. package/lib/esm/sftp/ssh2/Ssh2SftpEnvironment.js +24 -0
  534. package/lib/esm/sftp/ssh2/Ssh2SftpEnvironment.js.map +1 -0
  535. package/lib/esm/sftp/ssh2/Ssh2SftpService.js +43 -6
  536. package/lib/esm/sftp/ssh2/Ssh2SftpService.js.map +1 -1
  537. package/lib/esm/shared/environmentValue.js +25 -0
  538. package/lib/esm/shared/environmentValue.js.map +1 -0
  539. package/lib/types/blob/azure/AzureBlobEnvironment.d.cts +25 -0
  540. package/lib/types/blob/azure/AzureBlobEnvironment.d.mts +25 -0
  541. package/lib/types/blob/azure/AzureBlobStoreService.d.cts +38 -0
  542. package/lib/types/blob/azure/AzureBlobStoreService.d.mts +38 -0
  543. package/lib/types/blob/azure/index.d.cts +1 -0
  544. package/lib/types/blob/azure/index.d.mts +1 -0
  545. package/lib/types/blob/core/BlobEnvironment.d.cts +11 -0
  546. package/lib/types/blob/core/BlobEnvironment.d.mts +11 -0
  547. package/lib/types/blob/core/BlobStoreService.d.cts +238 -1
  548. package/lib/types/blob/core/BlobStoreService.d.mts +238 -1
  549. package/lib/types/blob/core/index.d.cts +1 -0
  550. package/lib/types/blob/core/index.d.mts +1 -0
  551. package/lib/types/blob/gcp/GcsBlobEnvironment.d.cts +17 -0
  552. package/lib/types/blob/gcp/GcsBlobEnvironment.d.mts +17 -0
  553. package/lib/types/blob/gcp/GcsBlobStoreService.d.cts +36 -0
  554. package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +36 -0
  555. package/lib/types/blob/gcp/index.d.cts +1 -0
  556. package/lib/types/blob/gcp/index.d.mts +1 -0
  557. package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.cts +24 -0
  558. package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.mts +24 -0
  559. package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +35 -0
  560. package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +35 -0
  561. package/lib/types/blob/ipfs/index.d.cts +1 -0
  562. package/lib/types/blob/ipfs/index.d.mts +1 -0
  563. package/lib/types/blob/local/LocalBlobEnvironment.d.cts +15 -0
  564. package/lib/types/blob/local/LocalBlobEnvironment.d.mts +15 -0
  565. package/lib/types/blob/local/LocalBlobStoreService.d.cts +28 -0
  566. package/lib/types/blob/local/LocalBlobStoreService.d.mts +28 -0
  567. package/lib/types/blob/local/index.d.cts +1 -0
  568. package/lib/types/blob/local/index.d.mts +1 -0
  569. package/lib/types/blob/memory/MemoryBlobEnvironment.d.cts +14 -0
  570. package/lib/types/blob/memory/MemoryBlobEnvironment.d.mts +14 -0
  571. package/lib/types/blob/memory/MemoryBlobStoreService.d.cts +28 -0
  572. package/lib/types/blob/memory/MemoryBlobStoreService.d.mts +28 -0
  573. package/lib/types/blob/memory/index.d.cts +1 -0
  574. package/lib/types/blob/memory/index.d.mts +1 -0
  575. package/lib/types/blob/s3/MinioBlobEnvironment.d.cts +11 -0
  576. package/lib/types/blob/s3/MinioBlobEnvironment.d.mts +11 -0
  577. package/lib/types/blob/s3/MinioBlobStoreService.d.cts +4 -7
  578. package/lib/types/blob/s3/MinioBlobStoreService.d.mts +4 -7
  579. package/lib/types/blob/s3/R2BlobEnvironment.d.cts +11 -0
  580. package/lib/types/blob/s3/R2BlobEnvironment.d.mts +11 -0
  581. package/lib/types/blob/s3/R2BlobStoreService.d.cts +4 -7
  582. package/lib/types/blob/s3/R2BlobStoreService.d.mts +4 -7
  583. package/lib/types/blob/s3/S3BlobEnvironment.d.cts +26 -0
  584. package/lib/types/blob/s3/S3BlobEnvironment.d.mts +26 -0
  585. package/lib/types/blob/s3/S3BlobStoreService.d.cts +4 -24
  586. package/lib/types/blob/s3/S3BlobStoreService.d.mts +4 -24
  587. package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.cts +58 -0
  588. package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.mts +58 -0
  589. package/lib/types/blob/s3/index.d.cts +4 -0
  590. package/lib/types/blob/s3/index.d.mts +4 -0
  591. package/lib/types/calendar/CalendarService.d.cts +40 -0
  592. package/lib/types/calendar/CalendarService.d.mts +40 -0
  593. package/lib/types/calendar/index.d.cts +3 -0
  594. package/lib/types/calendar/index.d.mts +3 -0
  595. package/lib/types/calendar/types.d.cts +64 -0
  596. package/lib/types/calendar/types.d.mts +64 -0
  597. package/lib/types/calendar/validators/cron.d.cts +7 -0
  598. package/lib/types/calendar/validators/cron.d.mts +7 -0
  599. package/lib/types/calendar/writers/CalendarFsWriter.d.cts +6 -0
  600. package/lib/types/calendar/writers/CalendarFsWriter.d.mts +6 -0
  601. package/lib/types/calendar/writers/CalenderDownloader.d.cts +6 -0
  602. package/lib/types/calendar/writers/CalenderDownloader.d.mts +6 -0
  603. package/lib/types/calendar/writers/ICalendarWriter.d.cts +5 -0
  604. package/lib/types/calendar/writers/ICalendarWriter.d.mts +5 -0
  605. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +17 -0
  606. package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +17 -0
  607. package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.cts +13 -0
  608. package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.mts +13 -0
  609. package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.cts +71 -0
  610. package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.mts +71 -0
  611. package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.cts +42 -0
  612. package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.mts +42 -0
  613. package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.cts +22 -0
  614. package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.mts +22 -0
  615. package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.cts +68 -0
  616. package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.mts +68 -0
  617. package/lib/types/graph/engine/catalog/index.d.cts +6 -0
  618. package/lib/types/graph/engine/catalog/index.d.mts +6 -0
  619. package/lib/types/graph/engine/constants.d.cts +2 -2
  620. package/lib/types/graph/engine/constants.d.mts +2 -2
  621. package/lib/types/graph/engine/errors/GraphRunCancelledError.d.cts +9 -0
  622. package/lib/types/graph/engine/errors/GraphRunCancelledError.d.mts +9 -0
  623. package/lib/types/graph/engine/errors/index.d.cts +1 -0
  624. package/lib/types/graph/engine/errors/index.d.mts +1 -0
  625. package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.cts +1 -1
  626. package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.mts +1 -1
  627. package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.cts +1 -1
  628. package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.mts +1 -1
  629. package/lib/types/graph/engine/events/GraphExecutionObserver.d.cts +1 -1
  630. package/lib/types/graph/engine/events/GraphExecutionObserver.d.mts +1 -1
  631. package/lib/types/graph/engine/events/index.d.cts +0 -1
  632. package/lib/types/graph/engine/events/index.d.mts +0 -1
  633. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +2 -2
  634. package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +2 -2
  635. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +2 -2
  636. package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +2 -2
  637. package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +28 -14
  638. package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +28 -14
  639. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +106 -23
  640. package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +106 -23
  641. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +2 -1
  642. package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +2 -1
  643. package/lib/types/graph/engine/execution/GraphExecutionResult.d.cts +3 -3
  644. package/lib/types/graph/engine/execution/GraphExecutionResult.d.mts +3 -3
  645. package/lib/types/graph/engine/execution/GraphNodeExecutor.d.cts +17 -9
  646. package/lib/types/graph/engine/execution/GraphNodeExecutor.d.mts +17 -9
  647. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +3 -3
  648. package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +3 -3
  649. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +2 -2
  650. package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +2 -2
  651. package/lib/types/graph/engine/index.d.cts +6 -9
  652. package/lib/types/graph/engine/index.d.mts +6 -9
  653. package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.cts +1 -1
  654. package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.mts +1 -1
  655. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +2 -2
  656. package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +2 -2
  657. package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.cts +1 -1
  658. package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.mts +1 -1
  659. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +2 -2
  660. package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +2 -2
  661. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +2 -2
  662. package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +2 -2
  663. package/lib/types/graph/engine/pinning/GraphPinningService.d.cts +16 -5
  664. package/lib/types/graph/engine/pinning/GraphPinningService.d.mts +16 -5
  665. package/lib/types/graph/engine/planning/GraphExecutionPlan.d.cts +8 -4
  666. package/lib/types/graph/engine/planning/GraphExecutionPlan.d.mts +8 -4
  667. package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.cts +9 -4
  668. package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.mts +9 -4
  669. package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.cts +17 -9
  670. package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.mts +17 -9
  671. package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.cts +21 -33
  672. package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.mts +21 -33
  673. package/lib/types/graph/engine/planning/index.d.cts +0 -1
  674. package/lib/types/graph/engine/planning/index.d.mts +0 -1
  675. package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.cts +22 -8
  676. package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.mts +22 -8
  677. package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.cts +26 -0
  678. package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.mts +26 -0
  679. package/lib/types/graph/engine/runs/GraphRunExecutor.d.cts +75 -0
  680. package/lib/types/graph/engine/runs/GraphRunExecutor.d.mts +75 -0
  681. package/lib/types/graph/engine/runs/GraphRunFingerprint.d.cts +8 -0
  682. package/lib/types/graph/engine/runs/GraphRunFingerprint.d.mts +8 -0
  683. package/lib/types/graph/engine/runs/GraphRunService.d.cts +93 -0
  684. package/lib/types/graph/engine/runs/GraphRunService.d.mts +93 -0
  685. package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.cts +28 -0
  686. package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.mts +28 -0
  687. package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.cts +12 -0
  688. package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.mts +12 -0
  689. package/lib/types/graph/engine/runs/index.d.cts +8 -0
  690. package/lib/types/graph/engine/runs/index.d.mts +8 -0
  691. package/lib/types/graph/engine/runs/ownership.d.cts +25 -0
  692. package/lib/types/graph/engine/runs/ownership.d.mts +25 -0
  693. package/lib/types/graph/engine/runs/types.d.cts +83 -0
  694. package/lib/types/graph/engine/runs/types.d.mts +83 -0
  695. package/lib/types/graph/engine/types.d.cts +37 -12
  696. package/lib/types/graph/engine/types.d.mts +37 -12
  697. package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.cts +32 -0
  698. package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.mts +32 -0
  699. package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.cts +62 -0
  700. package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.mts +62 -0
  701. package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.cts +11 -9
  702. package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.mts +11 -9
  703. package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.cts +32 -0
  704. package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.mts +32 -0
  705. package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.cts +37 -0
  706. package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.mts +37 -0
  707. package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +92 -0
  708. package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +92 -0
  709. package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.cts +66 -0
  710. package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.mts +66 -0
  711. package/lib/types/graph/engine/validation/GraphValidationErrors.d.cts +34 -0
  712. package/lib/types/graph/engine/validation/GraphValidationErrors.d.mts +34 -0
  713. package/lib/types/graph/engine/validation/GraphValidationIssue.d.cts +39 -0
  714. package/lib/types/graph/engine/validation/GraphValidationIssue.d.mts +39 -0
  715. package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.cts +162 -0
  716. package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.mts +162 -0
  717. package/lib/types/graph/engine/validation/index.d.cts +12 -1
  718. package/lib/types/graph/engine/validation/index.d.mts +12 -1
  719. package/lib/types/graph/index.d.cts +4 -4
  720. package/lib/types/graph/index.d.mts +4 -4
  721. package/lib/types/graph/log/GraphRunLogger.d.cts +5 -1
  722. package/lib/types/graph/log/GraphRunLogger.d.mts +5 -1
  723. package/lib/types/index.d.cts +2 -2
  724. package/lib/types/index.d.mts +2 -2
  725. package/lib/types/nest/graph/GraphExecutionController.d.cts +83 -4
  726. package/lib/types/nest/graph/GraphExecutionController.d.mts +83 -4
  727. package/lib/types/nest/graph/GraphExecutionModule.d.cts +64 -0
  728. package/lib/types/nest/graph/GraphExecutionModule.d.mts +64 -0
  729. package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +12 -0
  730. package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +12 -0
  731. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +42 -28
  732. package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +42 -28
  733. package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +70 -0
  734. package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +70 -0
  735. package/lib/types/nest/graph/GraphResultService.d.cts +12 -0
  736. package/lib/types/nest/graph/GraphResultService.d.mts +12 -0
  737. package/lib/types/nest/graph/GraphRunController.d.cts +87 -0
  738. package/lib/types/nest/graph/GraphRunController.d.mts +87 -0
  739. package/lib/types/nest/graph/GraphRunModel.d.cts +22 -0
  740. package/lib/types/nest/graph/GraphRunModel.d.mts +22 -0
  741. package/lib/types/nest/graph/GraphRunModelService.d.cts +21 -0
  742. package/lib/types/nest/graph/GraphRunModelService.d.mts +21 -0
  743. package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.cts +28 -0
  744. package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.mts +28 -0
  745. package/lib/types/nest/graph/GraphWorkflowController.d.cts +62 -0
  746. package/lib/types/nest/graph/GraphWorkflowController.d.mts +62 -0
  747. package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.cts +33 -0
  748. package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.mts +33 -0
  749. package/lib/types/nest/graph/GraphWorkflowErrors.d.cts +13 -0
  750. package/lib/types/nest/graph/GraphWorkflowErrors.d.mts +13 -0
  751. package/lib/types/nest/graph/GraphWorkflowModel.d.cts +19 -1
  752. package/lib/types/nest/graph/GraphWorkflowModel.d.mts +19 -1
  753. package/lib/types/nest/graph/GraphWorkflowService.d.cts +48 -1
  754. package/lib/types/nest/graph/GraphWorkflowService.d.mts +48 -1
  755. package/lib/types/nest/graph/index.d.cts +8 -0
  756. package/lib/types/nest/graph/index.d.mts +8 -0
  757. package/lib/types/nest/keycloakModule.d.cts +9 -1
  758. package/lib/types/nest/keycloakModule.d.mts +9 -1
  759. package/lib/types/secrets/aws/AwsSecretEnvironment.d.cts +21 -0
  760. package/lib/types/secrets/aws/AwsSecretEnvironment.d.mts +21 -0
  761. package/lib/types/secrets/aws/AwsSecretService.d.cts +4 -3
  762. package/lib/types/secrets/aws/AwsSecretService.d.mts +4 -3
  763. package/lib/types/secrets/aws/index.d.cts +1 -0
  764. package/lib/types/secrets/aws/index.d.mts +1 -0
  765. package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.cts +4 -3
  766. package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.mts +4 -3
  767. package/lib/types/secrets/azure/AzureSecretEnvironment.d.cts +14 -0
  768. package/lib/types/secrets/azure/AzureSecretEnvironment.d.mts +14 -0
  769. package/lib/types/secrets/azure/index.d.cts +1 -0
  770. package/lib/types/secrets/azure/index.d.mts +1 -0
  771. package/lib/types/secrets/core/ClientBasedSecretService.d.cts +20 -0
  772. package/lib/types/secrets/core/ClientBasedSecretService.d.mts +20 -0
  773. package/lib/types/secrets/core/SecretEnvironment.d.cts +11 -0
  774. package/lib/types/secrets/core/SecretEnvironment.d.mts +11 -0
  775. package/lib/types/secrets/core/index.d.cts +2 -0
  776. package/lib/types/secrets/core/index.d.mts +2 -0
  777. package/lib/types/secrets/gcp/GcpSecretEnvironment.d.cts +16 -0
  778. package/lib/types/secrets/gcp/GcpSecretEnvironment.d.mts +16 -0
  779. package/lib/types/secrets/gcp/GcpSecretManagerService.d.cts +4 -3
  780. package/lib/types/secrets/gcp/GcpSecretManagerService.d.mts +4 -3
  781. package/lib/types/secrets/gcp/index.d.cts +1 -0
  782. package/lib/types/secrets/gcp/index.d.mts +1 -0
  783. package/lib/types/secrets/model/ModelSecretEnvironment.d.cts +14 -0
  784. package/lib/types/secrets/model/ModelSecretEnvironment.d.mts +14 -0
  785. package/lib/types/secrets/model/ModelSecretService.d.cts +4 -3
  786. package/lib/types/secrets/model/ModelSecretService.d.mts +4 -3
  787. package/lib/types/secrets/model/ModelSecretServiceConfig.d.cts +2 -1
  788. package/lib/types/secrets/model/ModelSecretServiceConfig.d.mts +2 -1
  789. package/lib/types/secrets/model/index.d.cts +1 -0
  790. package/lib/types/secrets/model/index.d.mts +1 -0
  791. package/lib/types/secrets/onepassword/OnePasswordSecretEnvironment.d.cts +17 -0
  792. package/lib/types/secrets/onepassword/OnePasswordSecretEnvironment.d.mts +17 -0
  793. package/lib/types/secrets/onepassword/OnePasswordSecretService.d.cts +4 -3
  794. package/lib/types/secrets/onepassword/OnePasswordSecretService.d.mts +4 -3
  795. package/lib/types/secrets/onepassword/index.d.cts +1 -0
  796. package/lib/types/secrets/onepassword/index.d.mts +1 -0
  797. package/lib/types/secrets/vault/VaultSecretEnvironment.d.cts +17 -0
  798. package/lib/types/secrets/vault/VaultSecretEnvironment.d.mts +17 -0
  799. package/lib/types/secrets/vault/VaultSecretService.d.cts +4 -3
  800. package/lib/types/secrets/vault/VaultSecretService.d.mts +4 -3
  801. package/lib/types/secrets/vault/index.d.cts +1 -0
  802. package/lib/types/secrets/vault/index.d.mts +1 -0
  803. package/lib/types/sftp/aws/AwsSftpEnvironment.d.cts +24 -0
  804. package/lib/types/sftp/aws/AwsSftpEnvironment.d.mts +24 -0
  805. package/lib/types/sftp/aws/AwsSftpService.d.cts +1 -0
  806. package/lib/types/sftp/aws/AwsSftpService.d.mts +1 -0
  807. package/lib/types/sftp/core/SftpEnvironment.d.cts +11 -0
  808. package/lib/types/sftp/core/SftpEnvironment.d.mts +11 -0
  809. package/lib/types/sftp/core/SftpSource.d.cts +7 -0
  810. package/lib/types/sftp/core/SftpSource.d.mts +7 -0
  811. package/lib/types/sftp/core/index.d.cts +1 -0
  812. package/lib/types/sftp/core/index.d.mts +1 -0
  813. package/lib/types/sftp/index.d.cts +3 -0
  814. package/lib/types/sftp/index.d.mts +3 -0
  815. package/lib/types/sftp/ssh2/Ssh2SftpEnvironment.d.cts +21 -0
  816. package/lib/types/sftp/ssh2/Ssh2SftpEnvironment.d.mts +21 -0
  817. package/lib/types/sftp/ssh2/Ssh2SftpService.d.cts +1 -0
  818. package/lib/types/sftp/ssh2/Ssh2SftpService.d.mts +1 -0
  819. package/lib/types/shared/environmentValue.d.cts +16 -0
  820. package/lib/types/shared/environmentValue.d.mts +16 -0
  821. package/package.json +19 -17
  822. package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs +0 -4
  823. package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs.map +0 -1
  824. package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs +0 -172
  825. package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs.map +0 -1
  826. package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs +0 -97
  827. package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs.map +0 -1
  828. package/lib/cjs/graph/shared/constants.cjs +0 -99
  829. package/lib/cjs/graph/shared/constants.cjs.map +0 -1
  830. package/lib/cjs/graph/shared/index.cjs +0 -46
  831. package/lib/cjs/graph/shared/index.cjs.map +0 -1
  832. package/lib/cjs/graph/shared/nodes/agent.cjs +0 -110
  833. package/lib/cjs/graph/shared/nodes/agent.cjs.map +0 -1
  834. package/lib/cjs/graph/shared/nodes/base.cjs +0 -36
  835. package/lib/cjs/graph/shared/nodes/base.cjs.map +0 -1
  836. package/lib/cjs/graph/shared/nodes/category-styles.cjs +0 -38
  837. package/lib/cjs/graph/shared/nodes/category-styles.cjs.map +0 -1
  838. package/lib/cjs/graph/shared/nodes/flow-control.cjs +0 -630
  839. package/lib/cjs/graph/shared/nodes/flow-control.cjs.map +0 -1
  840. package/lib/cjs/graph/shared/nodes/index.cjs +0 -35
  841. package/lib/cjs/graph/shared/nodes/index.cjs.map +0 -1
  842. package/lib/cjs/graph/shared/nodes/triggers.cjs +0 -250
  843. package/lib/cjs/graph/shared/nodes/triggers.cjs.map +0 -1
  844. package/lib/cjs/graph/shared/types.cjs.map +0 -1
  845. package/lib/esm/graph/engine/events/GraphExecutionEvent.js +0 -2
  846. package/lib/esm/graph/engine/events/GraphExecutionEvent.js.map +0 -1
  847. package/lib/esm/graph/engine/planning/GraphRelationResolver.js +0 -167
  848. package/lib/esm/graph/engine/planning/GraphRelationResolver.js.map +0 -1
  849. package/lib/esm/graph/shared/GraphExecutionStateMapper.js +0 -91
  850. package/lib/esm/graph/shared/GraphExecutionStateMapper.js.map +0 -1
  851. package/lib/esm/graph/shared/constants.js +0 -135
  852. package/lib/esm/graph/shared/constants.js.map +0 -1
  853. package/lib/esm/graph/shared/index.js +0 -25
  854. package/lib/esm/graph/shared/index.js.map +0 -1
  855. package/lib/esm/graph/shared/nodes/agent.js +0 -101
  856. package/lib/esm/graph/shared/nodes/agent.js.map +0 -1
  857. package/lib/esm/graph/shared/nodes/base.js +0 -31
  858. package/lib/esm/graph/shared/nodes/base.js.map +0 -1
  859. package/lib/esm/graph/shared/nodes/category-styles.js +0 -34
  860. package/lib/esm/graph/shared/nodes/category-styles.js.map +0 -1
  861. package/lib/esm/graph/shared/nodes/flow-control.js +0 -621
  862. package/lib/esm/graph/shared/nodes/flow-control.js.map +0 -1
  863. package/lib/esm/graph/shared/nodes/index.js +0 -18
  864. package/lib/esm/graph/shared/nodes/index.js.map +0 -1
  865. package/lib/esm/graph/shared/nodes/triggers.js +0 -241
  866. package/lib/esm/graph/shared/nodes/triggers.js.map +0 -1
  867. package/lib/types/graph/engine/events/GraphExecutionEvent.d.cts +0 -6
  868. package/lib/types/graph/engine/events/GraphExecutionEvent.d.mts +0 -6
  869. package/lib/types/graph/engine/planning/GraphRelationResolver.d.cts +0 -62
  870. package/lib/types/graph/engine/planning/GraphRelationResolver.d.mts +0 -62
  871. package/lib/types/graph/shared/GraphExecutionStateMapper.d.cts +0 -66
  872. package/lib/types/graph/shared/GraphExecutionStateMapper.d.mts +0 -66
  873. package/lib/types/graph/shared/constants.d.cts +0 -120
  874. package/lib/types/graph/shared/constants.d.mts +0 -120
  875. package/lib/types/graph/shared/index.d.cts +0 -21
  876. package/lib/types/graph/shared/index.d.mts +0 -21
  877. package/lib/types/graph/shared/nodes/agent.d.cts +0 -44
  878. package/lib/types/graph/shared/nodes/agent.d.mts +0 -44
  879. package/lib/types/graph/shared/nodes/base.d.cts +0 -28
  880. package/lib/types/graph/shared/nodes/base.d.mts +0 -28
  881. package/lib/types/graph/shared/nodes/category-styles.d.cts +0 -8
  882. package/lib/types/graph/shared/nodes/category-styles.d.mts +0 -8
  883. package/lib/types/graph/shared/nodes/flow-control.d.cts +0 -163
  884. package/lib/types/graph/shared/nodes/flow-control.d.mts +0 -163
  885. package/lib/types/graph/shared/nodes/index.d.cts +0 -17
  886. package/lib/types/graph/shared/nodes/index.d.mts +0 -17
  887. package/lib/types/graph/shared/nodes/triggers.d.cts +0 -53
  888. package/lib/types/graph/shared/nodes/triggers.d.mts +0 -53
  889. package/lib/types/graph/shared/types.d.cts +0 -257
  890. package/lib/types/graph/shared/types.d.mts +0 -257
  891. /package/lib/cjs/{graph/shared → calendar}/types.cjs +0 -0
  892. /package/lib/esm/{graph/shared → calendar}/types.js +0 -0
@@ -0,0 +1,393 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CalendarService = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
17
+ };
18
+ const core_1 = require("@decaf-ts/core");
19
+ const cron_parser_1 = require("cron-parser");
20
+ const db_decorators_1 = require("@decaf-ts/db-decorators");
21
+ const injectable_decorators_1 = require("@decaf-ts/injectable-decorators");
22
+ /**
23
+ * Creates interoperable iCalendar medication reminders.
24
+ *
25
+ * The service has no static Node imports, so the same module can be bundled
26
+ * for browsers. Node-only filesystem behavior is loaded dynamically.
27
+ */
28
+ let CalendarService = class CalendarService extends core_1.Service {
29
+ async createMedicationReminder(options, ...args) {
30
+ const { log, ctx } = (await this.logCtx(args, db_decorators_1.OperationKeys.CREATE, true)).for(this.createMedicationReminder);
31
+ this.validateOptions(options);
32
+ const start = options.start ? new Date(options.start) : new Date();
33
+ const timezone = options.timezone ??
34
+ Intl.DateTimeFormat().resolvedOptions().timeZone ??
35
+ "UTC";
36
+ const durationMinutes = options.durationMinutes ?? 15;
37
+ const alarmMinutesBefore = options.alarmMinutesBefore ?? 10;
38
+ const uid = options.uid ?? this.createUid();
39
+ const recurrence = this.createRecurrence(options, start, timezone, ctx);
40
+ const firstOccurrence = recurrence.rdates?.[0] ??
41
+ this.getFirstOccurrence(options.cron, start, timezone);
42
+ const end = new Date(firstOccurrence.getTime() + durationMinutes * 60_000);
43
+ const lines = [
44
+ "BEGIN:VCALENDAR",
45
+ "VERSION:2.0",
46
+ "CALSCALE:GREGORIAN",
47
+ "PRODID:-//PTP//Calendar Service//EN",
48
+ "METHOD:PUBLISH",
49
+ "BEGIN:VEVENT",
50
+ `UID:${this.escapeProperty(uid)}`,
51
+ `DTSTAMP:${this.formatUtcDate(new Date())}`,
52
+ `DTSTART;TZID=${this.escapeParameter(timezone)}:${this.formatLocalDate(firstOccurrence, timezone)}`,
53
+ `DTEND;TZID=${this.escapeParameter(timezone)}:${this.formatLocalDate(end, timezone)}`,
54
+ `SUMMARY:${this.escapeText(options.title)}`,
55
+ ];
56
+ if (options.description) {
57
+ lines.push(`DESCRIPTION:${this.escapeText(options.description)}`);
58
+ }
59
+ if (options.location) {
60
+ lines.push(`LOCATION:${this.escapeText(options.location)}`);
61
+ }
62
+ if (recurrence.rrule) {
63
+ lines.push(`RRULE:${recurrence.rrule}`);
64
+ }
65
+ if (recurrence.rdates && recurrence.rdates.length > 1) {
66
+ // DTSTART already represents the first occurrence.
67
+ const remaining = recurrence.rdates.slice(1);
68
+ lines.push(...this.createFoldedRDateLines(remaining, timezone));
69
+ }
70
+ if (options.organizerEmail) {
71
+ lines.push(`ORGANIZER:mailto:${this.escapeProperty(options.organizerEmail)}`);
72
+ }
73
+ if (options.attendeeEmail) {
74
+ lines.push([
75
+ "ATTENDEE",
76
+ "CUTYPE=INDIVIDUAL",
77
+ "ROLE=REQ-PARTICIPANT",
78
+ "PARTSTAT=NEEDS-ACTION",
79
+ "RSVP=TRUE",
80
+ ].join(";") + `:mailto:${this.escapeProperty(options.attendeeEmail)}`);
81
+ }
82
+ lines.push("BEGIN:VALARM", "ACTION:DISPLAY", `TRIGGER:-PT${alarmMinutesBefore}M`, `DESCRIPTION:${this.escapeText(options.title)}`, "END:VALARM", "END:VEVENT", "END:VCALENDAR");
83
+ const content = this.foldLines(lines).join("\r\n") + "\r\n";
84
+ const filename = this.createFilename(options.title);
85
+ log.verbose(`Calendar event created: ${filename}`);
86
+ log.debug(`Content for ${filename}: ${content}`);
87
+ return {
88
+ filename,
89
+ content,
90
+ mimeType: "text/calendar",
91
+ bytes: new TextEncoder().encode(content),
92
+ };
93
+ }
94
+ async createAndStoreReminder(options, ...args) {
95
+ const { ctx } = (await this.logCtx(args, db_decorators_1.OperationKeys.CREATE, true)).for(this.createAndStoreReminder);
96
+ const file = await this.createMedicationReminder(options, ctx);
97
+ await this.writer.write(file, ctx);
98
+ }
99
+ createRecurrence(options, start, timezone, ctx) {
100
+ const parsed = this.parseSimpleCron(options.cron, ctx);
101
+ const until = options.until ? this.formatUtcDate(options.until) : undefined;
102
+ if (parsed) {
103
+ const rrule = this.convertSimpleCronToRRule(parsed, until);
104
+ if (rrule) {
105
+ return { rrule };
106
+ }
107
+ }
108
+ return {
109
+ rdates: this.expandCronDates(options.cron, start, timezone, options.maxOccurrences ?? 365, options.until),
110
+ };
111
+ }
112
+ /**
113
+ * Converts the commonly needed medication schedules.
114
+ *
115
+ * Unsupported cron shapes fall back to explicit RDATE occurrences.
116
+ */
117
+ convertSimpleCronToRRule(cron, until) {
118
+ const suffix = until ? `;UNTIL=${until}` : "";
119
+ const minutes = cron.minute.join(",");
120
+ const hours = cron.hour.join(",");
121
+ const timeParts = `BYHOUR=${hours};BYMINUTE=${minutes};BYSECOND=0`;
122
+ const everyDay = cron.dayOfMonth === null &&
123
+ cron.month === null &&
124
+ cron.dayOfWeek === null;
125
+ if (everyDay) {
126
+ return `FREQ=DAILY;${timeParts}${suffix}`;
127
+ }
128
+ const weekly = cron.dayOfMonth === null &&
129
+ cron.month === null &&
130
+ cron.dayOfWeek !== null;
131
+ if (weekly) {
132
+ const weekdays = cron
133
+ .dayOfWeek.map((day) => this.weekdayToIcs(day))
134
+ .join(",");
135
+ return `FREQ=WEEKLY;BYDAY=${weekdays};${timeParts}${suffix}`;
136
+ }
137
+ const monthly = cron.dayOfMonth !== null &&
138
+ cron.month === null &&
139
+ cron.dayOfWeek === null;
140
+ if (monthly) {
141
+ return (`FREQ=MONTHLY;BYMONTHDAY=${cron.dayOfMonth.join(",")};` +
142
+ `${timeParts}${suffix}`);
143
+ }
144
+ const yearly = cron.dayOfMonth !== null &&
145
+ cron.month !== null &&
146
+ cron.dayOfWeek === null;
147
+ if (yearly) {
148
+ return (`FREQ=YEARLY;BYMONTH=${cron.month.join(",")};` +
149
+ `BYMONTHDAY=${cron.dayOfMonth.join(",")};` +
150
+ `${timeParts}${suffix}`);
151
+ }
152
+ // Cron day-of-month/day-of-week combinations have OR-like semantics
153
+ // in many implementations and cannot be represented safely as one RRULE.
154
+ return undefined;
155
+ }
156
+ parseSimpleCron(expression, ctx) {
157
+ const { log } = this.logCtx([ctx], this.parseSimpleCron);
158
+ const fields = expression.trim().split(/\s+/);
159
+ if (fields.length !== 5) {
160
+ return undefined;
161
+ }
162
+ const [minute, hour, dayOfMonth, month, dayOfWeek] = fields;
163
+ try {
164
+ return {
165
+ minute: this.parseCronField(minute, 0, 59, ctx),
166
+ hour: this.parseCronField(hour, 0, 23, ctx),
167
+ dayOfMonth: dayOfMonth === "*"
168
+ ? null
169
+ : this.parseCronField(dayOfMonth, 1, 31, ctx),
170
+ month: month === "*" ? null : this.parseCronField(month, 1, 12, ctx),
171
+ dayOfWeek: dayOfWeek === "*"
172
+ ? null
173
+ : this.parseCronField(dayOfWeek, 0, 7, ctx).map((value) => value === 7 ? 0 : value),
174
+ };
175
+ }
176
+ catch {
177
+ log.debug(`Failed to generate simple cron expression for ${expression}`);
178
+ return undefined;
179
+ }
180
+ }
181
+ parseCronField(field, minimum, maximum,
182
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
183
+ ctx) {
184
+ const values = new Set();
185
+ for (const segment of field.split(",")) {
186
+ const [rangeExpression, stepExpression] = segment.split("/");
187
+ const step = stepExpression === undefined ? 1 : Number.parseInt(stepExpression, 10);
188
+ if (!Number.isInteger(step) || step <= 0) {
189
+ throw new db_decorators_1.ValidationError(`Invalid cron step: ${segment}`);
190
+ }
191
+ let start;
192
+ let end;
193
+ if (rangeExpression === "*") {
194
+ start = minimum;
195
+ end = maximum;
196
+ }
197
+ else if (rangeExpression.includes("-")) {
198
+ const bounds = rangeExpression.split("-");
199
+ if (bounds.length !== 2) {
200
+ throw new db_decorators_1.ValidationError(`Invalid cron range: ${segment}`);
201
+ }
202
+ start = Number.parseInt(bounds[0], 10);
203
+ end = Number.parseInt(bounds[1], 10);
204
+ }
205
+ else {
206
+ start = Number.parseInt(rangeExpression, 10);
207
+ end = start;
208
+ }
209
+ if (!Number.isInteger(start) ||
210
+ !Number.isInteger(end) ||
211
+ start < minimum ||
212
+ end > maximum ||
213
+ start > end) {
214
+ throw new db_decorators_1.ValidationError(`Invalid cron field: ${segment}`);
215
+ }
216
+ for (let value = start; value <= end; value += step) {
217
+ values.add(value);
218
+ }
219
+ }
220
+ return [...values].sort((a, b) => a - b);
221
+ }
222
+ expandCronDates(cron, start, timezone, maximum, until) {
223
+ const interval = cron_parser_1.CronExpressionParser.parse(cron, {
224
+ currentDate: start,
225
+ tz: timezone,
226
+ });
227
+ const occurrences = [];
228
+ while (occurrences.length < maximum) {
229
+ const next = interval.next().toDate();
230
+ if (until && next > until) {
231
+ break;
232
+ }
233
+ occurrences.push(next);
234
+ }
235
+ if (occurrences.length === 0) {
236
+ throw new Error("The cron expression produced no occurrences in the requested range.");
237
+ }
238
+ return occurrences;
239
+ }
240
+ getFirstOccurrence(cron, start, timezone) {
241
+ const interval = cron_parser_1.CronExpressionParser.parse(cron, {
242
+ currentDate: start,
243
+ tz: timezone,
244
+ });
245
+ return interval.next().toDate();
246
+ }
247
+ createFoldedRDateLines(dates, timezone) {
248
+ const prefix = `RDATE;TZID=${this.escapeParameter(timezone)}:`;
249
+ const values = dates.map((date) => this.formatLocalDate(date, timezone));
250
+ // Keep each logical property reasonably sized before RFC line folding.
251
+ const result = [];
252
+ let current = prefix;
253
+ for (const value of values) {
254
+ const candidate = current === prefix ? `${current}${value}` : `${current},${value}`;
255
+ if (new TextEncoder().encode(candidate).length > 700) {
256
+ result.push(current);
257
+ current = `${prefix}${value}`;
258
+ }
259
+ else {
260
+ current = candidate;
261
+ }
262
+ }
263
+ if (current !== prefix) {
264
+ result.push(current);
265
+ }
266
+ return result;
267
+ }
268
+ formatUtcDate(date) {
269
+ return date
270
+ .toISOString()
271
+ .replace(/[-:]/g, "")
272
+ .replace(/\.\d{3}Z$/, "Z");
273
+ }
274
+ formatLocalDate(date, timezone) {
275
+ const parts = new Intl.DateTimeFormat("en-CA", {
276
+ timeZone: timezone,
277
+ year: "numeric",
278
+ month: "2-digit",
279
+ day: "2-digit",
280
+ hour: "2-digit",
281
+ minute: "2-digit",
282
+ second: "2-digit",
283
+ hourCycle: "h23",
284
+ }).formatToParts(date);
285
+ const values = Object.fromEntries(parts
286
+ .filter((part) => part.type !== "literal")
287
+ .map((part) => [part.type, part.value]));
288
+ return (`${values.year}${values.month}${values.day}` +
289
+ `T${values.hour}${values.minute}${values.second}`);
290
+ }
291
+ foldLines(lines) {
292
+ return lines.flatMap((line) => this.foldLine(line));
293
+ }
294
+ /**
295
+ * RFC 5545 content lines should be folded at 75 octets.
296
+ */
297
+ foldLine(line) {
298
+ const encoder = new TextEncoder();
299
+ const result = [];
300
+ let remaining = line;
301
+ let first = true;
302
+ while (encoder.encode(first ? remaining : ` ${remaining}`).length > 75) {
303
+ const prefix = first ? "" : " ";
304
+ let chunk = "";
305
+ let consumed = 0;
306
+ for (const character of remaining) {
307
+ const candidate = `${prefix}${chunk}${character}`;
308
+ if (encoder.encode(candidate).length > 75) {
309
+ break;
310
+ }
311
+ chunk += character;
312
+ consumed += character.length;
313
+ }
314
+ if (!chunk) {
315
+ throw new Error("Unable to fold iCalendar content line.");
316
+ }
317
+ result.push(`${prefix}${chunk}`);
318
+ remaining = remaining.slice(consumed);
319
+ first = false;
320
+ }
321
+ result.push(first ? remaining : ` ${remaining}`);
322
+ return result;
323
+ }
324
+ escapeText(value) {
325
+ return value
326
+ .replace(/\\/g, "\\\\")
327
+ .replace(/\r?\n/g, "\\n")
328
+ .replace(/;/g, "\\;")
329
+ .replace(/,/g, "\\,");
330
+ }
331
+ escapeProperty(value) {
332
+ return value.replace(/[\r\n]/g, "");
333
+ }
334
+ escapeParameter(value) {
335
+ if (!/^[A-Za-z0-9_+./-]+$/.test(value)) {
336
+ throw new db_decorators_1.ValidationError(`Unsafe iCalendar parameter: ${value}`);
337
+ }
338
+ return value;
339
+ }
340
+ weekdayToIcs(day) {
341
+ const days = ["SU", "MO", "TU", "WE", "TH", "FR", "SA"];
342
+ const result = days[day];
343
+ if (!result) {
344
+ throw new db_decorators_1.ValidationError(`Invalid weekday: ${day}`);
345
+ }
346
+ return result;
347
+ }
348
+ createUid() {
349
+ const random = globalThis.crypto?.randomUUID?.() ??
350
+ `${Date.now()}-${Math.random().toString(16).slice(2)}`;
351
+ return `${random}@calendar-service`;
352
+ }
353
+ createFilename(title) {
354
+ const safeTitle = title
355
+ .normalize("NFKD")
356
+ .replace(/[^\w.-]+/g, "-")
357
+ .replace(/^-+|-+$/g, "")
358
+ .toLowerCase();
359
+ return `${safeTitle || "calendar-reminder"}.ics`;
360
+ }
361
+ validateOptions(options) {
362
+ if (!options.cron?.trim()) {
363
+ throw new db_decorators_1.ValidationError("A cron expression is required.");
364
+ }
365
+ if (!options.title?.trim()) {
366
+ throw new db_decorators_1.ValidationError("A calendar title is required.");
367
+ }
368
+ if (options.durationMinutes !== undefined &&
369
+ (!Number.isFinite(options.durationMinutes) ||
370
+ options.durationMinutes <= 0)) {
371
+ throw new db_decorators_1.ValidationError("durationMinutes must be greater than zero.");
372
+ }
373
+ if (options.alarmMinutesBefore !== undefined &&
374
+ (!Number.isInteger(options.alarmMinutesBefore) ||
375
+ options.alarmMinutesBefore < 0)) {
376
+ throw new db_decorators_1.ValidationError("alarmMinutesBefore must be a non-negative integer.");
377
+ }
378
+ if (options.maxOccurrences !== undefined &&
379
+ (!Number.isInteger(options.maxOccurrences) || options.maxOccurrences <= 0)) {
380
+ throw new db_decorators_1.ValidationError("maxOccurrences must be a positive integer.");
381
+ }
382
+ }
383
+ };
384
+ exports.CalendarService = CalendarService;
385
+ __decorate([
386
+ (0, injectable_decorators_1.inject)('"calendar-writer"'),
387
+ __metadata("design:type", Object)
388
+ ], CalendarService.prototype, "writer", void 0);
389
+ exports.CalendarService = CalendarService = __decorate([
390
+ (0, core_1.service)()
391
+ ], CalendarService);
392
+ //# sourceMappingURL=CalendarService.js.map
393
+ //# sourceMappingURL=CalendarService.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/CalendarService.cjs","sourceRoot":"","sources":["calendar/CalendarService.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GA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.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./validators/cron.cjs"), exports);
18
+ __exportStar(require("./types.cjs"), exports);
19
+ __exportStar(require("./CalendarService.cjs"), exports);
20
+ //# sourceMappingURL=index.js.map
21
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/index.cjs","sourceRoot":"","sources":["calendar/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,6CAA2B;AAC3B,uDAAqC;AACrC,iCAAiC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/types.cjs","sourceRoot":"","sources":["calendar/types.js"],"names":[],"mappings":";;AACA,iCAAiC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cron = exports.CronValidator = exports.CRON_VALIDATION_ERROR_MESSAGE = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ var __metadata = (this && this.__metadata) || function (k, v) {
15
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
16
+ return Reflect.metadata(k, v);
17
+ };
18
+ const decoration_1 = require("@decaf-ts/decoration");
19
+ const decorator_validation_1 = require("@decaf-ts/decorator-validation");
20
+ const cron_parser_1 = require("cron-parser");
21
+ const CRON_VALIDATION_KEY = "cron";
22
+ exports.CRON_VALIDATION_ERROR_MESSAGE = "Not a valid cron expression";
23
+ let CronValidator = class CronValidator extends decorator_validation_1.Validator {
24
+ constructor(message = exports.CRON_VALIDATION_ERROR_MESSAGE) {
25
+ super(message, "string");
26
+ }
27
+ hasErrors(value, options) {
28
+ if (value === undefined || value === null)
29
+ return;
30
+ const cron = value.trim();
31
+ if (!cron) {
32
+ return this.getMessage(options?.message || this.message);
33
+ }
34
+ try {
35
+ cron_parser_1.CronExpressionParser.parse(cron);
36
+ return;
37
+ }
38
+ catch {
39
+ return this.getMessage(options?.message || this.message);
40
+ }
41
+ }
42
+ };
43
+ exports.CronValidator = CronValidator;
44
+ exports.CronValidator = CronValidator = __decorate([
45
+ (0, decorator_validation_1.validator)(CRON_VALIDATION_KEY),
46
+ __metadata("design:paramtypes", [String])
47
+ ], CronValidator);
48
+ const cron = (message = exports.CRON_VALIDATION_ERROR_MESSAGE) => {
49
+ return function cron(target, propKey) {
50
+ return (0, decoration_1.apply)((0, decoration_1.propMetadata)(decoration_1.Metadata.key(CRON_VALIDATION_KEY, propKey), message), (0, decorator_validation_1.innerValidationDecorator)(cron, CRON_VALIDATION_KEY, {
51
+ message,
52
+ async: false,
53
+ }))(target, propKey);
54
+ };
55
+ };
56
+ exports.cron = cron;
57
+ //# sourceMappingURL=cron.js.map
58
+ //# sourceMappingURL=cron.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/validators/cron.cjs","sourceRoot":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AC5D,OAAO,SAAS,IAAI,CAAC,MAAM,EAAE,OAAO;QAChC,OAAO,IAAA,kBAAK,EAAC,IAAA,yBAAY,EAAC,qBAAQ,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,IAAA,+CAAwB,EAAC,IAAI,EAAE,mBAAmB,EAAE;YAChI,OAAO;YACP,KAAK,EAAE,KAAK;SACf,CAAC,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzB,CAAC,CAAC;AACN,CAAC,CAAC;AAPW,QAAA,IAAI,QAOf;AACF,gCAAgC"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FsCalenderWriter = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ const db_decorators_1 = require("@decaf-ts/db-decorators");
15
+ const injectable_decorators_1 = require("@decaf-ts/injectable-decorators");
16
+ const promises_1 = require("node:fs/promises");
17
+ const node_fs_1 = require("node:fs");
18
+ const path_1 = require("path");
19
+ let FsCalenderWriter = class FsCalenderWriter {
20
+ async write(file, ctx) {
21
+ if (typeof process === "undefined" || !process.versions?.node) {
22
+ throw new db_decorators_1.InternalError("FsCalendarWriter is only available in Node");
23
+ }
24
+ let p = process.env.CALENDAR_PATH || "";
25
+ if (!p)
26
+ throw new db_decorators_1.InternalError(`No calendar storage path defined`);
27
+ p = (0, path_1.join)(p, file.filename);
28
+ if (!(0, node_fs_1.statfsSync)(p))
29
+ ctx.logger.for(this.write).info(`Writing calendar file to ${p}`);
30
+ await (0, promises_1.writeFile)(p, file.bytes);
31
+ return file;
32
+ }
33
+ };
34
+ exports.FsCalenderWriter = FsCalenderWriter;
35
+ exports.FsCalenderWriter = FsCalenderWriter = __decorate([
36
+ (0, injectable_decorators_1.injectable)("calendar-writer")
37
+ ], FsCalenderWriter);
38
+ //# sourceMappingURL=CalendarFsWriter.js.map
39
+ //# sourceMappingURL=CalendarFsWriter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/writers/CalendarFsWriter.cjs","sourceRoot":"","sources":["calendar/writers/CalendarFsWriter.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,C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A,kCAAU,EAAC,iBAAiB,CAAC;CAChC,EAAE,gBAAgB,CAAC,CAAC;AAErB,4CAA4C"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DownloadCalenderWriter = void 0;
4
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
7
+ r = Reflect.decorate(decorators, target, key, desc);
8
+ else
9
+ for (var i = decorators.length - 1; i >= 0; i--)
10
+ if (d = decorators[i])
11
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
12
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
13
+ };
14
+ const db_decorators_1 = require("@decaf-ts/db-decorators");
15
+ const injectable_decorators_1 = require("@decaf-ts/injectable-decorators");
16
+ let DownloadCalenderWriter = class DownloadCalenderWriter {
17
+ async write(file, ctx) {
18
+ if (typeof globalThis.window === "undefined" ||
19
+ typeof globalThis.document === "undefined") {
20
+ throw new db_decorators_1.InternalError("Calendar Download is only available in a browser.");
21
+ }
22
+ const log = ctx.logger.for(this.write);
23
+ const blob = new Blob([file.content], {
24
+ type: `${file.mimeType};charset=utf-8`,
25
+ });
26
+ const objectUrl = URL.createObjectURL(blob);
27
+ log.debug(`Downloadable blob at ${objectUrl}`);
28
+ const anchor = globalThis.document.createElement("a");
29
+ anchor.href = objectUrl;
30
+ anchor.download = file.filename;
31
+ anchor.style.display = "none";
32
+ globalThis.document.body.appendChild(anchor);
33
+ anchor.click();
34
+ anchor.remove();
35
+ globalThis.window.setTimeout(() => {
36
+ URL.revokeObjectURL(objectUrl);
37
+ log.debug(`Downloadable blob at ${objectUrl} expired`);
38
+ }, 1_000);
39
+ return file;
40
+ }
41
+ };
42
+ exports.DownloadCalenderWriter = DownloadCalenderWriter;
43
+ exports.DownloadCalenderWriter = DownloadCalenderWriter = __decorate([
44
+ (0, injectable_decorators_1.injectable)("calendar-writer")
45
+ ], DownloadCalenderWriter);
46
+ //# sourceMappingURL=CalenderDownloader.js.map
47
+ //# sourceMappingURL=CalenderDownloader.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/writers/CalenderDownloader.cjs","sourceRoot":"","sources":["calendar/writers/CalenderDownloader.js"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI;IACjF,IAAI,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7H,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,OAAO,CAAC,QAAQ,KAAK,UAAU;QAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;;QAC1H,KAAK,IAAI,CAAC,GAAG,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;gBAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CA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AU,CAAC,GAAG,EAAE;YAC9B,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;YAC/B,GAAG,CAAC,KAAK,CAAC,wBAAwB,SAAS,UAAU,CAAC,CAAC;QAC3D,CAAC,EAAE,KAAK,CAAC,CAAC;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAC;AAIO,wDAAsB;AAH/B,iCAAA,sBAAsB,GAAG,UAAU,CAAC;IAChC,IAAA,kCAAU,EAAC,iBAAiB,CAAC;CAChC,EAAE,sBAAsB,CAAC,CAAC;AAE3B,8CAA8C"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ICalendarWriter.js.map
4
+ //# sourceMappingURL=ICalendarWriter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar/writers/ICalendarWriter.cjs","sourceRoot":"","sources":["calendar/writers/ICalendarWriter.js"],"names":[],"mappings":";;AACA,2CAA2C"}