@decaf-ts/ui-decorators 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +20 -0
  3. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +1 -0
  4. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +15 -0
  5. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +1 -0
  6. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +16 -0
  7. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +1 -0
  8. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +31 -0
  9. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +1 -0
  10. package/lib/cjs/graph/catalog/GraphIconReference.cjs +22 -0
  11. package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +1 -0
  12. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +298 -0
  13. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -0
  14. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +23 -0
  15. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +1 -0
  16. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +11 -0
  17. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +1 -0
  18. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +23 -0
  19. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +1 -0
  20. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +50 -0
  21. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +1 -0
  22. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +29 -0
  23. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +1 -0
  24. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +11 -0
  25. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +1 -0
  26. package/lib/cjs/graph/catalog/GraphParameterBase.cjs +4 -0
  27. package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +1 -0
  28. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +29 -0
  29. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +1 -0
  30. package/lib/cjs/graph/catalog/GraphParameterOption.cjs +18 -0
  31. package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +1 -0
  32. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +57 -0
  33. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +1 -0
  34. package/lib/cjs/graph/catalog/GraphPortManifest.cjs +19 -0
  35. package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +1 -0
  36. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +19 -0
  37. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +1 -0
  38. package/lib/cjs/graph/catalog/GraphValueSchema.cjs +25 -0
  39. package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +1 -0
  40. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +164 -0
  41. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -0
  42. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +63 -0
  43. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +1 -0
  44. package/lib/cjs/graph/catalog/index.cjs +39 -0
  45. package/lib/cjs/graph/catalog/index.cjs.map +1 -0
  46. package/lib/cjs/graph/constants.cjs +15 -1
  47. package/lib/cjs/graph/constants.cjs.map +1 -1
  48. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +296 -0
  49. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +1 -0
  50. package/lib/cjs/graph/document/GraphEdgeInstance.cjs +4 -0
  51. package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +1 -0
  52. package/lib/cjs/graph/document/GraphEndpoint.cjs +27 -0
  53. package/lib/cjs/graph/document/GraphEndpoint.cjs.map +1 -0
  54. package/lib/cjs/graph/document/GraphJsonValue.cjs +82 -0
  55. package/lib/cjs/graph/document/GraphJsonValue.cjs.map +1 -0
  56. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +4 -0
  57. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +1 -0
  58. package/lib/cjs/graph/document/GraphNodeBinding.cjs +27 -0
  59. package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +1 -0
  60. package/lib/cjs/graph/document/GraphNodeInstance.cjs +4 -0
  61. package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +1 -0
  62. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +16 -0
  63. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +1 -0
  64. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +267 -0
  65. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +1 -0
  66. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +78 -0
  67. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +1 -0
  68. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +70 -0
  69. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +1 -0
  70. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +4 -0
  71. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +1 -0
  72. package/lib/cjs/graph/document/index.cjs +30 -0
  73. package/lib/cjs/graph/document/index.cjs.map +1 -0
  74. package/lib/cjs/graph/index.cjs +2 -0
  75. package/lib/cjs/graph/index.cjs.map +1 -1
  76. package/lib/cjs/graph/snapshot.cjs +337 -0
  77. package/lib/cjs/graph/snapshot.cjs.map +1 -1
  78. package/lib/cjs/index.cjs +3 -3
  79. package/lib/esm/graph/catalog/GraphConnectionPolicy.js +16 -0
  80. package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +1 -0
  81. package/lib/esm/graph/catalog/GraphCredentialReference.js +9 -0
  82. package/lib/esm/graph/catalog/GraphCredentialReference.js.map +1 -0
  83. package/lib/esm/graph/catalog/GraphCredentialRequirement.js +12 -0
  84. package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +1 -0
  85. package/lib/esm/graph/catalog/GraphDynamicPortRule.js +25 -0
  86. package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +1 -0
  87. package/lib/esm/graph/catalog/GraphIconReference.js +18 -0
  88. package/lib/esm/graph/catalog/GraphIconReference.js.map +1 -0
  89. package/lib/esm/graph/catalog/GraphManifestCompiler.js +294 -0
  90. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -0
  91. package/lib/esm/graph/catalog/GraphNodeCapability.js +17 -0
  92. package/lib/esm/graph/catalog/GraphNodeCapability.js.map +1 -0
  93. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +7 -0
  94. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +1 -0
  95. package/lib/esm/graph/catalog/GraphNodeManifest.js +17 -0
  96. package/lib/esm/graph/catalog/GraphNodeManifest.js.map +1 -0
  97. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +42 -0
  98. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +1 -0
  99. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +23 -0
  100. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +1 -0
  101. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +7 -0
  102. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +1 -0
  103. package/lib/esm/graph/catalog/GraphParameterBase.js +2 -0
  104. package/lib/esm/graph/catalog/GraphParameterBase.js.map +1 -0
  105. package/lib/esm/graph/catalog/GraphParameterDefinition.js +23 -0
  106. package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +1 -0
  107. package/lib/esm/graph/catalog/GraphParameterOption.js +13 -0
  108. package/lib/esm/graph/catalog/GraphParameterOption.js.map +1 -0
  109. package/lib/esm/graph/catalog/GraphParameterValidation.js +50 -0
  110. package/lib/esm/graph/catalog/GraphParameterValidation.js.map +1 -0
  111. package/lib/esm/graph/catalog/GraphPortManifest.js +13 -0
  112. package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -0
  113. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +13 -0
  114. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +1 -0
  115. package/lib/esm/graph/catalog/GraphValueSchema.js +19 -0
  116. package/lib/esm/graph/catalog/GraphValueSchema.js.map +1 -0
  117. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +156 -0
  118. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +1 -0
  119. package/lib/esm/graph/catalog/GraphVisibilityExpression.js +58 -0
  120. package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +1 -0
  121. package/lib/esm/graph/catalog/index.js +22 -0
  122. package/lib/esm/graph/catalog/index.js.map +1 -0
  123. package/lib/esm/graph/constants.js +13 -0
  124. package/lib/esm/graph/constants.js.map +1 -1
  125. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +290 -0
  126. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +1 -0
  127. package/lib/esm/graph/document/GraphEdgeInstance.js +2 -0
  128. package/lib/esm/graph/document/GraphEdgeInstance.js.map +1 -0
  129. package/lib/esm/graph/document/GraphEndpoint.js +21 -0
  130. package/lib/esm/graph/document/GraphEndpoint.js.map +1 -0
  131. package/lib/esm/graph/document/GraphJsonValue.js +73 -0
  132. package/lib/esm/graph/document/GraphJsonValue.js.map +1 -0
  133. package/lib/esm/graph/document/GraphLoopConfiguration.js +2 -0
  134. package/lib/esm/graph/document/GraphLoopConfiguration.js.map +1 -0
  135. package/lib/esm/graph/document/GraphNodeBinding.js +22 -0
  136. package/lib/esm/graph/document/GraphNodeBinding.js.map +1 -0
  137. package/lib/esm/graph/document/GraphNodeInstance.js +2 -0
  138. package/lib/esm/graph/document/GraphNodeInstance.js.map +1 -0
  139. package/lib/esm/graph/document/GraphWorkflowDocument.js +12 -0
  140. package/lib/esm/graph/document/GraphWorkflowDocument.js.map +1 -0
  141. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +261 -0
  142. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +1 -0
  143. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +62 -0
  144. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +1 -0
  145. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +63 -0
  146. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +1 -0
  147. package/lib/esm/graph/document/GraphWorkflowUiState.js +2 -0
  148. package/lib/esm/graph/document/GraphWorkflowUiState.js.map +1 -0
  149. package/lib/esm/graph/document/index.js +13 -0
  150. package/lib/esm/graph/document/index.js.map +1 -0
  151. package/lib/esm/graph/index.js +2 -0
  152. package/lib/esm/graph/index.js.map +1 -1
  153. package/lib/esm/graph/snapshot.js +333 -0
  154. package/lib/esm/graph/snapshot.js.map +1 -1
  155. package/lib/esm/index.js +3 -3
  156. package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +9 -0
  157. package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +9 -0
  158. package/lib/types/graph/catalog/GraphCredentialReference.d.cts +6 -0
  159. package/lib/types/graph/catalog/GraphCredentialReference.d.mts +6 -0
  160. package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +7 -0
  161. package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +7 -0
  162. package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +22 -0
  163. package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +22 -0
  164. package/lib/types/graph/catalog/GraphIconReference.d.cts +12 -0
  165. package/lib/types/graph/catalog/GraphIconReference.d.mts +12 -0
  166. package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +14 -0
  167. package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +14 -0
  168. package/lib/types/graph/catalog/GraphNodeCapability.d.cts +4 -0
  169. package/lib/types/graph/catalog/GraphNodeCapability.d.mts +4 -0
  170. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +16 -0
  171. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +16 -0
  172. package/lib/types/graph/catalog/GraphNodeManifest.d.cts +26 -0
  173. package/lib/types/graph/catalog/GraphNodeManifest.d.mts +26 -0
  174. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +7 -0
  175. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +7 -0
  176. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +10 -0
  177. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +10 -0
  178. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +11 -0
  179. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +11 -0
  180. package/lib/types/graph/catalog/GraphParameterBase.d.cts +14 -0
  181. package/lib/types/graph/catalog/GraphParameterBase.d.mts +14 -0
  182. package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +66 -0
  183. package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +66 -0
  184. package/lib/types/graph/catalog/GraphParameterOption.d.cts +8 -0
  185. package/lib/types/graph/catalog/GraphParameterOption.d.mts +8 -0
  186. package/lib/types/graph/catalog/GraphParameterValidation.d.cts +25 -0
  187. package/lib/types/graph/catalog/GraphParameterValidation.d.mts +25 -0
  188. package/lib/types/graph/catalog/GraphPortManifest.d.cts +21 -0
  189. package/lib/types/graph/catalog/GraphPortManifest.d.mts +21 -0
  190. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +10 -0
  191. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +10 -0
  192. package/lib/types/graph/catalog/GraphValueSchema.d.cts +44 -0
  193. package/lib/types/graph/catalog/GraphValueSchema.d.mts +44 -0
  194. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +9 -0
  195. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +9 -0
  196. package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +22 -0
  197. package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +22 -0
  198. package/lib/types/graph/catalog/index.d.cts +21 -0
  199. package/lib/types/graph/catalog/index.d.mts +21 -0
  200. package/lib/types/graph/constants.d.cts +8 -0
  201. package/lib/types/graph/constants.d.mts +8 -0
  202. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +26 -0
  203. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +26 -0
  204. package/lib/types/graph/document/GraphEdgeInstance.d.cts +12 -0
  205. package/lib/types/graph/document/GraphEdgeInstance.d.mts +12 -0
  206. package/lib/types/graph/document/GraphEndpoint.d.cts +13 -0
  207. package/lib/types/graph/document/GraphEndpoint.d.mts +13 -0
  208. package/lib/types/graph/document/GraphJsonValue.d.cts +11 -0
  209. package/lib/types/graph/document/GraphJsonValue.d.mts +11 -0
  210. package/lib/types/graph/document/GraphLoopConfiguration.d.cts +24 -0
  211. package/lib/types/graph/document/GraphLoopConfiguration.d.mts +24 -0
  212. package/lib/types/graph/document/GraphNodeBinding.d.cts +21 -0
  213. package/lib/types/graph/document/GraphNodeBinding.d.mts +21 -0
  214. package/lib/types/graph/document/GraphNodeInstance.d.cts +16 -0
  215. package/lib/types/graph/document/GraphNodeInstance.d.mts +16 -0
  216. package/lib/types/graph/document/GraphWorkflowDocument.d.cts +33 -0
  217. package/lib/types/graph/document/GraphWorkflowDocument.d.mts +33 -0
  218. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +28 -0
  219. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +28 -0
  220. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +21 -0
  221. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +21 -0
  222. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +5 -0
  223. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +5 -0
  224. package/lib/types/graph/document/GraphWorkflowUiState.d.cts +29 -0
  225. package/lib/types/graph/document/GraphWorkflowUiState.d.mts +29 -0
  226. package/lib/types/graph/document/index.d.cts +12 -0
  227. package/lib/types/graph/document/index.d.mts +12 -0
  228. package/lib/types/graph/index.d.cts +2 -0
  229. package/lib/types/graph/index.d.mts +2 -0
  230. package/lib/types/graph/snapshot.d.cts +67 -7
  231. package/lib/types/graph/snapshot.d.mts +67 -7
  232. package/lib/types/graph/types.d.cts +1 -1
  233. package/lib/types/graph/types.d.mts +1 -1
  234. package/lib/types/index.d.cts +3 -3
  235. package/lib/types/index.d.mts +3 -3
  236. package/package.json +5 -5
