@qontinui/shared-types 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/dist/accessibility.d.cts +9 -0
  2. package/dist/accessibility.d.ts +9 -0
  3. package/dist/constraints.d.cts +15 -0
  4. package/dist/constraints.d.ts +15 -0
  5. package/dist/execution.d.cts +39 -0
  6. package/dist/execution.d.ts +39 -0
  7. package/dist/geometry.d.cts +3 -0
  8. package/dist/geometry.d.ts +3 -0
  9. package/dist/index.d.cts +24 -0
  10. package/dist/index.d.ts +24 -0
  11. package/dist/runner.d.cts +4 -0
  12. package/dist/runner.d.ts +4 -0
  13. package/dist/scheduler.d.cts +15 -0
  14. package/dist/scheduler.d.ts +15 -0
  15. package/dist/state-machine.d.cts +9 -0
  16. package/dist/state-machine.d.ts +9 -0
  17. package/dist/task-run.d.cts +45 -0
  18. package/dist/task-run.d.ts +45 -0
  19. package/dist/tree-events.d.cts +12 -0
  20. package/dist/tree-events.d.ts +12 -0
  21. package/dist/workflow.d.cts +26 -0
  22. package/dist/workflow.d.ts +26 -0
  23. package/package.json +3 -3
  24. package/src/generated/AccessibilityNode.d.ts +3 -0
  25. package/src/generated/AccessibilitySnapshot.d.ts +6 -0
  26. package/src/generated/ActionExecutionCreate.d.ts +6 -0
  27. package/src/generated/ActionExecutionListResponse.d.ts +3 -0
  28. package/src/generated/ActionReliabilityStats.d.ts +3 -0
  29. package/src/generated/AgentTextUnit.d.ts +152 -0
  30. package/src/generated/AgentTextUnitError.d.ts +82 -0
  31. package/src/generated/AgentTextUnitFile.d.ts +33 -0
  32. package/src/generated/AgentTextUnitVersion.d.ts +72 -0
  33. package/src/generated/AgenticPhaseOutput.d.ts +3 -0
  34. package/src/generated/ApiAssertion.d.ts +3 -0
  35. package/src/generated/AssertionMiss.d.ts +3 -0
  36. package/src/generated/AssertionOutcome.d.ts +6 -0
  37. package/src/generated/AssertionResult.d.ts +3 -0
  38. package/src/generated/BackendProfile.d.ts +3 -0
  39. package/src/generated/CommandStep.d.ts +3 -0
  40. package/src/generated/CompletenessVerdict.d.ts +3 -0
  41. package/src/generated/ConjunctEvaluation.d.ts +3 -0
  42. package/src/generated/ConjunctRule.d.ts +3 -0
  43. package/src/generated/Constraint.d.ts +6 -0
  44. package/src/generated/ConstraintProposal.d.ts +3 -0
  45. package/src/generated/ConstraintResult.d.ts +3 -0
  46. package/src/generated/CoverageGap.d.ts +9 -0
  47. package/src/generated/CreateMcpServerInput.d.ts +3 -0
  48. package/src/generated/CreateScheduledTaskRequest.d.ts +6 -0
  49. package/src/generated/DiscoveredElement.d.ts +3 -0
  50. package/src/generated/DiscoveredStateImage.d.ts +3 -0
  51. package/src/generated/ElementState.d.ts +3 -0
  52. package/src/generated/EmbeddedElement.d.ts +3 -0
  53. package/src/generated/Entity.d.ts +3 -0
  54. package/src/generated/ExecutionIssueCreate.d.ts +3 -0
  55. package/src/generated/ExecutionIssueDetail.d.ts +12 -0
  56. package/src/generated/ExecutionIssueListResponse.d.ts +3 -0
  57. package/src/generated/ExecutionRunComplete.d.ts +6 -0
  58. package/src/generated/ExecutionRunCompleteResponse.d.ts +6 -0
  59. package/src/generated/ExecutionRunCreate.d.ts +6 -0
  60. package/src/generated/ExecutionRunDetail.d.ts +12 -0
  61. package/src/generated/ExecutionRunListResponse.d.ts +3 -0
  62. package/src/generated/ExecutionRunResponse.d.ts +6 -0
  63. package/src/generated/ExecutionScreenshotCreate.d.ts +3 -0
  64. package/src/generated/Finding.d.ts +3 -0
  65. package/src/generated/FindingCreate.d.ts +9 -0
  66. package/src/generated/FindingDetail.d.ts +12 -0
  67. package/src/generated/FunctionalSpec.d.ts +3 -0
  68. package/src/generated/HelperAnswer.d.ts +3 -0
  69. package/src/generated/HelperTask.d.ts +16 -0
  70. package/src/generated/HistoricalActionResult.d.ts +6 -0
  71. package/src/generated/IrPageSpec.d.ts +62 -0
  72. package/src/generated/IterationResult.d.ts +3 -0
  73. package/src/generated/LoopInstanceStatus.d.ts +3 -0
  74. package/src/generated/McpServerConfig.d.ts +3 -0
  75. package/src/generated/McpToolInfo.d.ts +3 -0
  76. package/src/generated/Monitor.d.ts +3 -0
  77. package/src/generated/MultiLoopEntry.d.ts +3 -0
  78. package/src/generated/NewConstraintProposal.d.ts +3 -0
  79. package/src/generated/OrchestrationLoopStatus.d.ts +3 -0
  80. package/src/generated/OutputLine.d.ts +3 -0
  81. package/src/generated/PolicyConjunct.d.ts +7 -0
  82. package/src/generated/PolicyEvaluation.d.ts +5 -1
  83. package/src/generated/ProcessStatusLite.d.ts +3 -0
  84. package/src/generated/Profile.d.ts +6 -0
  85. package/src/generated/ProjectSnapshot.d.ts +3 -0
  86. package/src/generated/PromptStep.d.ts +3 -0
  87. package/src/generated/RecommendedState.d.ts +3 -0
  88. package/src/generated/ResolvedInitialStates.d.ts +3 -0
  89. package/src/generated/ResolvedInitialStatesResult.d.ts +3 -0
  90. package/src/generated/Runner.d.ts +4 -0
  91. package/src/generated/ScheduledTask.d.ts +6 -0
  92. package/src/generated/ScreenshotAnnotation.d.ts +3 -0
  93. package/src/generated/SessionLite.d.ts +3 -0
  94. package/src/generated/SpecApiEvent.d.ts +26 -0
  95. package/src/generated/SpecCheckResult.d.ts +22 -0
  96. package/src/generated/SpecCheckStepConfig.d.ts +3 -0
  97. package/src/generated/SpecCheckSummary.d.ts +6 -0
  98. package/src/generated/StateDiscoveryResult.d.ts +3 -0
  99. package/src/generated/StateDiscoveryResultCreate.d.ts +3 -0
  100. package/src/generated/StateDiscoveryResultSummary.d.ts +3 -0
  101. package/src/generated/StateMachineImport.d.ts +3 -0
  102. package/src/generated/SuccessCriterion.d.ts +3 -0
  103. package/src/generated/TaskCompletionResult.d.ts +5 -2
  104. package/src/generated/TaskExecutionRecord.d.ts +3 -0
  105. package/src/generated/TaskRun.d.ts +6 -0
  106. package/src/generated/TaskRunBackend.d.ts +3 -0
  107. package/src/generated/TaskRunBackendDetail.d.ts +6 -0
  108. package/src/generated/TaskRunFinding.d.ts +12 -0
  109. package/src/generated/TaskRunFindingCreate.d.ts +6 -0
  110. package/src/generated/TaskRunFindingsListResponse.d.ts +3 -0
  111. package/src/generated/TaskRunListResponse.d.ts +3 -0
  112. package/src/generated/Ticket.d.ts +6 -0
  113. package/src/generated/TicketProviderConfig.d.ts +3 -0
  114. package/src/generated/TransitionAction.d.ts +3 -0
  115. package/src/generated/TreeEvent.d.ts +6 -0
  116. package/src/generated/TreeNode.d.ts +6 -0
  117. package/src/generated/UIBridgeElement.d.ts +6 -0
  118. package/src/generated/UiBridgeHttpHealthEnvelope.d.ts +3 -0
  119. package/src/generated/UiBridgeStep.d.ts +6 -0
  120. package/src/generated/UnifiedWorkflow.d.ts +8 -0
  121. package/src/generated/VectorSearchResult.d.ts +3 -0
  122. package/src/generated/VerificationResult.d.ts +3 -0
  123. package/src/generated/VerificationResultResponse.d.ts +3 -0
  124. package/src/generated/VerificationStepResult.d.ts +3 -0
  125. package/src/generated/WorkerCoordinationMessage.d.ts +3 -0
  126. package/src/generated/WorkerInstance.d.ts +3 -0
  127. package/src/generated/WorkflowStep.d.ts +3 -0
  128. package/src/generated/index.ts +4 -0
