@qontinui/shared-types 0.2.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 (579) hide show
  1. package/README.md +128 -0
  2. package/dist/Region.d-BbpFAWF4.d.cts +88 -0
  3. package/dist/Region.d-BbpFAWF4.d.ts +88 -0
  4. package/dist/accessibility.cjs +19 -0
  5. package/dist/accessibility.cjs.map +1 -0
  6. package/dist/accessibility.d.cts +396 -0
  7. package/dist/accessibility.d.ts +396 -0
  8. package/dist/accessibility.js +1 -0
  9. package/dist/accessibility.js.map +1 -0
  10. package/dist/chat.cjs +19 -0
  11. package/dist/chat.cjs.map +1 -0
  12. package/dist/chat.d.cts +13 -0
  13. package/dist/chat.d.ts +13 -0
  14. package/dist/chat.js +1 -0
  15. package/dist/chat.js.map +1 -0
  16. package/dist/chunk-YXD4WCYQ.js +95 -0
  17. package/dist/chunk-YXD4WCYQ.js.map +1 -0
  18. package/dist/chunk-ZK5MJEGT.js +153 -0
  19. package/dist/chunk-ZK5MJEGT.js.map +1 -0
  20. package/dist/config.cjs +19 -0
  21. package/dist/config.cjs.map +1 -0
  22. package/dist/config.d.cts +112 -0
  23. package/dist/config.d.ts +112 -0
  24. package/dist/config.js +1 -0
  25. package/dist/config.js.map +1 -0
  26. package/dist/constraints.cjs +19 -0
  27. package/dist/constraints.cjs.map +1 -0
  28. package/dist/constraints.d.cts +401 -0
  29. package/dist/constraints.d.ts +401 -0
  30. package/dist/constraints.js +1 -0
  31. package/dist/constraints.js.map +1 -0
  32. package/dist/execution.cjs +127 -0
  33. package/dist/execution.cjs.map +1 -0
  34. package/dist/execution.d.cts +1269 -0
  35. package/dist/execution.d.ts +1269 -0
  36. package/dist/execution.js +19 -0
  37. package/dist/execution.js.map +1 -0
  38. package/dist/geometry.cjs +19 -0
  39. package/dist/geometry.cjs.map +1 -0
  40. package/dist/geometry.d.cts +89 -0
  41. package/dist/geometry.d.ts +89 -0
  42. package/dist/geometry.js +1 -0
  43. package/dist/geometry.js.map +1 -0
  44. package/dist/index.cjs +443 -0
  45. package/dist/index.cjs.map +1 -0
  46. package/dist/index.d.cts +1325 -0
  47. package/dist/index.d.ts +1325 -0
  48. package/dist/index.js +178 -0
  49. package/dist/index.js.map +1 -0
  50. package/dist/library.cjs +19 -0
  51. package/dist/library.cjs.map +1 -0
  52. package/dist/library.d.cts +205 -0
  53. package/dist/library.d.ts +205 -0
  54. package/dist/library.js +1 -0
  55. package/dist/library.js.map +1 -0
  56. package/dist/rag.cjs +19 -0
  57. package/dist/rag.cjs.map +1 -0
  58. package/dist/rag.d.cts +630 -0
  59. package/dist/rag.d.ts +630 -0
  60. package/dist/rag.js +1 -0
  61. package/dist/rag.js.map +1 -0
  62. package/dist/runner.cjs +19 -0
  63. package/dist/runner.cjs.map +1 -0
  64. package/dist/runner.d.cts +156 -0
  65. package/dist/runner.d.ts +156 -0
  66. package/dist/runner.js +1 -0
  67. package/dist/runner.js.map +1 -0
  68. package/dist/scheduler.cjs +19 -0
  69. package/dist/scheduler.cjs.map +1 -0
  70. package/dist/scheduler.d.cts +729 -0
  71. package/dist/scheduler.d.ts +729 -0
  72. package/dist/scheduler.js +1 -0
  73. package/dist/scheduler.js.map +1 -0
  74. package/dist/state-machine.cjs +19 -0
  75. package/dist/state-machine.cjs.map +1 -0
  76. package/dist/state-machine.d.cts +1240 -0
  77. package/dist/state-machine.d.ts +1240 -0
  78. package/dist/state-machine.js +1 -0
  79. package/dist/state-machine.js.map +1 -0
  80. package/dist/targets.cjs +19 -0
  81. package/dist/targets.cjs.map +1 -0
  82. package/dist/targets.d.cts +352 -0
  83. package/dist/targets.d.ts +352 -0
  84. package/dist/targets.js +1 -0
  85. package/dist/targets.js.map +1 -0
  86. package/dist/task-run.cjs +19 -0
  87. package/dist/task-run.cjs.map +1 -0
  88. package/dist/task-run.d.cts +1566 -0
  89. package/dist/task-run.d.ts +1566 -0
  90. package/dist/task-run.js +1 -0
  91. package/dist/task-run.js.map +1 -0
  92. package/dist/tree-events.cjs +19 -0
  93. package/dist/tree-events.cjs.map +1 -0
  94. package/dist/tree-events.d.cts +522 -0
  95. package/dist/tree-events.d.ts +522 -0
  96. package/dist/tree-events.js +1 -0
  97. package/dist/tree-events.js.map +1 -0
  98. package/dist/ui-bridge-ir.cjs +376 -0
  99. package/dist/ui-bridge-ir.cjs.map +1 -0
  100. package/dist/ui-bridge-ir.d.cts +820 -0
  101. package/dist/ui-bridge-ir.d.ts +820 -0
  102. package/dist/ui-bridge-ir.js +343 -0
  103. package/dist/ui-bridge-ir.js.map +1 -0
  104. package/dist/workflow.cjs +181 -0
  105. package/dist/workflow.cjs.map +1 -0
  106. package/dist/workflow.d.cts +2092 -0
  107. package/dist/workflow.d.ts +2092 -0
  108. package/dist/workflow.js +11 -0
  109. package/dist/workflow.js.map +1 -0
  110. package/package.json +136 -0
  111. package/src/accessibility/_api.ts +17 -0
  112. package/src/accessibility/index.ts +1 -0
  113. package/src/canvas/index.ts +319 -0
  114. package/src/chat/_api.ts +23 -0
  115. package/src/chat/index.ts +1 -0
  116. package/src/config/_api.ts +13 -0
  117. package/src/config/index.ts +1 -0
  118. package/src/constraints/_api.ts +17 -0
  119. package/src/constraints/index.ts +1 -0
  120. package/src/discovery.ts +188 -0
  121. package/src/execution/_api.ts +483 -0
  122. package/src/execution/index.ts +1 -0
  123. package/src/generated/A11yAction.d.ts +11 -0
  124. package/src/generated/AccessibilityBackend.d.ts +12 -0
  125. package/src/generated/AccessibilityBounds.d.ts +17 -0
  126. package/src/generated/AccessibilityNode.d.ts +73 -0
  127. package/src/generated/AccessibilityRole.d.ts +93 -0
  128. package/src/generated/AccessibilityRoleCriterion.d.ts +13 -0
  129. package/src/generated/AccessibilitySelector.d.ts +76 -0
  130. package/src/generated/AccessibilitySnapshot.d.ts +43 -0
  131. package/src/generated/AccessibilityState.d.ts +67 -0
  132. package/src/generated/ActionExecutionBatch.d.ts +23 -0
  133. package/src/generated/ActionExecutionBatchResponse.d.ts +24 -0
  134. package/src/generated/ActionExecutionCreate.d.ts +124 -0
  135. package/src/generated/ActionExecutionListResponse.d.ts +20 -0
  136. package/src/generated/ActionExecutionResponse.d.ts +24 -0
  137. package/src/generated/ActionReliabilityStats.d.ts +54 -0
  138. package/src/generated/ActionResponse.d.ts +45 -0
  139. package/src/generated/ActionStatus.d.ts +11 -0
  140. package/src/generated/ActionType.d.ts +41 -0
  141. package/src/generated/ActiveStatesResult.d.ts +32 -0
  142. package/src/generated/AgenticPhaseOutput.d.ts +50 -0
  143. package/src/generated/AgenticStatus.d.ts +11 -0
  144. package/src/generated/AiWorkflow.d.ts +76 -0
  145. package/src/generated/ApiAssertion.d.ts +35 -0
  146. package/src/generated/ApiAssertionOperator.d.ts +11 -0
  147. package/src/generated/ApiAssertionType.d.ts +11 -0
  148. package/src/generated/ApiContentType.d.ts +11 -0
  149. package/src/generated/ApiVariableExtraction.d.ts +24 -0
  150. package/src/generated/AppEvent.d.ts +586 -0
  151. package/src/generated/AvailableTransitionsResult.d.ts +34 -0
  152. package/src/generated/BaseStepFields.d.ts +72 -0
  153. package/src/generated/BatchComputeEmbeddingRequest.d.ts +27 -0
  154. package/src/generated/BatchComputeEmbeddingResponse.d.ts +23 -0
  155. package/src/generated/BatchEmbeddingResult.d.ts +23 -0
  156. package/src/generated/BetweenIterations.d.ts +35 -0
  157. package/src/generated/BoundingBox.d.ts +18 -0
  158. package/src/generated/BuildPhaseConfig.d.ts +24 -0
  159. package/src/generated/BuiltinOverrideProposal.d.ts +27 -0
  160. package/src/generated/CanonicalStep.d.ts +60 -0
  161. package/src/generated/CatchUpPolicy.d.ts +12 -0
  162. package/src/generated/Category.d.ts +24 -0
  163. package/src/generated/CheckIssueDetail.d.ts +40 -0
  164. package/src/generated/CheckType.d.ts +21 -0
  165. package/src/generated/CodeExecutionStep.d.ts +88 -0
  166. package/src/generated/CommandMode.d.ts +11 -0
  167. package/src/generated/CommandStep.d.ts +183 -0
  168. package/src/generated/CommandStepPhase.d.ts +11 -0
  169. package/src/generated/ComponentActionInfo.d.ts +24 -0
  170. package/src/generated/ComponentActionRequest.d.ts +22 -0
  171. package/src/generated/ComputeEmbeddingRequest.d.ts +24 -0
  172. package/src/generated/ComputeEmbeddingResponse.d.ts +38 -0
  173. package/src/generated/ComputeTextEmbeddingRequest.d.ts +20 -0
  174. package/src/generated/ComputeTextEmbeddingResponse.d.ts +32 -0
  175. package/src/generated/ConditionScheduleConfig.d.ts +17 -0
  176. package/src/generated/ConditionStatus.d.ts +29 -0
  177. package/src/generated/Confidence.d.ts +11 -0
  178. package/src/generated/ConfidenceLevel.d.ts +11 -0
  179. package/src/generated/Constraint.d.ts +33 -0
  180. package/src/generated/ConstraintCheck.d.ts +64 -0
  181. package/src/generated/ConstraintProposal.d.ts +37 -0
  182. package/src/generated/ConstraintResult.d.ts +32 -0
  183. package/src/generated/ConstraintSeverity.d.ts +16 -0
  184. package/src/generated/ConstraintViolation.d.ts +24 -0
  185. package/src/generated/Context.d.ts +50 -0
  186. package/src/generated/ContextAutoInclude.d.ts +34 -0
  187. package/src/generated/CoordinateSystem.d.ts +12 -0
  188. package/src/generated/Coordinates.d.ts +33 -0
  189. package/src/generated/CostTrendDataPoint.d.ts +36 -0
  190. package/src/generated/CostTrendResponse.d.ts +41 -0
  191. package/src/generated/CoverageData.d.ts +52 -0
  192. package/src/generated/CreateMcpCallInput.d.ts +59 -0
  193. package/src/generated/CreateMcpServerInput.d.ts +48 -0
  194. package/src/generated/CreateOlConfigRequest.d.ts +27 -0
  195. package/src/generated/CreateScheduledTaskRequest.d.ts +63 -0
  196. package/src/generated/CreateTaskRunRequest.d.ts +51 -0
  197. package/src/generated/CriterionOverride.d.ts +39 -0
  198. package/src/generated/CriterionType.d.ts +11 -0
  199. package/src/generated/DagApprovalStep.d.ts +80 -0
  200. package/src/generated/DagCancelStep.d.ts +76 -0
  201. package/src/generated/DagLoopStep.d.ts +80 -0
  202. package/src/generated/DecomposerConfig.d.ts +31 -0
  203. package/src/generated/DiagnosePhaseConfig.d.ts +34 -0
  204. package/src/generated/DiagnosticResult.d.ts +40 -0
  205. package/src/generated/DiscoveredElement.d.ts +48 -0
  206. package/src/generated/DiscoveredState.d.ts +49 -0
  207. package/src/generated/DiscoveredStateImage.d.ts +56 -0
  208. package/src/generated/DiscoveredTransition.d.ts +44 -0
  209. package/src/generated/DiscoveryBoundingBox.d.ts +32 -0
  210. package/src/generated/DiscoveryRequest.d.ts +40 -0
  211. package/src/generated/DiscoveryResponse.d.ts +32 -0
  212. package/src/generated/DiscoverySourceType.d.ts +14 -0
  213. package/src/generated/DiscoveryStrategy.d.ts +13 -0
  214. package/src/generated/DiscoveryTransitionTrigger.d.ts +38 -0
  215. package/src/generated/DisplayNode.d.ts +45 -0
  216. package/src/generated/DomainAssignment.d.ts +50 -0
  217. package/src/generated/DomainKnowledge.d.ts +29 -0
  218. package/src/generated/DomainVerificationResult.d.ts +36 -0
  219. package/src/generated/ElementActionRequest.d.ts +28 -0
  220. package/src/generated/ElementBbox.d.ts +36 -0
  221. package/src/generated/ElementIdentifier.d.ts +40 -0
  222. package/src/generated/ElementRect.d.ts +48 -0
  223. package/src/generated/ElementState.d.ts +47 -0
  224. package/src/generated/ElementType.d.ts +45 -0
  225. package/src/generated/EmbeddedElement.d.ts +36 -0
  226. package/src/generated/EmbeddingItem.d.ts +49 -0
  227. package/src/generated/EmbeddingListResponse.d.ts +22 -0
  228. package/src/generated/EmbeddingResultItem.d.ts +29 -0
  229. package/src/generated/EmbeddingResultsRequest.d.ts +19 -0
  230. package/src/generated/EmbeddingResultsResponse.d.ts +17 -0
  231. package/src/generated/ErrorType.d.ts +18 -0
  232. package/src/generated/ExecutePlaybookStep.d.ts +84 -0
  233. package/src/generated/ExecutionActionType.d.ts +40 -0
  234. package/src/generated/ExecutionIssueBatch.d.ts +19 -0
  235. package/src/generated/ExecutionIssueBatchResponse.d.ts +24 -0
  236. package/src/generated/ExecutionIssueCreate.d.ts +57 -0
  237. package/src/generated/ExecutionIssueDetail.d.ts +89 -0
  238. package/src/generated/ExecutionIssueListResponse.d.ts +26 -0
  239. package/src/generated/ExecutionIssueResponse.d.ts +24 -0
  240. package/src/generated/ExecutionIssueUpdate.d.ts +31 -0
  241. package/src/generated/ExecutionMatchLocation.d.ts +31 -0
  242. package/src/generated/ExecutionRunComplete.d.ts +34 -0
  243. package/src/generated/ExecutionRunCompleteResponse.d.ts +38 -0
  244. package/src/generated/ExecutionRunCreate.d.ts +40 -0
  245. package/src/generated/ExecutionRunDetail.d.ts +76 -0
  246. package/src/generated/ExecutionRunListResponse.d.ts +22 -0
  247. package/src/generated/ExecutionRunResponse.d.ts +41 -0
  248. package/src/generated/ExecutionScreenshotCreate.d.ts +59 -0
  249. package/src/generated/ExecutionScreenshotResponse.d.ts +36 -0
  250. package/src/generated/ExecutionStats.d.ts +56 -0
  251. package/src/generated/ExecutionStep.d.ts +78 -0
  252. package/src/generated/ExecutionTreeResponse.d.ts +42 -0
  253. package/src/generated/ExecutionTrendDataPoint.d.ts +36 -0
  254. package/src/generated/ExecutionTrendResponse.d.ts +46 -0
  255. package/src/generated/ExitCheckResult.d.ts +20 -0
  256. package/src/generated/ExitStrategy.d.ts +27 -0
  257. package/src/generated/ExportResult.d.ts +30 -0
  258. package/src/generated/ExtendIterationsRequest.d.ts +20 -0
  259. package/src/generated/FileChange.d.ts +20 -0
  260. package/src/generated/Finding.d.ts +40 -0
  261. package/src/generated/FindingActionType.d.ts +13 -0
  262. package/src/generated/FindingBatchCreate.d.ts +27 -0
  263. package/src/generated/FindingCategory.d.ts +25 -0
  264. package/src/generated/FindingCodeContext.d.ts +31 -0
  265. package/src/generated/FindingCreate.d.ts +52 -0
  266. package/src/generated/FindingDetail.d.ts +78 -0
  267. package/src/generated/FindingListResponse.d.ts +40 -0
  268. package/src/generated/FindingOutput.d.ts +36 -0
  269. package/src/generated/FindingSeverity.d.ts +14 -0
  270. package/src/generated/FindingStatus.d.ts +15 -0
  271. package/src/generated/FindingSummary.d.ts +53 -0
  272. package/src/generated/FindingUpdate.d.ts +33 -0
  273. package/src/generated/FindingUserInput.d.ts +27 -0
  274. package/src/generated/FindingsSummary.d.ts +47 -0
  275. package/src/generated/FlowEvent.d.ts +66 -0
  276. package/src/generated/FullRunnerStep.d.ts +144 -0
  277. package/src/generated/GUIElementChunk.d.ts +151 -0
  278. package/src/generated/GateEvaluationResult.d.ts +36 -0
  279. package/src/generated/HealthCheckUrl.d.ts +35 -0
  280. package/src/generated/HistoricalActionQuery.d.ts +42 -0
  281. package/src/generated/HistoricalActionResult.d.ts +57 -0
  282. package/src/generated/HttpConfig.d.ts +27 -0
  283. package/src/generated/HttpMethod.d.ts +13 -0
  284. package/src/generated/IdleCondition.d.ts +17 -0
  285. package/src/generated/ImplementFixesConfig.d.ts +25 -0
  286. package/src/generated/IndividualCheckResult.d.ts +50 -0
  287. package/src/generated/InitialStateRef.d.ts +23 -0
  288. package/src/generated/InitialStatesSource.d.ts +18 -0
  289. package/src/generated/IssueSeverity.d.ts +11 -0
  290. package/src/generated/IssueSource.d.ts +11 -0
  291. package/src/generated/IssueStatus.d.ts +11 -0
  292. package/src/generated/IssueType.d.ts +21 -0
  293. package/src/generated/IterationResult.d.ts +65 -0
  294. package/src/generated/IterationVerificationResults.d.ts +53 -0
  295. package/src/generated/JobItem.d.ts +31 -0
  296. package/src/generated/JobListResponse.d.ts +20 -0
  297. package/src/generated/JobStatus.d.ts +11 -0
  298. package/src/generated/JobSummary.d.ts +30 -0
  299. package/src/generated/LLMCostSummary.d.ts +38 -0
  300. package/src/generated/LLMMetrics.d.ts +42 -0
  301. package/src/generated/LogSourceSelection.d.ts +25 -0
  302. package/src/generated/LoopInstanceStatus.d.ts +28 -0
  303. package/src/generated/LoopPhase.d.ts +26 -0
  304. package/src/generated/MatchAdjustment.d.ts +23 -0
  305. package/src/generated/MatchLocation.d.ts +22 -0
  306. package/src/generated/MatchMethod.d.ts +11 -0
  307. package/src/generated/McpCallRecord.d.ts +35 -0
  308. package/src/generated/McpCallsResult.d.ts +44 -0
  309. package/src/generated/McpConnectionRef.d.ts +25 -0
  310. package/src/generated/McpServerConfig.d.ts +77 -0
  311. package/src/generated/McpServerStatus.d.ts +42 -0
  312. package/src/generated/McpToolCallResult.d.ts +38 -0
  313. package/src/generated/McpToolInfo.d.ts +23 -0
  314. package/src/generated/McpToolInputSchema.d.ts +34 -0
  315. package/src/generated/McpTransport.d.ts +15 -0
  316. package/src/generated/ModelCostBreakdown.d.ts +36 -0
  317. package/src/generated/ModelOverrideConfig.d.ts +47 -0
  318. package/src/generated/Monitor.d.ts +48 -0
  319. package/src/generated/MonitorPosition.d.ts +13 -0
  320. package/src/generated/MouseButton.d.ts +13 -0
  321. package/src/generated/MultiLoopConfig.d.ts +32 -0
  322. package/src/generated/MultiLoopEntry.d.ts +32 -0
  323. package/src/generated/MultiLoopStatus.d.ts +37 -0
  324. package/src/generated/NativeAccessibilityStep.d.ts +121 -0
  325. package/src/generated/NavigationResult.d.ts +40 -0
  326. package/src/generated/NewConstraintProposal.d.ts +20 -0
  327. package/src/generated/NextTaskInfo.d.ts +24 -0
  328. package/src/generated/NodeMetadata.d.ts +47 -0
  329. package/src/generated/NodeStatus.d.ts +11 -0
  330. package/src/generated/NodeType.d.ts +11 -0
  331. package/src/generated/OcrEngine.d.ts +11 -0
  332. package/src/generated/OlConfig.d.ts +48 -0
  333. package/src/generated/OrchestrationLoopConfig.d.ts +87 -0
  334. package/src/generated/OrchestrationLoopStatus.d.ts +59 -0
  335. package/src/generated/Outcome.d.ts +15 -0
  336. package/src/generated/OutputLine.d.ts +23 -0
  337. package/src/generated/OutputStream.d.ts +11 -0
  338. package/src/generated/OverrideCollection.d.ts +18 -0
  339. package/src/generated/Pagination.d.ts +28 -0
  340. package/src/generated/ParserType.d.ts +17 -0
  341. package/src/generated/PathElement.d.ts +17 -0
  342. package/src/generated/PathfindingRequest.d.ts +24 -0
  343. package/src/generated/PathfindingResult.d.ts +30 -0
  344. package/src/generated/PathfindingStep.d.ts +36 -0
  345. package/src/generated/PatternOptions.d.ts +32 -0
  346. package/src/generated/PipelineConfig.d.ts +31 -0
  347. package/src/generated/PlaybackFrameRequest.d.ts +21 -0
  348. package/src/generated/PlaywrightExecutionMode.d.ts +11 -0
  349. package/src/generated/Point.d.ts +20 -0
  350. package/src/generated/PollingConfig.d.ts +14 -0
  351. package/src/generated/ProcessConfig.d.ts +96 -0
  352. package/src/generated/ProcessState.d.ts +15 -0
  353. package/src/generated/ProcessStatus.d.ts +41 -0
  354. package/src/generated/PromptStep.d.ts +92 -0
  355. package/src/generated/PromptStepPhase.d.ts +13 -0
  356. package/src/generated/RAGDashboardStats.d.ts +26 -0
  357. package/src/generated/RagCompletionEvent.d.ts +25 -0
  358. package/src/generated/RagProcessingStatus.d.ts +11 -0
  359. package/src/generated/RagProgressEvent.d.ts +27 -0
  360. package/src/generated/ReadConfigResponse.d.ts +20 -0
  361. package/src/generated/ReflectionFixOutput.d.ts +20 -0
  362. package/src/generated/Region.d.ts +39 -0
  363. package/src/generated/RepositoryInactiveCondition.d.ts +24 -0
  364. package/src/generated/RepositoryWatch.d.ts +20 -0
  365. package/src/generated/ResolvedInitialStates.d.ts +29 -0
  366. package/src/generated/ResolvedInitialStatesResult.d.ts +40 -0
  367. package/src/generated/ResourceLimits.d.ts +33 -0
  368. package/src/generated/RestartProcessStep.d.ts +88 -0
  369. package/src/generated/RetryPolicy.d.ts +24 -0
  370. package/src/generated/RetrySpec.d.ts +24 -0
  371. package/src/generated/RoleCriterion.d.ts +14 -0
  372. package/src/generated/RootCauseCategory.d.ts +18 -0
  373. package/src/generated/RoutingRule.d.ts +38 -0
  374. package/src/generated/RunPromptRequest.d.ts +56 -0
  375. package/src/generated/RunPromptResponse.d.ts +50 -0
  376. package/src/generated/RunPromptResponseData.d.ts +20 -0
  377. package/src/generated/RunStatus.d.ts +11 -0
  378. package/src/generated/RunType.d.ts +11 -0
  379. package/src/generated/Runner.d.ts +81 -0
  380. package/src/generated/RunnerCrash.d.ts +32 -0
  381. package/src/generated/RunnerMetadata.d.ts +42 -0
  382. package/src/generated/RunnerStatus.d.ts +12 -0
  383. package/src/generated/RunnerUiError.d.ts +28 -0
  384. package/src/generated/RuntimeData.d.ts +40 -0
  385. package/src/generated/SaveWorkflowArtifactStep.d.ts +80 -0
  386. package/src/generated/ScheduleConditions.d.ts +29 -0
  387. package/src/generated/ScheduleExpression.d.ts +39 -0
  388. package/src/generated/ScheduledTask.d.ts +104 -0
  389. package/src/generated/ScheduledTaskStatus.d.ts +19 -0
  390. package/src/generated/ScheduledTaskType.d.ts +126 -0
  391. package/src/generated/SchedulerSettings.d.ts +28 -0
  392. package/src/generated/SchedulerStatus.d.ts +31 -0
  393. package/src/generated/ScreenshotAnnotation.d.ts +39 -0
  394. package/src/generated/ScreenshotAnnotationShape.d.ts +11 -0
  395. package/src/generated/ScreenshotType.d.ts +11 -0
  396. package/src/generated/ScrollDirection.d.ts +13 -0
  397. package/src/generated/SearchOptions.d.ts +33 -0
  398. package/src/generated/SearchResultItem.d.ts +19 -0
  399. package/src/generated/SearchStrategy.d.ts +14 -0
  400. package/src/generated/SemanticSearchRequest.d.ts +26 -0
  401. package/src/generated/SemanticSearchResponse.d.ts +21 -0
  402. package/src/generated/StageCondition.d.ts +37 -0
  403. package/src/generated/StageInput.d.ts +27 -0
  404. package/src/generated/StageOutput.d.ts +20 -0
  405. package/src/generated/StageTransition.d.ts +30 -0
  406. package/src/generated/StallDetectorConfig.d.ts +31 -0
  407. package/src/generated/StandardActionType.d.ts +40 -0
  408. package/src/generated/StateContext.d.ts +17 -0
  409. package/src/generated/StateDiscoveryResult.d.ts +104 -0
  410. package/src/generated/StateDiscoveryResultCreate.d.ts +65 -0
  411. package/src/generated/StateDiscoveryResultListResponse.d.ts +23 -0
  412. package/src/generated/StateDiscoveryResultSummary.d.ts +57 -0
  413. package/src/generated/StateDiscoveryResultUpdate.d.ts +47 -0
  414. package/src/generated/StateFilterItem.d.ts +18 -0
  415. package/src/generated/StateMachineConfig.d.ts +45 -0
  416. package/src/generated/StateMachineConfigCreate.d.ts +20 -0
  417. package/src/generated/StateMachineConfigFull.d.ts +67 -0
  418. package/src/generated/StateMachineConfigUpdate.d.ts +20 -0
  419. package/src/generated/StateMachineExport.d.ts +64 -0
  420. package/src/generated/StateMachineExportFormat.d.ts +39 -0
  421. package/src/generated/StateMachineImport.d.ts +25 -0
  422. package/src/generated/StateMachineState.d.ts +71 -0
  423. package/src/generated/StateMachineStateCreate.d.ts +52 -0
  424. package/src/generated/StateMachineStateUpdate.d.ts +48 -0
  425. package/src/generated/StateMachineTransition.d.ts +75 -0
  426. package/src/generated/StateMachineTransitionCreate.d.ts +53 -0
  427. package/src/generated/StateMachineTransitionUpdate.d.ts +53 -0
  428. package/src/generated/StateNodeData.d.ts +71 -0
  429. package/src/generated/StatesResponse.d.ts +19 -0
  430. package/src/generated/StdioConfig.d.ts +34 -0
  431. package/src/generated/StepExecutionConfig.d.ts +37 -0
  432. package/src/generated/StructuredFinding.d.ts +32 -0
  433. package/src/generated/StructuredOverride.d.ts +24 -0
  434. package/src/generated/StructuredSignal.d.ts +20 -0
  435. package/src/generated/SuccessCriterion.d.ts +57 -0
  436. package/src/generated/SummarizationConfig.d.ts +35 -0
  437. package/src/generated/TargetConfig.d.ts +108 -0
  438. package/src/generated/TaskCompletionResult.d.ts +90 -0
  439. package/src/generated/TaskExecutionRecord.d.ts +61 -0
  440. package/src/generated/TaskRun.d.ts +88 -0
  441. package/src/generated/TaskRunBackend.d.ts +86 -0
  442. package/src/generated/TaskRunBackendDetail.d.ts +99 -0
  443. package/src/generated/TaskRunCreate.d.ts +62 -0
  444. package/src/generated/TaskRunFilters.d.ts +38 -0
  445. package/src/generated/TaskRunFinding.d.ts +100 -0
  446. package/src/generated/TaskRunFindingActionType.d.ts +11 -0
  447. package/src/generated/TaskRunFindingCategory.d.ts +24 -0
  448. package/src/generated/TaskRunFindingCreate.d.ts +79 -0
  449. package/src/generated/TaskRunFindingFilters.d.ts +28 -0
  450. package/src/generated/TaskRunFindingSeverity.d.ts +11 -0
  451. package/src/generated/TaskRunFindingStatus.d.ts +11 -0
  452. package/src/generated/TaskRunFindingSummary.d.ts +34 -0
  453. package/src/generated/TaskRunFindingUpdate.d.ts +34 -0
  454. package/src/generated/TaskRunFindingsListResponse.d.ts +24 -0
  455. package/src/generated/TaskRunListResponse.d.ts +21 -0
  456. package/src/generated/TaskRunSession.d.ts +40 -0
  457. package/src/generated/TaskRunStatus.d.ts +11 -0
  458. package/src/generated/TaskRunUpdate.d.ts +47 -0
  459. package/src/generated/TaskType.d.ts +11 -0
  460. package/src/generated/TerminalExitEvent.d.ts +26 -0
  461. package/src/generated/TerminalInfo.d.ts +69 -0
  462. package/src/generated/TerminalOutputEvent.d.ts +29 -0
  463. package/src/generated/TestType.d.ts +11 -0
  464. package/src/generated/TextMatchType.d.ts +11 -0
  465. package/src/generated/TextSearchOptions.d.ts +30 -0
  466. package/src/generated/Ticket.d.ts +53 -0
  467. package/src/generated/TicketComment.d.ts +28 -0
  468. package/src/generated/TicketProviderConfig.d.ts +55 -0
  469. package/src/generated/TicketSource.d.ts +17 -0
  470. package/src/generated/TicketState.d.ts +15 -0
  471. package/src/generated/TimingInfo.d.ts +23 -0
  472. package/src/generated/TopMatch.d.ts +17 -0
  473. package/src/generated/TransitionAction.d.ts +93 -0
  474. package/src/generated/TransitionActionValue.d.ts +14 -0
  475. package/src/generated/TransitionEdgeData.d.ts +46 -0
  476. package/src/generated/TransitionExecutionResult.d.ts +30 -0
  477. package/src/generated/TransitionInfo.d.ts +29 -0
  478. package/src/generated/TransitionTriggerType.d.ts +13 -0
  479. package/src/generated/TreeEvent.d.ts +47 -0
  480. package/src/generated/TreeEventCreate.d.ts +30 -0
  481. package/src/generated/TreeEventListResponse.d.ts +30 -0
  482. package/src/generated/TreeEventResponse.d.ts +47 -0
  483. package/src/generated/TreeEventType.d.ts +20 -0
  484. package/src/generated/TreeNode.d.ts +54 -0
  485. package/src/generated/UIBridgeCapturedToast.d.ts +22 -0
  486. package/src/generated/UIBridgeComponent.d.ts +45 -0
  487. package/src/generated/UIBridgeElement.d.ts +62 -0
  488. package/src/generated/UIBridgeModalInfo.d.ts +40 -0
  489. package/src/generated/UIBridgeModalStack.d.ts +19 -0
  490. package/src/generated/UIBridgeSnapshot.d.ts +67 -0
  491. package/src/generated/UIBridgeToastContext.d.ts +17 -0
  492. package/src/generated/UIBridgeUndoContext.d.ts +19 -0
  493. package/src/generated/UiBridgeAction.d.ts +18 -0
  494. package/src/generated/UiBridgeAssertType.d.ts +11 -0
  495. package/src/generated/UiBridgeComparisonMode.d.ts +11 -0
  496. package/src/generated/UiBridgeDesignAuditStep.d.ts +76 -0
  497. package/src/generated/UiBridgeSeverity.d.ts +11 -0
  498. package/src/generated/UiBridgeStep.d.ts +127 -0
  499. package/src/generated/UiBridgeStepPhase.d.ts +14 -0
  500. package/src/generated/UiBridgeVisualAssertionStep.d.ts +97 -0
  501. package/src/generated/UnifiedStep.d.ts +57 -0
  502. package/src/generated/UnifiedWorkflow.d.ts +411 -0
  503. package/src/generated/UpdateMcpServerInput.d.ts +28 -0
  504. package/src/generated/UpdateOlConfigRequest.d.ts +32 -0
  505. package/src/generated/UpdateScheduledTaskRequest.d.ts +71 -0
  506. package/src/generated/ValidateConfigRequest.d.ts +16 -0
  507. package/src/generated/ValidateConfigResponse.d.ts +28 -0
  508. package/src/generated/VectorSearchResult.d.ts +48 -0
  509. package/src/generated/VerificationAgentContext.d.ts +25 -0
  510. package/src/generated/VerificationCategoryKind.d.ts +19 -0
  511. package/src/generated/VerificationMethod.d.ts +20 -0
  512. package/src/generated/VerificationPhaseResult.d.ts +63 -0
  513. package/src/generated/VerificationPlan.d.ts +43 -0
  514. package/src/generated/VerificationResult.d.ts +44 -0
  515. package/src/generated/VerificationResultResponse.d.ts +65 -0
  516. package/src/generated/VerificationResultsListResponse.d.ts +41 -0
  517. package/src/generated/VerificationStepDetails.d.ts +55 -0
  518. package/src/generated/VerificationStepResult.d.ts +68 -0
  519. package/src/generated/VgaAction.d.ts +61 -0
  520. package/src/generated/VgaActionKind.d.ts +14 -0
  521. package/src/generated/VgaAutomateStep.d.ts +110 -0
  522. package/src/generated/VirtualDesktop.d.ts +23 -0
  523. package/src/generated/VisualAssertionType.d.ts +11 -0
  524. package/src/generated/VisualComparisonResult.d.ts +40 -0
  525. package/src/generated/WaitOptions.d.ts +35 -0
  526. package/src/generated/WorkerCoordinationMessage.d.ts +93 -0
  527. package/src/generated/WorkerDomain.d.ts +29 -0
  528. package/src/generated/WorkerInstance.d.ts +62 -0
  529. package/src/generated/WorkerOutput.d.ts +53 -0
  530. package/src/generated/WorkerSignal.d.ts +48 -0
  531. package/src/generated/WorkerStatus.d.ts +11 -0
  532. package/src/generated/WorkflowArchitecture.d.ts +16 -0
  533. package/src/generated/WorkflowFixupMode.d.ts +11 -0
  534. package/src/generated/WorkflowFixupStep.d.ts +85 -0
  535. package/src/generated/WorkflowInfo.d.ts +28 -0
  536. package/src/generated/WorkflowMetadata.d.ts +44 -0
  537. package/src/generated/WorkflowRefStep.d.ts +94 -0
  538. package/src/generated/WorkflowStage.d.ts +126 -0
  539. package/src/generated/WorkflowStep.d.ts +80 -0
  540. package/src/generated/WorkflowStepPhase.d.ts +11 -0
  541. package/src/generated/WriteConfigRequest.d.ts +20 -0
  542. package/src/generated/WriteConfigResponse.d.ts +24 -0
  543. package/src/generated/index.ts +421 -0
  544. package/src/geometry/_api.ts +16 -0
  545. package/src/geometry/index.ts +1 -0
  546. package/src/index.ts +73 -0
  547. package/src/known-issues/index.ts +179 -0
  548. package/src/library/_api.ts +326 -0
  549. package/src/library/index.ts +1 -0
  550. package/src/rag/_api.ts +47 -0
  551. package/src/rag/index.ts +1 -0
  552. package/src/render-log.ts +371 -0
  553. package/src/runner/_api.ts +14 -0
  554. package/src/runner/index.ts +1 -0
  555. package/src/scheduler/_api.ts +21 -0
  556. package/src/scheduler/index.ts +1 -0
  557. package/src/state-machine/_api.ts +145 -0
  558. package/src/state-machine/index.ts +1 -0
  559. package/src/targets/_api.ts +47 -0
  560. package/src/targets/index.ts +1 -0
  561. package/src/task-run/_api.ts +108 -0
  562. package/src/task-run/index.ts +1 -0
  563. package/src/tree-events/_api.ts +42 -0
  564. package/src/tree-events/index.ts +1 -0
  565. package/src/ui-bridge-ir/__tests__/legacy-roster.test.ts +182 -0
  566. package/src/ui-bridge-ir/__tests__/projection.test.ts +1029 -0
  567. package/src/ui-bridge-ir/adapter.ts +220 -0
  568. package/src/ui-bridge-ir/document.ts +43 -0
  569. package/src/ui-bridge-ir/element-criteria.ts +48 -0
  570. package/src/ui-bridge-ir/index.ts +23 -0
  571. package/src/ui-bridge-ir/ir.schema.json +210 -0
  572. package/src/ui-bridge-ir/primitives.ts +102 -0
  573. package/src/ui-bridge-ir/projection.ts +863 -0
  574. package/src/ui-bridge-ir/state.ts +90 -0
  575. package/src/ui-bridge-ir/transition.ts +92 -0
  576. package/src/workflow/_api.ts +474 -0
  577. package/src/workflow/action-plan.ts +208 -0
  578. package/src/workflow/index.ts +1 -0
  579. package/src/workflow/skill.ts +152 -0
