@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.
Files changed (309) hide show
  1. package/dist/ui-decorators.cjs +1 -1
  2. package/dist/ui-decorators.cjs.map +1 -1
  3. package/dist/ui-decorators.js +1 -1
  4. package/dist/ui-decorators.js.map +1 -1
  5. package/lib/cjs/index.cjs +3 -3
  6. package/lib/esm/index.js +3 -3
  7. package/lib/types/index.d.cts +3 -3
  8. package/lib/types/index.d.mts +3 -3
  9. package/package.json +2 -18
  10. package/lib/cjs/graph/GraphExecutionStateMapper.cjs +0 -97
  11. package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +0 -1
  12. package/lib/cjs/graph/GraphResolution.cjs +0 -17
  13. package/lib/cjs/graph/GraphResolution.cjs.map +0 -1
  14. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +0 -20
  15. package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +0 -1
  16. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +0 -15
  17. package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +0 -1
  18. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +0 -16
  19. package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +0 -1
  20. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +0 -31
  21. package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +0 -1
  22. package/lib/cjs/graph/catalog/GraphIconReference.cjs +0 -22
  23. package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +0 -1
  24. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +0 -326
  25. package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +0 -1
  26. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +0 -23
  27. package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +0 -1
  28. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +0 -11
  29. package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +0 -1
  30. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +0 -23
  31. package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +0 -1
  32. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +0 -50
  33. package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +0 -1
  34. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +0 -29
  35. package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +0 -1
  36. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +0 -18
  37. package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +0 -1
  38. package/lib/cjs/graph/catalog/GraphParameterBase.cjs +0 -4
  39. package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +0 -1
  40. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +0 -29
  41. package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +0 -1
  42. package/lib/cjs/graph/catalog/GraphParameterOption.cjs +0 -18
  43. package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +0 -1
  44. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +0 -57
  45. package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +0 -1
  46. package/lib/cjs/graph/catalog/GraphPortManifest.cjs +0 -19
  47. package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +0 -1
  48. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs +0 -15
  49. package/lib/cjs/graph/catalog/GraphPortManifestElement.cjs.map +0 -1
  50. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +0 -19
  51. package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +0 -1
  52. package/lib/cjs/graph/catalog/GraphValueSchema.cjs +0 -25
  53. package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +0 -1
  54. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +0 -164
  55. package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +0 -1
  56. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +0 -63
  57. package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +0 -1
  58. package/lib/cjs/graph/catalog/index.cjs +0 -40
  59. package/lib/cjs/graph/catalog/index.cjs.map +0 -1
  60. package/lib/cjs/graph/category-styles.cjs +0 -38
  61. package/lib/cjs/graph/category-styles.cjs.map +0 -1
  62. package/lib/cjs/graph/constants.cjs +0 -320
  63. package/lib/cjs/graph/constants.cjs.map +0 -1
  64. package/lib/cjs/graph/decorators.cjs +0 -151
  65. package/lib/cjs/graph/decorators.cjs.map +0 -1
  66. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +0 -353
  67. package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +0 -1
  68. package/lib/cjs/graph/document/GraphEdgeInstance.cjs +0 -4
  69. package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +0 -1
  70. package/lib/cjs/graph/document/GraphEndpoint.cjs +0 -27
  71. package/lib/cjs/graph/document/GraphEndpoint.cjs.map +0 -1
  72. package/lib/cjs/graph/document/GraphJsonValue.cjs +0 -82
  73. package/lib/cjs/graph/document/GraphJsonValue.cjs.map +0 -1
  74. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +0 -4
  75. package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +0 -1
  76. package/lib/cjs/graph/document/GraphNodeBinding.cjs +0 -27
  77. package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +0 -1
  78. package/lib/cjs/graph/document/GraphNodeInstance.cjs +0 -4
  79. package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +0 -1
  80. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +0 -16
  81. package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +0 -1
  82. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +0 -309
  83. package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +0 -1
  84. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +0 -78
  85. package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +0 -1
  86. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +0 -70
  87. package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +0 -1
  88. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +0 -4
  89. package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +0 -1
  90. package/lib/cjs/graph/document/index.cjs +0 -30
  91. package/lib/cjs/graph/document/index.cjs.map +0 -1
  92. package/lib/cjs/graph/index.cjs +0 -33
  93. package/lib/cjs/graph/index.cjs.map +0 -1
  94. package/lib/cjs/graph/overrides/Metadata.cjs +0 -23
  95. package/lib/cjs/graph/overrides/Metadata.cjs.map +0 -1
  96. package/lib/cjs/graph/overrides/Rendering.cjs +0 -4
  97. package/lib/cjs/graph/overrides/Rendering.cjs.map +0 -1
  98. package/lib/cjs/graph/overrides/index.cjs +0 -21
  99. package/lib/cjs/graph/overrides/index.cjs.map +0 -1
  100. package/lib/cjs/graph/overrides/overrides.cjs +0 -20
  101. package/lib/cjs/graph/overrides/overrides.cjs.map +0 -1
  102. package/lib/cjs/graph/reader.cjs +0 -327
  103. package/lib/cjs/graph/reader.cjs.map +0 -1
  104. package/lib/cjs/graph/registry.cjs +0 -67
  105. package/lib/cjs/graph/registry.cjs.map +0 -1
  106. package/lib/cjs/graph/snapshot.cjs +0 -4
  107. package/lib/cjs/graph/snapshot.cjs.map +0 -1
  108. package/lib/cjs/graph/types.cjs +0 -7
  109. package/lib/cjs/graph/types.cjs.map +0 -1
  110. package/lib/esm/graph/GraphExecutionStateMapper.js +0 -91
  111. package/lib/esm/graph/GraphExecutionStateMapper.js.map +0 -1
  112. package/lib/esm/graph/GraphResolution.js +0 -13
  113. package/lib/esm/graph/GraphResolution.js.map +0 -1
  114. package/lib/esm/graph/catalog/GraphConnectionPolicy.js +0 -16
  115. package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +0 -1
  116. package/lib/esm/graph/catalog/GraphCredentialReference.js +0 -9
  117. package/lib/esm/graph/catalog/GraphCredentialReference.js.map +0 -1
  118. package/lib/esm/graph/catalog/GraphCredentialRequirement.js +0 -12
  119. package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +0 -1
  120. package/lib/esm/graph/catalog/GraphDynamicPortRule.js +0 -25
  121. package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +0 -1
  122. package/lib/esm/graph/catalog/GraphIconReference.js +0 -18
  123. package/lib/esm/graph/catalog/GraphIconReference.js.map +0 -1
  124. package/lib/esm/graph/catalog/GraphManifestCompiler.js +0 -322
  125. package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +0 -1
  126. package/lib/esm/graph/catalog/GraphNodeCapability.js +0 -17
  127. package/lib/esm/graph/catalog/GraphNodeCapability.js.map +0 -1
  128. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +0 -7
  129. package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +0 -1
  130. package/lib/esm/graph/catalog/GraphNodeManifest.js +0 -17
  131. package/lib/esm/graph/catalog/GraphNodeManifest.js.map +0 -1
  132. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +0 -42
  133. package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +0 -1
  134. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +0 -23
  135. package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +0 -1
  136. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +0 -14
  137. package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +0 -1
  138. package/lib/esm/graph/catalog/GraphParameterBase.js +0 -2
  139. package/lib/esm/graph/catalog/GraphParameterBase.js.map +0 -1
  140. package/lib/esm/graph/catalog/GraphParameterDefinition.js +0 -23
  141. package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +0 -1
  142. package/lib/esm/graph/catalog/GraphParameterOption.js +0 -13
  143. package/lib/esm/graph/catalog/GraphParameterOption.js.map +0 -1
  144. package/lib/esm/graph/catalog/GraphParameterValidation.js +0 -50
  145. package/lib/esm/graph/catalog/GraphParameterValidation.js.map +0 -1
  146. package/lib/esm/graph/catalog/GraphPortManifest.js +0 -13
  147. package/lib/esm/graph/catalog/GraphPortManifest.js.map +0 -1
  148. package/lib/esm/graph/catalog/GraphPortManifestElement.js +0 -11
  149. package/lib/esm/graph/catalog/GraphPortManifestElement.js.map +0 -1
  150. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +0 -13
  151. package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +0 -1
  152. package/lib/esm/graph/catalog/GraphValueSchema.js +0 -19
  153. package/lib/esm/graph/catalog/GraphValueSchema.js.map +0 -1
  154. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +0 -156
  155. package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +0 -1
  156. package/lib/esm/graph/catalog/GraphVisibilityExpression.js +0 -58
  157. package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +0 -1
  158. package/lib/esm/graph/catalog/index.js +0 -23
  159. package/lib/esm/graph/catalog/index.js.map +0 -1
  160. package/lib/esm/graph/category-styles.js +0 -34
  161. package/lib/esm/graph/category-styles.js.map +0 -1
  162. package/lib/esm/graph/constants.js +0 -335
  163. package/lib/esm/graph/constants.js.map +0 -1
  164. package/lib/esm/graph/decorators.js +0 -141
  165. package/lib/esm/graph/decorators.js.map +0 -1
  166. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +0 -347
  167. package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +0 -1
  168. package/lib/esm/graph/document/GraphEdgeInstance.js +0 -2
  169. package/lib/esm/graph/document/GraphEdgeInstance.js.map +0 -1
  170. package/lib/esm/graph/document/GraphEndpoint.js +0 -21
  171. package/lib/esm/graph/document/GraphEndpoint.js.map +0 -1
  172. package/lib/esm/graph/document/GraphJsonValue.js +0 -73
  173. package/lib/esm/graph/document/GraphJsonValue.js.map +0 -1
  174. package/lib/esm/graph/document/GraphLoopConfiguration.js +0 -2
  175. package/lib/esm/graph/document/GraphLoopConfiguration.js.map +0 -1
  176. package/lib/esm/graph/document/GraphNodeBinding.js +0 -22
  177. package/lib/esm/graph/document/GraphNodeBinding.js.map +0 -1
  178. package/lib/esm/graph/document/GraphNodeInstance.js +0 -2
  179. package/lib/esm/graph/document/GraphNodeInstance.js.map +0 -1
  180. package/lib/esm/graph/document/GraphWorkflowDocument.js +0 -12
  181. package/lib/esm/graph/document/GraphWorkflowDocument.js.map +0 -1
  182. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +0 -303
  183. package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +0 -1
  184. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +0 -62
  185. package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +0 -1
  186. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +0 -63
  187. package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +0 -1
  188. package/lib/esm/graph/document/GraphWorkflowUiState.js +0 -2
  189. package/lib/esm/graph/document/GraphWorkflowUiState.js.map +0 -1
  190. package/lib/esm/graph/document/index.js +0 -13
  191. package/lib/esm/graph/document/index.js.map +0 -1
  192. package/lib/esm/graph/index.js +0 -16
  193. package/lib/esm/graph/index.js.map +0 -1
  194. package/lib/esm/graph/overrides/Metadata.js +0 -20
  195. package/lib/esm/graph/overrides/Metadata.js.map +0 -1
  196. package/lib/esm/graph/overrides/Rendering.js +0 -2
  197. package/lib/esm/graph/overrides/Rendering.js.map +0 -1
  198. package/lib/esm/graph/overrides/index.js +0 -4
  199. package/lib/esm/graph/overrides/index.js.map +0 -1
  200. package/lib/esm/graph/overrides/overrides.js +0 -17
  201. package/lib/esm/graph/overrides/overrides.js.map +0 -1
  202. package/lib/esm/graph/reader.js +0 -313
  203. package/lib/esm/graph/reader.js.map +0 -1
  204. package/lib/esm/graph/registry.js +0 -59
  205. package/lib/esm/graph/registry.js.map +0 -1
  206. package/lib/esm/graph/snapshot.js +0 -2
  207. package/lib/esm/graph/snapshot.js.map +0 -1
  208. package/lib/esm/graph/types.js +0 -2
  209. package/lib/esm/graph/types.js.map +0 -1
  210. package/lib/types/graph/GraphExecutionStateMapper.d.cts +0 -66
  211. package/lib/types/graph/GraphExecutionStateMapper.d.mts +0 -66
  212. package/lib/types/graph/GraphResolution.d.cts +0 -53
  213. package/lib/types/graph/GraphResolution.d.mts +0 -53
  214. package/lib/types/graph/catalog/GraphConnectionPolicy.d.cts +0 -9
  215. package/lib/types/graph/catalog/GraphConnectionPolicy.d.mts +0 -9
  216. package/lib/types/graph/catalog/GraphCredentialReference.d.cts +0 -6
  217. package/lib/types/graph/catalog/GraphCredentialReference.d.mts +0 -6
  218. package/lib/types/graph/catalog/GraphCredentialRequirement.d.cts +0 -7
  219. package/lib/types/graph/catalog/GraphCredentialRequirement.d.mts +0 -7
  220. package/lib/types/graph/catalog/GraphDynamicPortRule.d.cts +0 -22
  221. package/lib/types/graph/catalog/GraphDynamicPortRule.d.mts +0 -22
  222. package/lib/types/graph/catalog/GraphIconReference.d.cts +0 -12
  223. package/lib/types/graph/catalog/GraphIconReference.d.mts +0 -12
  224. package/lib/types/graph/catalog/GraphManifestCompiler.d.cts +0 -14
  225. package/lib/types/graph/catalog/GraphManifestCompiler.d.mts +0 -14
  226. package/lib/types/graph/catalog/GraphNodeCapability.d.cts +0 -4
  227. package/lib/types/graph/catalog/GraphNodeCapability.d.mts +0 -4
  228. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +0 -33
  229. package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +0 -33
  230. package/lib/types/graph/catalog/GraphNodeManifest.d.cts +0 -26
  231. package/lib/types/graph/catalog/GraphNodeManifest.d.mts +0 -26
  232. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.cts +0 -7
  233. package/lib/types/graph/catalog/GraphNodeManifestSerialization.d.mts +0 -7
  234. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.cts +0 -10
  235. package/lib/types/graph/catalog/GraphNodeMethodManifest.d.mts +0 -10
  236. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.cts +0 -46
  237. package/lib/types/graph/catalog/GraphNodePolicyManifest.d.mts +0 -46
  238. package/lib/types/graph/catalog/GraphParameterBase.d.cts +0 -14
  239. package/lib/types/graph/catalog/GraphParameterBase.d.mts +0 -14
  240. package/lib/types/graph/catalog/GraphParameterDefinition.d.cts +0 -66
  241. package/lib/types/graph/catalog/GraphParameterDefinition.d.mts +0 -66
  242. package/lib/types/graph/catalog/GraphParameterOption.d.cts +0 -8
  243. package/lib/types/graph/catalog/GraphParameterOption.d.mts +0 -8
  244. package/lib/types/graph/catalog/GraphParameterValidation.d.cts +0 -25
  245. package/lib/types/graph/catalog/GraphParameterValidation.d.mts +0 -25
  246. package/lib/types/graph/catalog/GraphPortManifest.d.cts +0 -23
  247. package/lib/types/graph/catalog/GraphPortManifest.d.mts +0 -23
  248. package/lib/types/graph/catalog/GraphPortManifestElement.d.cts +0 -7
  249. package/lib/types/graph/catalog/GraphPortManifestElement.d.mts +0 -7
  250. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.cts +0 -10
  251. package/lib/types/graph/catalog/GraphResourceLocatorMode.d.mts +0 -10
  252. package/lib/types/graph/catalog/GraphValueSchema.d.cts +0 -44
  253. package/lib/types/graph/catalog/GraphValueSchema.d.mts +0 -44
  254. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.cts +0 -9
  255. package/lib/types/graph/catalog/GraphValueSchemaDerivation.d.mts +0 -9
  256. package/lib/types/graph/catalog/GraphVisibilityExpression.d.cts +0 -22
  257. package/lib/types/graph/catalog/GraphVisibilityExpression.d.mts +0 -22
  258. package/lib/types/graph/catalog/index.d.cts +0 -22
  259. package/lib/types/graph/catalog/index.d.mts +0 -22
  260. package/lib/types/graph/category-styles.d.cts +0 -8
  261. package/lib/types/graph/category-styles.d.mts +0 -8
  262. package/lib/types/graph/constants.d.cts +0 -544
  263. package/lib/types/graph/constants.d.mts +0 -544
  264. package/lib/types/graph/decorators.d.cts +0 -69
  265. package/lib/types/graph/decorators.d.mts +0 -69
  266. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.cts +0 -47
  267. package/lib/types/graph/document/GraphDecoratedWorkflowCompiler.d.mts +0 -47
  268. package/lib/types/graph/document/GraphEdgeInstance.d.cts +0 -12
  269. package/lib/types/graph/document/GraphEdgeInstance.d.mts +0 -12
  270. package/lib/types/graph/document/GraphEndpoint.d.cts +0 -13
  271. package/lib/types/graph/document/GraphEndpoint.d.mts +0 -13
  272. package/lib/types/graph/document/GraphJsonValue.d.cts +0 -11
  273. package/lib/types/graph/document/GraphJsonValue.d.mts +0 -11
  274. package/lib/types/graph/document/GraphLoopConfiguration.d.cts +0 -24
  275. package/lib/types/graph/document/GraphLoopConfiguration.d.mts +0 -24
  276. package/lib/types/graph/document/GraphNodeBinding.d.cts +0 -21
  277. package/lib/types/graph/document/GraphNodeBinding.d.mts +0 -21
  278. package/lib/types/graph/document/GraphNodeInstance.d.cts +0 -36
  279. package/lib/types/graph/document/GraphNodeInstance.d.mts +0 -36
  280. package/lib/types/graph/document/GraphWorkflowDocument.d.cts +0 -33
  281. package/lib/types/graph/document/GraphWorkflowDocument.d.mts +0 -33
  282. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.cts +0 -72
  283. package/lib/types/graph/document/GraphWorkflowDocumentBuilder.d.mts +0 -72
  284. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.cts +0 -21
  285. package/lib/types/graph/document/GraphWorkflowDocumentReader.d.mts +0 -21
  286. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.cts +0 -5
  287. package/lib/types/graph/document/GraphWorkflowDocumentSerializer.d.mts +0 -5
  288. package/lib/types/graph/document/GraphWorkflowUiState.d.cts +0 -37
  289. package/lib/types/graph/document/GraphWorkflowUiState.d.mts +0 -37
  290. package/lib/types/graph/document/index.d.cts +0 -12
  291. package/lib/types/graph/document/index.d.mts +0 -12
  292. package/lib/types/graph/index.d.cts +0 -15
  293. package/lib/types/graph/index.d.mts +0 -15
  294. package/lib/types/graph/overrides/Metadata.d.cts +0 -43
  295. package/lib/types/graph/overrides/Metadata.d.mts +0 -43
  296. package/lib/types/graph/overrides/Rendering.d.cts +0 -5
  297. package/lib/types/graph/overrides/Rendering.d.mts +0 -5
  298. package/lib/types/graph/overrides/index.d.cts +0 -3
  299. package/lib/types/graph/overrides/index.d.mts +0 -3
  300. package/lib/types/graph/overrides/overrides.d.cts +0 -1
  301. package/lib/types/graph/overrides/overrides.d.mts +0 -1
  302. package/lib/types/graph/reader.d.cts +0 -28
  303. package/lib/types/graph/reader.d.mts +0 -28
  304. package/lib/types/graph/registry.d.cts +0 -40
  305. package/lib/types/graph/registry.d.mts +0 -40
  306. package/lib/types/graph/snapshot.d.cts +0 -36
  307. package/lib/types/graph/snapshot.d.mts +0 -36
  308. package/lib/types/graph/types.d.cts +0 -289
  309. 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;