@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.
- package/README.md +4 -0
- package/dist/integrations.cjs +1 -1
- package/docker/minio-compose.yml +1 -1
- package/jest.config.cjs +1 -11
- package/lib/cjs/blob/azure/AzureBlobEnvironment.cjs +25 -0
- package/lib/cjs/blob/azure/AzureBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +85 -10
- package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/azure/index.cjs +1 -0
- package/lib/cjs/blob/azure/index.cjs.map +1 -1
- package/lib/cjs/blob/core/BlobEnvironment.cjs +19 -0
- package/lib/cjs/blob/core/BlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/core/BlobStoreService.cjs +181 -3
- package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/core/index.cjs +1 -0
- package/lib/cjs/blob/core/index.cjs.map +1 -1
- package/lib/cjs/blob/gcp/GcsBlobEnvironment.cjs +26 -0
- package/lib/cjs/blob/gcp/GcsBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +63 -2
- package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/gcp/index.cjs +1 -0
- package/lib/cjs/blob/gcp/index.cjs.map +1 -1
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs +30 -0
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +68 -2
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/ipfs/index.cjs +1 -0
- package/lib/cjs/blob/ipfs/index.cjs.map +1 -1
- package/lib/cjs/blob/local/LocalBlobEnvironment.cjs +22 -0
- package/lib/cjs/blob/local/LocalBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs +59 -2
- package/lib/cjs/blob/local/LocalBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/local/index.cjs +1 -0
- package/lib/cjs/blob/local/index.cjs.map +1 -1
- package/lib/cjs/blob/memory/MemoryBlobEnvironment.cjs +21 -0
- package/lib/cjs/blob/memory/MemoryBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs +58 -2
- package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/memory/index.cjs +1 -0
- package/lib/cjs/blob/memory/index.cjs.map +1 -1
- package/lib/cjs/blob/s3/MinioBlobEnvironment.cjs +32 -0
- package/lib/cjs/blob/s3/MinioBlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs +45 -4
- package/lib/cjs/blob/s3/MinioBlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/R2BlobEnvironment.cjs +32 -0
- package/lib/cjs/blob/s3/R2BlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs +45 -4
- package/lib/cjs/blob/s3/R2BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3BlobEnvironment.cjs +32 -0
- package/lib/cjs/blob/s3/S3BlobEnvironment.cjs.map +1 -0
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs +43 -310
- package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -1
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs +358 -0
- package/lib/cjs/blob/s3/S3CompatibleBlobStoreService.cjs.map +1 -0
- package/lib/cjs/blob/s3/index.cjs +4 -0
- package/lib/cjs/blob/s3/index.cjs.map +1 -1
- package/lib/cjs/calendar/CalendarService.cjs +393 -0
- package/lib/cjs/calendar/CalendarService.cjs.map +1 -0
- package/lib/cjs/calendar/index.cjs +21 -0
- package/lib/cjs/calendar/index.cjs.map +1 -0
- package/lib/cjs/calendar/types.cjs.map +1 -0
- package/lib/cjs/calendar/validators/cron.cjs +58 -0
- package/lib/cjs/calendar/validators/cron.cjs.map +1 -0
- package/lib/cjs/calendar/writers/CalendarFsWriter.cjs +39 -0
- package/lib/cjs/calendar/writers/CalendarFsWriter.cjs.map +1 -0
- package/lib/cjs/calendar/writers/CalenderDownloader.cjs +47 -0
- package/lib/cjs/calendar/writers/CalenderDownloader.cjs.map +1 -0
- package/lib/cjs/calendar/writers/ICalendarWriter.cjs +4 -0
- package/lib/cjs/calendar/writers/ICalendarWriter.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +100 -0
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs +29 -0
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs +270 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs +169 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs +64 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs +17 -0
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs.map +1 -0
- package/lib/cjs/graph/engine/catalog/index.cjs +24 -0
- package/lib/cjs/graph/engine/catalog/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/constants.cjs +2 -2
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +1 -0
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +1 -1
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs +18 -0
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs.map +1 -0
- package/lib/cjs/graph/engine/errors/index.cjs +1 -0
- package/lib/cjs/graph/engine/errors/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/events/index.cjs +0 -1
- package/lib/cjs/graph/engine/events/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs +2 -2
- package/lib/cjs/graph/engine/execution/BreakGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs +10 -6
- package/lib/cjs/graph/engine/execution/CodeGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +30 -18
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +354 -73
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +3 -3
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs +9 -6
- package/lib/cjs/graph/engine/execution/LogGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs +11 -10
- package/lib/cjs/graph/engine/execution/SwitchGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/index.cjs +8 -11
- package/lib/cjs/graph/engine/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs +37 -12
- package/lib/cjs/graph/engine/loops/ForeachGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs +38 -13
- package/lib/cjs/graph/engine/loops/UntilGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs +38 -13
- package/lib/cjs/graph/engine/loops/WhileGraphNodeExecutor.cjs.map +1 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +2 -2
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +1 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +43 -14
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +1 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +1 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +79 -88
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +1 -1
- package/lib/cjs/graph/engine/planning/index.cjs +0 -1
- package/lib/cjs/graph/engine/planning/index.cjs.map +1 -1
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +28 -15
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +1 -1
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs +69 -0
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs +291 -0
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs +29 -0
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs +259 -0
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs +69 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs +26 -0
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/index.cjs +26 -0
- package/lib/cjs/graph/engine/runs/index.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/ownership.cjs +34 -0
- package/lib/cjs/graph/engine/runs/ownership.cjs.map +1 -0
- package/lib/cjs/graph/engine/runs/types.cjs +4 -0
- package/lib/cjs/graph/engine/runs/types.cjs.map +1 -0
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +2 -2
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs +142 -0
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs +160 -0
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +6 -10
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +1 -1
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs +166 -0
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs +86 -0
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +423 -0
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs +4 -0
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs +50 -0
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs +4 -0
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +478 -0
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -0
- package/lib/cjs/graph/engine/validation/index.cjs +12 -1
- package/lib/cjs/graph/engine/validation/index.cjs.map +1 -1
- package/lib/cjs/graph/index.cjs +4 -4
- package/lib/cjs/graph/log/GraphRunLogger.cjs +9 -6
- package/lib/cjs/graph/log/GraphRunLogger.cjs.map +1 -1
- package/lib/cjs/graph/log/LogParameters.cjs +13 -13
- package/lib/cjs/graph/log/LogParameters.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/nest/graph/GraphExecutionController.cjs +140 -16
- package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +94 -7
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +11 -0
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +63 -61
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +270 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphResultService.cjs +16 -1
- package/lib/cjs/nest/graph/GraphResultService.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +279 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphRunModel.cjs +83 -0
- package/lib/cjs/nest/graph/GraphRunModel.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphRunModelService.cjs +121 -0
- package/lib/cjs/nest/graph/GraphRunModelService.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +169 -0
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +162 -0
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs +12 -0
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs +23 -0
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs.map +1 -0
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +27 -1
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs +211 -8
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +1 -1
- package/lib/cjs/nest/graph/index.cjs +8 -0
- package/lib/cjs/nest/graph/index.cjs.map +1 -1
- package/lib/cjs/nest/graph/main.cjs +22 -5
- package/lib/cjs/nest/graph/main.cjs.map +1 -1
- package/lib/cjs/nest/keycloakModule.cjs +3 -1
- package/lib/cjs/nest/keycloakModule.cjs.map +1 -1
- package/lib/cjs/secrets/aws/AwsSecretEnvironment.cjs +27 -0
- package/lib/cjs/secrets/aws/AwsSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/aws/AwsSecretService.cjs +53 -19
- package/lib/cjs/secrets/aws/AwsSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/aws/index.cjs +1 -0
- package/lib/cjs/secrets/aws/index.cjs.map +1 -1
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs +45 -16
- package/lib/cjs/secrets/azure/AzureKeyVaultSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/azure/AzureSecretEnvironment.cjs +23 -0
- package/lib/cjs/secrets/azure/AzureSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/azure/index.cjs +1 -0
- package/lib/cjs/secrets/azure/index.cjs.map +1 -1
- package/lib/cjs/secrets/core/ClientBasedSecretService.cjs +29 -0
- package/lib/cjs/secrets/core/ClientBasedSecretService.cjs.map +1 -0
- package/lib/cjs/secrets/core/SecretEnvironment.cjs +19 -0
- package/lib/cjs/secrets/core/SecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/core/index.cjs +2 -0
- package/lib/cjs/secrets/core/index.cjs.map +1 -1
- package/lib/cjs/secrets/gcp/GcpSecretEnvironment.cjs +25 -0
- package/lib/cjs/secrets/gcp/GcpSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs +45 -17
- package/lib/cjs/secrets/gcp/GcpSecretManagerService.cjs.map +1 -1
- package/lib/cjs/secrets/gcp/index.cjs +1 -0
- package/lib/cjs/secrets/gcp/index.cjs.map +1 -1
- package/lib/cjs/secrets/model/ModelSecretEnvironment.cjs +21 -0
- package/lib/cjs/secrets/model/ModelSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/model/ModelSecretService.cjs +29 -3
- package/lib/cjs/secrets/model/ModelSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/model/index.cjs +1 -0
- package/lib/cjs/secrets/model/index.cjs.map +1 -1
- package/lib/cjs/secrets/onepassword/OnePasswordSecretEnvironment.cjs +24 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs +34 -3
- package/lib/cjs/secrets/onepassword/OnePasswordSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/onepassword/index.cjs +1 -0
- package/lib/cjs/secrets/onepassword/index.cjs.map +1 -1
- package/lib/cjs/secrets/vault/VaultSecretEnvironment.cjs +24 -0
- package/lib/cjs/secrets/vault/VaultSecretEnvironment.cjs.map +1 -0
- package/lib/cjs/secrets/vault/VaultSecretService.cjs +47 -16
- package/lib/cjs/secrets/vault/VaultSecretService.cjs.map +1 -1
- package/lib/cjs/secrets/vault/index.cjs +1 -0
- package/lib/cjs/secrets/vault/index.cjs.map +1 -1
- package/lib/cjs/sftp/aws/AwsSftpEnvironment.cjs +31 -0
- package/lib/cjs/sftp/aws/AwsSftpEnvironment.cjs.map +1 -0
- package/lib/cjs/sftp/aws/AwsSftpService.cjs +55 -5
- package/lib/cjs/sftp/aws/AwsSftpService.cjs.map +1 -1
- package/lib/cjs/sftp/core/SftpEnvironment.cjs +19 -0
- package/lib/cjs/sftp/core/SftpEnvironment.cjs.map +1 -0
- package/lib/cjs/sftp/core/SftpSource.cjs +10 -0
- package/lib/cjs/sftp/core/SftpSource.cjs.map +1 -1
- package/lib/cjs/sftp/core/index.cjs +1 -0
- package/lib/cjs/sftp/core/index.cjs.map +1 -1
- package/lib/cjs/sftp/index.cjs +3 -0
- package/lib/cjs/sftp/index.cjs.map +1 -1
- package/lib/cjs/sftp/ssh2/Ssh2SftpEnvironment.cjs +28 -0
- package/lib/cjs/sftp/ssh2/Ssh2SftpEnvironment.cjs.map +1 -0
- package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs +46 -5
- package/lib/cjs/sftp/ssh2/Ssh2SftpService.cjs.map +1 -1
- package/lib/cjs/shared/environmentValue.cjs +31 -0
- package/lib/cjs/shared/environmentValue.cjs.map +1 -0
- package/lib/esm/blob/azure/AzureBlobEnvironment.js +21 -0
- package/lib/esm/blob/azure/AzureBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/azure/AzureBlobStoreService.js +84 -12
- package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -1
- package/lib/esm/blob/azure/index.js +1 -0
- package/lib/esm/blob/azure/index.js.map +1 -1
- package/lib/esm/blob/core/BlobEnvironment.js +15 -0
- package/lib/esm/blob/core/BlobEnvironment.js.map +1 -0
- package/lib/esm/blob/core/BlobStoreService.js +181 -3
- package/lib/esm/blob/core/BlobStoreService.js.map +1 -1
- package/lib/esm/blob/core/index.js +1 -0
- package/lib/esm/blob/core/index.js.map +1 -1
- package/lib/esm/blob/gcp/GcsBlobEnvironment.js +22 -0
- package/lib/esm/blob/gcp/GcsBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/gcp/GcsBlobStoreService.js +61 -3
- package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/gcp/index.js +1 -0
- package/lib/esm/blob/gcp/index.js.map +1 -1
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js +26 -0
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +66 -3
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +1 -1
- package/lib/esm/blob/ipfs/index.js +1 -0
- package/lib/esm/blob/ipfs/index.js.map +1 -1
- package/lib/esm/blob/local/LocalBlobEnvironment.js +18 -0
- package/lib/esm/blob/local/LocalBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/local/LocalBlobStoreService.js +57 -3
- package/lib/esm/blob/local/LocalBlobStoreService.js.map +1 -1
- package/lib/esm/blob/local/index.js +1 -0
- package/lib/esm/blob/local/index.js.map +1 -1
- package/lib/esm/blob/memory/MemoryBlobEnvironment.js +17 -0
- package/lib/esm/blob/memory/MemoryBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/memory/MemoryBlobStoreService.js +56 -3
- package/lib/esm/blob/memory/MemoryBlobStoreService.js.map +1 -1
- package/lib/esm/blob/memory/index.js +1 -0
- package/lib/esm/blob/memory/index.js.map +1 -1
- package/lib/esm/blob/s3/MinioBlobEnvironment.js +28 -0
- package/lib/esm/blob/s3/MinioBlobEnvironment.js.map +1 -0
- package/lib/esm/blob/s3/MinioBlobStoreService.js +42 -4
- package/lib/esm/blob/s3/MinioBlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/R2BlobEnvironment.js +28 -0
- package/lib/esm/blob/s3/R2BlobEnvironment.js.map +1 -0
- package/lib/esm/blob/s3/R2BlobStoreService.js +42 -4
- package/lib/esm/blob/s3/R2BlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3BlobEnvironment.js +28 -0
- package/lib/esm/blob/s3/S3BlobEnvironment.js.map +1 -0
- package/lib/esm/blob/s3/S3BlobStoreService.js +41 -311
- package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -1
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js +353 -0
- package/lib/esm/blob/s3/S3CompatibleBlobStoreService.js.map +1 -0
- package/lib/esm/blob/s3/index.js +4 -0
- package/lib/esm/blob/s3/index.js.map +1 -1
- package/lib/esm/calendar/CalendarService.js +384 -0
- package/lib/esm/calendar/CalendarService.js.map +1 -0
- package/lib/esm/calendar/index.js +4 -0
- package/lib/esm/calendar/index.js.map +1 -0
- package/lib/esm/{graph/shared → calendar}/types.js.map +1 -1
- package/lib/esm/calendar/validators/cron.js +48 -0
- package/lib/esm/calendar/validators/cron.js.map +1 -0
- package/lib/esm/calendar/writers/CalendarFsWriter.js +31 -0
- package/lib/esm/calendar/writers/CalendarFsWriter.js.map +1 -0
- package/lib/esm/calendar/writers/CalenderDownloader.js +39 -0
- package/lib/esm/calendar/writers/CalenderDownloader.js.map +1 -0
- package/lib/esm/calendar/writers/ICalendarWriter.js +2 -0
- package/lib/esm/calendar/writers/ICalendarWriter.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +95 -0
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js +22 -0
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js +265 -0
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js +162 -0
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js +59 -0
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js.map +1 -0
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js +12 -0
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js.map +1 -0
- package/lib/esm/graph/engine/catalog/index.js +7 -0
- package/lib/esm/graph/engine/catalog/index.js.map +1 -0
- package/lib/esm/graph/engine/constants.js +2 -2
- package/lib/esm/graph/engine/errors/GraphExecutionError.js +1 -0
- package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +1 -1
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js +13 -0
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js.map +1 -0
- package/lib/esm/graph/engine/errors/index.js +1 -0
- package/lib/esm/graph/engine/errors/index.js.map +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +1 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +1 -1
- package/lib/esm/graph/engine/events/index.js +0 -1
- package/lib/esm/graph/engine/events/index.js.map +1 -1
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js +2 -2
- package/lib/esm/graph/engine/execution/BreakGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js +10 -6
- package/lib/esm/graph/engine/execution/CodeGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +28 -16
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +322 -41
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +1 -1
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js +3 -3
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +1 -1
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js +9 -6
- package/lib/esm/graph/engine/execution/LogGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js +11 -10
- package/lib/esm/graph/engine/execution/SwitchGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/index.js +8 -11
- package/lib/esm/graph/engine/index.js.map +1 -1
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js +32 -7
- package/lib/esm/graph/engine/loops/ForeachGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js +32 -7
- package/lib/esm/graph/engine/loops/UntilGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js +32 -7
- package/lib/esm/graph/engine/loops/WhileGraphNodeExecutor.js.map +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +2 -2
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +1 -1
- package/lib/esm/graph/engine/pinning/GraphPinningService.js +43 -14
- package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +3 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +1 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +79 -88
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +1 -1
- package/lib/esm/graph/engine/planning/index.js +0 -1
- package/lib/esm/graph/engine/planning/index.js.map +1 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +28 -15
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +1 -1
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js +64 -0
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js.map +1 -0
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js +286 -0
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js.map +1 -0
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js +25 -0
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js.map +1 -0
- package/lib/esm/graph/engine/runs/GraphRunService.js +254 -0
- package/lib/esm/graph/engine/runs/GraphRunService.js.map +1 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js +64 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js.map +1 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js +21 -0
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js.map +1 -0
- package/lib/esm/graph/engine/runs/index.js +9 -0
- package/lib/esm/graph/engine/runs/index.js.map +1 -0
- package/lib/esm/graph/engine/runs/ownership.js +30 -0
- package/lib/esm/graph/engine/runs/ownership.js.map +1 -0
- package/lib/esm/graph/engine/runs/types.js +2 -0
- package/lib/esm/graph/engine/runs/types.js.map +1 -0
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +1 -1
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +1 -1
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js +137 -0
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js +155 -0
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +6 -10
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +1 -1
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js +161 -0
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js +81 -0
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js +416 -0
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js +2 -0
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js +43 -0
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js +2 -0
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js.map +1 -0
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +472 -0
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -0
- package/lib/esm/graph/engine/validation/index.js +12 -1
- package/lib/esm/graph/engine/validation/index.js.map +1 -1
- package/lib/esm/graph/index.js +4 -4
- package/lib/esm/graph/log/GraphRunLogger.js +4 -1
- package/lib/esm/graph/log/GraphRunLogger.js.map +1 -1
- package/lib/esm/graph/log/LogParameters.js +1 -1
- package/lib/esm/graph/log/LogParameters.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/nest/graph/GraphExecutionController.js +143 -19
- package/lib/esm/nest/graph/GraphExecutionController.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutionModule.js +97 -10
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutionResultModel.js +11 -0
- package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +1 -1
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +62 -62
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +1 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +261 -0
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -0
- package/lib/esm/nest/graph/GraphResultService.js +16 -1
- package/lib/esm/nest/graph/GraphResultService.js.map +1 -1
- package/lib/esm/nest/graph/GraphRunController.js +270 -0
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -0
- package/lib/esm/nest/graph/GraphRunModel.js +74 -0
- package/lib/esm/nest/graph/GraphRunModel.js.map +1 -0
- package/lib/esm/nest/graph/GraphRunModelService.js +112 -0
- package/lib/esm/nest/graph/GraphRunModelService.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +164 -0
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js +153 -0
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js +8 -0
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowErrors.js +18 -0
- package/lib/esm/nest/graph/GraphWorkflowErrors.js.map +1 -0
- package/lib/esm/nest/graph/GraphWorkflowModel.js +27 -1
- package/lib/esm/nest/graph/GraphWorkflowModel.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowService.js +210 -8
- package/lib/esm/nest/graph/GraphWorkflowService.js.map +1 -1
- package/lib/esm/nest/graph/index.js +8 -0
- package/lib/esm/nest/graph/index.js.map +1 -1
- package/lib/esm/nest/graph/main.js +22 -5
- package/lib/esm/nest/graph/main.js.map +1 -1
- package/lib/esm/nest/keycloakModule.js +3 -1
- package/lib/esm/nest/keycloakModule.js.map +1 -1
- package/lib/esm/secrets/aws/AwsSecretEnvironment.js +23 -0
- package/lib/esm/secrets/aws/AwsSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/aws/AwsSecretService.js +39 -8
- package/lib/esm/secrets/aws/AwsSecretService.js.map +1 -1
- package/lib/esm/secrets/aws/index.js +1 -0
- package/lib/esm/secrets/aws/index.js.map +1 -1
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js +30 -4
- package/lib/esm/secrets/azure/AzureKeyVaultSecretService.js.map +1 -1
- package/lib/esm/secrets/azure/AzureSecretEnvironment.js +19 -0
- package/lib/esm/secrets/azure/AzureSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/azure/index.js +1 -0
- package/lib/esm/secrets/azure/index.js.map +1 -1
- package/lib/esm/secrets/core/ClientBasedSecretService.js +24 -0
- package/lib/esm/secrets/core/ClientBasedSecretService.js.map +1 -0
- package/lib/esm/secrets/core/SecretEnvironment.js +15 -0
- package/lib/esm/secrets/core/SecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/core/index.js +2 -0
- package/lib/esm/secrets/core/index.js.map +1 -1
- package/lib/esm/secrets/gcp/GcpSecretEnvironment.js +21 -0
- package/lib/esm/secrets/gcp/GcpSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js +30 -5
- package/lib/esm/secrets/gcp/GcpSecretManagerService.js.map +1 -1
- package/lib/esm/secrets/gcp/index.js +1 -0
- package/lib/esm/secrets/gcp/index.js.map +1 -1
- package/lib/esm/secrets/model/ModelSecretEnvironment.js +17 -0
- package/lib/esm/secrets/model/ModelSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/model/ModelSecretService.js +28 -5
- package/lib/esm/secrets/model/ModelSecretService.js.map +1 -1
- package/lib/esm/secrets/model/index.js +1 -0
- package/lib/esm/secrets/model/index.js.map +1 -1
- package/lib/esm/secrets/onepassword/OnePasswordSecretEnvironment.js +20 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js +33 -5
- package/lib/esm/secrets/onepassword/OnePasswordSecretService.js.map +1 -1
- package/lib/esm/secrets/onepassword/index.js +1 -0
- package/lib/esm/secrets/onepassword/index.js.map +1 -1
- package/lib/esm/secrets/vault/VaultSecretEnvironment.js +20 -0
- package/lib/esm/secrets/vault/VaultSecretEnvironment.js.map +1 -0
- package/lib/esm/secrets/vault/VaultSecretService.js +33 -5
- package/lib/esm/secrets/vault/VaultSecretService.js.map +1 -1
- package/lib/esm/secrets/vault/index.js +1 -0
- package/lib/esm/secrets/vault/index.js.map +1 -1
- package/lib/esm/sftp/aws/AwsSftpEnvironment.js +27 -0
- package/lib/esm/sftp/aws/AwsSftpEnvironment.js.map +1 -0
- package/lib/esm/sftp/aws/AwsSftpService.js +52 -6
- package/lib/esm/sftp/aws/AwsSftpService.js.map +1 -1
- package/lib/esm/sftp/core/SftpEnvironment.js +15 -0
- package/lib/esm/sftp/core/SftpEnvironment.js.map +1 -0
- package/lib/esm/sftp/core/SftpSource.js +12 -2
- package/lib/esm/sftp/core/SftpSource.js.map +1 -1
- package/lib/esm/sftp/core/index.js +1 -0
- package/lib/esm/sftp/core/index.js.map +1 -1
- package/lib/esm/sftp/index.js +3 -0
- package/lib/esm/sftp/index.js.map +1 -1
- package/lib/esm/sftp/ssh2/Ssh2SftpEnvironment.js +24 -0
- package/lib/esm/sftp/ssh2/Ssh2SftpEnvironment.js.map +1 -0
- package/lib/esm/sftp/ssh2/Ssh2SftpService.js +43 -6
- package/lib/esm/sftp/ssh2/Ssh2SftpService.js.map +1 -1
- package/lib/esm/shared/environmentValue.js +25 -0
- package/lib/esm/shared/environmentValue.js.map +1 -0
- package/lib/types/blob/azure/AzureBlobEnvironment.d.cts +25 -0
- package/lib/types/blob/azure/AzureBlobEnvironment.d.mts +25 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.cts +38 -0
- package/lib/types/blob/azure/AzureBlobStoreService.d.mts +38 -0
- package/lib/types/blob/azure/index.d.cts +1 -0
- package/lib/types/blob/azure/index.d.mts +1 -0
- package/lib/types/blob/core/BlobEnvironment.d.cts +11 -0
- package/lib/types/blob/core/BlobEnvironment.d.mts +11 -0
- package/lib/types/blob/core/BlobStoreService.d.cts +238 -1
- package/lib/types/blob/core/BlobStoreService.d.mts +238 -1
- package/lib/types/blob/core/index.d.cts +1 -0
- package/lib/types/blob/core/index.d.mts +1 -0
- package/lib/types/blob/gcp/GcsBlobEnvironment.d.cts +17 -0
- package/lib/types/blob/gcp/GcsBlobEnvironment.d.mts +17 -0
- package/lib/types/blob/gcp/GcsBlobStoreService.d.cts +36 -0
- package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +36 -0
- package/lib/types/blob/gcp/index.d.cts +1 -0
- package/lib/types/blob/gcp/index.d.mts +1 -0
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.cts +24 -0
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.mts +24 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +35 -0
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +35 -0
- package/lib/types/blob/ipfs/index.d.cts +1 -0
- package/lib/types/blob/ipfs/index.d.mts +1 -0
- package/lib/types/blob/local/LocalBlobEnvironment.d.cts +15 -0
- package/lib/types/blob/local/LocalBlobEnvironment.d.mts +15 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.cts +28 -0
- package/lib/types/blob/local/LocalBlobStoreService.d.mts +28 -0
- package/lib/types/blob/local/index.d.cts +1 -0
- package/lib/types/blob/local/index.d.mts +1 -0
- package/lib/types/blob/memory/MemoryBlobEnvironment.d.cts +14 -0
- package/lib/types/blob/memory/MemoryBlobEnvironment.d.mts +14 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.cts +28 -0
- package/lib/types/blob/memory/MemoryBlobStoreService.d.mts +28 -0
- package/lib/types/blob/memory/index.d.cts +1 -0
- package/lib/types/blob/memory/index.d.mts +1 -0
- package/lib/types/blob/s3/MinioBlobEnvironment.d.cts +11 -0
- package/lib/types/blob/s3/MinioBlobEnvironment.d.mts +11 -0
- package/lib/types/blob/s3/MinioBlobStoreService.d.cts +4 -7
- package/lib/types/blob/s3/MinioBlobStoreService.d.mts +4 -7
- package/lib/types/blob/s3/R2BlobEnvironment.d.cts +11 -0
- package/lib/types/blob/s3/R2BlobEnvironment.d.mts +11 -0
- package/lib/types/blob/s3/R2BlobStoreService.d.cts +4 -7
- package/lib/types/blob/s3/R2BlobStoreService.d.mts +4 -7
- package/lib/types/blob/s3/S3BlobEnvironment.d.cts +26 -0
- package/lib/types/blob/s3/S3BlobEnvironment.d.mts +26 -0
- package/lib/types/blob/s3/S3BlobStoreService.d.cts +4 -24
- package/lib/types/blob/s3/S3BlobStoreService.d.mts +4 -24
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.cts +58 -0
- package/lib/types/blob/s3/S3CompatibleBlobStoreService.d.mts +58 -0
- package/lib/types/blob/s3/index.d.cts +4 -0
- package/lib/types/blob/s3/index.d.mts +4 -0
- package/lib/types/calendar/CalendarService.d.cts +40 -0
- package/lib/types/calendar/CalendarService.d.mts +40 -0
- package/lib/types/calendar/index.d.cts +3 -0
- package/lib/types/calendar/index.d.mts +3 -0
- package/lib/types/calendar/types.d.cts +64 -0
- package/lib/types/calendar/types.d.mts +64 -0
- package/lib/types/calendar/validators/cron.d.cts +7 -0
- package/lib/types/calendar/validators/cron.d.mts +7 -0
- package/lib/types/calendar/writers/CalendarFsWriter.d.cts +6 -0
- package/lib/types/calendar/writers/CalendarFsWriter.d.mts +6 -0
- package/lib/types/calendar/writers/CalenderDownloader.d.cts +6 -0
- package/lib/types/calendar/writers/CalenderDownloader.d.mts +6 -0
- package/lib/types/calendar/writers/ICalendarWriter.d.cts +5 -0
- package/lib/types/calendar/writers/ICalendarWriter.d.mts +5 -0
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +17 -0
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +17 -0
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.cts +13 -0
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.mts +13 -0
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.cts +71 -0
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.mts +71 -0
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.cts +42 -0
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.mts +42 -0
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.cts +22 -0
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.mts +22 -0
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.cts +68 -0
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.mts +68 -0
- package/lib/types/graph/engine/catalog/index.d.cts +6 -0
- package/lib/types/graph/engine/catalog/index.d.mts +6 -0
- package/lib/types/graph/engine/constants.d.cts +2 -2
- package/lib/types/graph/engine/constants.d.mts +2 -2
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.cts +9 -0
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.mts +9 -0
- package/lib/types/graph/engine/errors/index.d.cts +1 -0
- package/lib/types/graph/engine/errors/index.d.mts +1 -0
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.cts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.mts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.cts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.mts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.cts +1 -1
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.mts +1 -1
- package/lib/types/graph/engine/events/index.d.cts +0 -1
- package/lib/types/graph/engine/events/index.d.mts +0 -1
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/execution/BreakGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/execution/CodeGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +28 -14
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +28 -14
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +106 -23
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +106 -23
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +2 -1
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +2 -1
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.cts +3 -3
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.mts +3 -3
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.cts +17 -9
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.mts +17 -9
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.cts +3 -3
- package/lib/types/graph/engine/execution/LogGraphNodeExecutor.d.mts +3 -3
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/execution/SwitchGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/index.d.cts +6 -9
- package/lib/types/graph/engine/index.d.mts +6 -9
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.cts +1 -1
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.mts +1 -1
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/loops/ForeachGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.cts +1 -1
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.mts +1 -1
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/loops/UntilGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.cts +2 -2
- package/lib/types/graph/engine/loops/WhileGraphNodeExecutor.d.mts +2 -2
- package/lib/types/graph/engine/pinning/GraphPinningService.d.cts +16 -5
- package/lib/types/graph/engine/pinning/GraphPinningService.d.mts +16 -5
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.cts +8 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.mts +8 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.cts +9 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.mts +9 -4
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.cts +17 -9
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.mts +17 -9
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.cts +21 -33
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.mts +21 -33
- package/lib/types/graph/engine/planning/index.d.cts +0 -1
- package/lib/types/graph/engine/planning/index.d.mts +0 -1
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.cts +22 -8
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.mts +22 -8
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.cts +26 -0
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.mts +26 -0
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.cts +75 -0
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.mts +75 -0
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.cts +8 -0
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.mts +8 -0
- package/lib/types/graph/engine/runs/GraphRunService.d.cts +93 -0
- package/lib/types/graph/engine/runs/GraphRunService.d.mts +93 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.cts +28 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.mts +28 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.cts +12 -0
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.mts +12 -0
- package/lib/types/graph/engine/runs/index.d.cts +8 -0
- package/lib/types/graph/engine/runs/index.d.mts +8 -0
- package/lib/types/graph/engine/runs/ownership.d.cts +25 -0
- package/lib/types/graph/engine/runs/ownership.d.mts +25 -0
- package/lib/types/graph/engine/runs/types.d.cts +83 -0
- package/lib/types/graph/engine/runs/types.d.mts +83 -0
- package/lib/types/graph/engine/types.d.cts +37 -12
- package/lib/types/graph/engine/types.d.mts +37 -12
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.cts +32 -0
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.mts +32 -0
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.cts +62 -0
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.mts +62 -0
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.cts +11 -9
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.mts +11 -9
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.cts +32 -0
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.mts +32 -0
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.cts +37 -0
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.mts +37 -0
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +92 -0
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +92 -0
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.cts +66 -0
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.mts +66 -0
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.cts +34 -0
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.mts +34 -0
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.cts +39 -0
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.mts +39 -0
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.cts +162 -0
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.mts +162 -0
- package/lib/types/graph/engine/validation/index.d.cts +12 -1
- package/lib/types/graph/engine/validation/index.d.mts +12 -1
- package/lib/types/graph/index.d.cts +4 -4
- package/lib/types/graph/index.d.mts +4 -4
- package/lib/types/graph/log/GraphRunLogger.d.cts +5 -1
- package/lib/types/graph/log/GraphRunLogger.d.mts +5 -1
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/nest/graph/GraphExecutionController.d.cts +83 -4
- package/lib/types/nest/graph/GraphExecutionController.d.mts +83 -4
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +64 -0
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +64 -0
- package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +12 -0
- package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +12 -0
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +42 -28
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +42 -28
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +70 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +70 -0
- package/lib/types/nest/graph/GraphResultService.d.cts +12 -0
- package/lib/types/nest/graph/GraphResultService.d.mts +12 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +87 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +87 -0
- package/lib/types/nest/graph/GraphRunModel.d.cts +22 -0
- package/lib/types/nest/graph/GraphRunModel.d.mts +22 -0
- package/lib/types/nest/graph/GraphRunModelService.d.cts +21 -0
- package/lib/types/nest/graph/GraphRunModelService.d.mts +21 -0
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.cts +28 -0
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.mts +28 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +62 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +62 -0
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.cts +33 -0
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.mts +33 -0
- package/lib/types/nest/graph/GraphWorkflowErrors.d.cts +13 -0
- package/lib/types/nest/graph/GraphWorkflowErrors.d.mts +13 -0
- package/lib/types/nest/graph/GraphWorkflowModel.d.cts +19 -1
- package/lib/types/nest/graph/GraphWorkflowModel.d.mts +19 -1
- package/lib/types/nest/graph/GraphWorkflowService.d.cts +48 -1
- package/lib/types/nest/graph/GraphWorkflowService.d.mts +48 -1
- package/lib/types/nest/graph/index.d.cts +8 -0
- package/lib/types/nest/graph/index.d.mts +8 -0
- package/lib/types/nest/keycloakModule.d.cts +9 -1
- package/lib/types/nest/keycloakModule.d.mts +9 -1
- package/lib/types/secrets/aws/AwsSecretEnvironment.d.cts +21 -0
- package/lib/types/secrets/aws/AwsSecretEnvironment.d.mts +21 -0
- package/lib/types/secrets/aws/AwsSecretService.d.cts +4 -3
- package/lib/types/secrets/aws/AwsSecretService.d.mts +4 -3
- package/lib/types/secrets/aws/index.d.cts +1 -0
- package/lib/types/secrets/aws/index.d.mts +1 -0
- package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.cts +4 -3
- package/lib/types/secrets/azure/AzureKeyVaultSecretService.d.mts +4 -3
- package/lib/types/secrets/azure/AzureSecretEnvironment.d.cts +14 -0
- package/lib/types/secrets/azure/AzureSecretEnvironment.d.mts +14 -0
- package/lib/types/secrets/azure/index.d.cts +1 -0
- package/lib/types/secrets/azure/index.d.mts +1 -0
- package/lib/types/secrets/core/ClientBasedSecretService.d.cts +20 -0
- package/lib/types/secrets/core/ClientBasedSecretService.d.mts +20 -0
- package/lib/types/secrets/core/SecretEnvironment.d.cts +11 -0
- package/lib/types/secrets/core/SecretEnvironment.d.mts +11 -0
- package/lib/types/secrets/core/index.d.cts +2 -0
- package/lib/types/secrets/core/index.d.mts +2 -0
- package/lib/types/secrets/gcp/GcpSecretEnvironment.d.cts +16 -0
- package/lib/types/secrets/gcp/GcpSecretEnvironment.d.mts +16 -0
- package/lib/types/secrets/gcp/GcpSecretManagerService.d.cts +4 -3
- package/lib/types/secrets/gcp/GcpSecretManagerService.d.mts +4 -3
- package/lib/types/secrets/gcp/index.d.cts +1 -0
- package/lib/types/secrets/gcp/index.d.mts +1 -0
- package/lib/types/secrets/model/ModelSecretEnvironment.d.cts +14 -0
- package/lib/types/secrets/model/ModelSecretEnvironment.d.mts +14 -0
- package/lib/types/secrets/model/ModelSecretService.d.cts +4 -3
- package/lib/types/secrets/model/ModelSecretService.d.mts +4 -3
- package/lib/types/secrets/model/ModelSecretServiceConfig.d.cts +2 -1
- package/lib/types/secrets/model/ModelSecretServiceConfig.d.mts +2 -1
- package/lib/types/secrets/model/index.d.cts +1 -0
- package/lib/types/secrets/model/index.d.mts +1 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretEnvironment.d.cts +17 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretEnvironment.d.mts +17 -0
- package/lib/types/secrets/onepassword/OnePasswordSecretService.d.cts +4 -3
- package/lib/types/secrets/onepassword/OnePasswordSecretService.d.mts +4 -3
- package/lib/types/secrets/onepassword/index.d.cts +1 -0
- package/lib/types/secrets/onepassword/index.d.mts +1 -0
- package/lib/types/secrets/vault/VaultSecretEnvironment.d.cts +17 -0
- package/lib/types/secrets/vault/VaultSecretEnvironment.d.mts +17 -0
- package/lib/types/secrets/vault/VaultSecretService.d.cts +4 -3
- package/lib/types/secrets/vault/VaultSecretService.d.mts +4 -3
- package/lib/types/secrets/vault/index.d.cts +1 -0
- package/lib/types/secrets/vault/index.d.mts +1 -0
- package/lib/types/sftp/aws/AwsSftpEnvironment.d.cts +24 -0
- package/lib/types/sftp/aws/AwsSftpEnvironment.d.mts +24 -0
- package/lib/types/sftp/aws/AwsSftpService.d.cts +1 -0
- package/lib/types/sftp/aws/AwsSftpService.d.mts +1 -0
- package/lib/types/sftp/core/SftpEnvironment.d.cts +11 -0
- package/lib/types/sftp/core/SftpEnvironment.d.mts +11 -0
- package/lib/types/sftp/core/SftpSource.d.cts +7 -0
- package/lib/types/sftp/core/SftpSource.d.mts +7 -0
- package/lib/types/sftp/core/index.d.cts +1 -0
- package/lib/types/sftp/core/index.d.mts +1 -0
- package/lib/types/sftp/index.d.cts +3 -0
- package/lib/types/sftp/index.d.mts +3 -0
- package/lib/types/sftp/ssh2/Ssh2SftpEnvironment.d.cts +21 -0
- package/lib/types/sftp/ssh2/Ssh2SftpEnvironment.d.mts +21 -0
- package/lib/types/sftp/ssh2/Ssh2SftpService.d.cts +1 -0
- package/lib/types/sftp/ssh2/Ssh2SftpService.d.mts +1 -0
- package/lib/types/shared/environmentValue.d.cts +16 -0
- package/lib/types/shared/environmentValue.d.mts +16 -0
- package/package.json +19 -17
- package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs +0 -4
- package/lib/cjs/graph/engine/events/GraphExecutionEvent.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs +0 -172
- package/lib/cjs/graph/engine/planning/GraphRelationResolver.cjs.map +0 -1
- package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs +0 -97
- package/lib/cjs/graph/shared/GraphExecutionStateMapper.cjs.map +0 -1
- package/lib/cjs/graph/shared/constants.cjs +0 -99
- package/lib/cjs/graph/shared/constants.cjs.map +0 -1
- package/lib/cjs/graph/shared/index.cjs +0 -46
- package/lib/cjs/graph/shared/index.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/agent.cjs +0 -110
- package/lib/cjs/graph/shared/nodes/agent.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/base.cjs +0 -36
- package/lib/cjs/graph/shared/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/category-styles.cjs +0 -38
- package/lib/cjs/graph/shared/nodes/category-styles.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/flow-control.cjs +0 -630
- package/lib/cjs/graph/shared/nodes/flow-control.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/index.cjs +0 -35
- package/lib/cjs/graph/shared/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/shared/nodes/triggers.cjs +0 -250
- package/lib/cjs/graph/shared/nodes/triggers.cjs.map +0 -1
- package/lib/cjs/graph/shared/types.cjs.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionEvent.js +0 -2
- package/lib/esm/graph/engine/events/GraphExecutionEvent.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphRelationResolver.js +0 -167
- package/lib/esm/graph/engine/planning/GraphRelationResolver.js.map +0 -1
- package/lib/esm/graph/shared/GraphExecutionStateMapper.js +0 -91
- package/lib/esm/graph/shared/GraphExecutionStateMapper.js.map +0 -1
- package/lib/esm/graph/shared/constants.js +0 -135
- package/lib/esm/graph/shared/constants.js.map +0 -1
- package/lib/esm/graph/shared/index.js +0 -25
- package/lib/esm/graph/shared/index.js.map +0 -1
- package/lib/esm/graph/shared/nodes/agent.js +0 -101
- package/lib/esm/graph/shared/nodes/agent.js.map +0 -1
- package/lib/esm/graph/shared/nodes/base.js +0 -31
- package/lib/esm/graph/shared/nodes/base.js.map +0 -1
- package/lib/esm/graph/shared/nodes/category-styles.js +0 -34
- package/lib/esm/graph/shared/nodes/category-styles.js.map +0 -1
- package/lib/esm/graph/shared/nodes/flow-control.js +0 -621
- package/lib/esm/graph/shared/nodes/flow-control.js.map +0 -1
- package/lib/esm/graph/shared/nodes/index.js +0 -18
- package/lib/esm/graph/shared/nodes/index.js.map +0 -1
- package/lib/esm/graph/shared/nodes/triggers.js +0 -241
- package/lib/esm/graph/shared/nodes/triggers.js.map +0 -1
- package/lib/types/graph/engine/events/GraphExecutionEvent.d.cts +0 -6
- package/lib/types/graph/engine/events/GraphExecutionEvent.d.mts +0 -6
- package/lib/types/graph/engine/planning/GraphRelationResolver.d.cts +0 -62
- package/lib/types/graph/engine/planning/GraphRelationResolver.d.mts +0 -62
- package/lib/types/graph/shared/GraphExecutionStateMapper.d.cts +0 -66
- package/lib/types/graph/shared/GraphExecutionStateMapper.d.mts +0 -66
- package/lib/types/graph/shared/constants.d.cts +0 -120
- package/lib/types/graph/shared/constants.d.mts +0 -120
- package/lib/types/graph/shared/index.d.cts +0 -21
- package/lib/types/graph/shared/index.d.mts +0 -21
- package/lib/types/graph/shared/nodes/agent.d.cts +0 -44
- package/lib/types/graph/shared/nodes/agent.d.mts +0 -44
- package/lib/types/graph/shared/nodes/base.d.cts +0 -28
- package/lib/types/graph/shared/nodes/base.d.mts +0 -28
- package/lib/types/graph/shared/nodes/category-styles.d.cts +0 -8
- package/lib/types/graph/shared/nodes/category-styles.d.mts +0 -8
- package/lib/types/graph/shared/nodes/flow-control.d.cts +0 -163
- package/lib/types/graph/shared/nodes/flow-control.d.mts +0 -163
- package/lib/types/graph/shared/nodes/index.d.cts +0 -17
- package/lib/types/graph/shared/nodes/index.d.mts +0 -17
- package/lib/types/graph/shared/nodes/triggers.d.cts +0 -53
- package/lib/types/graph/shared/nodes/triggers.d.mts +0 -53
- package/lib/types/graph/shared/types.d.cts +0 -257
- package/lib/types/graph/shared/types.d.mts +0 -257
- /package/lib/cjs/{graph/shared → calendar}/types.cjs +0 -0
- /package/lib/esm/{graph/shared → calendar}/types.js +0 -0
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphRunService = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @module integrations/graph/engine/runs/GraphRunService
|
|
6
|
+
* @summary Graph run lifecycle service (DECAF-50 §4.16).
|
|
7
|
+
* @description Creates, tracks, cancels, and observes graph runs on top of a
|
|
8
|
+
* {@link GraphRunStore} and {@link GraphRunEventStore}: per-caller run
|
|
9
|
+
* limits (concurrency buckets keyed by owner or caller key, timeout, event
|
|
10
|
+
* payload size), fail-closed ownership scoping on every read/cancel,
|
|
11
|
+
* event-state auto-release after the replay window (SAA-595), and the
|
|
12
|
+
* sequenced event stream the SSE controller replays.
|
|
13
|
+
*/
|
|
14
|
+
const db_decorators_1 = require("@decaf-ts/db-decorators");
|
|
15
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
16
|
+
const index_js_1 = require("./index.cjs");
|
|
17
|
+
const GraphRunFingerprint_js_1 = require("./GraphRunFingerprint.cjs");
|
|
18
|
+
const graph_2 = require("@decaf-ts/ui-decorators/graph");
|
|
19
|
+
const ownership_js_1 = require("./ownership.cjs");
|
|
20
|
+
/**
|
|
21
|
+
* Run lifecycle service (DECAF-50 §4.16): creates, tracks, cancels, and
|
|
22
|
+
* observes graph runs on top of a {@link GraphRunStore} and
|
|
23
|
+
* {@link GraphRunEventStore}. Enforces per-caller run limits (concurrency
|
|
24
|
+
* buckets keyed by owner or caller key, timeout, event payload size), scopes
|
|
25
|
+
* every read/cancel to the owning user, auto-releases retained event state
|
|
26
|
+
* after the configured replay window (SAA-595), and exposes the sequenced
|
|
27
|
+
* event stream the SSE controller replays.
|
|
28
|
+
*/
|
|
29
|
+
class GraphRunService {
|
|
30
|
+
constructor(engine, runStore, eventStore, options = {}) {
|
|
31
|
+
this.activeByCaller = new Map();
|
|
32
|
+
this.callerKeysByRun = new Map();
|
|
33
|
+
this.releaseTimers = new Map();
|
|
34
|
+
this.engine = engine;
|
|
35
|
+
this.runStore = runStore;
|
|
36
|
+
this.eventStore = eventStore;
|
|
37
|
+
this.publisher = new index_js_1.GraphRunEventPublisher(eventStore, options.limits);
|
|
38
|
+
this.executor = new index_js_1.GraphRunExecutor(engine, runStore, this.publisher, { onRunCompleted: options.onRunCompleted }, options.limits);
|
|
39
|
+
this.options = {
|
|
40
|
+
...options,
|
|
41
|
+
limits: { ...graph_2.DEFAULT_GRAPH_RUN_LIMITS, ...options.limits },
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/** Effective run limits, with defaults applied. */
|
|
45
|
+
get limits() {
|
|
46
|
+
return this.options.limits;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Creates and schedules a run for a saved `workflowId` or an inline
|
|
50
|
+
* workflow document, enforcing the per-caller concurrency limit and
|
|
51
|
+
* ownership bookkeeping. Returns the queued run immediately; execution
|
|
52
|
+
* continues in the background.
|
|
53
|
+
*
|
|
54
|
+
* `concurrencyKey` buckets anonymous callers for the per-caller
|
|
55
|
+
* concurrency cap (e.g. a per-IP key from the HTTP layer); it defaults to
|
|
56
|
+
* the owner user, or `"anonymous"` when both are absent.
|
|
57
|
+
*
|
|
58
|
+
* @throws ValidationError when the request carries no workflow identity, a
|
|
59
|
+
* `workflowId` without a configured resolver, or the per-caller concurrency
|
|
60
|
+
* limit is exhausted.
|
|
61
|
+
*/
|
|
62
|
+
async createRun(request, ownerUser, concurrencyKey, ...args) {
|
|
63
|
+
this.validateCreateRequest(request);
|
|
64
|
+
const workflowId = request.workflowId ?? request.workflow?.id ?? "";
|
|
65
|
+
if (!workflowId) {
|
|
66
|
+
throw new db_decorators_1.ValidationError("Graph run request must carry a workflow document with an id or a saved workflowId");
|
|
67
|
+
}
|
|
68
|
+
if (request.workflowId && !this.options.documentResolver) {
|
|
69
|
+
throw new db_decorators_1.ValidationError("Graph run requests by workflowId require a document resolver");
|
|
70
|
+
}
|
|
71
|
+
const callerKey = concurrencyKey ?? ownerUser ?? "anonymous";
|
|
72
|
+
const activeForCaller = this.activeByCaller.get(callerKey) ?? new Set();
|
|
73
|
+
if (activeForCaller.size >= this.options.limits.maxConcurrentRuns) {
|
|
74
|
+
throw new db_decorators_1.ValidationError(`Graph run rejected: the configured limit of ${this.options.limits.maxConcurrentRuns} concurrent runs per caller is exhausted`);
|
|
75
|
+
}
|
|
76
|
+
const runId = this.generateRunId();
|
|
77
|
+
const run = {
|
|
78
|
+
runId,
|
|
79
|
+
workflowId,
|
|
80
|
+
ownerUser,
|
|
81
|
+
status: "queued",
|
|
82
|
+
createdAt: new Date().toISOString(),
|
|
83
|
+
};
|
|
84
|
+
this.executor.begin(runId);
|
|
85
|
+
await this.runStore.saveRun({ ...run }, ...args);
|
|
86
|
+
const provider = this.documentProviderFor(request, ownerUser);
|
|
87
|
+
activeForCaller.add(runId);
|
|
88
|
+
this.activeByCaller.set(callerKey, activeForCaller);
|
|
89
|
+
this.callerKeysByRun.set(runId, callerKey);
|
|
90
|
+
const completion = this.executor.schedule(run, provider, request.inputs ?? {}, ...args);
|
|
91
|
+
void completion
|
|
92
|
+
.catch(() => undefined)
|
|
93
|
+
.finally(() => this.finishActiveRun(runId));
|
|
94
|
+
return run;
|
|
95
|
+
}
|
|
96
|
+
/** Reads a run, asserting it belongs to `ownerUser`. */
|
|
97
|
+
async getRun(runId, ownerUser, ...args) {
|
|
98
|
+
const run = await this.runStore.readRun(runId, ...args);
|
|
99
|
+
if (!run) {
|
|
100
|
+
throw new db_decorators_1.NotFoundError(`No graph run found for runId '${runId}'`);
|
|
101
|
+
}
|
|
102
|
+
this.assertOwnership(run, ownerUser);
|
|
103
|
+
return run;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Cancels a non-terminal run: aborts in-flight execution and persists the
|
|
107
|
+
* `cancelled` status. Terminal runs are returned unchanged.
|
|
108
|
+
*/
|
|
109
|
+
async cancelRun(runId, ownerUser, ...args) {
|
|
110
|
+
const run = await this.runStore.readRun(runId, ...args);
|
|
111
|
+
if (!run) {
|
|
112
|
+
throw new db_decorators_1.NotFoundError(`No graph run found for runId '${runId}'`);
|
|
113
|
+
}
|
|
114
|
+
this.assertOwnership(run, ownerUser);
|
|
115
|
+
if ((0, graph_2.isGraphRunTerminalStatus)(run.status)) {
|
|
116
|
+
return run;
|
|
117
|
+
}
|
|
118
|
+
this.executor.abort(runId, "user");
|
|
119
|
+
run.status = "cancelled";
|
|
120
|
+
run.finishedAt = new Date().toISOString();
|
|
121
|
+
await this.runStore.saveRun({ ...run }, ...args);
|
|
122
|
+
return run;
|
|
123
|
+
}
|
|
124
|
+
/** Lists a run's event envelopes after the given sequence (ownership-checked). */
|
|
125
|
+
async listEvents(runId, afterSequence, ownerUser, ...args) {
|
|
126
|
+
await this.getRun(runId, ownerUser, ...args);
|
|
127
|
+
return this.eventStore.listAfter(runId, afterSequence);
|
|
128
|
+
}
|
|
129
|
+
/** Subscribes a live listener to a run's event stream (ownership-checked); returns an unsubscribe function. */
|
|
130
|
+
async subscribeEvents(runId, ownerUser, listener, ...args) {
|
|
131
|
+
await this.getRun(runId, ownerUser, ...args);
|
|
132
|
+
return this.eventStore.subscribe(runId, listener);
|
|
133
|
+
}
|
|
134
|
+
/** Subscribes a listener to a run's event stream without re-reading the run. */
|
|
135
|
+
subscribeRunEvents(run, listener) {
|
|
136
|
+
return this.eventStore.subscribe(run.runId, listener);
|
|
137
|
+
}
|
|
138
|
+
/** Waits for a scheduled run to finish, then returns its final state. */
|
|
139
|
+
async waitForRun(runId, ownerUser, ...args) {
|
|
140
|
+
const completion = this.executor.waitFor(runId);
|
|
141
|
+
if (completion)
|
|
142
|
+
await completion;
|
|
143
|
+
return this.getRun(runId, ownerUser, ...args);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Convenience helper: creates a run and waits for its completion. The
|
|
147
|
+
* optional `concurrencyKey` is forwarded to {@link createRun} to bucket
|
|
148
|
+
* anonymous callers for the per-caller concurrency cap.
|
|
149
|
+
*/
|
|
150
|
+
async executeAndWait(request, ownerUser, concurrencyKey, ...args) {
|
|
151
|
+
const run = await this.createRun(request, ownerUser, concurrencyKey, ...args);
|
|
152
|
+
return this.waitForRun(run.runId, ownerUser, ...args);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Releases all per-run bookkeeping for a finished run: caller-bucket
|
|
156
|
+
* membership, executor state, publisher sequencing, retained event state,
|
|
157
|
+
* and any pending auto-release timer.
|
|
158
|
+
*/
|
|
159
|
+
release(runId) {
|
|
160
|
+
this.finishActiveRun(runId);
|
|
161
|
+
const pending = this.releaseTimers.get(runId);
|
|
162
|
+
if (pending) {
|
|
163
|
+
clearTimeout(pending);
|
|
164
|
+
this.releaseTimers.delete(runId);
|
|
165
|
+
}
|
|
166
|
+
this.executor.release(runId);
|
|
167
|
+
this.eventStore.release?.(runId);
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Removes a run from its caller's concurrency bucket and schedules event
|
|
171
|
+
* state release after the configured replay window.
|
|
172
|
+
*/
|
|
173
|
+
finishActiveRun(runId) {
|
|
174
|
+
const callerKey = this.callerKeysByRun.get(runId);
|
|
175
|
+
if (callerKey !== undefined) {
|
|
176
|
+
this.callerKeysByRun.delete(runId);
|
|
177
|
+
const bucket = this.activeByCaller.get(callerKey);
|
|
178
|
+
if (bucket) {
|
|
179
|
+
bucket.delete(runId);
|
|
180
|
+
if (bucket.size === 0)
|
|
181
|
+
this.activeByCaller.delete(callerKey);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (this.releaseTimers.has(runId))
|
|
185
|
+
return;
|
|
186
|
+
const timer = setTimeout(() => {
|
|
187
|
+
this.releaseTimers.delete(runId);
|
|
188
|
+
this.release(runId);
|
|
189
|
+
}, this.options.limits.eventReplayWindowMs);
|
|
190
|
+
timer.unref?.();
|
|
191
|
+
this.releaseTimers.set(runId, timer);
|
|
192
|
+
}
|
|
193
|
+
validateCreateRequest(request) {
|
|
194
|
+
if (!request || typeof request !== "object" || Array.isArray(request)) {
|
|
195
|
+
throw new db_decorators_1.ValidationError("Graph run request must be an object carrying either a workflow document or a workflowId plus inputs");
|
|
196
|
+
}
|
|
197
|
+
const hasDocument = request.workflow !== undefined;
|
|
198
|
+
const hasWorkflowId = request.workflowId !== undefined;
|
|
199
|
+
if (hasDocument && hasWorkflowId) {
|
|
200
|
+
throw new db_decorators_1.ValidationError("Graph run request is ambiguous: supply either an unsaved workflow document or a saved workflowId, not both");
|
|
201
|
+
}
|
|
202
|
+
if (!hasDocument && !hasWorkflowId) {
|
|
203
|
+
throw new db_decorators_1.ValidationError("Graph run request must supply either an unsaved workflow document or a saved workflowId");
|
|
204
|
+
}
|
|
205
|
+
if (hasDocument && !(0, graph_1.isGraphWorkflowDocumentShape)(request.workflow)) {
|
|
206
|
+
throw new db_decorators_1.ValidationError("Graph run request carries a payload that is not a canonical GraphWorkflowDocument");
|
|
207
|
+
}
|
|
208
|
+
if (request.inputs !== undefined && !(0, graph_1.isGraphJsonSafeValue)(request.inputs)) {
|
|
209
|
+
throw new db_decorators_1.ValidationError("Graph run inputs must be JSON-safe: functions, class instances, undefined, NaN/Infinity, symbol keys and unsafe prototype keys (__proto__/prototype/constructor) are rejected");
|
|
210
|
+
}
|
|
211
|
+
const bytes = safeJsonLength(request);
|
|
212
|
+
if (bytes > this.options.limits.maxRequestBytes) {
|
|
213
|
+
throw new db_decorators_1.ValidationError(`Graph run request of ${bytes} bytes exceeds the configured limit of ${this.options.limits.maxRequestBytes} bytes`);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
documentProviderFor(request, ownerUser) {
|
|
217
|
+
if (request.workflow) {
|
|
218
|
+
const document = request.workflow;
|
|
219
|
+
return async () => ({
|
|
220
|
+
document,
|
|
221
|
+
fingerprint: (0, GraphRunFingerprint_js_1.graphRunDocumentFingerprint)(document),
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
const workflowId = request.workflowId;
|
|
225
|
+
return async (...args) => {
|
|
226
|
+
const resolver = this.options.documentResolver;
|
|
227
|
+
if (!resolver) {
|
|
228
|
+
throw new db_decorators_1.ValidationError("Graph run requests by workflowId require a document resolver");
|
|
229
|
+
}
|
|
230
|
+
const document = await resolver.resolve(workflowId, ownerUser, ...args);
|
|
231
|
+
return {
|
|
232
|
+
document,
|
|
233
|
+
fingerprint: (0, GraphRunFingerprint_js_1.graphRunDocumentFingerprint)(document),
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
assertOwnership(run, ownerUser) {
|
|
238
|
+
(0, ownership_js_1.assertGraphResourceOwnership)({ owner: run.ownerUser }, ownerUser, {
|
|
239
|
+
allowAnonymousAccess: this.options.allowAnonymousAccess === true,
|
|
240
|
+
resourceKind: "Graph run",
|
|
241
|
+
resourceId: run.runId,
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
generateRunId() {
|
|
245
|
+
return (globalThis.crypto?.randomUUID?.() ??
|
|
246
|
+
`graph-run-${Date.now()}-${Math.random().toString(36).slice(2)}`);
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
exports.GraphRunService = GraphRunService;
|
|
250
|
+
function safeJsonLength(value) {
|
|
251
|
+
try {
|
|
252
|
+
return JSON.stringify(value)?.length ?? 0;
|
|
253
|
+
}
|
|
254
|
+
catch {
|
|
255
|
+
return Number.MAX_SAFE_INTEGER;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=GraphRunService.js.map
|
|
259
|
+
//# sourceMappingURL=GraphRunService.cjs.map
|
|
@@ -0,0 +1 @@
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R,WAAW,EAAE,IAAA,oDAA2B,EAAC,QAAQ,CAAC;aACrD,CAAC;QACN,CAAC,CAAC;IACN,CAAC;IACD,eAAe,CAAC,GAAG,EAAE,SAAS;QAC1B,IAAA,2CAA4B,EAAC,EAAE,KAAK,EAAE,GAAG,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE;YAC9D,oBAAoB,EAAE,IAAI,CAAC,OAAO,CAAC,oBAAoB,KAAK,IAAI;YAChE,YAAY,EAAE,WAAW;YACzB,UAAU,EAAE,GAAG,CAAC,KAAK;SACxB,CAAC,CAAC;IACP,CAAC;IACD,aAAa;QACT,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YACrC,aAAa,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1E,CAAC;CACJ;AA3ND,0CA2NC;AACD,SAAS,cAAc,CAAC,KAAK;IACzB,IAAI,CAAC;QACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC,CAAC;IAC9C,CAAC;IACD,MAAM,CAAC;QACH,OAAO,MAAM,CAAC,gBAAgB,CAAC;IACnC,CAAC;AACL,CAAC;AACD,2CAA2C"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InMemoryGraphRunEventStore = void 0;
|
|
4
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
5
|
+
/**
|
|
6
|
+
* Non-persistent {@link GraphRunEventStore} backed by per-run arrays:
|
|
7
|
+
* appends notify live subscribers, `listAfter` serves SSE replays, and
|
|
8
|
+
* retention keeps at most `maxEventsPerRun` envelopes per run — evicting
|
|
9
|
+
* non-terminal events first so terminal outcomes are never dropped.
|
|
10
|
+
*/
|
|
11
|
+
class InMemoryGraphRunEventStore {
|
|
12
|
+
constructor(limits = {}) {
|
|
13
|
+
this.events = new Map();
|
|
14
|
+
this.listeners = new Map();
|
|
15
|
+
this.limits = { ...graph_1.DEFAULT_GRAPH_RUN_LIMITS, ...limits };
|
|
16
|
+
}
|
|
17
|
+
async append(event) {
|
|
18
|
+
let list = this.events.get(event.runId);
|
|
19
|
+
if (!list) {
|
|
20
|
+
list = [];
|
|
21
|
+
this.events.set(event.runId, list);
|
|
22
|
+
}
|
|
23
|
+
list.push(event);
|
|
24
|
+
this.enforceRetention(list);
|
|
25
|
+
for (const listener of this.listeners.get(event.runId) ?? []) {
|
|
26
|
+
try {
|
|
27
|
+
listener(event);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
// a misbehaving subscriber must not break the append pipeline
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
async listAfter(runId, sequence) {
|
|
35
|
+
const list = this.events.get(runId);
|
|
36
|
+
if (!list)
|
|
37
|
+
return [];
|
|
38
|
+
return list.filter((event) => event.sequence > sequence);
|
|
39
|
+
}
|
|
40
|
+
subscribe(runId, listener) {
|
|
41
|
+
let set = this.listeners.get(runId);
|
|
42
|
+
if (!set) {
|
|
43
|
+
set = new Set();
|
|
44
|
+
this.listeners.set(runId, set);
|
|
45
|
+
}
|
|
46
|
+
set.add(listener);
|
|
47
|
+
return () => {
|
|
48
|
+
set.delete(listener);
|
|
49
|
+
if (set.size === 0)
|
|
50
|
+
this.listeners.delete(runId);
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
release(runId) {
|
|
54
|
+
this.events.delete(runId);
|
|
55
|
+
this.listeners.delete(runId);
|
|
56
|
+
}
|
|
57
|
+
enforceRetention(list) {
|
|
58
|
+
const max = this.limits.maxEventsPerRun;
|
|
59
|
+
while (list.length > max) {
|
|
60
|
+
const evictIndex = list.findIndex((event) => !(0, graph_1.isGraphRunTerminalEventType)(event.type));
|
|
61
|
+
if (evictIndex === -1)
|
|
62
|
+
break;
|
|
63
|
+
list.splice(evictIndex, 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.InMemoryGraphRunEventStore = InMemoryGraphRunEventStore;
|
|
68
|
+
//# sourceMappingURL=InMemoryGraphRunEventStore.js.map
|
|
69
|
+
//# sourceMappingURL=InMemoryGraphRunEventStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/runs/InMemoryGraphRunEventStore.cjs","sourceRoot":"","sources":["graph/engine/runs/InMemoryGraphRunEventStore.js"],"names":[],"mappings":";;;AAAA,yDAAuG;AACvG;;;;;GAKG;AACH,MAAa,0BAA0B;IACnC,YAAY,MAAM,GAAG,EAAE;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,gCAAwB,EAAE,GAAG,MAAM,EAAE,CAAC;IAC7D,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,KAAK;QACd,IAAI,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,IAAI,GAAG,EAAE,CAAC;YACV,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC5B,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;YAC3D,IAAI,CAAC;gBACD,QAAQ,CAAC,KAAK,CAA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I,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAA,mCAA2B,EAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;YACvF,IAAI,UAAU,KAAK,CAAC,CAAC;gBACjB,MAAM;YACV,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC;CACJ;AAvDD,gEAuDC;AACD,sDAAsD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InMemoryGraphRunStore = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Non-persistent {@link GraphRunStore} backed by a `Map`: serves tests and
|
|
6
|
+
* in-process deployments. Runs are cloned on save/read so callers never
|
|
7
|
+
* share mutable references with the store.
|
|
8
|
+
*/
|
|
9
|
+
class InMemoryGraphRunStore {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.runs = new Map();
|
|
12
|
+
}
|
|
13
|
+
async saveRun(run) {
|
|
14
|
+
this.runs.set(run.runId, { ...run });
|
|
15
|
+
}
|
|
16
|
+
async readRun(runId) {
|
|
17
|
+
const run = this.runs.get(runId);
|
|
18
|
+
return run ? { ...run } : null;
|
|
19
|
+
}
|
|
20
|
+
release(runId) {
|
|
21
|
+
this.runs.delete(runId);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.InMemoryGraphRunStore = InMemoryGraphRunStore;
|
|
25
|
+
//# sourceMappingURL=InMemoryGraphRunStore.js.map
|
|
26
|
+
//# sourceMappingURL=InMemoryGraphRunStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/runs/InMemoryGraphRunStore.cjs","sourceRoot":"","sources":["graph/engine/runs/InMemoryGraphRunStore.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,qBAAqB;IAC9B;QACI,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,GAAG;QACb,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,KAAK;QACf,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACnC,CAAC;IACD,OAAO,CAAC,KAAK;QACT,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACJ;AAdD,sDAcC;AACD,iDAAiD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.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("./types.cjs"), exports);
|
|
18
|
+
__exportStar(require("./ownership.cjs"), exports);
|
|
19
|
+
__exportStar(require("./GraphRunFingerprint.cjs"), exports);
|
|
20
|
+
__exportStar(require("./InMemoryGraphRunEventStore.cjs"), exports);
|
|
21
|
+
__exportStar(require("./InMemoryGraphRunStore.cjs"), exports);
|
|
22
|
+
__exportStar(require("./GraphRunEventPublisher.cjs"), exports);
|
|
23
|
+
__exportStar(require("./GraphRunExecutor.cjs"), exports);
|
|
24
|
+
__exportStar(require("./GraphRunService.cjs"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
26
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/runs/index.cjs","sourceRoot":"","sources":["graph/engine/runs/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,iDAA+B;AAC/B,2DAAyC;AACzC,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,wDAAsC;AACtC,uDAAqC;AACrC,iCAAiC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertGraphResourceOwnership = assertGraphResourceOwnership;
|
|
4
|
+
const core_1 = require("@decaf-ts/core");
|
|
5
|
+
/**
|
|
6
|
+
* Centralized graph resource ownership check (SAA-595 security hardening).
|
|
7
|
+
*
|
|
8
|
+
* Fail-closed by default: a resource that carries an owner is only accessible
|
|
9
|
+
* to that owner; an absent caller identity is denied unless the explicit
|
|
10
|
+
* `allowAnonymousAccess` tolerance (DECAF-48 §4.15 standalone runs) is set.
|
|
11
|
+
* Owner-less resources remain accessible to everyone.
|
|
12
|
+
*
|
|
13
|
+
* @param resource - The guarded resource (or its persisted record); only its
|
|
14
|
+
* `owner` member is read. `null`/`undefined` counts as owner-less.
|
|
15
|
+
* @param callerOwner - Identity of the caller resolved from the request
|
|
16
|
+
* context; `null`/`undefined`/`""` represent anonymous callers.
|
|
17
|
+
* @param options - `resourceKind`/`resourceId` name the resource in the
|
|
18
|
+
* denial message; `allowAnonymousAccess` opts in to the DECAF-48 §4.15
|
|
19
|
+
* standalone tolerance (default `false`).
|
|
20
|
+
* @throws ForbiddenError when the resource is owned and the caller is a
|
|
21
|
+
* different user, or an anonymous caller without the explicit tolerance.
|
|
22
|
+
*/
|
|
23
|
+
function assertGraphResourceOwnership(resource, callerOwner, options) {
|
|
24
|
+
const owner = resource?.owner ?? null;
|
|
25
|
+
if (!owner || owner === callerOwner)
|
|
26
|
+
return;
|
|
27
|
+
if ((callerOwner === undefined || callerOwner === null || callerOwner === "") &&
|
|
28
|
+
options.allowAnonymousAccess === true) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
throw new core_1.ForbiddenError(`${options.resourceKind} '${options.resourceId}' is owned by another user`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=ownership.js.map
|
|
34
|
+
//# sourceMappingURL=ownership.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/runs/ownership.cjs","sourceRoot":"","sources":["graph/engine/runs/ownership.js"],"names":[],"mappings":";;AAmBA,oEASC;AA5BD,yCAAgD;AAChD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,4BAA4B,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO;IACvE,MAAM,KAAK,GAAG,QAAQ,EAAE,KAAK,IAAI,IAAI,CAAC;IACtC,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,WAAW;QAC/B,OAAO;IACX,IAAI,CAAC,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,EAAE,CAAC;QACzE,OAAO,CAAC,oBAAoB,KAAK,IAAI,EAAE,CAAC;QACxC,OAAO;IACX,CAAC;IACD,MAAM,IAAI,qBAAc,CAAC,GAAG,OAAO,CAAC,YAAY,KAAK,OAAO,CAAC,UAAU,4BAA4B,CAAC,CAAC;AACzG,CAAC;AACD,qCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/runs/types.cjs","sourceRoot":"","sources":["graph/engine/runs/types.js"],"names":[],"mappings":";;AACA,iCAAiC"}
|
|
@@ -6,7 +6,7 @@ exports.GraphExecutionSnapshotMapper = void 0;
|
|
|
6
6
|
* @summary Maps execution results to snapshot patches.
|
|
7
7
|
* @description Produces a GraphExecutionSnapshotPatch consumable by `@decaf-ts/ui-decorators/graph` snapshots, rather than replacing the snapshot system.
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const graph_1 = require("@decaf-ts/ui-decorators/graph");
|
|
10
10
|
/**
|
|
11
11
|
* Maps a {@link GraphExecutionResult} to a {@link GraphExecutionSnapshotPatch}.
|
|
12
12
|
*/
|
|
@@ -31,7 +31,7 @@ class GraphExecutionSnapshotMapper {
|
|
|
31
31
|
for (const event of result.events) {
|
|
32
32
|
if (event.edgeId && event.type === "edge.valueRouted") {
|
|
33
33
|
edges[event.edgeId] = {
|
|
34
|
-
status:
|
|
34
|
+
status: graph_1.GraphExecutionStatus.SUCCEEDED,
|
|
35
35
|
lastValue: event.payload?.value,
|
|
36
36
|
updatedAt: event.timestamp.toISOString(),
|
|
37
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs","sourceRoot":"","sources":["graph/engine/snapshots/GraphExecutionSnapshotMapper.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs","sourceRoot":"","sources":["graph/engine/snapshots/GraphExecutionSnapshotMapper.js"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,yDAAqE;AACrE;;GAEG;AACH,MAAa,4BAA4B;IACrC;;OAEG;IACH,GAAG,CAAC,MAAM;QACN,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,KAAK,MAAM,CAAC,EA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GraphConnectionPolicyValidator = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Validates connection policies and edge-level structural conflicts.
|
|
6
|
+
*/
|
|
7
|
+
class GraphConnectionPolicyValidator {
|
|
8
|
+
/**
|
|
9
|
+
* Stage 6 — connection policies and counts. Operates on the resolved
|
|
10
|
+
* workflow (stage 5 output). Records issues; never mutates the graph.
|
|
11
|
+
*/
|
|
12
|
+
validate(workflow, issues) {
|
|
13
|
+
this.validateDuplicates(workflow.edges, issues);
|
|
14
|
+
this.validatePolicies(workflow, issues);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Conflicting duplicate edges: two edges with identical flattened
|
|
18
|
+
* endpoints (`source:port -> target:port`) are rejected, whatever their
|
|
19
|
+
* ids.
|
|
20
|
+
*/
|
|
21
|
+
validateDuplicates(edges, issues) {
|
|
22
|
+
const seen = new Map();
|
|
23
|
+
for (const edge of edges) {
|
|
24
|
+
const key = `${edge.sourceNodeId}:${edge.sourcePort}->${edge.targetNodeId}:${edge.targetPort}`;
|
|
25
|
+
const previous = seen.get(key);
|
|
26
|
+
if (previous) {
|
|
27
|
+
issues.push({
|
|
28
|
+
code: "connection.duplicate-edge",
|
|
29
|
+
path: `edges[${edge.id}]`,
|
|
30
|
+
message: `Edge '${edge.id}' duplicates the routing of edge '${previous.id}' (${key})`,
|
|
31
|
+
edgeId: edge.id,
|
|
32
|
+
details: { duplicateOf: previous.id, routing: key },
|
|
33
|
+
});
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
|
+
seen.set(key, edge);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Port-declared connection policies: kind allow/block lists, port
|
|
41
|
+
* categories, self-connections, and connection counts.
|
|
42
|
+
*/
|
|
43
|
+
validatePolicies(workflow, issues) {
|
|
44
|
+
const connectionsByPort = new Map();
|
|
45
|
+
for (const edge of workflow.edges) {
|
|
46
|
+
if (edge.type !== "connection")
|
|
47
|
+
continue;
|
|
48
|
+
const key = `${edge.targetNodeId}:${edge.targetPort}`;
|
|
49
|
+
const list = connectionsByPort.get(key) ?? [];
|
|
50
|
+
list.push(edge);
|
|
51
|
+
connectionsByPort.set(key, list);
|
|
52
|
+
}
|
|
53
|
+
for (const edge of workflow.edges) {
|
|
54
|
+
if (edge.type !== "connection")
|
|
55
|
+
continue;
|
|
56
|
+
const target = workflow.nodeById.get(edge.targetNodeId);
|
|
57
|
+
const policy = target?.manifest.connections?.find((candidate) => candidate.id === edge.targetPort)?.connectionPolicy;
|
|
58
|
+
this.validateEdgePolicy(edge, workflow.nodeById, policy, issues);
|
|
59
|
+
}
|
|
60
|
+
for (const [key, connections] of connectionsByPort) {
|
|
61
|
+
const separator = key.lastIndexOf(":");
|
|
62
|
+
const nodeId = key.slice(0, separator);
|
|
63
|
+
const portId = key.slice(separator + 1);
|
|
64
|
+
const target = workflow.nodeById.get(nodeId);
|
|
65
|
+
const policy = target?.manifest.connections?.find((candidate) => candidate.id === portId)?.connectionPolicy;
|
|
66
|
+
if (!policy)
|
|
67
|
+
continue;
|
|
68
|
+
const max = policy.maxConnections !== undefined
|
|
69
|
+
? policy.maxConnections
|
|
70
|
+
: policy.allowMultiple === false
|
|
71
|
+
? 1
|
|
72
|
+
: Number.POSITIVE_INFINITY;
|
|
73
|
+
if (connections.length > max) {
|
|
74
|
+
issues.push({
|
|
75
|
+
code: "connection.max-connections",
|
|
76
|
+
path: `edges[${connections[connections.length - 1].id}]`,
|
|
77
|
+
message: `Connection port '${portId}' on node '${nodeId}' accepts at most ${max} connection(s) but has ${connections.length}`,
|
|
78
|
+
nodeId,
|
|
79
|
+
edgeId: connections[connections.length - 1].id,
|
|
80
|
+
details: { port: portId, max, actual: connections.length },
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
validateEdgePolicy(edge, nodeById, policy, issues) {
|
|
86
|
+
// Self-connections are rejected unless the policy allows them.
|
|
87
|
+
if (edge.sourceNodeId === edge.targetNodeId) {
|
|
88
|
+
if (!policy?.allowSelf) {
|
|
89
|
+
issues.push({
|
|
90
|
+
code: "connection.self-connection",
|
|
91
|
+
path: `edges[${edge.id}]`,
|
|
92
|
+
message: `Edge '${edge.id}' connects node '${edge.sourceNodeId}' to itself, which the target port policy does not allow`,
|
|
93
|
+
edgeId: edge.id,
|
|
94
|
+
nodeId: edge.sourceNodeId,
|
|
95
|
+
});
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (!policy)
|
|
100
|
+
return;
|
|
101
|
+
const source = nodeById.get(edge.sourceNodeId);
|
|
102
|
+
const sourceKind = source?.manifest.kind;
|
|
103
|
+
if (policy.allowedNodeKinds?.length &&
|
|
104
|
+
(!sourceKind || !policy.allowedNodeKinds.includes(sourceKind))) {
|
|
105
|
+
issues.push({
|
|
106
|
+
code: "connection.policy",
|
|
107
|
+
path: `edges[${edge.id}]`,
|
|
108
|
+
message: `Connection edge '${edge.id}' source kind '${sourceKind ?? "unknown"}' is not in the allowed node kinds of target port '${edge.targetPort}'`,
|
|
109
|
+
edgeId: edge.id,
|
|
110
|
+
nodeId: edge.sourceNodeId,
|
|
111
|
+
details: { allowedNodeKinds: policy.allowedNodeKinds },
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
if (sourceKind && policy.blockedNodeKinds?.includes(sourceKind)) {
|
|
115
|
+
issues.push({
|
|
116
|
+
code: "connection.policy",
|
|
117
|
+
path: `edges[${edge.id}]`,
|
|
118
|
+
message: `Connection edge '${edge.id}' source kind '${sourceKind}' is blocked by target port '${edge.targetPort}'`,
|
|
119
|
+
edgeId: edge.id,
|
|
120
|
+
nodeId: edge.sourceNodeId,
|
|
121
|
+
details: { blockedNodeKinds: policy.blockedNodeKinds },
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
if (policy.allowedPortCategories?.length) {
|
|
125
|
+
const sourcePortCategory = source?.manifest.connections?.find((candidate) => candidate.id === edge.sourcePort)?.category;
|
|
126
|
+
if (!sourcePortCategory ||
|
|
127
|
+
!policy.allowedPortCategories.includes(sourcePortCategory)) {
|
|
128
|
+
issues.push({
|
|
129
|
+
code: "connection.policy",
|
|
130
|
+
path: `edges[${edge.id}]`,
|
|
131
|
+
message: `Connection edge '${edge.id}' source port '${edge.sourcePort}' category '${sourcePortCategory ?? "unknown"}' is not in the allowed port categories of target port '${edge.targetPort}'`,
|
|
132
|
+
edgeId: edge.id,
|
|
133
|
+
nodeId: edge.sourceNodeId,
|
|
134
|
+
details: { allowedPortCategories: policy.allowedPortCategories },
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.GraphConnectionPolicyValidator = GraphConnectionPolicyValidator;
|
|
141
|
+
//# sourceMappingURL=GraphConnectionPolicyValidator.js.map
|
|
142
|
+
//# sourceMappingURL=GraphConnectionPolicyValidator.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph/engine/validation/GraphConnectionPolicyValidator.cjs","sourceRoot":"","sources":["graph/engine/validation/GraphConnectionPolicyValidator.js"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,8BAA8B;IACvC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;QACrB,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAChD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC5C,CAAC;IACD;;;;OAIG;IACH,kBAAkB,CAAC,KAAK,EAAE,MAAM;QAC5B,MAAM,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QACvB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,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