@@ -178,6 +178,9 @@ interface TransitionAction {
178
178
  * Text to type (`type` action).
179
179
  */
180
180
  text?: string | null;
181
+ /**
182
+ * The kind of action to perform.
183
+ */
181
184
  type: StandardActionType;
182
185
  /**
183
186
  * Keystroke delay in milliseconds (`type` action).
@@ -1034,6 +1037,9 @@ interface InitialStateRef {
1034
1037
  * resolution came from.
1035
1038
  */
1036
1039
  interface ResolvedInitialStates {
1040
+ /**
1041
+ * Where the resolution came from.
1042
+ */
1037
1043
  source: InitialStatesSource;
1038
1044
  /**
1039
1045
  * Resolved initial state IDs.
@@ -1070,6 +1076,9 @@ interface ResolvedInitialStatesResult {
1070
1076
  * Error message when resolution failed.
1071
1077
  */
1072
1078
  error?: string | null;
1079
+ /**
1080
+ * Where the resolution came from.
1081
+ */
1073
1082
  source: InitialStatesSource;
1074
1083
  /**
1075
1084
  * Resolved initial state IDs.
@@ -88,6 +88,9 @@ interface TaskRun {
88
88
  * Number of AI sessions that have been run.
89
89
  */
90
90
  sessionsCount: number;
91
+ /**
92
+ * Current lifecycle status.
93
+ */
91
94
  status: TaskRunStatus;
92
95
  /**
93
96
  * AI-generated summary of the task run.
@@ -101,6 +104,9 @@ interface TaskRun {
101
104
  * Display name of the task.
102
105
  */
103
106
  taskName: string;
107
+ /**
108
+ * Kind of task (one-off, automation, or scheduled).
109
+ */
104
110
  taskType: TaskType;
105
111
  /**
106
112
  * ISO 8601 timestamp when the task record was last updated.
@@ -188,6 +194,9 @@ interface TaskRunBackend {
188
194
  * Number of AI sessions that have been run.
189
195
  */
190
196
  sessionsCount: number;
197
+ /**
198
+ * Current lifecycle status.
199
+ */
191
200
  status: TaskRunStatus;
192
201
  /**
193
202
  * Display name.
@@ -256,7 +265,13 @@ interface TaskRunSession {
256
265
  * possibly `null`), so they use `serde(default)` without `skip_serializing_if`.
257
266
  */
258
267
  interface TaskRunFinding {
268
+ /**
269
+ * How the finding should be acted upon.
270
+ */
259
271
  actionType: TaskRunFindingActionType;
272
+ /**
273
+ * Category (bug, security, performance, etc.).
274
+ */
260
275
  category: TaskRunFindingCategory;
261
276
  /**
262
277
  * Snippet of code illustrating the issue.
@@ -314,11 +329,17 @@ interface TaskRunFinding {
314
329
  * Session number in which the finding was resolved.
315
330
  */
316
331
  resolvedInSession: number | null;
332
+ /**
333
+ * Severity of the finding.
334
+ */
317
335
  severity: TaskRunFindingSeverity;
318
336
  /**
319
337
  * Hash used to deduplicate findings across runs.
320
338
  */
321
339
  signatureHash: string | null;
340
+ /**
341
+ * Current lifecycle status.
342
+ */
322
343
  status: TaskRunFindingStatus;
323
344
  /**
324
345
  * Parent task run ID.
@@ -413,6 +434,9 @@ interface TaskRunBackendDetail {
413
434
  * Error message if the task failed.
414
435
  */
415
436
  errorMessage: string | null;
437
+ /**
438
+ * Aggregated counts of findings.
439
+ */
416
440
  findingSummary: TaskRunFindingSummary;
417
441
  /**
418
442
  * Findings surfaced during this task run.
@@ -454,6 +478,9 @@ interface TaskRunBackendDetail {
454
478
  * Number of AI sessions that have been run.
455
479
  */
456
480
  sessionsCount: number;
481
+ /**
482
+ * Current lifecycle status.
483
+ */
457
484
  status: TaskRunStatus;
458
485
  /**
459
486
  * Display name.
@@ -594,6 +621,9 @@ interface TaskRunFindingCreate {
594
621
  * Action type (defaults server-side if omitted).
595
622
  */
596
623
  actionType?: TaskRunFindingActionType | null;
624
+ /**
625
+ * Category.
626
+ */
597
627
  category: TaskRunFindingCategory;
598
628
  /**
599
629
  * Snippet of code illustrating the issue.
@@ -639,6 +669,9 @@ interface TaskRunFindingCreate {
639
669
  * Resolution text, if already resolved.
640
670
  */
641
671
  resolution?: string | null;
672
+ /**
673
+ * Severity.
674
+ */
642
675
  severity: TaskRunFindingSeverity;
643
676
  /**
644
677
  * Deduplication hash.
@@ -978,6 +1011,9 @@ interface Pagination {
978
1011
  * Response for `GET /task-runs`.
979
1012
  */
980
1013
  interface TaskRunListResponse {
1014
+ /**
1015
+ * Pagination envelope.
1016
+ */
981
1017
  pagination: Pagination;
982
1018
  /**
983
1019
  * Page of matching task runs.
@@ -1002,6 +1038,9 @@ interface TaskRunFindingsListResponse {
1002
1038
  * Findings for the task run.
1003
1039
  */
1004
1040
  findings: TaskRunFinding[];
1041
+ /**
1042
+ * Aggregated counts of findings.
1043
+ */
1005
1044
  summary: TaskRunFindingSummary;
1006
1045
  }
1007
1046
 
@@ -1247,6 +1286,9 @@ interface StepExecutionConfig {
1247
1286
  * Result of a single step within a verification phase.
1248
1287
  */
1249
1288
  interface VerificationStepResult {
1289
+ /**
1290
+ * Execution config for the step.
1291
+ */
1250
1292
  config: StepExecutionConfig;
1251
1293
  /**
1252
1294
  * Step duration in milliseconds.
@@ -1437,6 +1479,9 @@ interface VerificationResultResponse {
1437
1479
  * Number of steps that passed.
1438
1480
  */
1439
1481
  passedSteps: number;
1482
+ /**
1483
+ * Full typed verification result payload.
1484
+ */
1440
1485
  resultJson: VerificationPhaseResult;
1441
1486
  /**
1442
1487
  * Number of steps that were skipped.
@@ -88,6 +88,9 @@ interface TaskRun {
88
88
  * Number of AI sessions that have been run.
89
89
  */
90
90
  sessionsCount: number;
91
+ /**
92
+ * Current lifecycle status.
93
+ */
91
94
  status: TaskRunStatus;
92
95
  /**
93
96
  * AI-generated summary of the task run.
@@ -101,6 +104,9 @@ interface TaskRun {
101
104
  * Display name of the task.
102
105
  */
103
106
  taskName: string;
107
+ /**
108
+ * Kind of task (one-off, automation, or scheduled).
109
+ */
104
110
  taskType: TaskType;
105
111
  /**
106
112
  * ISO 8601 timestamp when the task record was last updated.
@@ -188,6 +194,9 @@ interface TaskRunBackend {
188
194
  * Number of AI sessions that have been run.
189
195
  */
190
196
  sessionsCount: number;
197
+ /**
198
+ * Current lifecycle status.
199
+ */
191
200
  status: TaskRunStatus;
192
201
  /**
193
202
  * Display name.
@@ -256,7 +265,13 @@ interface TaskRunSession {
256
265
  * possibly `null`), so they use `serde(default)` without `skip_serializing_if`.
257
266
  */
258
267
  interface TaskRunFinding {
268
+ /**
269
+ * How the finding should be acted upon.
270
+ */
259
271
  actionType: TaskRunFindingActionType;
272
+ /**
273
+ * Category (bug, security, performance, etc.).
274
+ */
260
275
  category: TaskRunFindingCategory;
261
276
  /**
262
277
  * Snippet of code illustrating the issue.
@@ -314,11 +329,17 @@ interface TaskRunFinding {
314
329
  * Session number in which the finding was resolved.
315
330
  */
316
331
  resolvedInSession: number | null;
332
+ /**
333
+ * Severity of the finding.
334
+ */
317
335
  severity: TaskRunFindingSeverity;
318
336
  /**
319
337
  * Hash used to deduplicate findings across runs.
320
338
  */
321
339
  signatureHash: string | null;
340
+ /**
341
+ * Current lifecycle status.
342
+ */
322
343
  status: TaskRunFindingStatus;
323
344
  /**
324
345
  * Parent task run ID.
@@ -413,6 +434,9 @@ interface TaskRunBackendDetail {
413
434
  * Error message if the task failed.
414
435
  */
415
436
  errorMessage: string | null;
437
+ /**
438
+ * Aggregated counts of findings.
439
+ */
416
440
  findingSummary: TaskRunFindingSummary;
417
441
  /**
418
442
  * Findings surfaced during this task run.
@@ -454,6 +478,9 @@ interface TaskRunBackendDetail {
454
478
  * Number of AI sessions that have been run.
455
479
  */
456
480
  sessionsCount: number;
481
+ /**
482
+ * Current lifecycle status.
483
+ */
457
484
  status: TaskRunStatus;
458
485
  /**
459
486
  * Display name.
@@ -594,6 +621,9 @@ interface TaskRunFindingCreate {
594
621
  * Action type (defaults server-side if omitted).
595
622
  */
596
623
  actionType?: TaskRunFindingActionType | null;
624
+ /**
625
+ * Category.
626
+ */
597
627
  category: TaskRunFindingCategory;
598
628
  /**
599
629
  * Snippet of code illustrating the issue.
@@ -639,6 +669,9 @@ interface TaskRunFindingCreate {
639
669
  * Resolution text, if already resolved.
640
670
  */
641
671
  resolution?: string | null;
672
+ /**
673
+ * Severity.
674
+ */
642
675
  severity: TaskRunFindingSeverity;
643
676
  /**
644
677
  * Deduplication hash.
@@ -978,6 +1011,9 @@ interface Pagination {
978
1011
  * Response for `GET /task-runs`.
979
1012
  */
980
1013
  interface TaskRunListResponse {
1014
+ /**
1015
+ * Pagination envelope.
1016
+ */
981
1017
  pagination: Pagination;
982
1018
  /**
983
1019
  * Page of matching task runs.
@@ -1002,6 +1038,9 @@ interface TaskRunFindingsListResponse {
1002
1038
  * Findings for the task run.
1003
1039
  */
1004
1040
  findings: TaskRunFinding[];
1041
+ /**
1042
+ * Aggregated counts of findings.
1043
+ */
1005
1044
  summary: TaskRunFindingSummary;
1006
1045
  }
1007
1046
 
@@ -1247,6 +1286,9 @@ interface StepExecutionConfig {
1247
1286
  * Result of a single step within a verification phase.
1248
1287
  */
1249
1288
  interface VerificationStepResult {
1289
+ /**
1290
+ * Execution config for the step.
1291
+ */
1250
1292
  config: StepExecutionConfig;
1251
1293
  /**
1252
1294
  * Step duration in milliseconds.
@@ -1437,6 +1479,9 @@ interface VerificationResultResponse {
1437
1479
  * Number of steps that passed.
1438
1480
  */
1439
1481
  passedSteps: number;
1482
+ /**
1483
+ * Full typed verification result payload.
1484
+ */
1440
1485
  resultJson: VerificationPhaseResult;
1441
1486
  /**
1442
1487
  * Number of steps that were skipped.
@@ -302,11 +302,17 @@ interface TreeNode {
302
302
  * Display name for this node.
303
303
  */
304
304
  name: string;
305
+ /**
306
+ * Type of node (workflow / action / transition).
307
+ */
305
308
  nodeType: NodeType;
306
309
  /**
307
310
  * ID of parent node, `None` for root.
308
311
  */
309
312
  parentId?: string | null;
313
+ /**
314
+ * Current execution status.
315
+ */
310
316
  status: NodeStatus;
311
317
  /**
312
318
  * When this node was created (Unix epoch seconds).
@@ -349,7 +355,13 @@ interface PathElement {
349
355
  * a sequence number for ordering.
350
356
  */
351
357
  interface TreeEvent {
358
+ /**
359
+ * Specific tree-event variant.
360
+ */
352
361
  eventType: TreeEventType;
362
+ /**
363
+ * The node this event is about.
364
+ */
353
365
  node: TreeNode;
354
366
  /**
355
367
  * Path from root to this node (breadcrumb).
@@ -302,11 +302,17 @@ interface TreeNode {
302
302
  * Display name for this node.
303
303
  */
304
304
  name: string;
305
+ /**
306
+ * Type of node (workflow / action / transition).
307
+ */
305
308
  nodeType: NodeType;
306
309
  /**
307
310
  * ID of parent node, `None` for root.
308
311
  */
309
312
  parentId?: string | null;
313
+ /**
314
+ * Current execution status.
315
+ */
310
316
  status: NodeStatus;
311
317
  /**
312
318
  * When this node was created (Unix epoch seconds).
@@ -349,7 +355,13 @@ interface PathElement {
349
355
  * a sequence number for ordering.
350
356
  */
351
357
  interface TreeEvent {
358
+ /**
359
+ * Specific tree-event variant.
360
+ */
352
361
  eventType: TreeEventType;
362
+ /**
363
+ * The node this event is about.
364
+ */
353
365
  node: TreeNode;
354
366
  /**
355
367
  * Path from root to this node (breadcrumb).
@@ -475,6 +475,9 @@ interface CommandStep {
475
475
  * Display name for the step.
476
476
  */
477
477
  name: string;
478
+ /**
479
+ * Phase in which the step appears.
480
+ */
478
481
  phase: CommandStepPhase;
479
482
  /**
480
483
  * Repository selector for repository-targeted steps.
@@ -625,6 +628,9 @@ interface PromptStep {
625
628
  * Display name for the step.
626
629
  */
627
630
  name: string;
631
+ /**
632
+ * Phase in which the step appears.
633
+ */
628
634
  phase: PromptStepPhase;
629
635
  /**
630
636
  * Saved prompt ID (when the body is a reference).
@@ -743,6 +749,9 @@ type UiBridgeStepPhase = "setup" | "verification" | "completion";
743
749
  * UI Bridge SDK interaction — navigate, execute, assert, snapshot, compare.
744
750
  */
745
751
  interface UiBridgeStep {
752
+ /**
753
+ * Action kind.
754
+ */
746
755
  action: UiBridgeAction;
747
756
  /**
748
757
  * Structured action plan (for `action_plan`).
@@ -802,6 +811,9 @@ interface UiBridgeStep {
802
811
  * Display name for the step.
803
812
  */
804
813
  name: string;
814
+ /**
815
+ * Phase in which the step appears.
816
+ */
805
817
  phase: UiBridgeStepPhase;
806
818
  /**
807
819
  * Reference snapshot ID (for `compare` / `snapshot_assert`).
@@ -909,6 +921,9 @@ interface WorkflowStep {
909
921
  * Display name for the step.
910
922
  */
911
923
  name: string;
924
+ /**
925
+ * Phase in which the step appears.
926
+ */
912
927
  phase: WorkflowStepPhase;
913
928
  /**
914
929
  * Whether this step is required (default: `true` on consumer side).
@@ -1335,6 +1350,14 @@ interface UnifiedWorkflow {
1335
1350
  * Whether this workflow is marked as a favorite for quick access.
1336
1351
  */
1337
1352
  isFavorite: boolean;
1353
+ /**
1354
+ * Log source selection for this workflow.
1355
+ *
1356
+ * - `"default"`: use the global default profile (from Settings → Log Sources)
1357
+ * - `"ai"`: let AI automatically select relevant sources based on context
1358
+ * - `"all"`: use all enabled log sources
1359
+ * - `{ "profile_id": "..." }`: use a specific profile
1360
+ */
1338
1361
  logSourceSelection?: LogSourceSelection;
1339
1362
  /**
1340
1363
  * Whether to automatically include a `log_watch` step before verification.
@@ -1690,6 +1713,9 @@ interface ApiAssertion {
1690
1713
  * Comparison operator; defaults to `equals` on the consumer side.
1691
1714
  */
1692
1715
  operator?: ApiAssertionOperator | null;
1716
+ /**
1717
+ * Kind of assertion.
1718
+ */
1693
1719
  type: ApiAssertionType;
1694
1720
  }
1695
1721
 
@@ -475,6 +475,9 @@ interface CommandStep {
475
475
  * Display name for the step.
476
476
  */
477
477
  name: string;
478
+ /**
479
+ * Phase in which the step appears.
480
+ */
478
481
  phase: CommandStepPhase;
479
482
  /**
480
483
  * Repository selector for repository-targeted steps.
@@ -625,6 +628,9 @@ interface PromptStep {
625
628
  * Display name for the step.
626
629
  */
627
630
  name: string;
631
+ /**
632
+ * Phase in which the step appears.
633
+ */
628
634
  phase: PromptStepPhase;
629
635
  /**
630
636
  * Saved prompt ID (when the body is a reference).
@@ -743,6 +749,9 @@ type UiBridgeStepPhase = "setup" | "verification" | "completion";
743
749
  * UI Bridge SDK interaction — navigate, execute, assert, snapshot, compare.
744
750
  */
745
751
  interface UiBridgeStep {
752
+ /**
753
+ * Action kind.
754
+ */
746
755
  action: UiBridgeAction;
747
756
  /**
748
757
  * Structured action plan (for `action_plan`).
@@ -802,6 +811,9 @@ interface UiBridgeStep {
802
811
  * Display name for the step.
803
812
  */
804
813
  name: string;
814
+ /**
815
+ * Phase in which the step appears.
816
+ */
805
817
  phase: UiBridgeStepPhase;
806
818
  /**
807
819
  * Reference snapshot ID (for `compare` / `snapshot_assert`).
@@ -909,6 +921,9 @@ interface WorkflowStep {
909
921
  * Display name for the step.
910
922
  */
911
923
  name: string;
924
+ /**
925
+ * Phase in which the step appears.
926
+ */
912
927
  phase: WorkflowStepPhase;
913
928
  /**
914
929
  * Whether this step is required (default: `true` on consumer side).
@@ -1335,6 +1350,14 @@ interface UnifiedWorkflow {
1335
1350
  * Whether this workflow is marked as a favorite for quick access.
1336
1351
  */
1337
1352
  isFavorite: boolean;
1353
+ /**
1354
+ * Log source selection for this workflow.
1355
+ *
1356
+ * - `"default"`: use the global default profile (from Settings → Log Sources)
1357
+ * - `"ai"`: let AI automatically select relevant sources based on context
1358
+ * - `"all"`: use all enabled log sources
1359
+ * - `{ "profile_id": "..." }`: use a specific profile
1360
+ */
1338
1361
  logSourceSelection?: LogSourceSelection;
1339
1362
  /**
1340
1363
  * Whether to automatically include a `log_watch` step before verification.
@@ -1690,6 +1713,9 @@ interface ApiAssertion {
1690
1713
  * Comparison operator; defaults to `equals` on the consumer side.
1691
1714
  */
1692
1715
  operator?: ApiAssertionOperator | null;
1716
+ /**
1717
+ * Kind of assertion.
1718
+ */
1693
1719
  type: ApiAssertionType;
1694
1720
  }
1695
1721
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qontinui/shared-types",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Shared TypeScript types for the Qontinui ecosystem",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -106,11 +106,11 @@
106
106
  "scripts": {
107
107
  "build": "tsup",
108
108
  "dev": "tsup --watch",
109
- "typecheck": "tsc --noEmit",
109
+ "typecheck": "tsc --noEmit && tsc -p tsconfig.generated.json",
110
110
  "test": "vitest run",
111
111
  "test:watch": "vitest",
112
112
  "clean": "rimraf dist",
113
- "prepublishOnly": "npm run build"
113
+ "prepublishOnly": "npm run typecheck && npm run build"
114
114
  },
115
115
  "keywords": [
116
116
  "qontinui",
@@ -57,6 +57,9 @@ export interface AccessibilityNode {
57
57
  * Reference ID like `@e1`, `@e2` for AI interaction.
58
58
  */
59
59
  ref: string;
60
+ /**
61
+ * Accessibility role (button, textbox, etc.).
62
+ */
60
63
  role: AccessibilityRole;
61
64
  /**
62
65
  * Current state flags.
@@ -18,11 +18,17 @@ import type { AccessibilityState } from "./AccessibilityState";
18
18
  * capture source and summary statistics.
19
19
  */
20
20
  export interface AccessibilitySnapshot {
21
+ /**
22
+ * Backend used for capture.
23
+ */
21
24
  backend: AccessibilityBackend;
22
25
  /**
23
26
  * Number of interactive nodes.
24
27
  */
25
28
  interactiveNodes: number;
29
+ /**
30
+ * Root node of the accessibility tree.
31
+ */
26
32
  root: AccessibilityNode;
27
33
  /**
28
34
  * Unix timestamp of capture.
@@ -21,6 +21,9 @@ export interface ActionExecutionCreate {
21
21
  * Human-readable action name.
22
22
  */
23
23
  actionName: string;
24
+ /**
25
+ * Kind of action.
26
+ */
24
27
  actionType: ExecutionActionType;
25
28
  /**
26
29
  * IDs of states active when the action ran.
@@ -112,6 +115,9 @@ export interface ActionExecutionCreate {
112
115
  * ISO 8601 timestamp when the action started.
113
116
  */
114
117
  startedAt: string;
118
+ /**
119
+ * Outcome of the action.
120
+ */
115
121
  status: ActionStatus;
116
122
  /**
117
123
  * Destination state ID for state-machine actions.
@@ -16,5 +16,8 @@ export interface ActionExecutionListResponse {
16
16
  * Page of matching actions.
17
17
  */
18
18
  actions: ActionExecutionResponse[];
19
+ /**
20
+ * Pagination envelope.
21
+ */
19
22
  pagination: Pagination;
20
23
  }
@@ -15,6 +15,9 @@ export interface ActionReliabilityStats {
15
15
  * Human-readable action name.
16
16
  */
17
17
  actionName: string;
18
+ /**
19
+ * Kind of action.
20
+ */
18
21
  actionType: ExecutionActionType;
19
22
  /**
20
23
  * Mean duration in milliseconds.