@@ -4,6 +4,14 @@ export declare enum GraphKeys {
4
4
  EDGE = "graph.edge",
5
5
  PORT = "graph.port"
6
6
  }
7
+ /**
8
+ * Rollout gate for the canonical document pipeline (DECAF-50/P1). Defaults to
9
+ * off so existing legacy snapshot/definition flows keep working until the
10
+ * save/history cutover. Overridable at runtime via the browser-safe global
11
+ * `__DECAF_GRAPH_CANONICAL_DOCUMENT__` flag (no Node/`process` dependency).
12
+ */
13
+ export declare const GRAPH_CANONICAL_DOCUMENT_ENABLED_DEFAULT = false;
14
+ export declare function graphCanonicalDocumentEnabled(): boolean;
7
15
  export declare enum PortDirection {
8
16
  INPUT = "input",
9
17
  OUTPUT = "output",
@@ -4,6 +4,14 @@ export declare enum GraphKeys {
4
4
  EDGE = "graph.edge",
5
5
  PORT = "graph.port"
6
6
  }
7
+ /**
8
+ * Rollout gate for the canonical document pipeline (DECAF-50/P1). Defaults to
9
+ * off so existing legacy snapshot/definition flows keep working until the
10
+ * save/history cutover. Overridable at runtime via the browser-safe global
11
+ * `__DECAF_GRAPH_CANONICAL_DOCUMENT__` flag (no Node/`process` dependency).
12
+ */
13
+ export declare const GRAPH_CANONICAL_DOCUMENT_ENABLED_DEFAULT = false;
14
+ export declare function graphCanonicalDocumentEnabled(): boolean;
7
15
  export declare enum PortDirection {
8
16
  INPUT = "input",
9
17
  OUTPUT = "output",
@@ -0,0 +1,26 @@
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
+ export interface GraphDecoratedWorkflowCompileOptions {
8
+ id?: string;
9
+ name?: string;
10
+ positions?: Record<string, {
11
+ x: number;
12
+ y: number;
13
+ }>;
14
+ viewport?: GraphWorkflowViewport;
15
+ }
16
+ export type GraphDecoratedWorkflowInput = Constructor | Model | GraphWorkflowDefinition;
17
+ export declare function graphDecoratedWorkflowCompiler(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
18
+ /**
19
+ * Spec-mandated (§4.4.9) compiler facade. Delegates to
20
+ * {@link graphDecoratedWorkflowCompiler}, which performs the actual
21
+ * decorated-definition to {@link GraphWorkflowDocument} mapping.
22
+ */
23
+ export declare class GraphDecoratedWorkflowCompiler {
24
+ compile(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
25
+ }
26
+ export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -0,0 +1,26 @@
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
+ export interface GraphDecoratedWorkflowCompileOptions {
8
+ id?: string;
9
+ name?: string;
10
+ positions?: Record<string, {
11
+ x: number;
12
+ y: number;
13
+ }>;
14
+ viewport?: GraphWorkflowViewport;
15
+ }
16
+ export type GraphDecoratedWorkflowInput = Constructor | Model | GraphWorkflowDefinition;
17
+ export declare function graphDecoratedWorkflowCompiler(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
18
+ /**
19
+ * Spec-mandated (§4.4.9) compiler facade. Delegates to
20
+ * {@link graphDecoratedWorkflowCompiler}, which performs the actual
21
+ * decorated-definition to {@link GraphWorkflowDocument} mapping.
22
+ */
23
+ export declare class GraphDecoratedWorkflowCompiler {
24
+ compile(workflow: GraphDecoratedWorkflowInput, options?: GraphDecoratedWorkflowCompileOptions): GraphWorkflowDocument;
25
+ }
26
+ export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,12 @@
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
+ }
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,24 @@
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
+ }
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,16 @@
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
+ export interface GraphNodeInstance {
6
+ id: string;
7
+ kind: string;
8
+ label?: string;
9
+ parameters: Record<string, GraphJsonValue>;
10
+ inputBindings?: Record<string, GraphInputBinding>;
11
+ outputBindings?: Record<string, GraphOutputBinding>;
12
+ disabled?: boolean;
13
+ metadata?: Record<string, GraphJsonValue>;
14
+ loop?: GraphLoopConfiguration;
15
+ ui?: GraphNodeUiState;
16
+ }
@@ -0,0 +1,16 @@
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
+ export interface GraphNodeInstance {
6
+ id: string;
7
+ kind: string;
8
+ label?: string;
9
+ parameters: Record<string, GraphJsonValue>;
10
+ inputBindings?: Record<string, GraphInputBinding>;
11
+ outputBindings?: Record<string, GraphOutputBinding>;
12
+ disabled?: boolean;
13
+ metadata?: Record<string, GraphJsonValue>;
14
+ loop?: GraphLoopConfiguration;
15
+ ui?: GraphNodeUiState;
16
+ }
@@ -0,0 +1,33 @@
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
+ };
@@ -0,0 +1,33 @@
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
+ };
@@ -0,0 +1,28 @@
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
+ export type GraphWorkflowPortInput = GraphWorkflowPortInstance;
8
+ export interface GraphWorkflowDocumentBuilderOptions {
9
+ id?: string;
10
+ name?: string;
11
+ }
12
+ export declare class GraphWorkflowDocumentBuilder {
13
+ private readonly document;
14
+ constructor(id: string, name?: string);
15
+ addInput(port: GraphWorkflowPortInput): this;
16
+ addOutput(port: GraphWorkflowPortInput): this;
17
+ addNode(node: GraphNodeInstance): this;
18
+ addEdge(edge: GraphEdgeInstance): this;
19
+ setSettings(settings?: GraphWorkflowSettings): this;
20
+ setMetadata(metadata?: Record<string, GraphJsonValue>): this;
21
+ setUi(ui?: GraphWorkflowUiState): this;
22
+ build(): GraphWorkflowDocument;
23
+ }
24
+ export interface GraphWorkflowDocumentValidationContext {
25
+ seen: unknown[];
26
+ }
27
+ export declare function assertGraphWorkflowDocumentValid(document: GraphWorkflowDocument, context?: GraphWorkflowDocumentValidationContext): void;
28
+ export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -0,0 +1,28 @@
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
+ export type GraphWorkflowPortInput = GraphWorkflowPortInstance;
8
+ export interface GraphWorkflowDocumentBuilderOptions {
9
+ id?: string;
10
+ name?: string;
11
+ }
12
+ export declare class GraphWorkflowDocumentBuilder {
13
+ private readonly document;
14
+ constructor(id: string, name?: string);
15
+ addInput(port: GraphWorkflowPortInput): this;
16
+ addOutput(port: GraphWorkflowPortInput): this;
17
+ addNode(node: GraphNodeInstance): this;
18
+ addEdge(edge: GraphEdgeInstance): this;
19
+ setSettings(settings?: GraphWorkflowSettings): this;
20
+ setMetadata(metadata?: Record<string, GraphJsonValue>): this;
21
+ setUi(ui?: GraphWorkflowUiState): this;
22
+ build(): GraphWorkflowDocument;
23
+ }
24
+ export interface GraphWorkflowDocumentValidationContext {
25
+ seen: unknown[];
26
+ }
27
+ export declare function assertGraphWorkflowDocumentValid(document: GraphWorkflowDocument, context?: GraphWorkflowDocumentValidationContext): void;
28
+ export type { GraphWorkflowEndpoint, GraphNodeEndpoint };
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,21 @@
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;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,29 @@
1
+ import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
2
+ export type GraphWorkflowViewport = {
3
+ x: number;
4
+ y: number;
5
+ zoom: number;
6
+ };
7
+ export type GraphNodeUiState = {
8
+ position: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ size?: {
13
+ width?: number;
14
+ height?: number;
15
+ };
16
+ expanded?: boolean;
17
+ selectedTab?: string;
18
+ };
19
+ export type GraphEdgeUiState = {
20
+ points?: Array<{
21
+ x: number;
22
+ y: number;
23
+ }>;
24
+ };
25
+ export type GraphWorkflowUiState = {
26
+ viewport?: GraphWorkflowViewport;
27
+ } & {
28
+ [key: string]: GraphJsonValue | undefined;
29
+ };
@@ -0,0 +1,29 @@
1
+ import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
2
+ export type GraphWorkflowViewport = {
3
+ x: number;
4
+ y: number;
5
+ zoom: number;
6
+ };
7
+ export type GraphNodeUiState = {
8
+ position: {
9
+ x: number;
10
+ y: number;
11
+ };
12
+ size?: {
13
+ width?: number;
14
+ height?: number;
15
+ };
16
+ expanded?: boolean;
17
+ selectedTab?: string;
18
+ };
19
+ export type GraphEdgeUiState = {
20
+ points?: Array<{
21
+ x: number;
22
+ y: number;
23
+ }>;
24
+ };
25
+ export type GraphWorkflowUiState = {
26
+ viewport?: GraphWorkflowViewport;
27
+ } & {
28
+ [key: string]: GraphJsonValue | undefined;
29
+ };
@@ -0,0 +1,12 @@
1
+ export * from "./GraphDecoratedWorkflowCompiler.d.cts";
2
+ export * from "./GraphEdgeInstance.d.cts";
3
+ export * from "./GraphEndpoint.d.cts";
4
+ export * from "./GraphJsonValue.d.cts";
5
+ export * from "./GraphLoopConfiguration.d.cts";
6
+ export * from "./GraphNodeBinding.d.cts";
7
+ export * from "./GraphNodeInstance.d.cts";
8
+ export * from "./GraphWorkflowDocument.d.cts";
9
+ export * from "./GraphWorkflowDocumentBuilder.d.cts";
10
+ export * from "./GraphWorkflowDocumentReader.d.cts";
11
+ export * from "./GraphWorkflowDocumentSerializer.d.cts";
12
+ export * from "./GraphWorkflowUiState.d.cts";
@@ -0,0 +1,12 @@
1
+ export * from "./GraphDecoratedWorkflowCompiler.d.mts";
2
+ export * from "./GraphEdgeInstance.d.mts";
3
+ export * from "./GraphEndpoint.d.mts";
4
+ export * from "./GraphJsonValue.d.mts";
5
+ export * from "./GraphLoopConfiguration.d.mts";
6
+ export * from "./GraphNodeBinding.d.mts";
7
+ export * from "./GraphNodeInstance.d.mts";
8
+ export * from "./GraphWorkflowDocument.d.mts";
9
+ export * from "./GraphWorkflowDocumentBuilder.d.mts";
10
+ export * from "./GraphWorkflowDocumentReader.d.mts";
11
+ export * from "./GraphWorkflowDocumentSerializer.d.mts";
12
+ export * from "./GraphWorkflowUiState.d.mts";
@@ -6,5 +6,7 @@ export * from "./registry.d.cts";
6
6
  export * from "./overrides/index.d.cts";
7
7
  export * from "./snapshot.d.cts";
8
8
  export * from "./reader.d.cts";
9
+ export * from "./document/index.d.cts";
10
+ export * from "./catalog/index.d.cts";
9
11
  export * from "./types.d.cts";
10
12
  export * from "./overrides/index.d.cts";
@@ -6,5 +6,7 @@ export * from "./registry.d.mts";
6
6
  export * from "./overrides/index.d.mts";
7
7
  export * from "./snapshot.d.mts";
8
8
  export * from "./reader.d.mts";
9
+ export * from "./document/index.d.mts";
10
+ export * from "./catalog/index.d.mts";
9
11
  export * from "./types.d.mts";
10
12
  export * from "./overrides/index.d.mts";