@decaf-ts/ui-decorators 0.21.0 → 0.21.1
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/dist/ui-decorators.cjs +1 -1
- package/dist/ui-decorators.cjs.map +1 -1
- package/dist/ui-decorators.js +1 -1
- package/dist/ui-decorators.js.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/esm/index.js +3 -3
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +2 -18
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs +0 -97
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +0 -1
- package/lib/cjs/graph/GraphResolution.cjs +0 -17
- package/lib/cjs/graph/GraphResolution.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +0 -20
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +0 -15
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +0 -16
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +0 -31
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphIconReference.cjs +0 -22
- package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +0 -326
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +0 -23
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +0 -11
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +0 -23
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +0 -50
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +0 -29
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +0 -18
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs +0 -4
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +0 -29
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs +0 -18
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +0 -57
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs +0 -19
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs +0 -15
- package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +0 -19
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs +0 -25
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +0 -164
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +0 -1
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +0 -63
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +0 -1
- package/lib/cjs/graph/catalog/index.cjs +0 -40
- package/lib/cjs/graph/catalog/index.cjs.map +0 -1
- package/lib/cjs/graph/category-styles.cjs +0 -38
- package/lib/cjs/graph/category-styles.cjs.map +0 -1
- package/lib/cjs/graph/constants.cjs +0 -320
- package/lib/cjs/graph/constants.cjs.map +0 -1
- package/lib/cjs/graph/decorators.cjs +0 -151
- package/lib/cjs/graph/decorators.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +0 -353
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs +0 -4
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphEndpoint.cjs +0 -27
- package/lib/cjs/graph/document/GraphEndpoint.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphJsonValue.cjs +0 -82
- package/lib/cjs/graph/document/GraphJsonValue.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +0 -4
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphNodeBinding.cjs +0 -27
- package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphNodeInstance.cjs +0 -4
- package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +0 -16
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +0 -309
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +0 -78
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +0 -70
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +0 -1
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +0 -4
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +0 -1
- package/lib/cjs/graph/document/index.cjs +0 -30
- package/lib/cjs/graph/document/index.cjs.map +0 -1
- package/lib/cjs/graph/index.cjs +0 -33
- package/lib/cjs/graph/index.cjs.map +0 -1
- package/lib/cjs/graph/overrides/Metadata.cjs +0 -23
- package/lib/cjs/graph/overrides/Metadata.cjs.map +0 -1
- package/lib/cjs/graph/overrides/Rendering.cjs +0 -4
- package/lib/cjs/graph/overrides/Rendering.cjs.map +0 -1
- package/lib/cjs/graph/overrides/index.cjs +0 -21
- package/lib/cjs/graph/overrides/index.cjs.map +0 -1
- package/lib/cjs/graph/overrides/overrides.cjs +0 -20
- package/lib/cjs/graph/overrides/overrides.cjs.map +0 -1
- package/lib/cjs/graph/reader.cjs +0 -327
- package/lib/cjs/graph/reader.cjs.map +0 -1
- package/lib/cjs/graph/registry.cjs +0 -67
- package/lib/cjs/graph/registry.cjs.map +0 -1
- package/lib/cjs/graph/snapshot.cjs +0 -4
- package/lib/cjs/graph/snapshot.cjs.map +0 -1
- package/lib/cjs/graph/types.cjs +0 -7
- package/lib/cjs/graph/types.cjs.map +0 -1
- package/lib/esm/graph/GraphExecutionStateMapper.js +0 -91
- package/lib/esm/graph/GraphExecutionStateMapper.js.map +0 -1
- package/lib/esm/graph/GraphResolution.js +0 -13
- package/lib/esm/graph/GraphResolution.js.map +0 -1
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js +0 -16
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +0 -1
- package/lib/esm/graph/catalog/GraphCredentialReference.js +0 -9
- package/lib/esm/graph/catalog/GraphCredentialReference.js.map +0 -1
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js +0 -12
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +0 -1
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js +0 -25
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +0 -1
- package/lib/esm/graph/catalog/GraphIconReference.js +0 -18
- package/lib/esm/graph/catalog/GraphIconReference.js.map +0 -1
- package/lib/esm/graph/catalog/GraphManifestCompiler.js +0 -322
- package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeCapability.js +0 -17
- package/lib/esm/graph/catalog/GraphNodeCapability.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +0 -7
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeManifest.js +0 -17
- package/lib/esm/graph/catalog/GraphNodeManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +0 -42
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +0 -23
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +0 -14
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterBase.js +0 -2
- package/lib/esm/graph/catalog/GraphParameterBase.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterDefinition.js +0 -23
- package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterOption.js +0 -13
- package/lib/esm/graph/catalog/GraphParameterOption.js.map +0 -1
- package/lib/esm/graph/catalog/GraphParameterValidation.js +0 -50
- package/lib/esm/graph/catalog/GraphParameterValidation.js.map +0 -1
- package/lib/esm/graph/catalog/GraphPortManifest.js +0 -13
- package/lib/esm/graph/catalog/GraphPortManifest.js.map +0 -1
- package/lib/esm/graph/catalog/GraphPortManifestElement.js +0 -11
- package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +0 -1
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +0 -13
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +0 -1
- package/lib/esm/graph/catalog/GraphValueSchema.js +0 -19
- package/lib/esm/graph/catalog/GraphValueSchema.js.map +0 -1
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +0 -156
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +0 -1
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js +0 -58
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +0 -1
- package/lib/esm/graph/catalog/index.js +0 -23
- package/lib/esm/graph/catalog/index.js.map +0 -1
- package/lib/esm/graph/category-styles.js +0 -34
- package/lib/esm/graph/category-styles.js.map +0 -1
- package/lib/esm/graph/constants.js +0 -335
- package/lib/esm/graph/constants.js.map +0 -1
- package/lib/esm/graph/decorators.js +0 -141
- package/lib/esm/graph/decorators.js.map +0 -1
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +0 -347
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +0 -1
- package/lib/esm/graph/document/GraphEdgeInstance.js +0 -2
- package/lib/esm/graph/document/GraphEdgeInstance.js.map +0 -1
- package/lib/esm/graph/document/GraphEndpoint.js +0 -21
- package/lib/esm/graph/document/GraphEndpoint.js.map +0 -1
- package/lib/esm/graph/document/GraphJsonValue.js +0 -73
- package/lib/esm/graph/document/GraphJsonValue.js.map +0 -1
- package/lib/esm/graph/document/GraphLoopConfiguration.js +0 -2
- package/lib/esm/graph/document/GraphLoopConfiguration.js.map +0 -1
- package/lib/esm/graph/document/GraphNodeBinding.js +0 -22
- package/lib/esm/graph/document/GraphNodeBinding.js.map +0 -1
- package/lib/esm/graph/document/GraphNodeInstance.js +0 -2
- package/lib/esm/graph/document/GraphNodeInstance.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocument.js +0 -12
- package/lib/esm/graph/document/GraphWorkflowDocument.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +0 -303
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +0 -62
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +0 -63
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +0 -1
- package/lib/esm/graph/document/GraphWorkflowUiState.js +0 -2
- package/lib/esm/graph/document/GraphWorkflowUiState.js.map +0 -1
- package/lib/esm/graph/document/index.js +0 -13
- package/lib/esm/graph/document/index.js.map +0 -1
- package/lib/esm/graph/index.js +0 -16
- package/lib/esm/graph/index.js.map +0 -1
- package/lib/esm/graph/overrides/Metadata.js +0 -20
- package/lib/esm/graph/overrides/Metadata.js.map +0 -1
- package/lib/esm/graph/overrides/Rendering.js +0 -2
- package/lib/esm/graph/overrides/Rendering.js.map +0 -1
- package/lib/esm/graph/overrides/index.js +0 -4
- package/lib/esm/graph/overrides/index.js.map +0 -1
- package/lib/esm/graph/overrides/overrides.js +0 -17
- package/lib/esm/graph/overrides/overrides.js.map +0 -1
- package/lib/esm/graph/reader.js +0 -313
- package/lib/esm/graph/reader.js.map +0 -1
- package/lib/esm/graph/registry.js +0 -59
- package/lib/esm/graph/registry.js.map +0 -1
- package/lib/esm/graph/snapshot.js +0 -2
- package/lib/esm/graph/snapshot.js.map +0 -1
- package/lib/esm/graph/types.js +0 -2
- package/lib/esm/graph/types.js.map +0 -1
- package/lib/types/graph/GraphExecutionStateMapper.d.cts +0 -66
- package/lib/types/graph/GraphExecutionStateMapper.d.mts +0 -66
- package/lib/types/graph/GraphResolution.d.cts +0 -53
- package/lib/types/graph/GraphResolution.d.mts +0 -53
- package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +0 -9
- package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +0 -9
- package/lib/types/graph/catalog/GraphCredentialReference.d.cts +0 -6
- package/lib/types/graph/catalog/GraphCredentialReference.d.mts +0 -6
- package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +0 -7
- package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +0 -7
- package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +0 -22
- package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +0 -22
- package/lib/types/graph/catalog/GraphIconReference.d.cts +0 -12
- package/lib/types/graph/catalog/GraphIconReference.d.mts +0 -12
- package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +0 -14
- package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +0 -14
- package/lib/types/graph/catalog/GraphNodeCapability.d.cts +0 -4
- package/lib/types/graph/catalog/GraphNodeCapability.d.mts +0 -4
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +0 -33
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +0 -33
- package/lib/types/graph/catalog/GraphNodeManifest.d.cts +0 -26
- package/lib/types/graph/catalog/GraphNodeManifest.d.mts +0 -26
- package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +0 -7
- package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +0 -7
- package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +0 -10
- package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +0 -10
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +0 -46
- package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +0 -46
- package/lib/types/graph/catalog/GraphParameterBase.d.cts +0 -14
- package/lib/types/graph/catalog/GraphParameterBase.d.mts +0 -14
- package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +0 -66
- package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +0 -66
- package/lib/types/graph/catalog/GraphParameterOption.d.cts +0 -8
- package/lib/types/graph/catalog/GraphParameterOption.d.mts +0 -8
- package/lib/types/graph/catalog/GraphParameterValidation.d.cts +0 -25
- package/lib/types/graph/catalog/GraphParameterValidation.d.mts +0 -25
- package/lib/types/graph/catalog/GraphPortManifest.d.cts +0 -23
- package/lib/types/graph/catalog/GraphPortManifest.d.mts +0 -23
- package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +0 -7
- package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +0 -7
- package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +0 -10
- package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +0 -10
- package/lib/types/graph/catalog/GraphValueSchema.d.cts +0 -44
- package/lib/types/graph/catalog/GraphValueSchema.d.mts +0 -44
- package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +0 -9
- package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +0 -9
- package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +0 -22
- package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +0 -22
- package/lib/types/graph/catalog/index.d.cts +0 -22
- package/lib/types/graph/catalog/index.d.mts +0 -22
- package/lib/types/graph/category-styles.d.cts +0 -8
- package/lib/types/graph/category-styles.d.mts +0 -8
- package/lib/types/graph/constants.d.cts +0 -544
- package/lib/types/graph/constants.d.mts +0 -544
- package/lib/types/graph/decorators.d.cts +0 -69
- package/lib/types/graph/decorators.d.mts +0 -69
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +0 -47
- package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +0 -47
- package/lib/types/graph/document/GraphEdgeInstance.d.cts +0 -12
- package/lib/types/graph/document/GraphEdgeInstance.d.mts +0 -12
- package/lib/types/graph/document/GraphEndpoint.d.cts +0 -13
- package/lib/types/graph/document/GraphEndpoint.d.mts +0 -13
- package/lib/types/graph/document/GraphJsonValue.d.cts +0 -11
- package/lib/types/graph/document/GraphJsonValue.d.mts +0 -11
- package/lib/types/graph/document/GraphLoopConfiguration.d.cts +0 -24
- package/lib/types/graph/document/GraphLoopConfiguration.d.mts +0 -24
- package/lib/types/graph/document/GraphNodeBinding.d.cts +0 -21
- package/lib/types/graph/document/GraphNodeBinding.d.mts +0 -21
- package/lib/types/graph/document/GraphNodeInstance.d.cts +0 -36
- package/lib/types/graph/document/GraphNodeInstance.d.mts +0 -36
- package/lib/types/graph/document/GraphWorkflowDocument.d.cts +0 -33
- package/lib/types/graph/document/GraphWorkflowDocument.d.mts +0 -33
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +0 -72
- package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +0 -72
- package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +0 -21
- package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +0 -21
- package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +0 -5
- package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +0 -5
- package/lib/types/graph/document/GraphWorkflowUiState.d.cts +0 -37
- package/lib/types/graph/document/GraphWorkflowUiState.d.mts +0 -37
- package/lib/types/graph/document/index.d.cts +0 -12
- package/lib/types/graph/document/index.d.mts +0 -12
- package/lib/types/graph/index.d.cts +0 -15
- package/lib/types/graph/index.d.mts +0 -15
- package/lib/types/graph/overrides/Metadata.d.cts +0 -43
- package/lib/types/graph/overrides/Metadata.d.mts +0 -43
- package/lib/types/graph/overrides/Rendering.d.cts +0 -5
- package/lib/types/graph/overrides/Rendering.d.mts +0 -5
- package/lib/types/graph/overrides/index.d.cts +0 -3
- package/lib/types/graph/overrides/index.d.mts +0 -3
- package/lib/types/graph/overrides/overrides.d.cts +0 -1
- package/lib/types/graph/overrides/overrides.d.mts +0 -1
- package/lib/types/graph/reader.d.cts +0 -28
- package/lib/types/graph/reader.d.mts +0 -28
- package/lib/types/graph/registry.d.cts +0 -40
- package/lib/types/graph/registry.d.mts +0 -40
- package/lib/types/graph/snapshot.d.cts +0 -36
- package/lib/types/graph/snapshot.d.mts +0 -36
- package/lib/types/graph/types.d.cts +0 -289
- package/lib/types/graph/types.d.mts +0 -289
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import type { GraphWorkflowDefinition } from "../constants.d.cts";
|
|
4
|
-
import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.cts";
|
|
5
|
-
import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.cts";
|
|
6
|
-
import type { GraphWorkflowViewport } from "./GraphWorkflowUiState.d.cts";
|
|
7
|
-
/**
|
|
8
|
-
* Options for compiling a decorated workflow into a canonical
|
|
9
|
-
* {@link GraphWorkflowDocument}.
|
|
10
|
-
*/
|
|
11
|
-
export interface GraphDecoratedWorkflowCompileOptions {
|
|
12
|
-
/** Document id; defaults to the workflow's tag or name. */
|
|
13
|
-
id?: string;
|
|
14
|
-
/** Human-readable document name; defaults to the workflow's name. */
|
|
15
|
-
name?: string;
|
|
16
|
-
/** Canvas positions per node id, carried into the document's UI state. */
|
|
17
|
-
positions?: Record<string, {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
}>;
|
|
21
|
-
/** Initial canvas viewport carried into the document's UI state. */
|
|
22
|
-
viewport?: GraphWorkflowViewport;
|
|
23
|
-
}
|
|
24
|
-
/** Anything the compiler can resolve into a {@link GraphWorkflowDefinition}: a decorated workflow class (constructor), a model instance, or a definition. */
|
|
25
|
-
export type GraphDecoratedWorkflowInput = Constructor | Model | GraphWorkflowDefinition;
|
|
26
|
-
/**
|
|
27
|
-
* Compiles a decorated workflow (or an already-resolved
|
|
28
|
-
* {@link GraphWorkflowDefinition}) into a canonical
|
|
29
|
-
* {@link GraphWorkflowDocument}: workflow boundary ports, one instance per
|
|
30
|
-
* node (input-port defaults and loop/switch metadata folded into
|
|
31
|
-
* `parameters`/`metadata`), one edge per relation, plus UI state. Browser-safe:
|
|
32
|
-
* node constructors are never invoked, so `@node` classes can seed demo
|
|
33
|
-
* graphs without engine imports (DECAF-50 §4.4.4).
|
|
34
|
-
*
|
|
35
|
-
* @throws ValidationError when the input cannot be resolved to a decorated
|
|
36
|
-
* graph workflow definition.
|
|
37
|
-
*/
|
|
38
|
-
export declare function graphDecoratedWorkflowCompiler(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
|
|
39
|
-
/**
|
|
40
|
-
* Spec-mandated (§4.4.9) compiler facade. Delegates to
|
|
41
|
-
* {@link graphDecoratedWorkflowCompiler}, which performs the actual
|
|
42
|
-
* decorated-definition to {@link GraphWorkflowDocument} mapping.
|
|
43
|
-
*/
|
|
44
|
-
export declare class GraphDecoratedWorkflowCompiler {
|
|
45
|
-
compile(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
|
|
46
|
-
}
|
|
47
|
-
export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { Constructor } from "@decaf-ts/decoration";
|
|
2
|
-
import type { Model } from "@decaf-ts/decorator-validation";
|
|
3
|
-
import type { GraphWorkflowDefinition } from "../constants.d.mts";
|
|
4
|
-
import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.mts";
|
|
5
|
-
import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.mts";
|
|
6
|
-
import type { GraphWorkflowViewport } from "./GraphWorkflowUiState.d.mts";
|
|
7
|
-
/**
|
|
8
|
-
* Options for compiling a decorated workflow into a canonical
|
|
9
|
-
* {@link GraphWorkflowDocument}.
|
|
10
|
-
*/
|
|
11
|
-
export interface GraphDecoratedWorkflowCompileOptions {
|
|
12
|
-
/** Document id; defaults to the workflow's tag or name. */
|
|
13
|
-
id?: string;
|
|
14
|
-
/** Human-readable document name; defaults to the workflow's name. */
|
|
15
|
-
name?: string;
|
|
16
|
-
/** Canvas positions per node id, carried into the document's UI state. */
|
|
17
|
-
positions?: Record<string, {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
}>;
|
|
21
|
-
/** Initial canvas viewport carried into the document's UI state. */
|
|
22
|
-
viewport?: GraphWorkflowViewport;
|
|
23
|
-
}
|
|
24
|
-
/** Anything the compiler can resolve into a {@link GraphWorkflowDefinition}: a decorated workflow class (constructor), a model instance, or a definition. */
|
|
25
|
-
export type GraphDecoratedWorkflowInput = Constructor | Model | GraphWorkflowDefinition;
|
|
26
|
-
/**
|
|
27
|
-
* Compiles a decorated workflow (or an already-resolved
|
|
28
|
-
* {@link GraphWorkflowDefinition}) into a canonical
|
|
29
|
-
* {@link GraphWorkflowDocument}: workflow boundary ports, one instance per
|
|
30
|
-
* node (input-port defaults and loop/switch metadata folded into
|
|
31
|
-
* `parameters`/`metadata`), one edge per relation, plus UI state. Browser-safe:
|
|
32
|
-
* node constructors are never invoked, so `@node` classes can seed demo
|
|
33
|
-
* graphs without engine imports (DECAF-50 §4.4.4).
|
|
34
|
-
*
|
|
35
|
-
* @throws ValidationError when the input cannot be resolved to a decorated
|
|
36
|
-
* graph workflow definition.
|
|
37
|
-
*/
|
|
38
|
-
export declare function graphDecoratedWorkflowCompiler(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
|
|
39
|
-
/**
|
|
40
|
-
* Spec-mandated (§4.4.9) compiler facade. Delegates to
|
|
41
|
-
* {@link graphDecoratedWorkflowCompiler}, which performs the actual
|
|
42
|
-
* decorated-definition to {@link GraphWorkflowDocument} mapping.
|
|
43
|
-
*/
|
|
44
|
-
export declare class GraphDecoratedWorkflowCompiler {
|
|
45
|
-
compile(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
|
|
46
|
-
}
|
|
47
|
-
export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { GraphEndpoint } from "./GraphEndpoint.d.cts";
|
|
2
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
3
|
-
import type { GraphEdgeUiState } from "./GraphWorkflowUiState.d.cts";
|
|
4
|
-
export interface GraphEdgeInstance {
|
|
5
|
-
id: string;
|
|
6
|
-
type: "data" | "connection";
|
|
7
|
-
source: GraphEndpoint;
|
|
8
|
-
target: GraphEndpoint;
|
|
9
|
-
label?: string;
|
|
10
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
11
|
-
ui?: GraphEdgeUiState;
|
|
12
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { GraphEndpoint } from "./GraphEndpoint.d.mts";
|
|
2
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
3
|
-
import type { GraphEdgeUiState } from "./GraphWorkflowUiState.d.mts";
|
|
4
|
-
export interface GraphEdgeInstance {
|
|
5
|
-
id: string;
|
|
6
|
-
type: "data" | "connection";
|
|
7
|
-
source: GraphEndpoint;
|
|
8
|
-
target: GraphEndpoint;
|
|
9
|
-
label?: string;
|
|
10
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
11
|
-
ui?: GraphEdgeUiState;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type GraphWorkflowEndpoint = {
|
|
2
|
-
scope: "workflow";
|
|
3
|
-
port: string;
|
|
4
|
-
};
|
|
5
|
-
export type GraphNodeEndpoint = {
|
|
6
|
-
scope: "node";
|
|
7
|
-
nodeId: string;
|
|
8
|
-
port: string;
|
|
9
|
-
};
|
|
10
|
-
export type GraphEndpoint = GraphWorkflowEndpoint | GraphNodeEndpoint;
|
|
11
|
-
export declare function isGraphWorkflowEndpoint(endpoint: GraphEndpoint): endpoint is GraphWorkflowEndpoint;
|
|
12
|
-
export declare function isGraphNodeEndpoint(endpoint: GraphEndpoint): endpoint is GraphNodeEndpoint;
|
|
13
|
-
export declare function isGraphEndpoint(value: unknown): value is GraphEndpoint;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type GraphWorkflowEndpoint = {
|
|
2
|
-
scope: "workflow";
|
|
3
|
-
port: string;
|
|
4
|
-
};
|
|
5
|
-
export type GraphNodeEndpoint = {
|
|
6
|
-
scope: "node";
|
|
7
|
-
nodeId: string;
|
|
8
|
-
port: string;
|
|
9
|
-
};
|
|
10
|
-
export type GraphEndpoint = GraphWorkflowEndpoint | GraphNodeEndpoint;
|
|
11
|
-
export declare function isGraphWorkflowEndpoint(endpoint: GraphEndpoint): endpoint is GraphWorkflowEndpoint;
|
|
12
|
-
export declare function isGraphNodeEndpoint(endpoint: GraphEndpoint): endpoint is GraphNodeEndpoint;
|
|
13
|
-
export declare function isGraphEndpoint(value: unknown): value is GraphEndpoint;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type GraphJsonPrimitive = string | number | boolean | null;
|
|
2
|
-
export type GraphJsonValue = GraphJsonPrimitive | GraphJsonValue[] | {
|
|
3
|
-
[key: string]: GraphJsonValue;
|
|
4
|
-
};
|
|
5
|
-
export declare const GRAPH_UNSAFE_OBJECT_KEYS: readonly ["__proto__", "prototype", "constructor"];
|
|
6
|
-
export type GraphUnsafeObjectKey = (typeof GRAPH_UNSAFE_OBJECT_KEYS)[number];
|
|
7
|
-
export declare function isGraphUnsafeObjectKey(key: string): key is GraphUnsafeObjectKey;
|
|
8
|
-
export declare function isGraphJsonPrimitive(value: unknown): value is GraphJsonPrimitive;
|
|
9
|
-
export declare function isGraphJsonValue(value: unknown): value is GraphJsonValue;
|
|
10
|
-
export declare function isGraphJsonSafeValue(value: unknown): boolean;
|
|
11
|
-
export declare function cloneGraphJsonValue<T extends GraphJsonValue>(value: T): T;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type GraphJsonPrimitive = string | number | boolean | null;
|
|
2
|
-
export type GraphJsonValue = GraphJsonPrimitive | GraphJsonValue[] | {
|
|
3
|
-
[key: string]: GraphJsonValue;
|
|
4
|
-
};
|
|
5
|
-
export declare const GRAPH_UNSAFE_OBJECT_KEYS: readonly ["__proto__", "prototype", "constructor"];
|
|
6
|
-
export type GraphUnsafeObjectKey = (typeof GRAPH_UNSAFE_OBJECT_KEYS)[number];
|
|
7
|
-
export declare function isGraphUnsafeObjectKey(key: string): key is GraphUnsafeObjectKey;
|
|
8
|
-
export declare function isGraphJsonPrimitive(value: unknown): value is GraphJsonPrimitive;
|
|
9
|
-
export declare function isGraphJsonValue(value: unknown): value is GraphJsonValue;
|
|
10
|
-
export declare function isGraphJsonSafeValue(value: unknown): boolean;
|
|
11
|
-
export declare function cloneGraphJsonValue<T extends GraphJsonValue>(value: T): T;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
2
|
-
import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.cts";
|
|
3
|
-
export type GraphValueReference = {
|
|
4
|
-
source: "workflow";
|
|
5
|
-
port: string;
|
|
6
|
-
} | {
|
|
7
|
-
source: "node";
|
|
8
|
-
nodeId: string;
|
|
9
|
-
port: string;
|
|
10
|
-
} | {
|
|
11
|
-
source: "literal";
|
|
12
|
-
value: GraphJsonValue;
|
|
13
|
-
} | {
|
|
14
|
-
source: "expression";
|
|
15
|
-
expression: string;
|
|
16
|
-
};
|
|
17
|
-
export interface GraphLoopConfiguration {
|
|
18
|
-
body: GraphWorkflowDocument;
|
|
19
|
-
maxIterations?: number;
|
|
20
|
-
timeoutMs?: number;
|
|
21
|
-
concurrency?: number;
|
|
22
|
-
inputMappings?: Record<string, GraphValueReference>;
|
|
23
|
-
outputMappings?: Record<string, GraphValueReference>;
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
2
|
-
import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.mts";
|
|
3
|
-
export type GraphValueReference = {
|
|
4
|
-
source: "workflow";
|
|
5
|
-
port: string;
|
|
6
|
-
} | {
|
|
7
|
-
source: "node";
|
|
8
|
-
nodeId: string;
|
|
9
|
-
port: string;
|
|
10
|
-
} | {
|
|
11
|
-
source: "literal";
|
|
12
|
-
value: GraphJsonValue;
|
|
13
|
-
} | {
|
|
14
|
-
source: "expression";
|
|
15
|
-
expression: string;
|
|
16
|
-
};
|
|
17
|
-
export interface GraphLoopConfiguration {
|
|
18
|
-
body: GraphWorkflowDocument;
|
|
19
|
-
maxIterations?: number;
|
|
20
|
-
timeoutMs?: number;
|
|
21
|
-
concurrency?: number;
|
|
22
|
-
inputMappings?: Record<string, GraphValueReference>;
|
|
23
|
-
outputMappings?: Record<string, GraphValueReference>;
|
|
24
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
2
|
-
export type GraphInputBindingMode = "edge" | "literal" | "expression";
|
|
3
|
-
export type GraphEdgeInputBinding = {
|
|
4
|
-
mode: "edge";
|
|
5
|
-
};
|
|
6
|
-
export type GraphLiteralInputBinding = {
|
|
7
|
-
mode: "literal";
|
|
8
|
-
value: GraphJsonValue;
|
|
9
|
-
};
|
|
10
|
-
export type GraphExpressionInputBinding = {
|
|
11
|
-
mode: "expression";
|
|
12
|
-
expression: string;
|
|
13
|
-
};
|
|
14
|
-
export type GraphInputBinding = GraphEdgeInputBinding | GraphLiteralInputBinding | GraphExpressionInputBinding;
|
|
15
|
-
export type GraphOutputBinding = {
|
|
16
|
-
enabled?: boolean;
|
|
17
|
-
alias?: string;
|
|
18
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
19
|
-
};
|
|
20
|
-
export declare function isGraphInputBindingMode(value: unknown): value is GraphInputBindingMode;
|
|
21
|
-
export declare function isGraphInputBinding(value: unknown): value is GraphInputBinding;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
2
|
-
export type GraphInputBindingMode = "edge" | "literal" | "expression";
|
|
3
|
-
export type GraphEdgeInputBinding = {
|
|
4
|
-
mode: "edge";
|
|
5
|
-
};
|
|
6
|
-
export type GraphLiteralInputBinding = {
|
|
7
|
-
mode: "literal";
|
|
8
|
-
value: GraphJsonValue;
|
|
9
|
-
};
|
|
10
|
-
export type GraphExpressionInputBinding = {
|
|
11
|
-
mode: "expression";
|
|
12
|
-
expression: string;
|
|
13
|
-
};
|
|
14
|
-
export type GraphInputBinding = GraphEdgeInputBinding | GraphLiteralInputBinding | GraphExpressionInputBinding;
|
|
15
|
-
export type GraphOutputBinding = {
|
|
16
|
-
enabled?: boolean;
|
|
17
|
-
alias?: string;
|
|
18
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
19
|
-
};
|
|
20
|
-
export declare function isGraphInputBindingMode(value: unknown): value is GraphInputBindingMode;
|
|
21
|
-
export declare function isGraphInputBinding(value: unknown): value is GraphInputBinding;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { GraphInputBinding, GraphOutputBinding } from "./GraphNodeBinding.d.cts";
|
|
2
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
3
|
-
import type { GraphLoopConfiguration } from "./GraphLoopConfiguration.d.cts";
|
|
4
|
-
import type { GraphNodeUiState } from "./GraphWorkflowUiState.d.cts";
|
|
5
|
-
/**
|
|
6
|
-
* Document-carried UI data-pinning state (D4, DECAF-50 §4.22). Data pinning
|
|
7
|
-
* freezes the node's parameter values so downstream runs reuse them, and is a
|
|
8
|
-
* distinct concept from the engine's cache pinning (`GraphPinning`): this state is
|
|
9
|
-
* written into the canonical document and survives save/load round-trips.
|
|
10
|
-
*/
|
|
11
|
-
export interface GraphNodePinState {
|
|
12
|
-
/**
|
|
13
|
-
* Parameter values frozen when the node was pinned. Downstream runs apply this
|
|
14
|
-
* snapshot on top of the node's live parameters.
|
|
15
|
-
*/
|
|
16
|
-
parameters: Record<string, GraphJsonValue>;
|
|
17
|
-
/** ISO-8601 timestamp of when the pin was captured, when known. */
|
|
18
|
-
pinnedAt?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface GraphNodeInstance {
|
|
21
|
-
id: string;
|
|
22
|
-
kind: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
parameters: Record<string, GraphJsonValue>;
|
|
25
|
-
inputBindings?: Record<string, GraphInputBinding>;
|
|
26
|
-
outputBindings?: Record<string, GraphOutputBinding>;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
29
|
-
loop?: GraphLoopConfiguration;
|
|
30
|
-
ui?: GraphNodeUiState;
|
|
31
|
-
/**
|
|
32
|
-
* UI data-pinning state (D4, DECAF-50 §4.22). Present iff the node is
|
|
33
|
-
* pinned; the frozen parameter snapshot is what downstream runs reuse.
|
|
34
|
-
*/
|
|
35
|
-
pinned?: GraphNodePinState;
|
|
36
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { GraphInputBinding, GraphOutputBinding } from "./GraphNodeBinding.d.mts";
|
|
2
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
3
|
-
import type { GraphLoopConfiguration } from "./GraphLoopConfiguration.d.mts";
|
|
4
|
-
import type { GraphNodeUiState } from "./GraphWorkflowUiState.d.mts";
|
|
5
|
-
/**
|
|
6
|
-
* Document-carried UI data-pinning state (D4, DECAF-50 §4.22). Data pinning
|
|
7
|
-
* freezes the node's parameter values so downstream runs reuse them, and is a
|
|
8
|
-
* distinct concept from the engine's cache pinning (`GraphPinning`): this state is
|
|
9
|
-
* written into the canonical document and survives save/load round-trips.
|
|
10
|
-
*/
|
|
11
|
-
export interface GraphNodePinState {
|
|
12
|
-
/**
|
|
13
|
-
* Parameter values frozen when the node was pinned. Downstream runs apply this
|
|
14
|
-
* snapshot on top of the node's live parameters.
|
|
15
|
-
*/
|
|
16
|
-
parameters: Record<string, GraphJsonValue>;
|
|
17
|
-
/** ISO-8601 timestamp of when the pin was captured, when known. */
|
|
18
|
-
pinnedAt?: string;
|
|
19
|
-
}
|
|
20
|
-
export interface GraphNodeInstance {
|
|
21
|
-
id: string;
|
|
22
|
-
kind: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
parameters: Record<string, GraphJsonValue>;
|
|
25
|
-
inputBindings?: Record<string, GraphInputBinding>;
|
|
26
|
-
outputBindings?: Record<string, GraphOutputBinding>;
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
29
|
-
loop?: GraphLoopConfiguration;
|
|
30
|
-
ui?: GraphNodeUiState;
|
|
31
|
-
/**
|
|
32
|
-
* UI data-pinning state (D4, DECAF-50 §4.22). Present iff the node is
|
|
33
|
-
* pinned; the frozen parameter snapshot is what downstream runs reuse.
|
|
34
|
-
*/
|
|
35
|
-
pinned?: GraphNodePinState;
|
|
36
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
2
|
-
import type { GraphNodeInstance } from "./GraphNodeInstance.d.cts";
|
|
3
|
-
import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.cts";
|
|
4
|
-
import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.cts";
|
|
5
|
-
import type { GraphValueSchema } from "../catalog/GraphValueSchema.d.cts";
|
|
6
|
-
export interface GraphWorkflowPortInstance {
|
|
7
|
-
id: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
schema?: GraphValueSchema;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
defaultValue?: GraphJsonValue;
|
|
12
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
13
|
-
}
|
|
14
|
-
export type GraphWorkflowSettings = Record<string, GraphJsonValue>;
|
|
15
|
-
export interface GraphWorkflowDocument {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
inputs: GraphWorkflowPortInstance[];
|
|
19
|
-
outputs: GraphWorkflowPortInstance[];
|
|
20
|
-
nodes: GraphNodeInstance[];
|
|
21
|
-
edges: GraphEdgeInstance[];
|
|
22
|
-
settings?: GraphWorkflowSettings;
|
|
23
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
24
|
-
ui?: GraphWorkflowUiState;
|
|
25
|
-
}
|
|
26
|
-
export declare function isGraphWorkflowDocumentShape(value: unknown): value is {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
inputs: unknown[];
|
|
30
|
-
outputs: unknown[];
|
|
31
|
-
nodes: unknown[];
|
|
32
|
-
edges: unknown[];
|
|
33
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
2
|
-
import type { GraphNodeInstance } from "./GraphNodeInstance.d.mts";
|
|
3
|
-
import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.mts";
|
|
4
|
-
import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.mts";
|
|
5
|
-
import type { GraphValueSchema } from "../catalog/GraphValueSchema.d.mts";
|
|
6
|
-
export interface GraphWorkflowPortInstance {
|
|
7
|
-
id: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
schema?: GraphValueSchema;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
defaultValue?: GraphJsonValue;
|
|
12
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
13
|
-
}
|
|
14
|
-
export type GraphWorkflowSettings = Record<string, GraphJsonValue>;
|
|
15
|
-
export interface GraphWorkflowDocument {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
inputs: GraphWorkflowPortInstance[];
|
|
19
|
-
outputs: GraphWorkflowPortInstance[];
|
|
20
|
-
nodes: GraphNodeInstance[];
|
|
21
|
-
edges: GraphEdgeInstance[];
|
|
22
|
-
settings?: GraphWorkflowSettings;
|
|
23
|
-
metadata?: Record<string, GraphJsonValue>;
|
|
24
|
-
ui?: GraphWorkflowUiState;
|
|
25
|
-
}
|
|
26
|
-
export declare function isGraphWorkflowDocumentShape(value: unknown): value is {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
inputs: unknown[];
|
|
30
|
-
outputs: unknown[];
|
|
31
|
-
nodes: unknown[];
|
|
32
|
-
edges: unknown[];
|
|
33
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
2
|
-
import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.cts";
|
|
3
|
-
import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.cts";
|
|
4
|
-
import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.cts";
|
|
5
|
-
import type { GraphNodeInstance } from "./GraphNodeInstance.d.cts";
|
|
6
|
-
import type { GraphWorkflowDocument, GraphWorkflowPortInstance, GraphWorkflowSettings } from "./GraphWorkflowDocument.d.cts";
|
|
7
|
-
/** A workflow boundary port accepted by {@link GraphWorkflowDocumentBuilder}. */
|
|
8
|
-
export type GraphWorkflowPortInput = GraphWorkflowPortInstance;
|
|
9
|
-
/** Options for constructing a {@link GraphWorkflowDocumentBuilder}. */
|
|
10
|
-
export interface GraphWorkflowDocumentBuilderOptions {
|
|
11
|
-
/** Document id; defaults to an empty string when omitted. */
|
|
12
|
-
id?: string;
|
|
13
|
-
/** Human-readable document name; defaults to an empty string when omitted. */
|
|
14
|
-
name?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Fluent builder for the canonical {@link GraphWorkflowDocument}
|
|
18
|
-
* (DECAF-50 §4.4.4). Collects boundary ports, node instances, edges, and
|
|
19
|
-
* optional settings/metadata/UI state, then validates and freezes a
|
|
20
|
-
* defensively-copied document on {@link GraphWorkflowDocumentBuilder.build}.
|
|
21
|
-
*/
|
|
22
|
-
export declare class GraphWorkflowDocumentBuilder {
|
|
23
|
-
private readonly document;
|
|
24
|
-
/**
|
|
25
|
-
* @param id Document id.
|
|
26
|
-
* @param name Optional document name; defaults to an empty string.
|
|
27
|
-
*/
|
|
28
|
-
constructor(id: string, name?: string);
|
|
29
|
-
/** Appends a workflow input port. */
|
|
30
|
-
addInput(port: GraphWorkflowPortInput): this;
|
|
31
|
-
/** Appends a workflow output port. */
|
|
32
|
-
addOutput(port: GraphWorkflowPortInput): this;
|
|
33
|
-
/** Appends a node instance, defaulting `parameters` to an empty object. */
|
|
34
|
-
addNode(node: GraphNodeInstance): this;
|
|
35
|
-
/** Appends an edge instance. */
|
|
36
|
-
addEdge(edge: GraphEdgeInstance): this;
|
|
37
|
-
/** Sets (or clears) the document's free-form settings bag. */
|
|
38
|
-
setSettings(settings?: GraphWorkflowSettings): this;
|
|
39
|
-
/** Sets (or clears) the document's metadata bag. */
|
|
40
|
-
setMetadata(metadata?: Record<string, GraphJsonValue>): this;
|
|
41
|
-
/** Sets (or clears) the document's editor UI state. */
|
|
42
|
-
setUi(ui?: GraphWorkflowUiState): this;
|
|
43
|
-
/**
|
|
44
|
-
* Validates the accumulated document with
|
|
45
|
-
* {@link assertGraphWorkflowDocumentValid} and returns a deep-ish copy:
|
|
46
|
-
* ports, nodes, and edges are cloned per entry, and the optional
|
|
47
|
-
* `settings`/`metadata`/`ui` bags are only present when explicitly set, so
|
|
48
|
-
* callers never observe builder-internal `undefined` fields.
|
|
49
|
-
*
|
|
50
|
-
* @throws ValidationError when the document fails validation.
|
|
51
|
-
*/
|
|
52
|
-
build(): GraphWorkflowDocument;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Shared validation context for
|
|
56
|
-
* {@link assertGraphWorkflowDocumentValid}: tracks documents already visited
|
|
57
|
-
* on the current nesting path so cyclic loop bodies are detected.
|
|
58
|
-
*/
|
|
59
|
-
export interface GraphWorkflowDocumentValidationContext {
|
|
60
|
-
seen: unknown[];
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Structural validation gate for a canonical {@link GraphWorkflowDocument}
|
|
64
|
-
* (shared by the frontend builder and the backend nine-stage validator,
|
|
65
|
-
* DECAF-50 §4.8 stage 1 shape rules). Checks unique port/node/edge ids,
|
|
66
|
-
* valid schemas, binding shapes, edge endpoints, and recursively validates
|
|
67
|
-
* nested loop-body documents.
|
|
68
|
-
*
|
|
69
|
-
* @throws ValidationError describing the first invalid aspect found.
|
|
70
|
-
*/
|
|
71
|
-
export declare function assertGraphWorkflowDocumentValid(document: GraphWorkflowDocument, context?: GraphWorkflowDocumentValidationContext): void;
|
|
72
|
-
export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
2
|
-
import type { GraphNodeEndpoint, GraphWorkflowEndpoint } from "./GraphEndpoint.d.mts";
|
|
3
|
-
import type { GraphWorkflowUiState } from "./GraphWorkflowUiState.d.mts";
|
|
4
|
-
import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.mts";
|
|
5
|
-
import type { GraphNodeInstance } from "./GraphNodeInstance.d.mts";
|
|
6
|
-
import type { GraphWorkflowDocument, GraphWorkflowPortInstance, GraphWorkflowSettings } from "./GraphWorkflowDocument.d.mts";
|
|
7
|
-
/** A workflow boundary port accepted by {@link GraphWorkflowDocumentBuilder}. */
|
|
8
|
-
export type GraphWorkflowPortInput = GraphWorkflowPortInstance;
|
|
9
|
-
/** Options for constructing a {@link GraphWorkflowDocumentBuilder}. */
|
|
10
|
-
export interface GraphWorkflowDocumentBuilderOptions {
|
|
11
|
-
/** Document id; defaults to an empty string when omitted. */
|
|
12
|
-
id?: string;
|
|
13
|
-
/** Human-readable document name; defaults to an empty string when omitted. */
|
|
14
|
-
name?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Fluent builder for the canonical {@link GraphWorkflowDocument}
|
|
18
|
-
* (DECAF-50 §4.4.4). Collects boundary ports, node instances, edges, and
|
|
19
|
-
* optional settings/metadata/UI state, then validates and freezes a
|
|
20
|
-
* defensively-copied document on {@link GraphWorkflowDocumentBuilder.build}.
|
|
21
|
-
*/
|
|
22
|
-
export declare class GraphWorkflowDocumentBuilder {
|
|
23
|
-
private readonly document;
|
|
24
|
-
/**
|
|
25
|
-
* @param id Document id.
|
|
26
|
-
* @param name Optional document name; defaults to an empty string.
|
|
27
|
-
*/
|
|
28
|
-
constructor(id: string, name?: string);
|
|
29
|
-
/** Appends a workflow input port. */
|
|
30
|
-
addInput(port: GraphWorkflowPortInput): this;
|
|
31
|
-
/** Appends a workflow output port. */
|
|
32
|
-
addOutput(port: GraphWorkflowPortInput): this;
|
|
33
|
-
/** Appends a node instance, defaulting `parameters` to an empty object. */
|
|
34
|
-
addNode(node: GraphNodeInstance): this;
|
|
35
|
-
/** Appends an edge instance. */
|
|
36
|
-
addEdge(edge: GraphEdgeInstance): this;
|
|
37
|
-
/** Sets (or clears) the document's free-form settings bag. */
|
|
38
|
-
setSettings(settings?: GraphWorkflowSettings): this;
|
|
39
|
-
/** Sets (or clears) the document's metadata bag. */
|
|
40
|
-
setMetadata(metadata?: Record<string, GraphJsonValue>): this;
|
|
41
|
-
/** Sets (or clears) the document's editor UI state. */
|
|
42
|
-
setUi(ui?: GraphWorkflowUiState): this;
|
|
43
|
-
/**
|
|
44
|
-
* Validates the accumulated document with
|
|
45
|
-
* {@link assertGraphWorkflowDocumentValid} and returns a deep-ish copy:
|
|
46
|
-
* ports, nodes, and edges are cloned per entry, and the optional
|
|
47
|
-
* `settings`/`metadata`/`ui` bags are only present when explicitly set, so
|
|
48
|
-
* callers never observe builder-internal `undefined` fields.
|
|
49
|
-
*
|
|
50
|
-
* @throws ValidationError when the document fails validation.
|
|
51
|
-
*/
|
|
52
|
-
build(): GraphWorkflowDocument;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Shared validation context for
|
|
56
|
-
* {@link assertGraphWorkflowDocumentValid}: tracks documents already visited
|
|
57
|
-
* on the current nesting path so cyclic loop bodies are detected.
|
|
58
|
-
*/
|
|
59
|
-
export interface GraphWorkflowDocumentValidationContext {
|
|
60
|
-
seen: unknown[];
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Structural validation gate for a canonical {@link GraphWorkflowDocument}
|
|
64
|
-
* (shared by the frontend builder and the backend nine-stage validator,
|
|
65
|
-
* DECAF-50 §4.8 stage 1 shape rules). Checks unique port/node/edge ids,
|
|
66
|
-
* valid schemas, binding shapes, edge endpoints, and recursively validates
|
|
67
|
-
* nested loop-body documents.
|
|
68
|
-
*
|
|
69
|
-
* @throws ValidationError describing the first invalid aspect found.
|
|
70
|
-
*/
|
|
71
|
-
export declare function assertGraphWorkflowDocumentValid(document: GraphWorkflowDocument, context?: GraphWorkflowDocumentValidationContext): void;
|
|
72
|
-
export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
2
|
-
import type { GraphWorkflowDocument, GraphWorkflowPortInstance } from "./GraphWorkflowDocument.d.cts";
|
|
3
|
-
import type { GraphNodeInstance } from "./GraphNodeInstance.d.cts";
|
|
4
|
-
import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.cts";
|
|
5
|
-
import type { GraphNodeUiState, GraphWorkflowUiState } from "./GraphWorkflowUiState.d.cts";
|
|
6
|
-
export declare function graphWorkflowDocumentOf(value: unknown): GraphWorkflowDocument | undefined;
|
|
7
|
-
export declare function graphWorkflowNodeOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphNodeInstance | undefined;
|
|
8
|
-
export declare function graphWorkflowEdgeOf(document: GraphWorkflowDocument | undefined, edgeId: string): GraphEdgeInstance | undefined;
|
|
9
|
-
export declare function graphWorkflowPortsOf(document: GraphWorkflowDocument | undefined): {
|
|
10
|
-
inputs: GraphWorkflowPortInstance[];
|
|
11
|
-
outputs: GraphWorkflowPortInstance[];
|
|
12
|
-
};
|
|
13
|
-
export declare function graphWorkflowSettingsOf(document: GraphWorkflowDocument | undefined): Record<string, GraphJsonValue>;
|
|
14
|
-
export declare function graphWorkflowEdgesOf(document: GraphWorkflowDocument | undefined): GraphEdgeInstance[];
|
|
15
|
-
export declare function graphWorkflowNodeEdgesOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphEdgeInstance[];
|
|
16
|
-
export declare function graphNodeEndpointId(endpoint: GraphEdgeInstance["source"]): string | undefined;
|
|
17
|
-
export declare function graphWorkflowNodeUiOf(document: GraphWorkflowDocument, nodeId: string): GraphNodeUiState | undefined;
|
|
18
|
-
export declare function graphWorkflowUiOf(document: GraphWorkflowDocument): GraphWorkflowUiState | undefined;
|
|
19
|
-
export declare function graphWorkflowUiValueOf(document: GraphWorkflowDocument, key: string): GraphJsonValue | undefined;
|
|
20
|
-
export declare function graphWorkflowDocumentSettingOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
|
|
21
|
-
export declare function graphWorkflowDocumentMetadataValueOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
2
|
-
import type { GraphWorkflowDocument, GraphWorkflowPortInstance } from "./GraphWorkflowDocument.d.mts";
|
|
3
|
-
import type { GraphNodeInstance } from "./GraphNodeInstance.d.mts";
|
|
4
|
-
import type { GraphEdgeInstance } from "./GraphEdgeInstance.d.mts";
|
|
5
|
-
import type { GraphNodeUiState, GraphWorkflowUiState } from "./GraphWorkflowUiState.d.mts";
|
|
6
|
-
export declare function graphWorkflowDocumentOf(value: unknown): GraphWorkflowDocument | undefined;
|
|
7
|
-
export declare function graphWorkflowNodeOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphNodeInstance | undefined;
|
|
8
|
-
export declare function graphWorkflowEdgeOf(document: GraphWorkflowDocument | undefined, edgeId: string): GraphEdgeInstance | undefined;
|
|
9
|
-
export declare function graphWorkflowPortsOf(document: GraphWorkflowDocument | undefined): {
|
|
10
|
-
inputs: GraphWorkflowPortInstance[];
|
|
11
|
-
outputs: GraphWorkflowPortInstance[];
|
|
12
|
-
};
|
|
13
|
-
export declare function graphWorkflowSettingsOf(document: GraphWorkflowDocument | undefined): Record<string, GraphJsonValue>;
|
|
14
|
-
export declare function graphWorkflowEdgesOf(document: GraphWorkflowDocument | undefined): GraphEdgeInstance[];
|
|
15
|
-
export declare function graphWorkflowNodeEdgesOf(document: GraphWorkflowDocument | undefined, nodeId: string): GraphEdgeInstance[];
|
|
16
|
-
export declare function graphNodeEndpointId(endpoint: GraphEdgeInstance["source"]): string | undefined;
|
|
17
|
-
export declare function graphWorkflowNodeUiOf(document: GraphWorkflowDocument, nodeId: string): GraphNodeUiState | undefined;
|
|
18
|
-
export declare function graphWorkflowUiOf(document: GraphWorkflowDocument): GraphWorkflowUiState | undefined;
|
|
19
|
-
export declare function graphWorkflowUiValueOf(document: GraphWorkflowDocument, key: string): GraphJsonValue | undefined;
|
|
20
|
-
export declare function graphWorkflowDocumentSettingOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
|
|
21
|
-
export declare function graphWorkflowDocumentMetadataValueOf(document: GraphWorkflowDocument | undefined, key: string): GraphJsonValue | undefined;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.cts";
|
|
2
|
-
export declare function graphWorkflowDocumentSerializer(document: GraphWorkflowDocument): string;
|
|
3
|
-
export declare function graphWorkflowDocumentDeserializer(serialised: string): GraphWorkflowDocument;
|
|
4
|
-
export declare function graphJsonSerializer(value: unknown, indentation?: number): string;
|
|
5
|
-
export declare function graphJsonParser(serialised: string | unknown): unknown;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { GraphWorkflowDocument } from "./GraphWorkflowDocument.d.mts";
|
|
2
|
-
export declare function graphWorkflowDocumentSerializer(document: GraphWorkflowDocument): string;
|
|
3
|
-
export declare function graphWorkflowDocumentDeserializer(serialised: string): GraphWorkflowDocument;
|
|
4
|
-
export declare function graphJsonSerializer(value: unknown, indentation?: number): string;
|
|
5
|
-
export declare function graphJsonParser(serialised: string | unknown): unknown;
|