@@ -0,0 +1,1240 @@
1
+ /* eslint-disable */
2
+ /**
3
+ * This file was automatically generated.
4
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
5
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
6
+ */
7
+
8
+ /**
9
+ * All UI Bridge SDK standard actions plus workflow-level actions
10
+ * (`wait`, `navigate`).
11
+ *
12
+ * Parameterized actions: `click`, `doubleClick`, `rightClick`, `type`,
13
+ * `select`, `scroll`, `drag`.
14
+ * No-param actions: `clear`, `focus`, `blur`, `hover`, `check`, `uncheck`,
15
+ * `toggle`, `setValue`, `submit`, `reset`.
16
+ * Workflow-level actions: `wait`, `navigate`.
17
+ *
18
+ * Serialized as a bare camelCase string matching the TypeScript literal
19
+ * union (e.g., `"doubleClick"`, `"setValue"`).
20
+ */
21
+ type StandardActionType =
22
+ | "click"
23
+ | "doubleClick"
24
+ | "rightClick"
25
+ | "type"
26
+ | "clear"
27
+ | "select"
28
+ | "focus"
29
+ | "blur"
30
+ | "hover"
31
+ | "scroll"
32
+ | "check"
33
+ | "uncheck"
34
+ | "toggle"
35
+ | "setValue"
36
+ | "drag"
37
+ | "submit"
38
+ | "reset"
39
+ | "wait"
40
+ | "navigate";
41
+
42
+ /* eslint-disable */
43
+ /**
44
+ * This file was automatically generated.
45
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
46
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
47
+ */
48
+
49
+ /**
50
+ * An (x, y) pixel offset used by the click-position and related parameters.
51
+ */
52
+ interface Point {
53
+ /**
54
+ * Horizontal offset in pixels.
55
+ */
56
+ x: number;
57
+ /**
58
+ * Vertical offset in pixels.
59
+ */
60
+ y: number;
61
+ }
62
+
63
+ /* eslint-disable */
64
+ /**
65
+ * This file was automatically generated.
66
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
67
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
68
+ */
69
+
70
+ /**
71
+ * Scroll direction for the `scroll` action.
72
+ *
73
+ * Serialized as a bare lowercase string.
74
+ */
75
+ type ScrollDirection = "up" | "down" | "left" | "right";
76
+
77
+ /* eslint-disable */
78
+ /**
79
+ * This file was automatically generated.
80
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
81
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
82
+ */
83
+
84
+ /**
85
+ * Mouse button for click actions.
86
+ *
87
+ * Serialized as a bare lowercase string.
88
+ */
89
+ type MouseButton = "left" | "right" | "middle";
90
+
91
+ /* eslint-disable */
92
+ /**
93
+ * This file was automatically generated.
94
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
95
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
96
+ */
97
+
98
+ /**
99
+ * A value for `select` / `setValue` actions: either a single string or a list
100
+ * of strings (for multi-select).
101
+ *
102
+ * Serialized as an untagged union matching the TS `string | string[]`.
103
+ */
104
+ type TransitionActionValue = string | string[];
105
+
106
+ /* eslint-disable */
107
+ /**
108
+ * This file was automatically generated.
109
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
110
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
111
+ */
112
+
113
+
114
+
115
+ /**
116
+ * A single action within a transition.
117
+ *
118
+ * Each action targets an element and performs an interaction. Most fields are
119
+ * only meaningful for specific action types — see the per-field docs.
120
+ */
121
+ interface TransitionAction {
122
+ /**
123
+ * Mouse button: `left`, `right`, `middle`
124
+ * (`click` / `doubleClick` / `rightClick`).
125
+ */
126
+ button?: MouseButton | null;
127
+ /**
128
+ * Clear before typing (`type` action).
129
+ */
130
+ clear_first?: boolean | null;
131
+ /**
132
+ * Delay in milliseconds (`wait` action).
133
+ */
134
+ delay_ms?: number | null;
135
+ /**
136
+ * Hold delay before the first move in milliseconds (`drag` action).
137
+ */
138
+ drag_hold_delay?: number | null;
139
+ /**
140
+ * Dispatch HTML5 drag events alongside mouse events (`drag` action).
141
+ */
142
+ drag_html5?: boolean | null;
143
+ /**
144
+ * Number of intermediate mousemove steps (`drag` action).
145
+ */
146
+ drag_steps?: number | null;
147
+ /**
148
+ * Drag target element ID or selector (`drag` action).
149
+ */
150
+ drag_target?: string | null;
151
+ /**
152
+ * Drag target position (e.g., `{ x, y }` stringified, or a named
153
+ * position) (`drag` action).
154
+ */
155
+ drag_target_position?: string | null;
156
+ /**
157
+ * Click position relative to the element
158
+ * (`click` / `doubleClick` / `rightClick`).
159
+ */
160
+ position?: Point | null;
161
+ /**
162
+ * Scroll amount in pixels (`scroll` action).
163
+ */
164
+ scroll_amount?: number | null;
165
+ /**
166
+ * Scroll direction (`scroll` action).
167
+ */
168
+ scroll_direction?: ScrollDirection | null;
169
+ /**
170
+ * Select by label instead of value (`select` action).
171
+ */
172
+ select_by_label?: boolean | null;
173
+ /**
174
+ * Target element ID (used by most element actions).
175
+ */
176
+ target?: string | null;
177
+ /**
178
+ * Text to type (`type` action).
179
+ */
180
+ text?: string | null;
181
+ type: StandardActionType;
182
+ /**
183
+ * Keystroke delay in milliseconds (`type` action).
184
+ */
185
+ type_delay?: number | null;
186
+ /**
187
+ * URL to navigate to (`navigate` action).
188
+ */
189
+ url?: string | null;
190
+ /**
191
+ * Value to select or set (`select` / `setValue` actions).
192
+ */
193
+ value?: TransitionActionValue | null;
194
+ }
195
+
196
+ /* eslint-disable */
197
+ /**
198
+ * This file was automatically generated.
199
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
200
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
201
+ */
202
+
203
+ /**
204
+ * A piece of domain knowledge attached to a state — free-form notes that
205
+ * help the AI reason about what a state represents.
206
+ */
207
+ interface DomainKnowledge {
208
+ /**
209
+ * Full knowledge content (markdown or plain text).
210
+ */
211
+ content: string;
212
+ /**
213
+ * Unique identifier for this knowledge entry.
214
+ */
215
+ id: string;
216
+ /**
217
+ * Tags for filtering and grouping.
218
+ */
219
+ tags: string[];
220
+ /**
221
+ * Short title / headline.
222
+ */
223
+ title: string;
224
+ }
225
+
226
+ /* eslint-disable */
227
+ /**
228
+ * This file was automatically generated.
229
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
230
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
231
+ */
232
+
233
+ /**
234
+ * A state machine configuration — a named collection of states and
235
+ * transitions that describe the navigable structure of an application's UI.
236
+ */
237
+ interface StateMachineConfig {
238
+ /**
239
+ * ISO 8601 timestamp of creation.
240
+ */
241
+ created_at: string;
242
+ /**
243
+ * Optional description.
244
+ */
245
+ description?: string | null;
246
+ /**
247
+ * Number of unique elements discovered in this config.
248
+ */
249
+ element_count: number;
250
+ /**
251
+ * Unique identifier (UUID).
252
+ */
253
+ id: string;
254
+ /**
255
+ * Whether to include HTML IDs when generating selectors.
256
+ */
257
+ include_html_ids: boolean;
258
+ /**
259
+ * Display name.
260
+ */
261
+ name: string;
262
+ /**
263
+ * Number of DOM renders collected for this config.
264
+ */
265
+ render_count: number;
266
+ /**
267
+ * ISO 8601 timestamp of last modification.
268
+ */
269
+ updated_at: string;
270
+ }
271
+
272
+ /* eslint-disable */
273
+ /**
274
+ * This file was automatically generated.
275
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
276
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
277
+ */
278
+
279
+ /**
280
+ * Payload for creating a new state machine configuration.
281
+ */
282
+ interface StateMachineConfigCreate {
283
+ /**
284
+ * Optional description.
285
+ */
286
+ description?: string | null;
287
+ /**
288
+ * Display name.
289
+ */
290
+ name: string;
291
+ }
292
+
293
+ /* eslint-disable */
294
+ /**
295
+ * This file was automatically generated.
296
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
297
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
298
+ */
299
+
300
+ /**
301
+ * Payload for updating an existing state machine configuration.
302
+ */
303
+ interface StateMachineConfigUpdate {
304
+ /**
305
+ * New description.
306
+ */
307
+ description?: string | null;
308
+ /**
309
+ * New display name.
310
+ */
311
+ name?: string | null;
312
+ }
313
+
314
+ /* eslint-disable */
315
+ /**
316
+ * This file was automatically generated.
317
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
318
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
319
+ */
320
+
321
+
322
+
323
+ /**
324
+ * A UI state, defined by which elements are present on screen.
325
+ *
326
+ * States are discovered via co-occurrence analysis of DOM snapshots.
327
+ */
328
+ interface StateMachineState {
329
+ /**
330
+ * Acceptance criteria for verifying the state is reached.
331
+ */
332
+ acceptance_criteria: string[];
333
+ /**
334
+ * Confidence score (0.0–1.0) from the discovery pass.
335
+ */
336
+ confidence: number;
337
+ /**
338
+ * Parent config ID.
339
+ */
340
+ config_id: string;
341
+ /**
342
+ * ISO 8601 timestamp of creation.
343
+ */
344
+ created_at: string;
345
+ /**
346
+ * Optional description.
347
+ */
348
+ description?: string | null;
349
+ /**
350
+ * Domain knowledge entries attached to this state.
351
+ */
352
+ domain_knowledge: DomainKnowledge[];
353
+ /**
354
+ * Element IDs that must be present for this state to be active.
355
+ */
356
+ element_ids: string[];
357
+ /**
358
+ * Free-form metadata bag.
359
+ */
360
+ extra_metadata: {
361
+ [k: string]: unknown;
362
+ };
363
+ /**
364
+ * Unique database identifier (UUID).
365
+ */
366
+ id: string;
367
+ /**
368
+ * Display name.
369
+ */
370
+ name: string;
371
+ /**
372
+ * Render IDs that contributed to discovering this state.
373
+ */
374
+ render_ids: string[];
375
+ /**
376
+ * Stable logical state ID (distinct from `id`; set by the user or
377
+ * generator).
378
+ */
379
+ state_id: string;
380
+ /**
381
+ * ISO 8601 timestamp of last modification.
382
+ */
383
+ updated_at: string;
384
+ }
385
+
386
+ /* eslint-disable */
387
+ /**
388
+ * This file was automatically generated.
389
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
390
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
391
+ */
392
+
393
+
394
+
395
+ /**
396
+ * A transition between states, consisting of one or more actions.
397
+ *
398
+ * Transitions define the edges of the state machine graph.
399
+ */
400
+ interface StateMachineTransition {
401
+ /**
402
+ * Ordered list of actions executed as part of this transition.
403
+ */
404
+ actions: TransitionAction[];
405
+ /**
406
+ * States activated when this transition fires.
407
+ */
408
+ activate_states: string[];
409
+ /**
410
+ * Parent config ID.
411
+ */
412
+ config_id: string;
413
+ /**
414
+ * ISO 8601 timestamp of creation.
415
+ */
416
+ created_at: string;
417
+ /**
418
+ * States exited when this transition fires.
419
+ */
420
+ exit_states: string[];
421
+ /**
422
+ * Free-form metadata bag.
423
+ */
424
+ extra_metadata: {
425
+ [k: string]: unknown;
426
+ };
427
+ /**
428
+ * States this transition may be taken from.
429
+ */
430
+ from_states: string[];
431
+ /**
432
+ * Unique database identifier (UUID).
433
+ */
434
+ id: string;
435
+ /**
436
+ * Display name.
437
+ */
438
+ name: string;
439
+ /**
440
+ * Cost used by pathfinding to prefer cheaper transitions.
441
+ */
442
+ path_cost: number;
443
+ /**
444
+ * Whether source states stay visible after activation.
445
+ */
446
+ stays_visible: boolean;
447
+ /**
448
+ * Stable logical transition ID (distinct from `id`).
449
+ */
450
+ transition_id: string;
451
+ /**
452
+ * ISO 8601 timestamp of last modification.
453
+ */
454
+ updated_at: string;
455
+ }
456
+
457
+ /* eslint-disable */
458
+ /**
459
+ * This file was automatically generated.
460
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
461
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
462
+ */
463
+
464
+
465
+
466
+ /**
467
+ * A config with all its states and transitions loaded.
468
+ *
469
+ * Used when the full state machine needs to be displayed or exported. This
470
+ * mirrors the TypeScript `StateMachineConfigFull extends StateMachineConfig`
471
+ * by flattening the base config's fields via `#[serde(flatten)]`.
472
+ */
473
+ interface StateMachineConfigFull {
474
+ /**
475
+ * ISO 8601 timestamp of creation.
476
+ */
477
+ created_at: string;
478
+ /**
479
+ * Optional description.
480
+ */
481
+ description?: string | null;
482
+ /**
483
+ * Number of unique elements discovered in this config.
484
+ */
485
+ element_count: number;
486
+ /**
487
+ * Unique identifier (UUID).
488
+ */
489
+ id: string;
490
+ /**
491
+ * Whether to include HTML IDs when generating selectors.
492
+ */
493
+ include_html_ids: boolean;
494
+ /**
495
+ * Display name.
496
+ */
497
+ name: string;
498
+ /**
499
+ * Number of DOM renders collected for this config.
500
+ */
501
+ render_count: number;
502
+ /**
503
+ * All states belonging to this config.
504
+ */
505
+ states: StateMachineState[];
506
+ /**
507
+ * All transitions belonging to this config.
508
+ */
509
+ transitions: StateMachineTransition[];
510
+ /**
511
+ * ISO 8601 timestamp of last modification.
512
+ */
513
+ updated_at: string;
514
+ [k: string]: unknown;
515
+ }
516
+
517
+ /* eslint-disable */
518
+ /**
519
+ * This file was automatically generated.
520
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
521
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
522
+ */
523
+
524
+
525
+
526
+ /**
527
+ * Payload for creating a new state within a config.
528
+ */
529
+ interface StateMachineStateCreate {
530
+ /**
531
+ * Acceptance criteria.
532
+ */
533
+ acceptance_criteria?: string[] | null;
534
+ /**
535
+ * Initial confidence score.
536
+ */
537
+ confidence?: number | null;
538
+ /**
539
+ * Optional description.
540
+ */
541
+ description?: string | null;
542
+ /**
543
+ * Domain knowledge entries.
544
+ */
545
+ domain_knowledge?: DomainKnowledge[] | null;
546
+ /**
547
+ * Element IDs that define this state.
548
+ */
549
+ element_ids?: string[] | null;
550
+ /**
551
+ * Free-form metadata bag.
552
+ */
553
+ extra_metadata?: {
554
+ [k: string]: unknown;
555
+ } | null;
556
+ /**
557
+ * Display name.
558
+ */
559
+ name: string;
560
+ /**
561
+ * Render IDs associated with this state.
562
+ */
563
+ render_ids?: string[] | null;
564
+ /**
565
+ * Optional stable logical state ID (generated if omitted).
566
+ */
567
+ state_id?: string | null;
568
+ }
569
+
570
+ /* eslint-disable */
571
+ /**
572
+ * This file was automatically generated.
573
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
574
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
575
+ */
576
+
577
+
578
+
579
+ /**
580
+ * Payload for updating an existing state.
581
+ */
582
+ interface StateMachineStateUpdate {
583
+ /**
584
+ * New acceptance criteria.
585
+ */
586
+ acceptance_criteria?: string[] | null;
587
+ /**
588
+ * New confidence score.
589
+ */
590
+ confidence?: number | null;
591
+ /**
592
+ * New description.
593
+ */
594
+ description?: string | null;
595
+ /**
596
+ * New domain knowledge entries.
597
+ */
598
+ domain_knowledge?: DomainKnowledge[] | null;
599
+ /**
600
+ * New element ID set.
601
+ */
602
+ element_ids?: string[] | null;
603
+ /**
604
+ * New metadata bag.
605
+ */
606
+ extra_metadata?: {
607
+ [k: string]: unknown;
608
+ } | null;
609
+ /**
610
+ * New display name.
611
+ */
612
+ name?: string | null;
613
+ /**
614
+ * New render ID set.
615
+ */
616
+ render_ids?: string[] | null;
617
+ }
618
+
619
+ /* eslint-disable */
620
+ /**
621
+ * This file was automatically generated.
622
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
623
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
624
+ */
625
+
626
+
627
+
628
+ /**
629
+ * Payload for creating a new transition.
630
+ */
631
+ interface StateMachineTransitionCreate {
632
+ /**
633
+ * Ordered list of actions executed as part of this transition.
634
+ */
635
+ actions: TransitionAction[];
636
+ /**
637
+ * States activated when this transition fires.
638
+ */
639
+ activate_states: string[];
640
+ /**
641
+ * States exited when this transition fires.
642
+ */
643
+ exit_states: string[];
644
+ /**
645
+ * Free-form metadata bag.
646
+ */
647
+ extra_metadata?: {
648
+ [k: string]: unknown;
649
+ } | null;
650
+ /**
651
+ * States this transition may be taken from.
652
+ */
653
+ from_states: string[];
654
+ /**
655
+ * Display name.
656
+ */
657
+ name: string;
658
+ /**
659
+ * Cost used by pathfinding.
660
+ */
661
+ path_cost?: number | null;
662
+ /**
663
+ * Whether source states stay visible after activation.
664
+ */
665
+ stays_visible?: boolean | null;
666
+ }
667
+
668
+ /* eslint-disable */
669
+ /**
670
+ * This file was automatically generated.
671
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
672
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
673
+ */
674
+
675
+
676
+
677
+ /**
678
+ * Payload for updating an existing transition.
679
+ */
680
+ interface StateMachineTransitionUpdate {
681
+ /**
682
+ * New action list.
683
+ */
684
+ actions?: TransitionAction[] | null;
685
+ /**
686
+ * New "activate" states.
687
+ */
688
+ activate_states?: string[] | null;
689
+ /**
690
+ * New "exit" states.
691
+ */
692
+ exit_states?: string[] | null;
693
+ /**
694
+ * New metadata bag.
695
+ */
696
+ extra_metadata?: {
697
+ [k: string]: unknown;
698
+ } | null;
699
+ /**
700
+ * New "from" states.
701
+ */
702
+ from_states?: string[] | null;
703
+ /**
704
+ * New display name.
705
+ */
706
+ name?: string | null;
707
+ /**
708
+ * New path cost.
709
+ */
710
+ path_cost?: number | null;
711
+ /**
712
+ * New stays-visible flag.
713
+ */
714
+ stays_visible?: boolean | null;
715
+ }
716
+
717
+ /* eslint-disable */
718
+ /**
719
+ * This file was automatically generated.
720
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
721
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
722
+ */
723
+
724
+ /**
725
+ * Request to compute a path between state sets.
726
+ *
727
+ * The pathfinding types are for the graph editor's path-preview feature.
728
+ * Runtime navigation uses the qontinui Python library (`multistate`)
729
+ * directly.
730
+ */
731
+ interface PathfindingRequest {
732
+ /**
733
+ * States assumed to be active at the start of the search.
734
+ */
735
+ from_states: string[];
736
+ /**
737
+ * States that must all be active at the end.
738
+ */
739
+ target_states: string[];
740
+ }
741
+
742
+ /* eslint-disable */
743
+ /**
744
+ * This file was automatically generated.
745
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
746
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
747
+ */
748
+
749
+ /**
750
+ * A single step on a computed path.
751
+ */
752
+ interface PathfindingStep {
753
+ /**
754
+ * States activated by this step.
755
+ */
756
+ activate_states: string[];
757
+ /**
758
+ * States exited by this step.
759
+ */
760
+ exit_states: string[];
761
+ /**
762
+ * States required to be active before this step.
763
+ */
764
+ from_states: string[];
765
+ /**
766
+ * Cost of this step.
767
+ */
768
+ path_cost: number;
769
+ /**
770
+ * Logical transition ID taken in this step.
771
+ */
772
+ transition_id: string;
773
+ /**
774
+ * Display name of the transition.
775
+ */
776
+ transition_name: string;
777
+ }
778
+
779
+ /* eslint-disable */
780
+ /**
781
+ * This file was automatically generated.
782
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
783
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
784
+ */
785
+
786
+
787
+
788
+ /**
789
+ * Result of a pathfinding search.
790
+ */
791
+ interface PathfindingResult {
792
+ /**
793
+ * Error message when pathfinding failed.
794
+ */
795
+ error?: string | null;
796
+ /**
797
+ * Whether a valid path was found.
798
+ */
799
+ found: boolean;
800
+ /**
801
+ * Ordered steps on the computed path (empty when `found` is `false`).
802
+ */
803
+ steps: PathfindingStep[];
804
+ /**
805
+ * Sum of `path_cost` across steps.
806
+ */
807
+ total_cost: number;
808
+ }
809
+
810
+ /* eslint-disable */
811
+ /**
812
+ * This file was automatically generated.
813
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
814
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
815
+ */
816
+
817
+ /**
818
+ * Result of executing a single state transition at runtime.
819
+ *
820
+ * Returned by the runner's Tauri commands or the qontinui Python subprocess.
821
+ */
822
+ interface TransitionExecutionResult {
823
+ /**
824
+ * States that are active after the transition.
825
+ */
826
+ active_states: string[];
827
+ /**
828
+ * Error message when execution failed.
829
+ */
830
+ error?: string | null;
831
+ /**
832
+ * Whether the transition executed successfully.
833
+ */
834
+ success: boolean;
835
+ /**
836
+ * Logical transition ID that was executed.
837
+ */
838
+ transition_id: string;
839
+ }
840
+
841
+ /* eslint-disable */
842
+ /**
843
+ * This file was automatically generated.
844
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
845
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
846
+ */
847
+
848
+ /**
849
+ * Result of navigating to one or more target states.
850
+ *
851
+ * Navigation uses multistate pathfinding to determine the optimal path.
852
+ * Nested `results` allow a single top-level navigation to fan out to several
853
+ * targets and report per-target outcomes.
854
+ */
855
+ interface NavigationResult {
856
+ /**
857
+ * States active after the navigation completed.
858
+ */
859
+ active_states: string[];
860
+ /**
861
+ * Error message when navigation failed.
862
+ */
863
+ error?: string | null;
864
+ /**
865
+ * Ordered list of state IDs visited.
866
+ */
867
+ path: string[];
868
+ /**
869
+ * Per-target sub-results for fan-out navigation.
870
+ */
871
+ results?: NavigationResult[] | null;
872
+ /**
873
+ * Whether the overall navigation succeeded.
874
+ */
875
+ success: boolean;
876
+ /**
877
+ * Target state for this navigation branch (if applicable).
878
+ */
879
+ target_state?: string | null;
880
+ }
881
+
882
+ /* eslint-disable */
883
+ /**
884
+ * This file was automatically generated.
885
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
886
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
887
+ */
888
+
889
+ /**
890
+ * Result of querying currently active states in the state machine.
891
+ */
892
+ interface ActiveStatesResult {
893
+ /**
894
+ * State IDs currently active.
895
+ */
896
+ active_states: string[];
897
+ /**
898
+ * The "primary" current state, when one can be singled out.
899
+ */
900
+ current_state?: string | null;
901
+ /**
902
+ * Error message when the query failed.
903
+ */
904
+ error?: string | null;
905
+ /**
906
+ * Ordered history of states the machine has passed through.
907
+ */
908
+ state_history?: string[] | null;
909
+ /**
910
+ * Whether the query succeeded.
911
+ */
912
+ success: boolean;
913
+ }
914
+
915
+ /* eslint-disable */
916
+ /**
917
+ * This file was automatically generated.
918
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
919
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
920
+ */
921
+
922
+ /**
923
+ * Information about a single available transition from the current state.
924
+ */
925
+ interface TransitionInfo {
926
+ /**
927
+ * Source state ID.
928
+ */
929
+ from_state: string;
930
+ /**
931
+ * Transition ID.
932
+ */
933
+ id: string;
934
+ /**
935
+ * Destination state ID (`null` if the transition stays within the same
936
+ * state set — e.g. a self-transition or a guard-only action).
937
+ */
938
+ to_state: string | null;
939
+ /**
940
+ * Names of workflows attached to this transition.
941
+ */
942
+ workflows: string[];
943
+ }
944
+
945
+ /* eslint-disable */
946
+ /**
947
+ * This file was automatically generated.
948
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
949
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
950
+ */
951
+
952
+
953
+
954
+ /**
955
+ * Result of querying available transitions from the current state.
956
+ */
957
+ interface AvailableTransitionsResult {
958
+ /**
959
+ * The state the transitions are taken from.
960
+ */
961
+ current_state?: string | null;
962
+ /**
963
+ * Error message when the query failed.
964
+ */
965
+ error?: string | null;
966
+ /**
967
+ * Human-readable message (e.g., "no transitions available").
968
+ */
969
+ message?: string | null;
970
+ /**
971
+ * Whether the query succeeded.
972
+ */
973
+ success: boolean;
974
+ /**
975
+ * Transitions available from the current state.
976
+ */
977
+ transitions: TransitionInfo[];
978
+ }
979
+
980
+ /* eslint-disable */
981
+ /**
982
+ * This file was automatically generated.
983
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
984
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
985
+ */
986
+
987
+ /**
988
+ * Source of initial states configuration.
989
+ *
990
+ * - `Defaults`: states with `is_initial=true` in the state machine definition
991
+ * - `Workflow`: initial states defined on the workflow (`initialStateIds`)
992
+ * - `Override`: session-only override from the runner UI
993
+ *
994
+ * Serialized as a bare lowercase string (`"defaults"` / `"workflow"` /
995
+ * `"override"`) to match the TS literal union.
996
+ */
997
+ type InitialStatesSource = "defaults" | "workflow" | "override";
998
+
999
+ /* eslint-disable */
1000
+ /**
1001
+ * This file was automatically generated.
1002
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1003
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1004
+ */
1005
+
1006
+ /**
1007
+ * A lightweight reference to a state by id and display name.
1008
+ *
1009
+ * Used in [`ResolvedInitialStates`] and [`ResolvedInitialStatesResult`] to
1010
+ * let the UI render human-readable lists without a separate lookup.
1011
+ */
1012
+ interface InitialStateRef {
1013
+ /**
1014
+ * State ID.
1015
+ */
1016
+ id: string;
1017
+ /**
1018
+ * Display name.
1019
+ */
1020
+ name: string;
1021
+ }
1022
+
1023
+ /* eslint-disable */
1024
+ /**
1025
+ * This file was automatically generated.
1026
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1027
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1028
+ */
1029
+
1030
+
1031
+
1032
+ /**
1033
+ * The resolved set of initial states for a run, along with the source the
1034
+ * resolution came from.
1035
+ */
1036
+ interface ResolvedInitialStates {
1037
+ source: InitialStatesSource;
1038
+ /**
1039
+ * Resolved initial state IDs.
1040
+ */
1041
+ stateIds: string[];
1042
+ /**
1043
+ * Display-ready references for each state (optional).
1044
+ */
1045
+ states?: InitialStateRef[] | null;
1046
+ /**
1047
+ * Workflow ID when `source == Workflow`.
1048
+ */
1049
+ workflowId?: string | null;
1050
+ }
1051
+
1052
+ /* eslint-disable */
1053
+ /**
1054
+ * This file was automatically generated.
1055
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1056
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1057
+ */
1058
+
1059
+
1060
+
1061
+ /**
1062
+ * Result envelope for the "resolve initial states" operation.
1063
+ *
1064
+ * Unlike [`ResolvedInitialStates`], this shape is non-optional: `states` and
1065
+ * `workflowId` are always present (possibly empty), and a `success` / `error`
1066
+ * pair is provided.
1067
+ */
1068
+ interface ResolvedInitialStatesResult {
1069
+ /**
1070
+ * Error message when resolution failed.
1071
+ */
1072
+ error?: string | null;
1073
+ source: InitialStatesSource;
1074
+ /**
1075
+ * Resolved initial state IDs.
1076
+ */
1077
+ stateIds: string[];
1078
+ /**
1079
+ * Display-ready references for each state.
1080
+ */
1081
+ states: InitialStateRef[];
1082
+ /**
1083
+ * Whether resolution succeeded.
1084
+ */
1085
+ success: boolean;
1086
+ /**
1087
+ * Workflow ID (may be empty).
1088
+ */
1089
+ workflowId: string;
1090
+ }
1091
+
1092
+ /* eslint-disable */
1093
+ /**
1094
+ * This file was automatically generated.
1095
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1096
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1097
+ */
1098
+
1099
+ /**
1100
+ * Strategy used by the state-discovery pass.
1101
+ *
1102
+ * Serialized as a bare lowercase string.
1103
+ */
1104
+ type DiscoveryStrategy = "auto" | "fingerprint";
1105
+
1106
+ /* eslint-disable */
1107
+ /**
1108
+ * This file was automatically generated.
1109
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1110
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1111
+ */
1112
+
1113
+
1114
+
1115
+ /**
1116
+ * Data passed to a transition edge in the ReactFlow graph editor.
1117
+ */
1118
+ interface TransitionEdgeData {
1119
+ /**
1120
+ * Number of actions in this transition.
1121
+ */
1122
+ actionCount: number;
1123
+ /**
1124
+ * Distinct action types used.
1125
+ */
1126
+ actionTypes: StandardActionType[];
1127
+ /**
1128
+ * Target of the first action, for label rendering.
1129
+ */
1130
+ firstActionTarget?: string | null;
1131
+ /**
1132
+ * Whether the edge is highlighted (e.g., part of a path preview).
1133
+ */
1134
+ isHighlighted: boolean;
1135
+ /**
1136
+ * Display name.
1137
+ */
1138
+ name: string;
1139
+ /**
1140
+ * Path cost.
1141
+ */
1142
+ pathCost: number;
1143
+ /**
1144
+ * Whether source states stay visible after activation.
1145
+ */
1146
+ staysVisible: boolean;
1147
+ /**
1148
+ * Transition ID this edge represents.
1149
+ */
1150
+ transitionId: string;
1151
+ }
1152
+
1153
+ /* eslint-disable */
1154
+ /**
1155
+ * This file was automatically generated.
1156
+ * DO NOT MODIFY IT BY HAND. Regenerate with `just generate-types` or
1157
+ * `qontinui-runner/src-tauri/scripts/generate_types.sh`.
1158
+ */
1159
+
1160
+ /**
1161
+ * Format for exporting a state machine config to JSON.
1162
+ *
1163
+ * Compatible with `UIBridgeRuntime.from_dict()` in the qontinui library. The
1164
+ * nested maps hold opaque per-state / per-transition / per-config dictionaries
1165
+ * because the exporter serializes implementation-specific fields not captured
1166
+ * by the DTO types.
1167
+ */
1168
+ interface StateMachineExportFormat {
1169
+ /**
1170
+ * Config-level payload.
1171
+ */
1172
+ config: {
1173
+ [k: string]: unknown;
1174
+ };
1175
+ /**
1176
+ * State ID → state payload.
1177
+ */
1178
+ states: {
1179
+ [k: string]: {
1180
+ [k: string]: unknown;
1181
+ };
1182
+ };
1183
+ /**
1184
+ * Transition ID → transition payload.
1185
+ */
1186
+ transitions: {
1187
+ [k: string]: {
1188
+ [k: string]: unknown;
1189
+ };
1190
+ };
1191
+ }
1192
+
1193
+ /**
1194
+ * Unified State Machine types for the Qontinui ecosystem.
1195
+ *
1196
+ * These types are the single source of truth for state machine data structures
1197
+ * used by both qontinui-web and qontinui-runner. They use snake_case to match
1198
+ * the API/database layer.
1199
+ *
1200
+ * Architecture:
1201
+ * - Config: A named state machine configuration (collection of states + transitions)
1202
+ * - State: A UI state defined by which elements are present
1203
+ * - Transition: A named action sequence that moves between states
1204
+ * - Action: A single UI interaction (click, type, navigate, etc.)
1205
+ *
1206
+ * Runtime navigation (pathfinding through states) is handled by the qontinui
1207
+ * Python library using multistate. The TypeScript pathfinding types here are
1208
+ * for the graph editor's path preview only.
1209
+ *
1210
+ * Most wire types in this module are generated from Rust (source of truth:
1211
+ * qontinui-schemas/rust/src/state_machine.rs). Do not edit those by hand —
1212
+ * regenerate via `just generate-types` (or the runner's generate_types.sh).
1213
+ * A small number of UI-only sugar types remain hand-authored below.
1214
+ */
1215
+
1216
+ /**
1217
+ * Data passed to a state node in the ReactFlow graph editor.
1218
+ *
1219
+ * UI-only sugar: mirrors the generated `StateNodeData` but adds the
1220
+ * `onStartElementDrag` callback that the graph editor wires up at render time.
1221
+ */
1222
+ interface StateNodeData {
1223
+ stateId: string;
1224
+ name: string;
1225
+ elementCount: number;
1226
+ confidence: number;
1227
+ elementIds: string[];
1228
+ description: string | null;
1229
+ isBlocking: boolean;
1230
+ isSelected: boolean;
1231
+ isInitial: boolean;
1232
+ outgoingCount?: number;
1233
+ incomingCount?: number;
1234
+ isDropTarget?: boolean;
1235
+ onStartElementDrag?: (stateId: string, elementId: string) => void;
1236
+ /** Optional map of element ID → base64 thumbnail image (data URL or raw base64 PNG). */
1237
+ elementThumbnails?: Record<string, string>;
1238
+ }
1239
+
1240
+ export type { ActiveStatesResult, AvailableTransitionsResult, DiscoveryStrategy, DomainKnowledge, InitialStateRef, InitialStatesSource, MouseButton, NavigationResult, PathfindingRequest, PathfindingResult, PathfindingStep, Point, ResolvedInitialStates, ResolvedInitialStatesResult, ScrollDirection, StandardActionType, StateMachineConfig, StateMachineConfigCreate, StateMachineConfigFull, StateMachineConfigUpdate, StateMachineExportFormat, StateMachineState, StateMachineStateCreate, StateMachineStateUpdate, StateMachineTransition, StateMachineTransitionCreate, StateMachineTransitionUpdate, StateNodeData, TransitionAction, TransitionActionValue, TransitionEdgeData, TransitionExecutionResult, TransitionInfo };