@decaf-ts/integrations 0.10.8 → 0.11.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 +77 -5
- package/dist/integrations.cjs +1 -1
- package/dist/integrations.cjs.map +1 -1
- package/dist/integrations.js +1 -1
- package/dist/integrations.js.map +1 -1
- package/docker/dragonfly-compose.yml +19 -0
- package/lib/cjs/blob/core/BlobStoreFactory.cjs +0 -4
- package/lib/cjs/blob/core/BlobStoreFactory.cjs.map +1 -1
- package/lib/cjs/feature-flags/EngineCapabilityFeatureFlag.service.cjs +214 -0
- package/lib/cjs/feature-flags/EngineCapabilityFeatureFlag.service.cjs.map +1 -0
- package/lib/cjs/feature-flags/index.cjs +1 -0
- package/lib/cjs/feature-flags/index.cjs.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/loader/ObjectLoader.cjs +95 -11
- package/lib/cjs/loader/ObjectLoader.cjs.map +1 -1
- package/lib/cjs/loader/assets.cjs +160 -0
- package/lib/cjs/loader/assets.cjs.map +1 -0
- package/lib/cjs/loader/config.cjs +241 -0
- package/lib/cjs/loader/config.cjs.map +1 -0
- package/lib/cjs/loader/families.cjs +27 -12
- package/lib/cjs/loader/families.cjs.map +1 -1
- package/lib/cjs/loader/index.cjs +3 -0
- package/lib/cjs/loader/index.cjs.map +1 -1
- package/lib/cjs/loader/nest.cjs +331 -0
- package/lib/cjs/loader/nest.cjs.map +1 -0
- package/lib/cjs/redis/RedisContextLock.cjs +185 -0
- package/lib/cjs/redis/RedisContextLock.cjs.map +1 -0
- package/lib/cjs/redis/RedisDispatch.cjs +132 -0
- package/lib/cjs/redis/RedisDispatch.cjs.map +1 -0
- package/lib/cjs/redis/RedisPaginator.cjs +95 -0
- package/lib/cjs/redis/RedisPaginator.cjs.map +1 -0
- package/lib/cjs/redis/RedisStatement.cjs +433 -0
- package/lib/cjs/redis/RedisStatement.cjs.map +1 -0
- package/lib/cjs/redis/adapter.cjs +709 -0
- package/lib/cjs/redis/adapter.cjs.map +1 -0
- package/lib/cjs/redis/constants.cjs +31 -0
- package/lib/cjs/redis/constants.cjs.map +1 -0
- package/lib/cjs/redis/handlers.cjs +27 -0
- package/lib/cjs/redis/handlers.cjs.map +1 -0
- package/lib/cjs/redis/index.cjs +36 -0
- package/lib/cjs/redis/index.cjs.map +1 -0
- package/lib/cjs/redis/serialization.cjs +63 -0
- package/lib/cjs/redis/serialization.cjs.map +1 -0
- package/lib/cjs/redis/types.cjs.map +1 -0
- package/lib/esm/blob/core/BlobStoreFactory.js +0 -4
- package/lib/esm/blob/core/BlobStoreFactory.js.map +1 -1
- package/lib/esm/feature-flags/EngineCapabilityFeatureFlag.service.js +203 -0
- package/lib/esm/feature-flags/EngineCapabilityFeatureFlag.service.js.map +1 -0
- package/lib/esm/feature-flags/index.js +1 -0
- package/lib/esm/feature-flags/index.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/loader/ObjectLoader.js +94 -11
- package/lib/esm/loader/ObjectLoader.js.map +1 -1
- package/lib/esm/loader/assets.js +155 -0
- package/lib/esm/loader/assets.js.map +1 -0
- package/lib/esm/loader/config.js +202 -0
- package/lib/esm/loader/config.js.map +1 -0
- package/lib/esm/loader/families.js +25 -10
- package/lib/esm/loader/families.js.map +1 -1
- package/lib/esm/loader/index.js +3 -0
- package/lib/esm/loader/index.js.map +1 -1
- package/lib/esm/loader/nest.js +292 -0
- package/lib/esm/loader/nest.js.map +1 -0
- package/lib/esm/redis/RedisContextLock.js +180 -0
- package/lib/esm/redis/RedisContextLock.js.map +1 -0
- package/lib/esm/redis/RedisDispatch.js +127 -0
- package/lib/esm/redis/RedisDispatch.js.map +1 -0
- package/lib/esm/redis/RedisPaginator.js +90 -0
- package/lib/esm/redis/RedisPaginator.js.map +1 -0
- package/lib/esm/redis/RedisStatement.js +428 -0
- package/lib/esm/redis/RedisStatement.js.map +1 -0
- package/lib/esm/redis/adapter.js +704 -0
- package/lib/esm/redis/adapter.js.map +1 -0
- package/lib/esm/redis/constants.js +27 -0
- package/lib/esm/redis/constants.js.map +1 -0
- package/lib/esm/redis/handlers.js +23 -0
- package/lib/esm/redis/handlers.js.map +1 -0
- package/lib/esm/redis/index.js +19 -0
- package/lib/esm/redis/index.js.map +1 -0
- package/lib/esm/redis/serialization.js +57 -0
- package/lib/esm/redis/serialization.js.map +1 -0
- package/lib/esm/{graph/engine → redis}/types.js.map +1 -1
- package/lib/types/blob/core/BlobTypes.d.cts +1 -14
- package/lib/types/blob/core/BlobTypes.d.mts +1 -14
- package/lib/types/feature-flags/EngineCapabilityFeatureFlag.service.d.cts +116 -0
- package/lib/types/feature-flags/EngineCapabilityFeatureFlag.service.d.mts +116 -0
- package/lib/types/feature-flags/index.d.cts +1 -0
- package/lib/types/feature-flags/index.d.mts +1 -0
- package/lib/types/index.d.cts +2 -2
- package/lib/types/index.d.mts +2 -2
- package/lib/types/loader/ObjectLoader.d.cts +46 -2
- package/lib/types/loader/ObjectLoader.d.mts +46 -2
- package/lib/types/loader/assets.d.cts +43 -0
- package/lib/types/loader/assets.d.mts +43 -0
- package/lib/types/loader/config.d.cts +84 -0
- package/lib/types/loader/config.d.mts +84 -0
- package/lib/types/loader/families.d.cts +19 -7
- package/lib/types/loader/families.d.mts +19 -7
- package/lib/types/loader/index.d.cts +3 -0
- package/lib/types/loader/index.d.mts +3 -0
- package/lib/types/loader/nest.d.cts +102 -0
- package/lib/types/loader/nest.d.mts +102 -0
- package/lib/types/loader/types.d.cts +27 -1
- package/lib/types/loader/types.d.mts +27 -1
- package/lib/types/redis/RedisContextLock.d.cts +106 -0
- package/lib/types/redis/RedisContextLock.d.mts +106 -0
- package/lib/types/redis/RedisDispatch.d.cts +56 -0
- package/lib/types/redis/RedisDispatch.d.mts +56 -0
- package/lib/types/redis/RedisPaginator.d.cts +58 -0
- package/lib/types/redis/RedisPaginator.d.mts +58 -0
- package/lib/types/redis/RedisStatement.d.cts +175 -0
- package/lib/types/redis/RedisStatement.d.mts +175 -0
- package/lib/types/redis/adapter.d.cts +288 -0
- package/lib/types/redis/adapter.d.mts +288 -0
- package/lib/types/redis/constants.d.cts +26 -0
- package/lib/types/redis/constants.d.mts +26 -0
- package/lib/types/redis/handlers.d.cts +20 -0
- package/lib/types/redis/handlers.d.mts +20 -0
- package/lib/types/redis/index.d.cts +17 -0
- package/lib/types/redis/index.d.mts +17 -0
- package/lib/types/redis/serialization.d.cts +35 -0
- package/lib/types/redis/serialization.d.mts +35 -0
- package/lib/types/redis/types.d.cts +72 -0
- package/lib/types/redis/types.d.mts +72 -0
- package/package.json +17 -33
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs +0 -30
- package/lib/cjs/blob/ipfs/IpfsBlobEnvironment.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +0 -248
- package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs +0 -27
- package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs +0 -35
- package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs +0 -45
- package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs +0 -35
- package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs.map +0 -1
- package/lib/cjs/blob/ipfs/index.cjs +0 -29
- package/lib/cjs/blob/ipfs/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs +0 -39
- package/lib/cjs/graph/engine/catalog/GraphBuiltInRegistrations.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs +0 -29
- package/lib/cjs/graph/engine/catalog/GraphCatalogueErrors.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs +0 -270
- package/lib/cjs/graph/engine/catalog/GraphNodeCatalogue.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs +0 -169
- package/lib/cjs/graph/engine/catalog/GraphNodeManifestResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs +0 -64
- package/lib/cjs/graph/engine/catalog/GraphNodeMethodRegistry.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs +0 -17
- package/lib/cjs/graph/engine/catalog/GraphNodeRegistration.cjs.map +0 -1
- package/lib/cjs/graph/engine/catalog/index.cjs +0 -24
- package/lib/cjs/graph/engine/catalog/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/constants.cjs +0 -58
- package/lib/cjs/graph/engine/constants.cjs.map +0 -1
- package/lib/cjs/graph/engine/decorators.cjs +0 -4
- package/lib/cjs/graph/engine/decorators.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphBreakSignal.cjs +0 -37
- package/lib/cjs/graph/engine/errors/GraphBreakSignal.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphCycleError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphCycleError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs +0 -28
- package/lib/cjs/graph/engine/errors/GraphExecutionError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphInputError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphInputError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphLoopLimitError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphPinningError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphPinningError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphPortError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphPortError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs +0 -18
- package/lib/cjs/graph/engine/errors/GraphRunCancelledError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphStoreError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphStoreError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs +0 -20
- package/lib/cjs/graph/engine/errors/GraphTopologyError.cjs.map +0 -1
- package/lib/cjs/graph/engine/errors/index.cjs +0 -33
- package/lib/cjs/graph/engine/errors/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs +0 -40
- package/lib/cjs/graph/engine/events/GraphExecutionEventEmitter.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs +0 -37
- package/lib/cjs/graph/engine/events/GraphExecutionEventFactory.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs +0 -4
- package/lib/cjs/graph/engine/events/GraphExecutionObserver.cjs.map +0 -1
- package/lib/cjs/graph/engine/events/index.cjs +0 -26
- package/lib/cjs/graph/engine/events/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs +0 -4
- package/lib/cjs/graph/engine/execution/CodeSandboxEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs +0 -116
- package/lib/cjs/graph/engine/execution/GraphExecutionContext.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs +0 -854
- package/lib/cjs/graph/engine/execution/GraphExecutionEngine.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs +0 -48
- package/lib/cjs/graph/engine/execution/GraphExecutionFrame.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs +0 -30
- package/lib/cjs/graph/engine/execution/GraphExecutionResult.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs +0 -4
- package/lib/cjs/graph/engine/execution/GraphNodeExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs +0 -481
- package/lib/cjs/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/execution/index.cjs +0 -30
- package/lib/cjs/graph/engine/execution/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/index.cjs +0 -79
- package/lib/cjs/graph/engine/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs +0 -87
- package/lib/cjs/graph/engine/loops/ConditionExpressionEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs +0 -85
- package/lib/cjs/graph/engine/loops/GraphConditionEvaluator.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs +0 -16
- package/lib/cjs/graph/engine/loops/GraphLoopExecutionContext.cjs.map +0 -1
- package/lib/cjs/graph/engine/loops/index.cjs +0 -26
- package/lib/cjs/graph/engine/loops/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs +0 -28
- package/lib/cjs/graph/engine/pinning/GraphPinningDependencyResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs +0 -20
- package/lib/cjs/graph/engine/pinning/GraphPinningMetadata.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs +0 -34
- package/lib/cjs/graph/engine/pinning/GraphPinningPolicy.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs +0 -220
- package/lib/cjs/graph/engine/pinning/GraphPinningService.cjs.map +0 -1
- package/lib/cjs/graph/engine/pinning/index.cjs +0 -27
- package/lib/cjs/graph/engine/pinning/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlan.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanEdge.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanLayer.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs +0 -4
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanNode.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs +0 -188
- package/lib/cjs/graph/engine/planning/GraphExecutionPlanner.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/GraphTopology.cjs +0 -57
- package/lib/cjs/graph/engine/planning/GraphTopology.cjs.map +0 -1
- package/lib/cjs/graph/engine/planning/index.cjs +0 -29
- package/lib/cjs/graph/engine/planning/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs +0 -57
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorRegistry.cjs.map +0 -1
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs +0 -27
- package/lib/cjs/graph/engine/registry/GraphNodeExecutorResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/registry/index.cjs +0 -25
- package/lib/cjs/graph/engine/registry/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs +0 -69
- package/lib/cjs/graph/engine/runs/GraphRunEventPublisher.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs +0 -291
- package/lib/cjs/graph/engine/runs/GraphRunExecutor.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs +0 -29
- package/lib/cjs/graph/engine/runs/GraphRunFingerprint.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs +0 -259
- package/lib/cjs/graph/engine/runs/GraphRunService.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs +0 -69
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunEventStore.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs +0 -26
- package/lib/cjs/graph/engine/runs/InMemoryGraphRunStore.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/index.cjs +0 -26
- package/lib/cjs/graph/engine/runs/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/ownership.cjs +0 -34
- package/lib/cjs/graph/engine/runs/ownership.cjs.map +0 -1
- package/lib/cjs/graph/engine/runs/types.cjs.map +0 -1
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs +0 -53
- package/lib/cjs/graph/engine/snapshots/GraphExecutionSnapshotMapper.cjs.map +0 -1
- package/lib/cjs/graph/engine/snapshots/index.cjs +0 -24
- package/lib/cjs/graph/engine/snapshots/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphCachedValue.cjs +0 -4
- package/lib/cjs/graph/engine/store/GraphCachedValue.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphValueKey.cjs +0 -4
- package/lib/cjs/graph/engine/store/GraphValueKey.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphValueStore.cjs +0 -76
- package/lib/cjs/graph/engine/store/GraphValueStore.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs +0 -4
- package/lib/cjs/graph/engine/store/GraphValueStoreAdapter.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs +0 -69
- package/lib/cjs/graph/engine/store/InMemoryGraphValueStoreAdapter.cjs.map +0 -1
- package/lib/cjs/graph/engine/store/index.cjs +0 -28
- package/lib/cjs/graph/engine/store/index.cjs.map +0 -1
- package/lib/cjs/graph/engine/types.cjs +0 -4
- package/lib/cjs/graph/engine/types.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs +0 -142
- package/lib/cjs/graph/engine/validation/GraphConnectionPolicyValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs +0 -160
- package/lib/cjs/graph/engine/validation/GraphCredentialReferenceValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs +0 -29
- package/lib/cjs/graph/engine/validation/GraphDefinitionValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs +0 -166
- package/lib/cjs/graph/engine/validation/GraphEdgeInstanceValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs +0 -36
- package/lib/cjs/graph/engine/validation/GraphLooseNodeValidation.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs +0 -86
- package/lib/cjs/graph/engine/validation/GraphNodeInstanceValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs +0 -456
- package/lib/cjs/graph/engine/validation/GraphParameterValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs +0 -58
- package/lib/cjs/graph/engine/validation/GraphPortSchemaResolver.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs +0 -4
- package/lib/cjs/graph/engine/validation/GraphResolvedWorkflow.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs +0 -50
- package/lib/cjs/graph/engine/validation/GraphValidationErrors.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs +0 -4
- package/lib/cjs/graph/engine/validation/GraphValidationIssue.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs +0 -52
- package/lib/cjs/graph/engine/validation/GraphValueValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs +0 -509
- package/lib/cjs/graph/engine/validation/GraphWorkflowDocumentValidator.cjs.map +0 -1
- package/lib/cjs/graph/engine/validation/index.cjs +0 -38
- package/lib/cjs/graph/engine/validation/index.cjs.map +0 -1
- package/lib/cjs/graph/index.cjs +0 -30
- package/lib/cjs/graph/index.cjs.map +0 -1
- package/lib/cjs/graph/log/GraphRunLogger.cjs +0 -145
- package/lib/cjs/graph/log/GraphRunLogger.cjs.map +0 -1
- package/lib/cjs/graph/log/LogParameters.cjs +0 -73
- package/lib/cjs/graph/log/LogParameters.cjs.map +0 -1
- package/lib/cjs/graph/nodes/agents/agent.cjs +0 -118
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +0 -1
- package/lib/cjs/graph/nodes/base.cjs +0 -61
- package/lib/cjs/graph/nodes/base.cjs.map +0 -1
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +0 -59
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/break.cjs +0 -71
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +0 -72
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +0 -80
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/if.cjs +0 -82
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +0 -69
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +0 -1
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +0 -190
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +0 -1
- package/lib/cjs/graph/nodes/index.cjs +0 -162
- package/lib/cjs/graph/nodes/index.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/foreach.cjs +0 -189
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/loop-metadata.cjs +0 -48
- package/lib/cjs/graph/nodes/loops/loop-metadata.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/until.cjs +0 -136
- package/lib/cjs/graph/nodes/loops/until.cjs.map +0 -1
- package/lib/cjs/graph/nodes/loops/while.cjs +0 -133
- package/lib/cjs/graph/nodes/loops/while.cjs.map +0 -1
- package/lib/cjs/graph/nodes/manifests.cjs +0 -342
- package/lib/cjs/graph/nodes/manifests.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/chat.cjs +0 -82
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/event.cjs +0 -63
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/form.cjs +0 -64
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/manual.cjs +0 -65
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +0 -65
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +0 -1
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +0 -67
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/code.cjs +0 -139
- package/lib/cjs/graph/nodes/utility/code.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/delay.cjs +0 -66
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/log.cjs +0 -70
- package/lib/cjs/graph/nodes/utility/log.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/map.cjs +0 -69
- package/lib/cjs/graph/nodes/utility/map.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/merge.cjs +0 -67
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/return.cjs +0 -69
- package/lib/cjs/graph/nodes/utility/return.cjs.map +0 -1
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +0 -77
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutionController.cjs +0 -266
- package/lib/cjs/nest/graph/GraphExecutionController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs +0 -178
- package/lib/cjs/nest/graph/GraphExecutionModule.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs +0 -75
- package/lib/cjs/nest/graph/GraphExecutionResultModel.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs +0 -106
- package/lib/cjs/nest/graph/GraphExecutorRegistryFactory.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +0 -270
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphResultService.cjs +0 -69
- package/lib/cjs/nest/graph/GraphResultService.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +0 -279
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphRunModel.cjs +0 -83
- package/lib/cjs/nest/graph/GraphRunModel.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphRunModelService.cjs +0 -121
- package/lib/cjs/nest/graph/GraphRunModelService.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs +0 -171
- package/lib/cjs/nest/graph/GraphWorkflowBoundaryValidation.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +0 -162
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs +0 -12
- package/lib/cjs/nest/graph/GraphWorkflowDocumentLimits.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs +0 -23
- package/lib/cjs/nest/graph/GraphWorkflowErrors.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs +0 -66
- package/lib/cjs/nest/graph/GraphWorkflowModel.cjs.map +0 -1
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs +0 -253
- package/lib/cjs/nest/graph/GraphWorkflowService.cjs.map +0 -1
- package/lib/cjs/nest/graph/index.cjs +0 -33
- package/lib/cjs/nest/graph/index.cjs.map +0 -1
- package/lib/cjs/nest/graph/main.cjs +0 -47
- package/lib/cjs/nest/graph/main.cjs.map +0 -1
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js +0 -26
- package/lib/esm/blob/ipfs/IpfsBlobEnvironment.js.map +0 -1
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +0 -240
- package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +0 -1
- package/lib/esm/blob/ipfs/IpfsKeyIndex.js +0 -23
- package/lib/esm/blob/ipfs/IpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js +0 -30
- package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js +0 -40
- package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js +0 -30
- package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js.map +0 -1
- package/lib/esm/blob/ipfs/index.js +0 -12
- package/lib/esm/blob/ipfs/index.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js +0 -34
- package/lib/esm/graph/engine/catalog/GraphBuiltInRegistrations.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js +0 -22
- package/lib/esm/graph/engine/catalog/GraphCatalogueErrors.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js +0 -265
- package/lib/esm/graph/engine/catalog/GraphNodeCatalogue.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js +0 -162
- package/lib/esm/graph/engine/catalog/GraphNodeManifestResolver.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js +0 -59
- package/lib/esm/graph/engine/catalog/GraphNodeMethodRegistry.js.map +0 -1
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js +0 -12
- package/lib/esm/graph/engine/catalog/GraphNodeRegistration.js.map +0 -1
- package/lib/esm/graph/engine/catalog/index.js +0 -7
- package/lib/esm/graph/engine/catalog/index.js.map +0 -1
- package/lib/esm/graph/engine/constants.js +0 -62
- package/lib/esm/graph/engine/constants.js.map +0 -1
- package/lib/esm/graph/engine/decorators.js +0 -2
- package/lib/esm/graph/engine/decorators.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphBreakSignal.js +0 -32
- package/lib/esm/graph/engine/errors/GraphBreakSignal.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphCycleError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphCycleError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphExecutionError.js +0 -23
- package/lib/esm/graph/engine/errors/GraphExecutionError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphInputError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphInputError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphLoopLimitError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphLoopLimitError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphPinningError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphPinningError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphPortError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphPortError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js +0 -13
- package/lib/esm/graph/engine/errors/GraphRunCancelledError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphStoreError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphStoreError.js.map +0 -1
- package/lib/esm/graph/engine/errors/GraphTopologyError.js +0 -15
- package/lib/esm/graph/engine/errors/GraphTopologyError.js.map +0 -1
- package/lib/esm/graph/engine/errors/index.js +0 -16
- package/lib/esm/graph/engine/errors/index.js.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js +0 -35
- package/lib/esm/graph/engine/events/GraphExecutionEventEmitter.js.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js +0 -32
- package/lib/esm/graph/engine/events/GraphExecutionEventFactory.js.map +0 -1
- package/lib/esm/graph/engine/events/GraphExecutionObserver.js +0 -2
- package/lib/esm/graph/engine/events/GraphExecutionObserver.js.map +0 -1
- package/lib/esm/graph/engine/events/index.js +0 -9
- package/lib/esm/graph/engine/events/index.js.map +0 -1
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js +0 -18
- package/lib/esm/graph/engine/execution/CodeSandboxEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js +0 -111
- package/lib/esm/graph/engine/execution/GraphExecutionContext.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js +0 -849
- package/lib/esm/graph/engine/execution/GraphExecutionEngine.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js +0 -43
- package/lib/esm/graph/engine/execution/GraphExecutionFrame.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js +0 -26
- package/lib/esm/graph/engine/execution/GraphExecutionResult.js.map +0 -1
- package/lib/esm/graph/engine/execution/GraphNodeExecutor.js +0 -2
- package/lib/esm/graph/engine/execution/GraphNodeExecutor.js.map +0 -1
- package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js +0 -440
- package/lib/esm/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/execution/index.js +0 -13
- package/lib/esm/graph/engine/execution/index.js.map +0 -1
- package/lib/esm/graph/engine/index.js +0 -62
- package/lib/esm/graph/engine/index.js.map +0 -1
- package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js +0 -82
- package/lib/esm/graph/engine/loops/ConditionExpressionEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js +0 -80
- package/lib/esm/graph/engine/loops/GraphConditionEvaluator.js.map +0 -1
- package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js +0 -11
- package/lib/esm/graph/engine/loops/GraphLoopExecutionContext.js.map +0 -1
- package/lib/esm/graph/engine/loops/index.js +0 -9
- package/lib/esm/graph/engine/loops/index.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js +0 -23
- package/lib/esm/graph/engine/pinning/GraphPinningDependencyResolver.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js +0 -15
- package/lib/esm/graph/engine/pinning/GraphPinningMetadata.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js +0 -29
- package/lib/esm/graph/engine/pinning/GraphPinningPolicy.js.map +0 -1
- package/lib/esm/graph/engine/pinning/GraphPinningService.js +0 -215
- package/lib/esm/graph/engine/pinning/GraphPinningService.js.map +0 -1
- package/lib/esm/graph/engine/pinning/index.js +0 -10
- package/lib/esm/graph/engine/pinning/index.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlan.js +0 -2
- package/lib/esm/graph/engine/planning/GraphExecutionPlan.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js +0 -9
- package/lib/esm/graph/engine/planning/GraphExecutionPlanEdge.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js +0 -2
- package/lib/esm/graph/engine/planning/GraphExecutionPlanLayer.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js +0 -2
- package/lib/esm/graph/engine/planning/GraphExecutionPlanNode.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js +0 -183
- package/lib/esm/graph/engine/planning/GraphExecutionPlanner.js.map +0 -1
- package/lib/esm/graph/engine/planning/GraphTopology.js +0 -52
- package/lib/esm/graph/engine/planning/GraphTopology.js.map +0 -1
- package/lib/esm/graph/engine/planning/index.js +0 -12
- package/lib/esm/graph/engine/planning/index.js.map +0 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js +0 -52
- package/lib/esm/graph/engine/registry/GraphNodeExecutorRegistry.js.map +0 -1
- package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js +0 -22
- package/lib/esm/graph/engine/registry/GraphNodeExecutorResolver.js.map +0 -1
- package/lib/esm/graph/engine/registry/index.js +0 -8
- package/lib/esm/graph/engine/registry/index.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js +0 -64
- package/lib/esm/graph/engine/runs/GraphRunEventPublisher.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js +0 -286
- package/lib/esm/graph/engine/runs/GraphRunExecutor.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js +0 -25
- package/lib/esm/graph/engine/runs/GraphRunFingerprint.js.map +0 -1
- package/lib/esm/graph/engine/runs/GraphRunService.js +0 -254
- package/lib/esm/graph/engine/runs/GraphRunService.js.map +0 -1
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js +0 -64
- package/lib/esm/graph/engine/runs/InMemoryGraphRunEventStore.js.map +0 -1
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js +0 -21
- package/lib/esm/graph/engine/runs/InMemoryGraphRunStore.js.map +0 -1
- package/lib/esm/graph/engine/runs/index.js +0 -9
- package/lib/esm/graph/engine/runs/index.js.map +0 -1
- package/lib/esm/graph/engine/runs/ownership.js +0 -30
- package/lib/esm/graph/engine/runs/ownership.js.map +0 -1
- package/lib/esm/graph/engine/runs/types.js.map +0 -1
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js +0 -48
- package/lib/esm/graph/engine/snapshots/GraphExecutionSnapshotMapper.js.map +0 -1
- package/lib/esm/graph/engine/snapshots/index.js +0 -7
- package/lib/esm/graph/engine/snapshots/index.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphCachedValue.js +0 -2
- package/lib/esm/graph/engine/store/GraphCachedValue.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphValueKey.js +0 -7
- package/lib/esm/graph/engine/store/GraphValueKey.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphValueStore.js +0 -71
- package/lib/esm/graph/engine/store/GraphValueStore.js.map +0 -1
- package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js +0 -2
- package/lib/esm/graph/engine/store/GraphValueStoreAdapter.js.map +0 -1
- package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js +0 -64
- package/lib/esm/graph/engine/store/InMemoryGraphValueStoreAdapter.js.map +0 -1
- package/lib/esm/graph/engine/store/index.js +0 -11
- package/lib/esm/graph/engine/store/index.js.map +0 -1
- package/lib/esm/graph/engine/types.js +0 -2
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js +0 -137
- package/lib/esm/graph/engine/validation/GraphConnectionPolicyValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js +0 -155
- package/lib/esm/graph/engine/validation/GraphCredentialReferenceValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js +0 -24
- package/lib/esm/graph/engine/validation/GraphDefinitionValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js +0 -161
- package/lib/esm/graph/engine/validation/GraphEdgeInstanceValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js +0 -32
- package/lib/esm/graph/engine/validation/GraphLooseNodeValidation.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js +0 -81
- package/lib/esm/graph/engine/validation/GraphNodeInstanceValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js +0 -449
- package/lib/esm/graph/engine/validation/GraphParameterValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js +0 -53
- package/lib/esm/graph/engine/validation/GraphPortSchemaResolver.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js +0 -2
- package/lib/esm/graph/engine/validation/GraphResolvedWorkflow.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js +0 -43
- package/lib/esm/graph/engine/validation/GraphValidationErrors.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js +0 -2
- package/lib/esm/graph/engine/validation/GraphValidationIssue.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphValueValidator.js +0 -47
- package/lib/esm/graph/engine/validation/GraphValueValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js +0 -503
- package/lib/esm/graph/engine/validation/GraphWorkflowDocumentValidator.js.map +0 -1
- package/lib/esm/graph/engine/validation/index.js +0 -21
- package/lib/esm/graph/engine/validation/index.js.map +0 -1
- package/lib/esm/graph/index.js +0 -13
- package/lib/esm/graph/index.js.map +0 -1
- package/lib/esm/graph/log/GraphRunLogger.js +0 -140
- package/lib/esm/graph/log/GraphRunLogger.js.map +0 -1
- package/lib/esm/graph/log/LogParameters.js +0 -69
- package/lib/esm/graph/log/LogParameters.js.map +0 -1
- package/lib/esm/graph/nodes/agents/agent.js +0 -109
- package/lib/esm/graph/nodes/agents/agent.js.map +0 -1
- package/lib/esm/graph/nodes/base.js +0 -56
- package/lib/esm/graph/nodes/base.js.map +0 -1
- package/lib/esm/graph/nodes/boundary/input-value.js +0 -50
- package/lib/esm/graph/nodes/boundary/input-value.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/break.js +0 -62
- package/lib/esm/graph/nodes/flow-control/break.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +0 -63
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/human-approval.js +0 -71
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/if.js +0 -73
- package/lib/esm/graph/nodes/flow-control/if.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/parallel.js +0 -60
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +0 -1
- package/lib/esm/graph/nodes/flow-control/switch.js +0 -181
- package/lib/esm/graph/nodes/flow-control/switch.js.map +0 -1
- package/lib/esm/graph/nodes/index.js +0 -144
- package/lib/esm/graph/nodes/index.js.map +0 -1
- package/lib/esm/graph/nodes/loops/foreach.js +0 -180
- package/lib/esm/graph/nodes/loops/foreach.js.map +0 -1
- package/lib/esm/graph/nodes/loops/loop-metadata.js +0 -44
- package/lib/esm/graph/nodes/loops/loop-metadata.js.map +0 -1
- package/lib/esm/graph/nodes/loops/until.js +0 -127
- package/lib/esm/graph/nodes/loops/until.js.map +0 -1
- package/lib/esm/graph/nodes/loops/while.js +0 -124
- package/lib/esm/graph/nodes/loops/while.js.map +0 -1
- package/lib/esm/graph/nodes/manifests.js +0 -338
- package/lib/esm/graph/nodes/manifests.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/chat.js +0 -73
- package/lib/esm/graph/nodes/triggers/chat.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/event.js +0 -54
- package/lib/esm/graph/nodes/triggers/event.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/form.js +0 -55
- package/lib/esm/graph/nodes/triggers/form.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/manual.js +0 -56
- package/lib/esm/graph/nodes/triggers/manual.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/schedule.js +0 -56
- package/lib/esm/graph/nodes/triggers/schedule.js.map +0 -1
- package/lib/esm/graph/nodes/triggers/webhook.js +0 -58
- package/lib/esm/graph/nodes/triggers/webhook.js.map +0 -1
- package/lib/esm/graph/nodes/utility/code.js +0 -130
- package/lib/esm/graph/nodes/utility/code.js.map +0 -1
- package/lib/esm/graph/nodes/utility/delay.js +0 -57
- package/lib/esm/graph/nodes/utility/delay.js.map +0 -1
- package/lib/esm/graph/nodes/utility/log.js +0 -61
- package/lib/esm/graph/nodes/utility/log.js.map +0 -1
- package/lib/esm/graph/nodes/utility/map.js +0 -60
- package/lib/esm/graph/nodes/utility/map.js.map +0 -1
- package/lib/esm/graph/nodes/utility/merge.js +0 -58
- package/lib/esm/graph/nodes/utility/merge.js.map +0 -1
- package/lib/esm/graph/nodes/utility/return.js +0 -60
- package/lib/esm/graph/nodes/utility/return.js.map +0 -1
- package/lib/esm/graph/nodes/utility/utility-log.js +0 -68
- package/lib/esm/graph/nodes/utility/utility-log.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutionController.js +0 -257
- package/lib/esm/nest/graph/GraphExecutionController.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutionModule.js +0 -137
- package/lib/esm/nest/graph/GraphExecutionModule.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutionResultModel.js +0 -66
- package/lib/esm/nest/graph/GraphExecutionResultModel.js.map +0 -1
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js +0 -99
- package/lib/esm/nest/graph/GraphExecutorRegistryFactory.js.map +0 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +0 -261
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +0 -1
- package/lib/esm/nest/graph/GraphResultService.js +0 -60
- package/lib/esm/nest/graph/GraphResultService.js.map +0 -1
- package/lib/esm/nest/graph/GraphRunController.js +0 -270
- package/lib/esm/nest/graph/GraphRunController.js.map +0 -1
- package/lib/esm/nest/graph/GraphRunModel.js +0 -74
- package/lib/esm/nest/graph/GraphRunModel.js.map +0 -1
- package/lib/esm/nest/graph/GraphRunModelService.js +0 -112
- package/lib/esm/nest/graph/GraphRunModelService.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js +0 -166
- package/lib/esm/nest/graph/GraphWorkflowBoundaryValidation.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowController.js +0 -153
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js +0 -8
- package/lib/esm/nest/graph/GraphWorkflowDocumentLimits.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowErrors.js +0 -18
- package/lib/esm/nest/graph/GraphWorkflowErrors.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowModel.js +0 -57
- package/lib/esm/nest/graph/GraphWorkflowModel.js.map +0 -1
- package/lib/esm/nest/graph/GraphWorkflowService.js +0 -243
- package/lib/esm/nest/graph/GraphWorkflowService.js.map +0 -1
- package/lib/esm/nest/graph/index.js +0 -16
- package/lib/esm/nest/graph/index.js.map +0 -1
- package/lib/esm/nest/graph/main.js +0 -44
- package/lib/esm/nest/graph/main.js.map +0 -1
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.cts +0 -24
- package/lib/types/blob/ipfs/IpfsBlobEnvironment.d.mts +0 -24
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +0 -61
- package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +0 -61
- package/lib/types/blob/ipfs/IpfsKeyIndex.d.cts +0 -9
- package/lib/types/blob/ipfs/IpfsKeyIndex.d.mts +0 -9
- package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.cts +0 -11
- package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.mts +0 -11
- package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.cts +0 -15
- package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.mts +0 -15
- package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.cts +0 -11
- package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.mts +0 -11
- package/lib/types/blob/ipfs/index.d.cts +0 -11
- package/lib/types/blob/ipfs/index.d.mts +0 -11
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.cts +0 -14
- package/lib/types/graph/engine/catalog/GraphBuiltInRegistrations.d.mts +0 -14
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.cts +0 -13
- package/lib/types/graph/engine/catalog/GraphCatalogueErrors.d.mts +0 -13
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.cts +0 -71
- package/lib/types/graph/engine/catalog/GraphNodeCatalogue.d.mts +0 -71
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.cts +0 -42
- package/lib/types/graph/engine/catalog/GraphNodeManifestResolver.d.mts +0 -42
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.cts +0 -22
- package/lib/types/graph/engine/catalog/GraphNodeMethodRegistry.d.mts +0 -22
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.cts +0 -68
- package/lib/types/graph/engine/catalog/GraphNodeRegistration.d.mts +0 -68
- package/lib/types/graph/engine/catalog/index.d.cts +0 -6
- package/lib/types/graph/engine/catalog/index.d.mts +0 -6
- package/lib/types/graph/engine/constants.d.cts +0 -59
- package/lib/types/graph/engine/constants.d.mts +0 -59
- package/lib/types/graph/engine/decorators.d.cts +0 -6
- package/lib/types/graph/engine/decorators.d.mts +0 -6
- package/lib/types/graph/engine/errors/GraphBreakSignal.d.cts +0 -28
- package/lib/types/graph/engine/errors/GraphBreakSignal.d.mts +0 -28
- package/lib/types/graph/engine/errors/GraphCycleError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphCycleError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphExecutionError.d.cts +0 -19
- package/lib/types/graph/engine/errors/GraphExecutionError.d.mts +0 -19
- package/lib/types/graph/engine/errors/GraphInputError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphInputError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphLoopLimitError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphLoopLimitError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphPinningError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphPinningError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphPortError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphPortError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.cts +0 -9
- package/lib/types/graph/engine/errors/GraphRunCancelledError.d.mts +0 -9
- package/lib/types/graph/engine/errors/GraphStoreError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphStoreError.d.mts +0 -12
- package/lib/types/graph/engine/errors/GraphTopologyError.d.cts +0 -12
- package/lib/types/graph/engine/errors/GraphTopologyError.d.mts +0 -12
- package/lib/types/graph/engine/errors/index.d.cts +0 -15
- package/lib/types/graph/engine/errors/index.d.mts +0 -15
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.cts +0 -26
- package/lib/types/graph/engine/events/GraphExecutionEventEmitter.d.mts +0 -26
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.cts +0 -25
- package/lib/types/graph/engine/events/GraphExecutionEventFactory.d.mts +0 -25
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.cts +0 -17
- package/lib/types/graph/engine/events/GraphExecutionObserver.d.mts +0 -17
- package/lib/types/graph/engine/events/index.d.cts +0 -8
- package/lib/types/graph/engine/events/index.d.mts +0 -8
- package/lib/types/graph/engine/execution/CodeSandboxEvaluator.d.cts +0 -76
- package/lib/types/graph/engine/execution/CodeSandboxEvaluator.d.mts +0 -76
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.cts +0 -79
- package/lib/types/graph/engine/execution/GraphExecutionContext.d.mts +0 -79
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.cts +0 -278
- package/lib/types/graph/engine/execution/GraphExecutionEngine.d.mts +0 -278
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.cts +0 -42
- package/lib/types/graph/engine/execution/GraphExecutionFrame.d.mts +0 -42
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.cts +0 -13
- package/lib/types/graph/engine/execution/GraphExecutionResult.d.mts +0 -13
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.cts +0 -31
- package/lib/types/graph/engine/execution/GraphNodeExecutor.d.mts +0 -31
- package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.cts +0 -63
- package/lib/types/graph/engine/execution/IsolatedVmCodeSandboxEvaluator.d.mts +0 -63
- package/lib/types/graph/engine/execution/index.d.cts +0 -12
- package/lib/types/graph/engine/execution/index.d.mts +0 -12
- package/lib/types/graph/engine/index.d.cts +0 -56
- package/lib/types/graph/engine/index.d.mts +0 -56
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.cts +0 -36
- package/lib/types/graph/engine/loops/ConditionExpressionEvaluator.d.mts +0 -36
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.cts +0 -40
- package/lib/types/graph/engine/loops/GraphConditionEvaluator.d.mts +0 -40
- package/lib/types/graph/engine/loops/GraphLoopExecutionContext.d.cts +0 -15
- package/lib/types/graph/engine/loops/GraphLoopExecutionContext.d.mts +0 -15
- package/lib/types/graph/engine/loops/index.d.cts +0 -8
- package/lib/types/graph/engine/loops/index.d.mts +0 -8
- package/lib/types/graph/engine/pinning/GraphPinningDependencyResolver.d.cts +0 -21
- package/lib/types/graph/engine/pinning/GraphPinningDependencyResolver.d.mts +0 -21
- package/lib/types/graph/engine/pinning/GraphPinningMetadata.d.cts +0 -14
- package/lib/types/graph/engine/pinning/GraphPinningMetadata.d.mts +0 -14
- package/lib/types/graph/engine/pinning/GraphPinningPolicy.d.cts +0 -20
- package/lib/types/graph/engine/pinning/GraphPinningPolicy.d.mts +0 -20
- package/lib/types/graph/engine/pinning/GraphPinningService.d.cts +0 -70
- package/lib/types/graph/engine/pinning/GraphPinningService.d.mts +0 -70
- package/lib/types/graph/engine/pinning/index.d.cts +0 -9
- package/lib/types/graph/engine/pinning/index.d.mts +0 -9
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.cts +0 -25
- package/lib/types/graph/engine/planning/GraphExecutionPlan.d.mts +0 -25
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.cts +0 -26
- package/lib/types/graph/engine/planning/GraphExecutionPlanEdge.d.mts +0 -26
- package/lib/types/graph/engine/planning/GraphExecutionPlanLayer.d.cts +0 -13
- package/lib/types/graph/engine/planning/GraphExecutionPlanLayer.d.mts +0 -13
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.cts +0 -28
- package/lib/types/graph/engine/planning/GraphExecutionPlanNode.d.mts +0 -28
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.cts +0 -48
- package/lib/types/graph/engine/planning/GraphExecutionPlanner.d.mts +0 -48
- package/lib/types/graph/engine/planning/GraphTopology.d.cts +0 -23
- package/lib/types/graph/engine/planning/GraphTopology.d.mts +0 -23
- package/lib/types/graph/engine/planning/index.d.cts +0 -11
- package/lib/types/graph/engine/planning/index.d.mts +0 -11
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.cts +0 -39
- package/lib/types/graph/engine/registry/GraphNodeExecutorRegistry.d.mts +0 -39
- package/lib/types/graph/engine/registry/GraphNodeExecutorResolver.d.cts +0 -21
- package/lib/types/graph/engine/registry/GraphNodeExecutorResolver.d.mts +0 -21
- package/lib/types/graph/engine/registry/index.d.cts +0 -7
- package/lib/types/graph/engine/registry/index.d.mts +0 -7
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.cts +0 -26
- package/lib/types/graph/engine/runs/GraphRunEventPublisher.d.mts +0 -26
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.cts +0 -75
- package/lib/types/graph/engine/runs/GraphRunExecutor.d.mts +0 -75
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.cts +0 -8
- package/lib/types/graph/engine/runs/GraphRunFingerprint.d.mts +0 -8
- package/lib/types/graph/engine/runs/GraphRunService.d.cts +0 -93
- package/lib/types/graph/engine/runs/GraphRunService.d.mts +0 -93
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.cts +0 -28
- package/lib/types/graph/engine/runs/InMemoryGraphRunEventStore.d.mts +0 -28
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.cts +0 -12
- package/lib/types/graph/engine/runs/InMemoryGraphRunStore.d.mts +0 -12
- package/lib/types/graph/engine/runs/index.d.cts +0 -8
- package/lib/types/graph/engine/runs/index.d.mts +0 -8
- package/lib/types/graph/engine/runs/ownership.d.cts +0 -25
- package/lib/types/graph/engine/runs/ownership.d.mts +0 -25
- package/lib/types/graph/engine/runs/types.d.cts +0 -83
- package/lib/types/graph/engine/runs/types.d.mts +0 -83
- package/lib/types/graph/engine/snapshots/GraphExecutionSnapshotMapper.d.cts +0 -10
- package/lib/types/graph/engine/snapshots/GraphExecutionSnapshotMapper.d.mts +0 -10
- package/lib/types/graph/engine/snapshots/index.d.cts +0 -6
- package/lib/types/graph/engine/snapshots/index.d.mts +0 -6
- package/lib/types/graph/engine/store/GraphCachedValue.d.cts +0 -20
- package/lib/types/graph/engine/store/GraphCachedValue.d.mts +0 -20
- package/lib/types/graph/engine/store/GraphValueKey.d.cts +0 -18
- package/lib/types/graph/engine/store/GraphValueKey.d.mts +0 -18
- package/lib/types/graph/engine/store/GraphValueStore.d.cts +0 -41
- package/lib/types/graph/engine/store/GraphValueStore.d.mts +0 -41
- package/lib/types/graph/engine/store/GraphValueStoreAdapter.d.cts +0 -32
- package/lib/types/graph/engine/store/GraphValueStoreAdapter.d.mts +0 -32
- package/lib/types/graph/engine/store/InMemoryGraphValueStoreAdapter.d.cts +0 -33
- package/lib/types/graph/engine/store/InMemoryGraphValueStoreAdapter.d.mts +0 -33
- package/lib/types/graph/engine/store/index.d.cts +0 -10
- package/lib/types/graph/engine/store/index.d.mts +0 -10
- package/lib/types/graph/engine/types.d.cts +0 -208
- package/lib/types/graph/engine/types.d.mts +0 -208
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.cts +0 -32
- package/lib/types/graph/engine/validation/GraphConnectionPolicyValidator.d.mts +0 -32
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.cts +0 -62
- package/lib/types/graph/engine/validation/GraphCredentialReferenceValidator.d.mts +0 -62
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.cts +0 -23
- package/lib/types/graph/engine/validation/GraphDefinitionValidator.d.mts +0 -23
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.cts +0 -32
- package/lib/types/graph/engine/validation/GraphEdgeInstanceValidator.d.mts +0 -32
- package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.cts +0 -21
- package/lib/types/graph/engine/validation/GraphLooseNodeValidation.d.mts +0 -21
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.cts +0 -37
- package/lib/types/graph/engine/validation/GraphNodeInstanceValidator.d.mts +0 -37
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.cts +0 -116
- package/lib/types/graph/engine/validation/GraphParameterValidator.d.mts +0 -116
- package/lib/types/graph/engine/validation/GraphPortSchemaResolver.d.cts +0 -39
- package/lib/types/graph/engine/validation/GraphPortSchemaResolver.d.mts +0 -39
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.cts +0 -66
- package/lib/types/graph/engine/validation/GraphResolvedWorkflow.d.mts +0 -66
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.cts +0 -34
- package/lib/types/graph/engine/validation/GraphValidationErrors.d.mts +0 -34
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.cts +0 -39
- package/lib/types/graph/engine/validation/GraphValidationIssue.d.mts +0 -39
- package/lib/types/graph/engine/validation/GraphValueValidator.d.cts +0 -27
- package/lib/types/graph/engine/validation/GraphValueValidator.d.mts +0 -27
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.cts +0 -162
- package/lib/types/graph/engine/validation/GraphWorkflowDocumentValidator.d.mts +0 -162
- package/lib/types/graph/engine/validation/index.d.cts +0 -20
- package/lib/types/graph/engine/validation/index.d.mts +0 -20
- package/lib/types/graph/index.d.cts +0 -12
- package/lib/types/graph/index.d.mts +0 -12
- package/lib/types/graph/log/GraphRunLogger.d.cts +0 -76
- package/lib/types/graph/log/GraphRunLogger.d.mts +0 -76
- package/lib/types/graph/log/LogParameters.d.cts +0 -7
- package/lib/types/graph/log/LogParameters.d.mts +0 -7
- package/lib/types/graph/nodes/agents/agent.d.cts +0 -31
- package/lib/types/graph/nodes/agents/agent.d.mts +0 -31
- package/lib/types/graph/nodes/base.d.cts +0 -58
- package/lib/types/graph/nodes/base.d.mts +0 -58
- package/lib/types/graph/nodes/boundary/input-value.d.cts +0 -6
- package/lib/types/graph/nodes/boundary/input-value.d.mts +0 -6
- package/lib/types/graph/nodes/flow-control/break.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/break.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/error-boundary.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/error-boundary.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/human-approval.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/human-approval.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/if.d.cts +0 -8
- package/lib/types/graph/nodes/flow-control/if.d.mts +0 -8
- package/lib/types/graph/nodes/flow-control/parallel.d.cts +0 -7
- package/lib/types/graph/nodes/flow-control/parallel.d.mts +0 -7
- package/lib/types/graph/nodes/flow-control/switch.d.cts +0 -23
- package/lib/types/graph/nodes/flow-control/switch.d.mts +0 -23
- package/lib/types/graph/nodes/index.d.cts +0 -93
- package/lib/types/graph/nodes/index.d.mts +0 -93
- package/lib/types/graph/nodes/loops/foreach.d.cts +0 -11
- package/lib/types/graph/nodes/loops/foreach.d.mts +0 -11
- package/lib/types/graph/nodes/loops/loop-metadata.d.cts +0 -20
- package/lib/types/graph/nodes/loops/loop-metadata.d.mts +0 -20
- package/lib/types/graph/nodes/loops/until.d.cts +0 -8
- package/lib/types/graph/nodes/loops/until.d.mts +0 -8
- package/lib/types/graph/nodes/loops/while.d.cts +0 -8
- package/lib/types/graph/nodes/loops/while.d.mts +0 -8
- package/lib/types/graph/nodes/manifests.d.cts +0 -62
- package/lib/types/graph/nodes/manifests.d.mts +0 -62
- package/lib/types/graph/nodes/triggers/chat.d.cts +0 -8
- package/lib/types/graph/nodes/triggers/chat.d.mts +0 -8
- package/lib/types/graph/nodes/triggers/event.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/event.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/form.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/form.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/manual.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/manual.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/schedule.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/schedule.d.mts +0 -6
- package/lib/types/graph/nodes/triggers/webhook.d.cts +0 -6
- package/lib/types/graph/nodes/triggers/webhook.d.mts +0 -6
- package/lib/types/graph/nodes/utility/code.d.cts +0 -36
- package/lib/types/graph/nodes/utility/code.d.mts +0 -36
- package/lib/types/graph/nodes/utility/delay.d.cts +0 -7
- package/lib/types/graph/nodes/utility/delay.d.mts +0 -7
- package/lib/types/graph/nodes/utility/log.d.cts +0 -8
- package/lib/types/graph/nodes/utility/log.d.mts +0 -8
- package/lib/types/graph/nodes/utility/map.d.cts +0 -7
- package/lib/types/graph/nodes/utility/map.d.mts +0 -7
- package/lib/types/graph/nodes/utility/merge.d.cts +0 -7
- package/lib/types/graph/nodes/utility/merge.d.mts +0 -7
- package/lib/types/graph/nodes/utility/return.d.cts +0 -7
- package/lib/types/graph/nodes/utility/return.d.mts +0 -7
- package/lib/types/graph/nodes/utility/utility-log.d.cts +0 -10
- package/lib/types/graph/nodes/utility/utility-log.d.mts +0 -10
- package/lib/types/nest/graph/GraphExecutionController.d.cts +0 -110
- package/lib/types/nest/graph/GraphExecutionController.d.mts +0 -110
- package/lib/types/nest/graph/GraphExecutionModule.d.cts +0 -83
- package/lib/types/nest/graph/GraphExecutionModule.d.mts +0 -83
- package/lib/types/nest/graph/GraphExecutionResultModel.d.cts +0 -24
- package/lib/types/nest/graph/GraphExecutionResultModel.d.mts +0 -24
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.cts +0 -68
- package/lib/types/nest/graph/GraphExecutorRegistryFactory.d.mts +0 -68
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +0 -70
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +0 -70
- package/lib/types/nest/graph/GraphResultService.d.cts +0 -20
- package/lib/types/nest/graph/GraphResultService.d.mts +0 -20
- package/lib/types/nest/graph/GraphRunController.d.cts +0 -87
- package/lib/types/nest/graph/GraphRunController.d.mts +0 -87
- package/lib/types/nest/graph/GraphRunModel.d.cts +0 -22
- package/lib/types/nest/graph/GraphRunModel.d.mts +0 -22
- package/lib/types/nest/graph/GraphRunModelService.d.cts +0 -21
- package/lib/types/nest/graph/GraphRunModelService.d.mts +0 -21
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.cts +0 -28
- package/lib/types/nest/graph/GraphWorkflowBoundaryValidation.d.mts +0 -28
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +0 -62
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +0 -62
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.cts +0 -33
- package/lib/types/nest/graph/GraphWorkflowDocumentLimits.d.mts +0 -33
- package/lib/types/nest/graph/GraphWorkflowErrors.d.cts +0 -13
- package/lib/types/nest/graph/GraphWorkflowErrors.d.mts +0 -13
- package/lib/types/nest/graph/GraphWorkflowModel.d.cts +0 -24
- package/lib/types/nest/graph/GraphWorkflowModel.d.mts +0 -24
- package/lib/types/nest/graph/GraphWorkflowService.d.cts +0 -54
- package/lib/types/nest/graph/GraphWorkflowService.d.mts +0 -54
- package/lib/types/nest/graph/index.d.cts +0 -15
- package/lib/types/nest/graph/index.d.mts +0 -15
- package/lib/types/nest/graph/main.d.cts +0 -1
- package/lib/types/nest/graph/main.d.mts +0 -1
- /package/lib/cjs/{graph/engine/runs → redis}/types.cjs +0 -0
- /package/lib/esm/{graph/engine/runs → redis}/types.js +0 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import "reflect-metadata";
|
|
2
|
+
import { Adapter, AdapterFlags, ContextualArgs, MaybeContextualArg, RawResult } from "@decaf-ts/core";
|
|
3
|
+
import { type RedisClientType } from "redis";
|
|
4
|
+
import { BaseError, OperationKeys, PrimaryKeyType } from "@decaf-ts/db-decorators";
|
|
5
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
6
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
7
|
+
import { RawRedisQuery, RedisConfig, RedisContext, RedisFlags } from "./types.d.mts";
|
|
8
|
+
import { RedisStatement } from "./RedisStatement.d.mts";
|
|
9
|
+
import { RedisPaginator } from "./RedisPaginator.d.mts";
|
|
10
|
+
import { RedisDispatch } from "./RedisDispatch.d.mts";
|
|
11
|
+
import { RedisContextLock } from "./RedisContextLock.d.mts";
|
|
12
|
+
/**
|
|
13
|
+
* @description Redis adapter for data persistence
|
|
14
|
+
* @summary The RedisAdapter implements the persistence layer on top of Redis
|
|
15
|
+
* (or any Redis-compatible server such as DragonflyDB). Each model table is
|
|
16
|
+
* stored as a single Redis hash whose fields are record ids and whose values are
|
|
17
|
+
* serialized records. The adapter is modelled on the core RAM adapter: raw queries
|
|
18
|
+
* load the matching table, revert every record to a model and then apply the same
|
|
19
|
+
* filtering, sorting, aggregation and pagination logic in JavaScript.
|
|
20
|
+
* `@transactional()` is backed by {@link RedisContextLock}, which buffers writes
|
|
21
|
+
* on a dedicated connection and flushes them atomically with `MULTI`/`EXEC`.
|
|
22
|
+
* @class RedisAdapter
|
|
23
|
+
* @category Redis
|
|
24
|
+
* @example
|
|
25
|
+
* ```typescript
|
|
26
|
+
* const adapter = new RedisAdapter({ url: "redis://localhost:6379" });
|
|
27
|
+
* await adapter.initialize();
|
|
28
|
+
* const repo = new (adapter.repository<User>())(User, adapter);
|
|
29
|
+
* await repo.create(new User({ name: "John" }));
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare class RedisAdapter extends Adapter<RedisConfig, RedisClientType, RawRedisQuery, RedisContext> {
|
|
33
|
+
private _redisClient?;
|
|
34
|
+
constructor(conf?: RedisConfig, alias?: string);
|
|
35
|
+
/**
|
|
36
|
+
* @description Creates operation flags with a user identity
|
|
37
|
+
* @summary Extends the base flags with a `UUID` used by the `createdBy` and
|
|
38
|
+
* `updatedBy` handlers. Defaults to the configured `user` or the current time.
|
|
39
|
+
* @template M - The model type for the operation
|
|
40
|
+
* @param {OperationKeys} operation - The operation being performed
|
|
41
|
+
* @param {Constructor<M>} model - The model constructor
|
|
42
|
+
* @param {Partial<RedisFlags>} flags - Partial flags to extend
|
|
43
|
+
* @return {Promise<RedisFlags>} The complete flags with a UUID
|
|
44
|
+
*/
|
|
45
|
+
flags<M extends Model<boolean>>(operation: OperationKeys, model: Constructor<M>, flags: Partial<RedisFlags>): Promise<RedisFlags>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Creates the Redis event dispatcher
|
|
48
|
+
* @return {RedisDispatch} A Redis-aware dispatch instance
|
|
49
|
+
*/
|
|
50
|
+
protected Dispatch(): RedisDispatch;
|
|
51
|
+
/**
|
|
52
|
+
* @description Provides the Redis transaction lock implementation
|
|
53
|
+
* @summary Returns a fresh {@link RedisContextLock} per top-level transaction
|
|
54
|
+
* so `@transactional()` can buffer writes on a dedicated connection.
|
|
55
|
+
* @param {...any[]} args - Optional arguments forwarded to the lock
|
|
56
|
+
* @return {RedisContextLock} A fresh Redis transaction lock
|
|
57
|
+
*/
|
|
58
|
+
transactionLock(...args: any[]): RedisContextLock<this>;
|
|
59
|
+
/**
|
|
60
|
+
* @description Initializes the adapter and opens the Redis connection
|
|
61
|
+
* @param {...MaybeContextualArg} args - Initialization arguments
|
|
62
|
+
* @return {Promise<void>} A promise that resolves once initialization is complete
|
|
63
|
+
*/
|
|
64
|
+
initialize(...args: MaybeContextualArg<RedisContext>): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* @description Shuts down the adapter and closes the Redis connection
|
|
67
|
+
* @param {...MaybeContextualArg} args - Shutdown arguments
|
|
68
|
+
* @return {Promise<void>} A promise that resolves once shutdown is complete
|
|
69
|
+
*/
|
|
70
|
+
shutdown(...args: MaybeContextualArg<RedisContext>): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* @description Builds the namespaced Redis key for a table
|
|
73
|
+
* @param {string} table - The table (model) name
|
|
74
|
+
* @return {string} The namespaced Redis hash key
|
|
75
|
+
*/
|
|
76
|
+
recordKey(table: string): string;
|
|
77
|
+
/**
|
|
78
|
+
* @description Resolves the active transaction lock from a context, when present
|
|
79
|
+
* @summary Returns the {@link RedisContextLock} only while a transaction is
|
|
80
|
+
* actually open, so CRUD operations buffer their writes during a transaction and
|
|
81
|
+
* go straight to Redis otherwise.
|
|
82
|
+
* @param {RedisContext} [ctx] - The operation context
|
|
83
|
+
* @return {RedisContextLock | undefined} The active lock, when one exists
|
|
84
|
+
*/
|
|
85
|
+
protected activeLock(ctx?: RedisContext): RedisContextLock | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* @description Prepares a model for storage
|
|
88
|
+
* @summary Delegates to the base implementation, which extracts the primary
|
|
89
|
+
* key from the record before it is handed to {@link create}.
|
|
90
|
+
* @template M - The model type being prepared
|
|
91
|
+
* @param {M} model - The model instance to prepare
|
|
92
|
+
* @return Object containing the record, id and transient data
|
|
93
|
+
*/
|
|
94
|
+
prepare<M extends Model>(model: M, ...args: [...any[], RedisContext]): {
|
|
95
|
+
record: Record<string, any>;
|
|
96
|
+
id: string;
|
|
97
|
+
transient?: Record<string, any>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* @description Converts a stored record back to a model instance
|
|
101
|
+
* @summary Delegates to the base implementation, reattaching the primary key
|
|
102
|
+
* extracted from the record's Redis hash field.
|
|
103
|
+
* @template M - The model type to revert to
|
|
104
|
+
* @param {Record<string, any>} obj - The stored record
|
|
105
|
+
* @param {Constructor<M>} clazz - The model constructor
|
|
106
|
+
* @param {PrimaryKeyType} id - The primary key value
|
|
107
|
+
* @return {M} The reconstructed model instance
|
|
108
|
+
*/
|
|
109
|
+
revert<M extends Model>(obj: Record<string, any>, clazz: Constructor<M>, id: PrimaryKeyType, transient?: Record<string, any>, ...args: [...any[], RedisContext]): M;
|
|
110
|
+
/**
|
|
111
|
+
* @description Creates a new record in Redis
|
|
112
|
+
* @summary Writes the serialized record to the table hash. Inside a
|
|
113
|
+
* transaction the write is buffered (read-your-writes) instead of hitting
|
|
114
|
+
* Redis; otherwise `HSETNX` guarantees the record does not already exist.
|
|
115
|
+
* @template M - The model type
|
|
116
|
+
* @param {Constructor<M>} clazz - The model constructor
|
|
117
|
+
* @param {PrimaryKeyType} id - The unique record identifier
|
|
118
|
+
* @param {Record<string, any>} model - The record to store
|
|
119
|
+
* @return {Promise<Record<string, any>>} The stored record
|
|
120
|
+
*/
|
|
121
|
+
create<M extends Model>(clazz: Constructor<M>, id: PrimaryKeyType, model: Record<string, any>, ...args: ContextualArgs<RedisContext>): Promise<Record<string, any>>;
|
|
122
|
+
/**
|
|
123
|
+
* @description Reads a record from Redis
|
|
124
|
+
* @summary Reads the record from the table hash. Inside a transaction the
|
|
125
|
+
* buffered value wins (read-your-writes); a buffered delete is treated as a
|
|
126
|
+
* missing record.
|
|
127
|
+
* @template M - The model type
|
|
128
|
+
* @param {Constructor<M>} clazz - The model constructor
|
|
129
|
+
* @param {PrimaryKeyType} id - The unique record identifier
|
|
130
|
+
* @return {Promise<Record<string, any>>} The stored record
|
|
131
|
+
*/
|
|
132
|
+
read<M extends Model>(clazz: Constructor<M>, id: PrimaryKeyType, ...args: ContextualArgs<RedisContext>): Promise<Record<string, any>>;
|
|
133
|
+
/**
|
|
134
|
+
* @description Updates an existing record in Redis
|
|
135
|
+
* @summary Inside a transaction the write is buffered; otherwise the record
|
|
136
|
+
* is overwritten in place. A missing record raises a `NotFoundError`.
|
|
137
|
+
* @template M - The model type
|
|
138
|
+
* @param {Constructor<M>} clazz - The model constructor
|
|
139
|
+
* @param {PrimaryKeyType} id - The unique record identifier
|
|
140
|
+
* @param {Record<string, any>} model - The new record data
|
|
141
|
+
* @return {Promise<Record<string, any>>} The updated record
|
|
142
|
+
*/
|
|
143
|
+
update<M extends Model>(clazz: Constructor<M>, id: PrimaryKeyType, model: Record<string, any>, ...args: ContextualArgs<RedisContext>): Promise<Record<string, any>>;
|
|
144
|
+
/**
|
|
145
|
+
* @description Deletes a record from Redis
|
|
146
|
+
* @summary Inside a transaction the delete is buffered; otherwise the field
|
|
147
|
+
* is removed from the table hash immediately. A missing record raises a
|
|
148
|
+
* `NotFoundError`.
|
|
149
|
+
* @template M - The model type
|
|
150
|
+
* @param {Constructor<M>} clazz - The model constructor
|
|
151
|
+
* @param {PrimaryKeyType} id - The unique record identifier
|
|
152
|
+
* @return {Promise<Record<string, any>>} The deleted record
|
|
153
|
+
*/
|
|
154
|
+
delete<M extends Model>(clazz: Constructor<M>, id: PrimaryKeyType, ...args: ContextualArgs<RedisContext>): Promise<Record<string, any>>;
|
|
155
|
+
/**
|
|
156
|
+
* @description Loads every record of a table, applying buffered writes
|
|
157
|
+
* @summary Reads the table hash and merges the transaction buffer on top so a
|
|
158
|
+
* query inside a transaction observes the transaction's own writes.
|
|
159
|
+
* @param {string} table - The table (model) name
|
|
160
|
+
* @param {RedisContext} [ctx] - The operation context
|
|
161
|
+
* @return {Promise<[string, string][]>} The record id/serialized pairs
|
|
162
|
+
*/
|
|
163
|
+
protected loadTable(table: string, ctx?: RedisContext): Promise<[string, string][]>;
|
|
164
|
+
/**
|
|
165
|
+
* @description Executes a raw query against Redis
|
|
166
|
+
* @summary Loads the matching table, reverts every record to a model and
|
|
167
|
+
* applies the in-memory filtering, sorting, aggregation and pagination logic.
|
|
168
|
+
* This mirrors the core RAM adapter, since Redis hashes are not queryable.
|
|
169
|
+
* @template R - The query return type
|
|
170
|
+
* @template D - Whether only documents are returned
|
|
171
|
+
* @param {RawRedisQuery<any>} rawInput - The query specification
|
|
172
|
+
* @param {D} docsOnly - Whether to return only documents (default true)
|
|
173
|
+
* @return {Promise<RawResult<R, D>>} The query result
|
|
174
|
+
*/
|
|
175
|
+
raw<R, D extends boolean>(rawInput: RawRedisQuery<any>, docsOnly?: D, ...args: ContextualArgs<RedisContext>): Promise<RawResult<R, D>>;
|
|
176
|
+
/**
|
|
177
|
+
* @description Groups records by one or more attributes
|
|
178
|
+
* @summary Recursively nests groups when multiple selectors are provided; the
|
|
179
|
+
* top-level result maps each group key to the matching records (or nested groups).
|
|
180
|
+
* @param {any[]} records - The records to group
|
|
181
|
+
* @param {(keyof Model)[]} selectors - The attributes to group by
|
|
182
|
+
* @return {Record<string, any>} The grouped records keyed by normalized group keys
|
|
183
|
+
*/
|
|
184
|
+
private groupRecords;
|
|
185
|
+
/**
|
|
186
|
+
* @description Normalizes a group key to a string
|
|
187
|
+
* @summary Produces a stable string key for `undefined`, `null`, symbols,
|
|
188
|
+
* objects (via JSON) and primitives.
|
|
189
|
+
* @param {any} value - The raw group key value
|
|
190
|
+
* @return {string} The normalized key
|
|
191
|
+
*/
|
|
192
|
+
private normalizeGroupKey;
|
|
193
|
+
/**
|
|
194
|
+
* @description Applies skip/limit pagination over grouped results
|
|
195
|
+
* @summary Pages the group keys while preserving their associated records.
|
|
196
|
+
* @param {Record<string, any>} grouped - The grouped records
|
|
197
|
+
* @param {number} [skip] - The number of groups to skip
|
|
198
|
+
* @param {number} [limit] - The maximum number of groups to return
|
|
199
|
+
* @return {Record<string, any>} The paged groups
|
|
200
|
+
*/
|
|
201
|
+
private applyGroupPagination;
|
|
202
|
+
/**
|
|
203
|
+
* @description Parses and converts errors to appropriate types
|
|
204
|
+
* @summary Returns `BaseError` instances unchanged, maps connection
|
|
205
|
+
* failures to `ConnectionError` and wraps everything else in an
|
|
206
|
+
* `InternalError`.
|
|
207
|
+
* @template V - The expected error type
|
|
208
|
+
* @param {Error} err - The error to parse
|
|
209
|
+
* @return {V} The parsed error
|
|
210
|
+
*/
|
|
211
|
+
parseError<V extends BaseError>(err: Error): V;
|
|
212
|
+
/**
|
|
213
|
+
* @description Creates a new statement builder for queries
|
|
214
|
+
* @template M - The model type for the statement
|
|
215
|
+
* @param {Partial<AdapterFlags>} [overrides] - Optional adapter flag overrides
|
|
216
|
+
* @return {RedisStatement<M, any, Adapter<...>>} A new statement builder
|
|
217
|
+
*/
|
|
218
|
+
Statement<M extends Model<boolean>>(overrides?: Partial<AdapterFlags>): RedisStatement<M, any, Adapter<any, any, RawRedisQuery<M>, RedisContext>>;
|
|
219
|
+
/**
|
|
220
|
+
* @description Creates a new paginator for queries
|
|
221
|
+
* @template M - The model type for the paginator
|
|
222
|
+
* @param {RawRedisQuery} query - The query to paginate
|
|
223
|
+
* @param {number} size - The page size
|
|
224
|
+
* @param {Constructor<M>} clazz - The model constructor
|
|
225
|
+
* @return {RedisPaginator<M>} A new paginator
|
|
226
|
+
*/
|
|
227
|
+
Paginator<M extends Model<boolean>>(query: RawRedisQuery, size: number, clazz: Constructor<M>): RedisPaginator<M>;
|
|
228
|
+
/**
|
|
229
|
+
* @description Validates that an aggregation targets an attribute of the expected kind
|
|
230
|
+
* @summary Resolves the attribute type from the model metadata and raises a
|
|
231
|
+
* `QueryError` when the type does not satisfy the given predicate.
|
|
232
|
+
* @param {Constructor<Model>} clazz - The model constructor
|
|
233
|
+
* @param {string} field - The attribute name to validate
|
|
234
|
+
* @param {string} context - The aggregation context used in error messages
|
|
235
|
+
* @param {function(string): boolean} predicate - Type acceptance predicate
|
|
236
|
+
* @param {string} description - Human readable description of the accepted types
|
|
237
|
+
* @return {void}
|
|
238
|
+
*/
|
|
239
|
+
private ensureFieldType;
|
|
240
|
+
/**
|
|
241
|
+
* @description Resolves the attribute type from the model metadata
|
|
242
|
+
* @summary Reads the metadata or design type of the attribute and normalizes it
|
|
243
|
+
* to a lowercase type name.
|
|
244
|
+
* @param {Constructor<Model>} clazz - The model constructor
|
|
245
|
+
* @param {string} field - The attribute name
|
|
246
|
+
* @return {string | undefined} The normalized attribute type, when resolvable
|
|
247
|
+
*/
|
|
248
|
+
private resolveFieldType;
|
|
249
|
+
/**
|
|
250
|
+
* @description Normalizes a raw metadata type to a lowercase type name
|
|
251
|
+
* @param {any} metaType - The raw metadata type value
|
|
252
|
+
* @return {string | undefined} The normalized type name, when resolvable
|
|
253
|
+
*/
|
|
254
|
+
private normalizeMetaType;
|
|
255
|
+
/**
|
|
256
|
+
* @description Whether the given type name is a numeric type
|
|
257
|
+
* @param {string} [type] - The normalized type name
|
|
258
|
+
* @return {boolean} True for "number" and "bigint"
|
|
259
|
+
*/
|
|
260
|
+
private isNumericType;
|
|
261
|
+
/**
|
|
262
|
+
* @description Converts a value to a numeric value for aggregation
|
|
263
|
+
* @summary Accepts numbers and bigints (converted to `Number`) and raises a
|
|
264
|
+
* `QueryError` for any other value kind.
|
|
265
|
+
* @param {any} value - The value to convert
|
|
266
|
+
* @param {string} field - The attribute name used in error messages
|
|
267
|
+
* @param {string} context - The aggregation context used in error messages
|
|
268
|
+
* @return {number} The numeric value
|
|
269
|
+
*/
|
|
270
|
+
private toNumericValue;
|
|
271
|
+
/**
|
|
272
|
+
* @description Creates the underlying Redis client
|
|
273
|
+
* @summary Returns the already connected client when one exists (including
|
|
274
|
+
* through a `for()` configuration-scoped proxy, whose own `_client` slot would
|
|
275
|
+
* otherwise be empty and build a fresh unconnected client). Otherwise builds a
|
|
276
|
+
* node-redis client from the configured URL or discrete host/port/credentials.
|
|
277
|
+
* The client is created lazily and connected by {@link initialize}.
|
|
278
|
+
* @return {RedisClientType} The Redis client
|
|
279
|
+
*/
|
|
280
|
+
protected getClient(): RedisClientType;
|
|
281
|
+
/**
|
|
282
|
+
* @description Registers Redis-specific decorations for model properties
|
|
283
|
+
* @summary Configures `createdBy` and `updatedBy` handlers for the Redis
|
|
284
|
+
* flavour so those fields are populated from the context UUID.
|
|
285
|
+
* @return {void}
|
|
286
|
+
*/
|
|
287
|
+
static decoration(): void;
|
|
288
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Identifier for the Redis database flavour
|
|
3
|
+
* @summary Constant string that identifies the persistence adapter as "redis" for
|
|
4
|
+
* use in adapter selection and decoration. The same flavour serves Redis and any
|
|
5
|
+
* Redis-compatible server such as DragonflyDB.
|
|
6
|
+
* @const RedisFlavour
|
|
7
|
+
* @memberOf module:redis
|
|
8
|
+
*/
|
|
9
|
+
export declare const RedisFlavour = "redis";
|
|
10
|
+
/**
|
|
11
|
+
* @description Default key namespace used by the Redis adapter
|
|
12
|
+
* @summary Every key the adapter writes is namespaced under this prefix so a
|
|
13
|
+
* single Redis database can be shared by several decaf applications without
|
|
14
|
+
* collisions.
|
|
15
|
+
* @const RedisDefaultPrefix
|
|
16
|
+
* @memberOf module:redis
|
|
17
|
+
*/
|
|
18
|
+
export declare const RedisDefaultPrefix = "decaf:redis";
|
|
19
|
+
/**
|
|
20
|
+
* @description Redis pub/sub channel used to broadcast observer events
|
|
21
|
+
* @summary Channel on which the adapter publishes record change events so that
|
|
22
|
+
* every process sharing the database can refresh its observers.
|
|
23
|
+
* @const RedisEventsChannel
|
|
24
|
+
* @memberOf module:redis
|
|
25
|
+
*/
|
|
26
|
+
export declare const RedisEventsChannel = "decaf:redis:events";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Identifier for the Redis database flavour
|
|
3
|
+
* @summary Constant string that identifies the persistence adapter as "redis" for
|
|
4
|
+
* use in adapter selection and decoration. The same flavour serves Redis and any
|
|
5
|
+
* Redis-compatible server such as DragonflyDB.
|
|
6
|
+
* @const RedisFlavour
|
|
7
|
+
* @memberOf module:redis
|
|
8
|
+
*/
|
|
9
|
+
export declare const RedisFlavour = "redis";
|
|
10
|
+
/**
|
|
11
|
+
* @description Default key namespace used by the Redis adapter
|
|
12
|
+
* @summary Every key the adapter writes is namespaced under this prefix so a
|
|
13
|
+
* single Redis database can be shared by several decaf applications without
|
|
14
|
+
* collisions.
|
|
15
|
+
* @const RedisDefaultPrefix
|
|
16
|
+
* @memberOf module:redis
|
|
17
|
+
*/
|
|
18
|
+
export declare const RedisDefaultPrefix = "decaf:redis";
|
|
19
|
+
/**
|
|
20
|
+
* @description Redis pub/sub channel used to broadcast observer events
|
|
21
|
+
* @summary Channel on which the adapter publishes record change events so that
|
|
22
|
+
* every process sharing the database can refresh its observers.
|
|
23
|
+
* @const RedisEventsChannel
|
|
24
|
+
* @memberOf module:redis
|
|
25
|
+
*/
|
|
26
|
+
export declare const RedisEventsChannel = "decaf:redis:events";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { RelationsMetadata } from "@decaf-ts/core";
|
|
3
|
+
import { ContextOf, Repository } from "@decaf-ts/core";
|
|
4
|
+
import type { RedisAdapter } from "./adapter.d.cts";
|
|
5
|
+
/**
|
|
6
|
+
* @description Sets the created by field on a model during Redis create/update operations
|
|
7
|
+
* @summary Automatically populates a model field with the UUID from the context during create or update operations.
|
|
8
|
+
* This function is designed to be used as a handler for Redis operations to track entity creation.
|
|
9
|
+
* @template M - Type of the model being created/updated
|
|
10
|
+
* @template R - Type of the repository handling the model
|
|
11
|
+
* @param {R} this - The repository instance
|
|
12
|
+
* @param {Context} context - The operation context containing user identification
|
|
13
|
+
* @param {RelationsMetadata} data - The relations metadata
|
|
14
|
+
* @param {keyof M} key - The property key to set with the UUID
|
|
15
|
+
* @param {M} model - The model instance being created/updated
|
|
16
|
+
* @return {Promise<void>} A promise that resolves when the field has been set
|
|
17
|
+
* @function createdByOnRedisCreateUpdate
|
|
18
|
+
* @memberOf module:redis
|
|
19
|
+
*/
|
|
20
|
+
export declare function createdByOnRedisCreateUpdate<M extends Model, R extends Repository<M, RedisAdapter>>(this: R, context: ContextOf<R>, data: RelationsMetadata, key: keyof M, model: M): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { RelationsMetadata } from "@decaf-ts/core";
|
|
3
|
+
import { ContextOf, Repository } from "@decaf-ts/core";
|
|
4
|
+
import type { RedisAdapter } from "./adapter.d.mts";
|
|
5
|
+
/**
|
|
6
|
+
* @description Sets the created by field on a model during Redis create/update operations
|
|
7
|
+
* @summary Automatically populates a model field with the UUID from the context during create or update operations.
|
|
8
|
+
* This function is designed to be used as a handler for Redis operations to track entity creation.
|
|
9
|
+
* @template M - Type of the model being created/updated
|
|
10
|
+
* @template R - Type of the repository handling the model
|
|
11
|
+
* @param {R} this - The repository instance
|
|
12
|
+
* @param {Context} context - The operation context containing user identification
|
|
13
|
+
* @param {RelationsMetadata} data - The relations metadata
|
|
14
|
+
* @param {keyof M} key - The property key to set with the UUID
|
|
15
|
+
* @param {M} model - The model instance being created/updated
|
|
16
|
+
* @return {Promise<void>} A promise that resolves when the field has been set
|
|
17
|
+
* @function createdByOnRedisCreateUpdate
|
|
18
|
+
* @memberOf module:redis
|
|
19
|
+
*/
|
|
20
|
+
export declare function createdByOnRedisCreateUpdate<M extends Model, R extends Repository<M, RedisAdapter>>(this: R, context: ContextOf<R>, data: RelationsMetadata, key: keyof M, model: M): Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/redis
|
|
3
|
+
* @summary Redis (and Redis-compatible, e.g. DragonflyDB) persistence adapter.
|
|
4
|
+
* @description Re-exports the Redis adapter, repository, query statement/paginator,
|
|
5
|
+
* event dispatch, transaction lock and serialization helpers. The adapter is
|
|
6
|
+
* exported last so its side-effect registration (flavour + decorations) runs after
|
|
7
|
+
* the supporting modules are loaded.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./constants.d.cts";
|
|
10
|
+
export * from "./types.d.cts";
|
|
11
|
+
export * from "./serialization.d.cts";
|
|
12
|
+
export * from "./RedisContextLock.d.cts";
|
|
13
|
+
export * from "./RedisDispatch.d.cts";
|
|
14
|
+
export * from "./RedisStatement.d.cts";
|
|
15
|
+
export * from "./RedisPaginator.d.cts";
|
|
16
|
+
export * from "./handlers.d.cts";
|
|
17
|
+
export * from "./adapter.d.cts";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module integrations/redis
|
|
3
|
+
* @summary Redis (and Redis-compatible, e.g. DragonflyDB) persistence adapter.
|
|
4
|
+
* @description Re-exports the Redis adapter, repository, query statement/paginator,
|
|
5
|
+
* event dispatch, transaction lock and serialization helpers. The adapter is
|
|
6
|
+
* exported last so its side-effect registration (flavour + decorations) runs after
|
|
7
|
+
* the supporting modules are loaded.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./constants.d.mts";
|
|
10
|
+
export * from "./types.d.mts";
|
|
11
|
+
export * from "./serialization.d.mts";
|
|
12
|
+
export * from "./RedisContextLock.d.mts";
|
|
13
|
+
export * from "./RedisDispatch.d.mts";
|
|
14
|
+
export * from "./RedisStatement.d.mts";
|
|
15
|
+
export * from "./RedisPaginator.d.mts";
|
|
16
|
+
export * from "./handlers.d.mts";
|
|
17
|
+
export * from "./adapter.d.mts";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Marker used to encode JavaScript Date values in JSON payloads
|
|
3
|
+
* @const RedisDateMarker
|
|
4
|
+
* @memberOf module:redis
|
|
5
|
+
*/
|
|
6
|
+
export declare const RedisDateMarker = "__decaf_redis_date__";
|
|
7
|
+
/**
|
|
8
|
+
* @description Marker used to encode JavaScript bigint values in JSON payloads
|
|
9
|
+
* @const RedisBigIntMarker
|
|
10
|
+
* @memberOf module:redis
|
|
11
|
+
*/
|
|
12
|
+
export declare const RedisBigIntMarker = "__decaf_redis_bigint__";
|
|
13
|
+
/**
|
|
14
|
+
* @description Serializes a record for storage in Redis
|
|
15
|
+
* @summary JSON-encodes a value while preserving types that JSON cannot represent
|
|
16
|
+
* natively. `Date` instances are encoded as an ISO string under a marker key and
|
|
17
|
+
* `bigint` values are encoded as decimal strings under a marker key so they can be
|
|
18
|
+
* revived by {@link deserialize} without loss.
|
|
19
|
+
* @param {any} value - The value to serialize
|
|
20
|
+
* @return {string} The serialized JSON string
|
|
21
|
+
* @function serialize
|
|
22
|
+
* @memberOf module:redis
|
|
23
|
+
*/
|
|
24
|
+
export declare function serialize(value: any): string;
|
|
25
|
+
/**
|
|
26
|
+
* @description Deserializes a record read from Redis
|
|
27
|
+
* @summary JSON-decodes a value produced by {@link serialize}, restoring `Date`
|
|
28
|
+
* and `bigint` instances from their marker representations.
|
|
29
|
+
* @template T - The expected result type
|
|
30
|
+
* @param {string} raw - The serialized JSON string
|
|
31
|
+
* @return {T} The deserialized value
|
|
32
|
+
* @function deserialize
|
|
33
|
+
* @memberOf module:redis
|
|
34
|
+
*/
|
|
35
|
+
export declare function deserialize<T = any>(raw: string): T;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description Marker used to encode JavaScript Date values in JSON payloads
|
|
3
|
+
* @const RedisDateMarker
|
|
4
|
+
* @memberOf module:redis
|
|
5
|
+
*/
|
|
6
|
+
export declare const RedisDateMarker = "__decaf_redis_date__";
|
|
7
|
+
/**
|
|
8
|
+
* @description Marker used to encode JavaScript bigint values in JSON payloads
|
|
9
|
+
* @const RedisBigIntMarker
|
|
10
|
+
* @memberOf module:redis
|
|
11
|
+
*/
|
|
12
|
+
export declare const RedisBigIntMarker = "__decaf_redis_bigint__";
|
|
13
|
+
/**
|
|
14
|
+
* @description Serializes a record for storage in Redis
|
|
15
|
+
* @summary JSON-encodes a value while preserving types that JSON cannot represent
|
|
16
|
+
* natively. `Date` instances are encoded as an ISO string under a marker key and
|
|
17
|
+
* `bigint` values are encoded as decimal strings under a marker key so they can be
|
|
18
|
+
* revived by {@link deserialize} without loss.
|
|
19
|
+
* @param {any} value - The value to serialize
|
|
20
|
+
* @return {string} The serialized JSON string
|
|
21
|
+
* @function serialize
|
|
22
|
+
* @memberOf module:redis
|
|
23
|
+
*/
|
|
24
|
+
export declare function serialize(value: any): string;
|
|
25
|
+
/**
|
|
26
|
+
* @description Deserializes a record read from Redis
|
|
27
|
+
* @summary JSON-decodes a value produced by {@link serialize}, restoring `Date`
|
|
28
|
+
* and `bigint` instances from their marker representations.
|
|
29
|
+
* @template T - The expected result type
|
|
30
|
+
* @param {string} raw - The serialized JSON string
|
|
31
|
+
* @return {T} The deserialized value
|
|
32
|
+
* @function deserialize
|
|
33
|
+
* @memberOf module:redis
|
|
34
|
+
*/
|
|
35
|
+
export declare function deserialize<T = any>(raw: string): T;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
+
import { AdapterFlags, Context } from "@decaf-ts/core";
|
|
4
|
+
/**
|
|
5
|
+
* @description Connection configuration accepted by {@link RedisAdapter}
|
|
6
|
+
* @summary Supports both a full connection URL and the individual host/port/
|
|
7
|
+
* credential fields. When `url` is provided it takes precedence over the
|
|
8
|
+
* discrete fields.
|
|
9
|
+
* @typedef {object} RedisConfig
|
|
10
|
+
* @property {string} [url] Full redis:// connection string
|
|
11
|
+
* @property {string} [host] Server host (defaults to localhost)
|
|
12
|
+
* @property {number} [port] Server port (defaults to 6379)
|
|
13
|
+
* @property {string} [username] ACL username
|
|
14
|
+
* @property {string} [password] ACL password
|
|
15
|
+
* @property {number} [database] Logical database index
|
|
16
|
+
* @property {string} [prefix] Key namespace (defaults to decaf:redis)
|
|
17
|
+
* @property {string} [user] Identity reported on created/updated records
|
|
18
|
+
* @memberOf module:redis
|
|
19
|
+
*/
|
|
20
|
+
export type RedisConfig = {
|
|
21
|
+
url?: string;
|
|
22
|
+
host?: string;
|
|
23
|
+
port?: number;
|
|
24
|
+
username?: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
database?: number;
|
|
27
|
+
prefix?: string;
|
|
28
|
+
user?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @description Adapter flags enriched with the acting user identity
|
|
32
|
+
* @summary Extends the base adapter flags with the `UUID` field used by the
|
|
33
|
+
* `createdBy`/`updatedBy` decorators.
|
|
34
|
+
* @interface RedisFlags
|
|
35
|
+
* @extends AdapterFlags
|
|
36
|
+
* @property {string} UUID Identity of the user performing the operation
|
|
37
|
+
* @memberOf module:redis
|
|
38
|
+
*/
|
|
39
|
+
export interface RedisFlags extends AdapterFlags {
|
|
40
|
+
UUID: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @description Contextual type used by the Redis adapter
|
|
44
|
+
* @typedef {Context<RedisFlags>} RedisContext
|
|
45
|
+
* @memberOf module:redis
|
|
46
|
+
*/
|
|
47
|
+
export type RedisContext = Context<RedisFlags>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Raw query descriptor applied in memory by the Redis adapter
|
|
50
|
+
* @summary Mirrors the in-memory query shape of the core RAM adapter. The Redis
|
|
51
|
+
* adapter loads the matching table, reverts records to models and evaluates the
|
|
52
|
+
* predicate/sort/aggregation functions in JavaScript.
|
|
53
|
+
* @typedef {object} RawRedisQuery
|
|
54
|
+
* @template M
|
|
55
|
+
* @memberOf module:redis
|
|
56
|
+
*/
|
|
57
|
+
export type RawRedisQuery<M extends Model = any> = {
|
|
58
|
+
select: undefined | (keyof M)[];
|
|
59
|
+
from: Constructor<M>;
|
|
60
|
+
where: (el: M) => boolean;
|
|
61
|
+
sort?: (el: M, el2: M) => number;
|
|
62
|
+
groupBy?: (keyof M)[];
|
|
63
|
+
limit?: number;
|
|
64
|
+
skip?: number;
|
|
65
|
+
count?: keyof M | null;
|
|
66
|
+
countDistinct?: keyof M;
|
|
67
|
+
min?: keyof M;
|
|
68
|
+
max?: keyof M;
|
|
69
|
+
sum?: keyof M;
|
|
70
|
+
avg?: keyof M;
|
|
71
|
+
distinct?: keyof M;
|
|
72
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Model } from "@decaf-ts/decorator-validation";
|
|
2
|
+
import { Constructor } from "@decaf-ts/decoration";
|
|
3
|
+
import { AdapterFlags, Context } from "@decaf-ts/core";
|
|
4
|
+
/**
|
|
5
|
+
* @description Connection configuration accepted by {@link RedisAdapter}
|
|
6
|
+
* @summary Supports both a full connection URL and the individual host/port/
|
|
7
|
+
* credential fields. When `url` is provided it takes precedence over the
|
|
8
|
+
* discrete fields.
|
|
9
|
+
* @typedef {object} RedisConfig
|
|
10
|
+
* @property {string} [url] Full redis:// connection string
|
|
11
|
+
* @property {string} [host] Server host (defaults to localhost)
|
|
12
|
+
* @property {number} [port] Server port (defaults to 6379)
|
|
13
|
+
* @property {string} [username] ACL username
|
|
14
|
+
* @property {string} [password] ACL password
|
|
15
|
+
* @property {number} [database] Logical database index
|
|
16
|
+
* @property {string} [prefix] Key namespace (defaults to decaf:redis)
|
|
17
|
+
* @property {string} [user] Identity reported on created/updated records
|
|
18
|
+
* @memberOf module:redis
|
|
19
|
+
*/
|
|
20
|
+
export type RedisConfig = {
|
|
21
|
+
url?: string;
|
|
22
|
+
host?: string;
|
|
23
|
+
port?: number;
|
|
24
|
+
username?: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
database?: number;
|
|
27
|
+
prefix?: string;
|
|
28
|
+
user?: string;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @description Adapter flags enriched with the acting user identity
|
|
32
|
+
* @summary Extends the base adapter flags with the `UUID` field used by the
|
|
33
|
+
* `createdBy`/`updatedBy` decorators.
|
|
34
|
+
* @interface RedisFlags
|
|
35
|
+
* @extends AdapterFlags
|
|
36
|
+
* @property {string} UUID Identity of the user performing the operation
|
|
37
|
+
* @memberOf module:redis
|
|
38
|
+
*/
|
|
39
|
+
export interface RedisFlags extends AdapterFlags {
|
|
40
|
+
UUID: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @description Contextual type used by the Redis adapter
|
|
44
|
+
* @typedef {Context<RedisFlags>} RedisContext
|
|
45
|
+
* @memberOf module:redis
|
|
46
|
+
*/
|
|
47
|
+
export type RedisContext = Context<RedisFlags>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Raw query descriptor applied in memory by the Redis adapter
|
|
50
|
+
* @summary Mirrors the in-memory query shape of the core RAM adapter. The Redis
|
|
51
|
+
* adapter loads the matching table, reverts records to models and evaluates the
|
|
52
|
+
* predicate/sort/aggregation functions in JavaScript.
|
|
53
|
+
* @typedef {object} RawRedisQuery
|
|
54
|
+
* @template M
|
|
55
|
+
* @memberOf module:redis
|
|
56
|
+
*/
|
|
57
|
+
export type RawRedisQuery<M extends Model = any> = {
|
|
58
|
+
select: undefined | (keyof M)[];
|
|
59
|
+
from: Constructor<M>;
|
|
60
|
+
where: (el: M) => boolean;
|
|
61
|
+
sort?: (el: M, el2: M) => number;
|
|
62
|
+
groupBy?: (keyof M)[];
|
|
63
|
+
limit?: number;
|
|
64
|
+
skip?: number;
|
|
65
|
+
count?: keyof M | null;
|
|
66
|
+
countDistinct?: keyof M;
|
|
67
|
+
min?: keyof M;
|
|
68
|
+
max?: keyof M;
|
|
69
|
+
sum?: keyof M;
|
|
70
|
+
avg?: keyof M;
|
|
71
|
+
distinct?: keyof M;
|
|
72
|
+
};
|