@marketrix.ai/widget 3.3.237 → 3.3.239

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.
@@ -48,6 +48,60 @@ export declare const QAFlowStatusSchema: z.ZodEnum<{
48
48
  completed: "completed";
49
49
  failed: "failed";
50
50
  }>;
51
+ /**
52
+ * Simulation parent status — canonical wire vocabulary matching the
53
+ * `simulation_status` Postgres ENUM. `has_question` is intentionally absent;
54
+ * it's a per-task state surfaced as a derived `has_question` boolean.
55
+ */
56
+ export declare const SimulationStatusSchema: z.ZodEnum<{
57
+ completed: "completed";
58
+ failed: "failed";
59
+ queued: "queued";
60
+ running: "running";
61
+ creating_knowledge: "creating_knowledge";
62
+ stopped: "stopped";
63
+ }>;
64
+ /**
65
+ * Per-task status within a simulation. Matches the `simulation_task_status`
66
+ * Postgres ENUM and the SimulationTaskStatus proto enum.
67
+ */
68
+ export declare const SimulationTaskStatusSchema: z.ZodEnum<{
69
+ completed: "completed";
70
+ failed: "failed";
71
+ queued: "queued";
72
+ running: "running";
73
+ stopped: "stopped";
74
+ has_question: "has_question";
75
+ }>;
76
+ /**
77
+ * Mindmap generation lifecycle status on a simulation row. Values written by
78
+ * `mindmapDispatch.ts` and `simulationHooks.ts`; relayed on the
79
+ * `simulation/mindmap-updated` app event.
80
+ */
81
+ export declare const MindmapStatusSchema: z.ZodEnum<{
82
+ pending: "pending";
83
+ completed: "completed";
84
+ failed: "failed";
85
+ generating: "generating";
86
+ }>;
87
+ /**
88
+ * Status carried on the `agent/updated` app event. The event has two emitter
89
+ * lineages: (1) `agentService` + `agentLearningHooks` emit an agent-entity
90
+ * status (`AgentStatusSchema`), and (2) the agentTask flow's `eventMapping`
91
+ * emits a task-status (`SimulationTaskStatusSchema`). The union captures both
92
+ * vocabularies so downstream consumers get exhaustiveness rather than `string`.
93
+ */
94
+ export declare const AgentUpdatedStatusSchema: z.ZodEnum<{
95
+ active: "active";
96
+ learning: "learning";
97
+ error: "error";
98
+ completed: "completed";
99
+ failed: "failed";
100
+ queued: "queued";
101
+ running: "running";
102
+ stopped: "stopped";
103
+ has_question: "has_question";
104
+ }>;
51
105
  export declare const ChatRoleSchema: z.ZodEnum<{
52
106
  user: "user";
53
107
  agent: "agent";
@@ -733,11 +787,11 @@ export type QAEvaluation = z.infer<typeof QAEvaluationSchema>;
733
787
  */
734
788
  export declare const QATaskStatusSchema: z.ZodEnum<{
735
789
  failed: "failed";
736
- passed: "passed";
737
- needs_healing: "needs_healing";
738
790
  queued: "queued";
739
791
  running: "running";
740
792
  stopped: "stopped";
793
+ passed: "passed";
794
+ needs_healing: "needs_healing";
741
795
  }>;
742
796
  export type QATaskStatusValue = z.infer<typeof QATaskStatusSchema>;
743
797
  /**
@@ -757,11 +811,11 @@ export declare const QARunTaskEntitySchema: z.ZodObject<{
757
811
  simulation_task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
812
  status: z.ZodEnum<{
759
813
  failed: "failed";
760
- passed: "passed";
761
- needs_healing: "needs_healing";
762
814
  queued: "queued";
763
815
  running: "running";
764
816
  stopped: "stopped";
817
+ passed: "passed";
818
+ needs_healing: "needs_healing";
765
819
  }>;
766
820
  verdict: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
821
  proposed_steps: z.ZodDefault<z.ZodArray<z.ZodString>>;
@@ -1137,8 +1191,8 @@ export declare const SimulationStepSchema: z.ZodObject<{
1137
1191
  status: z.ZodDefault<z.ZodEnum<{
1138
1192
  completed: "completed";
1139
1193
  failed: "failed";
1140
- has_question: "has_question";
1141
1194
  running: "running";
1195
+ has_question: "has_question";
1142
1196
  }>>;
1143
1197
  started_at: z.ZodString;
1144
1198
  ended_at: z.ZodString;
@@ -1161,7 +1215,14 @@ export declare const SimulationStepSummarySchema: z.ZodObject<{
1161
1215
  * One row in the simulation_progress table.
1162
1216
  */
1163
1217
  export declare const SimulationProgressEntrySchema: z.ZodObject<{
1164
- status: z.ZodString;
1218
+ status: z.ZodEnum<{
1219
+ completed: "completed";
1220
+ failed: "failed";
1221
+ queued: "queued";
1222
+ running: "running";
1223
+ stopped: "stopped";
1224
+ has_question: "has_question";
1225
+ }>;
1165
1226
  status_message: z.ZodNullable<z.ZodString>;
1166
1227
  task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1167
1228
  created_at: z.ZodCoercedDate<unknown>;
@@ -1185,10 +1246,10 @@ export declare const SimulationTaskEntrySchema: z.ZodObject<{
1185
1246
  status: z.ZodEnum<{
1186
1247
  pending: "pending";
1187
1248
  failed: "failed";
1188
- has_question: "has_question";
1189
- passed: "passed";
1190
1249
  running: "running";
1191
1250
  stopped: "stopped";
1251
+ has_question: "has_question";
1252
+ passed: "passed";
1192
1253
  skipped: "skipped";
1193
1254
  }>;
1194
1255
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1213,7 +1274,14 @@ export declare const SimulationEntitySchema: z.ZodObject<{
1213
1274
  agent_id: z.ZodNumber;
1214
1275
  job_id: z.ZodString;
1215
1276
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
- status: z.ZodString;
1277
+ status: z.ZodEnum<{
1278
+ completed: "completed";
1279
+ failed: "failed";
1280
+ queued: "queued";
1281
+ running: "running";
1282
+ creating_knowledge: "creating_knowledge";
1283
+ stopped: "stopped";
1284
+ }>;
1217
1285
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1218
1286
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
1287
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1232,10 +1300,10 @@ export declare const SimulationEntitySchema: z.ZodObject<{
1232
1300
  status: z.ZodEnum<{
1233
1301
  pending: "pending";
1234
1302
  failed: "failed";
1235
- has_question: "has_question";
1236
- passed: "passed";
1237
1303
  running: "running";
1238
1304
  stopped: "stopped";
1305
+ has_question: "has_question";
1306
+ passed: "passed";
1239
1307
  skipped: "skipped";
1240
1308
  }>;
1241
1309
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1256,7 +1324,12 @@ export declare const SimulationEntitySchema: z.ZodObject<{
1256
1324
  agent_name: z.ZodString;
1257
1325
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1258
1326
  }, z.core.$strip>>>;
1259
- mindmap_status: z.ZodOptional<z.ZodString>;
1327
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
1328
+ pending: "pending";
1329
+ completed: "completed";
1330
+ failed: "failed";
1331
+ generating: "generating";
1332
+ }>>;
1260
1333
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
1261
1334
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
1262
1335
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1270,12 +1343,20 @@ export declare const SimulationEntitySchema: z.ZodObject<{
1270
1343
  * (full SimulationTaskEntry array) and `source_metadata` (free-form bag).
1271
1344
  */
1272
1345
  export declare const SimulationListEntitySchema: z.ZodObject<{
1346
+ has_question: z.ZodOptional<z.ZodBoolean>;
1273
1347
  id: z.ZodOptional<z.ZodNumber>;
1274
1348
  created_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1275
1349
  updated_at: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1276
1350
  application_id: z.ZodNumber;
1277
1351
  agent_id: z.ZodNumber;
1278
- status: z.ZodString;
1352
+ status: z.ZodEnum<{
1353
+ completed: "completed";
1354
+ failed: "failed";
1355
+ queued: "queued";
1356
+ running: "running";
1357
+ creating_knowledge: "creating_knowledge";
1358
+ stopped: "stopped";
1359
+ }>;
1279
1360
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1280
1361
  agent_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1281
1362
  source: z.ZodOptional<z.ZodEnum<{
@@ -1288,13 +1369,17 @@ export declare const SimulationListEntitySchema: z.ZodObject<{
1288
1369
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1289
1370
  }, z.core.$strip>>>;
1290
1371
  pinned: z.ZodOptional<z.ZodBoolean>;
1291
- has_question: z.ZodOptional<z.ZodBoolean>;
1292
1372
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1293
1373
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1294
1374
  job_id: z.ZodString;
1295
1375
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
1376
  graph_index_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
- mindmap_status: z.ZodOptional<z.ZodString>;
1377
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
1378
+ pending: "pending";
1379
+ completed: "completed";
1380
+ failed: "failed";
1381
+ generating: "generating";
1382
+ }>>;
1298
1383
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
1299
1384
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
1300
1385
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1318,10 +1403,18 @@ export declare const SkillInvocationRequestSchema: z.ZodObject<{
1318
1403
  }, z.core.$strip>;
1319
1404
  export type SkillInvocationRequest = z.infer<typeof SkillInvocationRequestSchema>;
1320
1405
  export declare const SimulationCreateSchema: z.ZodObject<{
1406
+ has_question: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1321
1407
  id: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1322
1408
  created_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1323
1409
  updated_at: z.ZodOptional<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
1324
- status: z.ZodOptional<z.ZodString>;
1410
+ status: z.ZodOptional<z.ZodEnum<{
1411
+ completed: "completed";
1412
+ failed: "failed";
1413
+ queued: "queued";
1414
+ running: "running";
1415
+ creating_knowledge: "creating_knowledge";
1416
+ stopped: "stopped";
1417
+ }>>;
1325
1418
  path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1326
1419
  agent_name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1327
1420
  source: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
@@ -1335,12 +1428,16 @@ export declare const SimulationCreateSchema: z.ZodObject<{
1335
1428
  }, z.core.$strip>>>>;
1336
1429
  pinned: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1337
1430
  source_metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
1338
- has_question: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1339
1431
  status_message: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1340
1432
  job_id: z.ZodOptional<z.ZodString>;
1341
1433
  browser_session_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1342
1434
  graph_index_id: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1343
- mindmap_status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1435
+ mindmap_status: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1436
+ pending: "pending";
1437
+ completed: "completed";
1438
+ failed: "failed";
1439
+ generating: "generating";
1440
+ }>>>;
1344
1441
  mindmap_steps_processed: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1345
1442
  mindmap_steps_total: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
1346
1443
  mindmap_error: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -1359,7 +1456,14 @@ export declare const SimulationCreateSchema: z.ZodObject<{
1359
1456
  }, z.core.$strip>;
1360
1457
  export declare const SimulationUpdateSchema: z.ZodObject<{
1361
1458
  job_id: z.ZodOptional<z.ZodString>;
1362
- status: z.ZodOptional<z.ZodString>;
1459
+ status: z.ZodOptional<z.ZodEnum<{
1460
+ completed: "completed";
1461
+ failed: "failed";
1462
+ queued: "queued";
1463
+ running: "running";
1464
+ creating_knowledge: "creating_knowledge";
1465
+ stopped: "stopped";
1466
+ }>>;
1363
1467
  status_message: z.ZodOptional<z.ZodString>;
1364
1468
  pinned: z.ZodOptional<z.ZodBoolean>;
1365
1469
  graph_index_id: z.ZodOptional<z.ZodString>;
@@ -1494,7 +1598,14 @@ export declare const SessionUpsertSchema: z.ZodObject<{
1494
1598
  export declare const SimulationProgressEntitySchema: z.ZodObject<{
1495
1599
  id: z.ZodNumber;
1496
1600
  simulation_id: z.ZodNumber;
1497
- status: z.ZodString;
1601
+ status: z.ZodEnum<{
1602
+ completed: "completed";
1603
+ failed: "failed";
1604
+ queued: "queued";
1605
+ running: "running";
1606
+ stopped: "stopped";
1607
+ has_question: "has_question";
1608
+ }>;
1498
1609
  status_message: z.ZodNullable<z.ZodString>;
1499
1610
  skill: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1500
1611
  screenshot_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1683,7 +1794,14 @@ export declare const AgentEntitySchema: z.ZodObject<{
1683
1794
  agent_id: z.ZodNumber;
1684
1795
  job_id: z.ZodString;
1685
1796
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1686
- status: z.ZodString;
1797
+ status: z.ZodEnum<{
1798
+ completed: "completed";
1799
+ failed: "failed";
1800
+ queued: "queued";
1801
+ running: "running";
1802
+ creating_knowledge: "creating_knowledge";
1803
+ stopped: "stopped";
1804
+ }>;
1687
1805
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1688
1806
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1689
1807
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1702,10 +1820,10 @@ export declare const AgentEntitySchema: z.ZodObject<{
1702
1820
  status: z.ZodEnum<{
1703
1821
  pending: "pending";
1704
1822
  failed: "failed";
1705
- has_question: "has_question";
1706
- passed: "passed";
1707
1823
  running: "running";
1708
1824
  stopped: "stopped";
1825
+ has_question: "has_question";
1826
+ passed: "passed";
1709
1827
  skipped: "skipped";
1710
1828
  }>;
1711
1829
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1726,7 +1844,12 @@ export declare const AgentEntitySchema: z.ZodObject<{
1726
1844
  agent_name: z.ZodString;
1727
1845
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1728
1846
  }, z.core.$strip>>>;
1729
- mindmap_status: z.ZodOptional<z.ZodString>;
1847
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
1848
+ pending: "pending";
1849
+ completed: "completed";
1850
+ failed: "failed";
1851
+ generating: "generating";
1852
+ }>>;
1730
1853
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
1731
1854
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
1732
1855
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1834,7 +1957,14 @@ export declare const AgentCreateSchema: z.ZodObject<{
1834
1957
  agent_id: z.ZodNumber;
1835
1958
  job_id: z.ZodString;
1836
1959
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1837
- status: z.ZodString;
1960
+ status: z.ZodEnum<{
1961
+ completed: "completed";
1962
+ failed: "failed";
1963
+ queued: "queued";
1964
+ running: "running";
1965
+ creating_knowledge: "creating_knowledge";
1966
+ stopped: "stopped";
1967
+ }>;
1838
1968
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1839
1969
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1840
1970
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1853,10 +1983,10 @@ export declare const AgentCreateSchema: z.ZodObject<{
1853
1983
  status: z.ZodEnum<{
1854
1984
  pending: "pending";
1855
1985
  failed: "failed";
1856
- has_question: "has_question";
1857
- passed: "passed";
1858
1986
  running: "running";
1859
1987
  stopped: "stopped";
1988
+ has_question: "has_question";
1989
+ passed: "passed";
1860
1990
  skipped: "skipped";
1861
1991
  }>;
1862
1992
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1877,7 +2007,12 @@ export declare const AgentCreateSchema: z.ZodObject<{
1877
2007
  agent_name: z.ZodString;
1878
2008
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1879
2009
  }, z.core.$strip>>>;
1880
- mindmap_status: z.ZodOptional<z.ZodString>;
2010
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
2011
+ pending: "pending";
2012
+ completed: "completed";
2013
+ failed: "failed";
2014
+ generating: "generating";
2015
+ }>>;
1881
2016
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
1882
2017
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
1883
2018
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2014,7 +2149,14 @@ export declare const AgentUpdateSchema: z.ZodObject<{
2014
2149
  agent_id: z.ZodNumber;
2015
2150
  job_id: z.ZodString;
2016
2151
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2017
- status: z.ZodString;
2152
+ status: z.ZodEnum<{
2153
+ completed: "completed";
2154
+ failed: "failed";
2155
+ queued: "queued";
2156
+ running: "running";
2157
+ creating_knowledge: "creating_knowledge";
2158
+ stopped: "stopped";
2159
+ }>;
2018
2160
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
2161
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2020
2162
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2033,10 +2175,10 @@ export declare const AgentUpdateSchema: z.ZodObject<{
2033
2175
  status: z.ZodEnum<{
2034
2176
  pending: "pending";
2035
2177
  failed: "failed";
2036
- has_question: "has_question";
2037
- passed: "passed";
2038
2178
  running: "running";
2039
2179
  stopped: "stopped";
2180
+ has_question: "has_question";
2181
+ passed: "passed";
2040
2182
  skipped: "skipped";
2041
2183
  }>;
2042
2184
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2057,7 +2199,12 @@ export declare const AgentUpdateSchema: z.ZodObject<{
2057
2199
  agent_name: z.ZodString;
2058
2200
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2059
2201
  }, z.core.$strip>>>;
2060
- mindmap_status: z.ZodOptional<z.ZodString>;
2202
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
2203
+ pending: "pending";
2204
+ completed: "completed";
2205
+ failed: "failed";
2206
+ generating: "generating";
2207
+ }>>;
2061
2208
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
2062
2209
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
2063
2210
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2298,7 +2445,14 @@ export declare const AgentSimulationIndexResponseSchema: z.ZodObject<{
2298
2445
  agent_id: z.ZodNumber;
2299
2446
  job_id: z.ZodString;
2300
2447
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2301
- status: z.ZodString;
2448
+ status: z.ZodEnum<{
2449
+ completed: "completed";
2450
+ failed: "failed";
2451
+ queued: "queued";
2452
+ running: "running";
2453
+ creating_knowledge: "creating_knowledge";
2454
+ stopped: "stopped";
2455
+ }>;
2302
2456
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2303
2457
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2304
2458
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2317,10 +2471,10 @@ export declare const AgentSimulationIndexResponseSchema: z.ZodObject<{
2317
2471
  status: z.ZodEnum<{
2318
2472
  pending: "pending";
2319
2473
  failed: "failed";
2320
- has_question: "has_question";
2321
- passed: "passed";
2322
2474
  running: "running";
2323
2475
  stopped: "stopped";
2476
+ has_question: "has_question";
2477
+ passed: "passed";
2324
2478
  skipped: "skipped";
2325
2479
  }>;
2326
2480
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2341,7 +2495,12 @@ export declare const AgentSimulationIndexResponseSchema: z.ZodObject<{
2341
2495
  agent_name: z.ZodString;
2342
2496
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2343
2497
  }, z.core.$strip>>>;
2344
- mindmap_status: z.ZodOptional<z.ZodString>;
2498
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
2499
+ pending: "pending";
2500
+ completed: "completed";
2501
+ failed: "failed";
2502
+ generating: "generating";
2503
+ }>>;
2345
2504
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
2346
2505
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
2347
2506
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2779,7 +2938,14 @@ export declare const WidgetInfoSchema: z.ZodObject<{
2779
2938
  agent_id: z.ZodNumber;
2780
2939
  job_id: z.ZodString;
2781
2940
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2782
- status: z.ZodString;
2941
+ status: z.ZodEnum<{
2942
+ completed: "completed";
2943
+ failed: "failed";
2944
+ queued: "queued";
2945
+ running: "running";
2946
+ creating_knowledge: "creating_knowledge";
2947
+ stopped: "stopped";
2948
+ }>;
2783
2949
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2784
2950
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2785
2951
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2798,10 +2964,10 @@ export declare const WidgetInfoSchema: z.ZodObject<{
2798
2964
  status: z.ZodEnum<{
2799
2965
  pending: "pending";
2800
2966
  failed: "failed";
2801
- has_question: "has_question";
2802
- passed: "passed";
2803
2967
  running: "running";
2804
2968
  stopped: "stopped";
2969
+ has_question: "has_question";
2970
+ passed: "passed";
2805
2971
  skipped: "skipped";
2806
2972
  }>;
2807
2973
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2822,7 +2988,12 @@ export declare const WidgetInfoSchema: z.ZodObject<{
2822
2988
  agent_name: z.ZodString;
2823
2989
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2824
2990
  }, z.core.$strip>>>;
2825
- mindmap_status: z.ZodOptional<z.ZodString>;
2991
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
2992
+ pending: "pending";
2993
+ completed: "completed";
2994
+ failed: "failed";
2995
+ generating: "generating";
2996
+ }>>;
2826
2997
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
2827
2998
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
2828
2999
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3012,7 +3183,14 @@ export declare const WidgetWithAgentSchema: z.ZodObject<{
3012
3183
  agent_id: z.ZodNumber;
3013
3184
  job_id: z.ZodString;
3014
3185
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3015
- status: z.ZodString;
3186
+ status: z.ZodEnum<{
3187
+ completed: "completed";
3188
+ failed: "failed";
3189
+ queued: "queued";
3190
+ running: "running";
3191
+ creating_knowledge: "creating_knowledge";
3192
+ stopped: "stopped";
3193
+ }>;
3016
3194
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3017
3195
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3018
3196
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3031,10 +3209,10 @@ export declare const WidgetWithAgentSchema: z.ZodObject<{
3031
3209
  status: z.ZodEnum<{
3032
3210
  pending: "pending";
3033
3211
  failed: "failed";
3034
- has_question: "has_question";
3035
- passed: "passed";
3036
3212
  running: "running";
3037
3213
  stopped: "stopped";
3214
+ has_question: "has_question";
3215
+ passed: "passed";
3038
3216
  skipped: "skipped";
3039
3217
  }>;
3040
3218
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3055,7 +3233,12 @@ export declare const WidgetWithAgentSchema: z.ZodObject<{
3055
3233
  agent_name: z.ZodString;
3056
3234
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3057
3235
  }, z.core.$strip>>>;
3058
- mindmap_status: z.ZodOptional<z.ZodString>;
3236
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
3237
+ pending: "pending";
3238
+ completed: "completed";
3239
+ failed: "failed";
3240
+ generating: "generating";
3241
+ }>>;
3059
3242
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
3060
3243
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
3061
3244
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3260,7 +3443,14 @@ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
3260
3443
  agent_id: z.ZodNumber;
3261
3444
  job_id: z.ZodString;
3262
3445
  browser_session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3263
- status: z.ZodString;
3446
+ status: z.ZodEnum<{
3447
+ completed: "completed";
3448
+ failed: "failed";
3449
+ queued: "queued";
3450
+ running: "running";
3451
+ creating_knowledge: "creating_knowledge";
3452
+ stopped: "stopped";
3453
+ }>;
3264
3454
  status_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3265
3455
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3266
3456
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3279,10 +3469,10 @@ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
3279
3469
  status: z.ZodEnum<{
3280
3470
  pending: "pending";
3281
3471
  failed: "failed";
3282
- has_question: "has_question";
3283
- passed: "passed";
3284
3472
  running: "running";
3285
3473
  stopped: "stopped";
3474
+ has_question: "has_question";
3475
+ passed: "passed";
3286
3476
  skipped: "skipped";
3287
3477
  }>;
3288
3478
  error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3303,7 +3493,12 @@ export declare const ApplicationWithWidgetsSchema: z.ZodObject<{
3303
3493
  agent_name: z.ZodString;
3304
3494
  image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3305
3495
  }, z.core.$strip>>>;
3306
- mindmap_status: z.ZodOptional<z.ZodString>;
3496
+ mindmap_status: z.ZodOptional<z.ZodEnum<{
3497
+ pending: "pending";
3498
+ completed: "completed";
3499
+ failed: "failed";
3500
+ generating: "generating";
3501
+ }>>;
3307
3502
  mindmap_steps_processed: z.ZodOptional<z.ZodNumber>;
3308
3503
  mindmap_steps_total: z.ZodOptional<z.ZodNumber>;
3309
3504
  mindmap_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -3517,9 +3712,9 @@ export declare const WidgetEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3517
3712
  status: z.ZodEnum<{
3518
3713
  completed: "completed";
3519
3714
  failed: "failed";
3520
- has_question: "has_question";
3521
3715
  running: "running";
3522
3716
  stopped: "stopped";
3717
+ has_question: "has_question";
3523
3718
  }>;
3524
3719
  message: z.ZodOptional<z.ZodString>;
3525
3720
  task_id: z.ZodOptional<z.ZodString>;
@@ -3590,20 +3785,8 @@ export declare const AppEventScopeSchema: z.ZodEnum<{
3590
3785
  automations: "automations";
3591
3786
  notifications: "notifications";
3592
3787
  }>;
3593
- /**
3594
- * Simulation status — the contract value emitted by the API on
3595
- * `simulation/updated` events and returned in oRPC simulation payloads.
3596
- * 7-value canonical wire vocabulary matching the SimulationStatus proto enum.
3597
- */
3598
- export declare const SimulationStatusSchema: z.ZodEnum<{
3599
- completed: "completed";
3600
- failed: "failed";
3601
- queued: "queued";
3602
- running: "running";
3603
- stopped: "stopped";
3604
- creating_knowledge: "creating_knowledge";
3605
- }>;
3606
3788
  export type SimulationStatus = z.infer<typeof SimulationStatusSchema>;
3789
+ export type SimulationTaskStatus = z.infer<typeof SimulationTaskStatusSchema>;
3607
3790
  /**
3608
3791
  * QA run derived status — set by `deriveQARunStats` based on aggregated
3609
3792
  * task states. Emitted by the API on `qa-run/updated` events and returned
@@ -3629,8 +3812,8 @@ export declare const AppEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3629
3812
  failed: "failed";
3630
3813
  queued: "queued";
3631
3814
  running: "running";
3632
- stopped: "stopped";
3633
3815
  creating_knowledge: "creating_knowledge";
3816
+ stopped: "stopped";
3634
3817
  }>;
3635
3818
  has_question: z.ZodOptional<z.ZodBoolean>;
3636
3819
  step_label: z.ZodOptional<z.ZodString>;
@@ -3686,20 +3869,41 @@ export declare const AppEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3686
3869
  type: z.ZodLiteral<"simulation/mindmap-updated">;
3687
3870
  simulation_id: z.ZodNumber;
3688
3871
  application_id: z.ZodNumber;
3689
- mindmap_status: z.ZodString;
3872
+ mindmap_status: z.ZodEnum<{
3873
+ pending: "pending";
3874
+ completed: "completed";
3875
+ failed: "failed";
3876
+ generating: "generating";
3877
+ }>;
3690
3878
  steps_processed: z.ZodNumber;
3691
3879
  steps_total: z.ZodNumber;
3692
3880
  }, z.core.$strip>, z.ZodObject<{
3693
3881
  type: z.ZodLiteral<"qa-run/completed">;
3694
3882
  run_id: z.ZodNumber;
3695
- status: z.ZodString;
3883
+ status: z.ZodEnum<{
3884
+ pending: "pending";
3885
+ completed: "completed";
3886
+ failed: "failed";
3887
+ running: "running";
3888
+ stopped: "stopped";
3889
+ }>;
3696
3890
  }, z.core.$strip>, z.ZodObject<{
3697
3891
  type: z.ZodLiteral<"agent/updated">;
3698
3892
  agent_id: z.ZodOptional<z.ZodNumber>;
3699
3893
  context_id: z.ZodOptional<z.ZodString>;
3700
3894
  task_id: z.ZodOptional<z.ZodString>;
3701
3895
  application_id: z.ZodOptional<z.ZodNumber>;
3702
- status: z.ZodString;
3896
+ status: z.ZodEnum<{
3897
+ active: "active";
3898
+ learning: "learning";
3899
+ error: "error";
3900
+ completed: "completed";
3901
+ failed: "failed";
3902
+ queued: "queued";
3903
+ running: "running";
3904
+ stopped: "stopped";
3905
+ has_question: "has_question";
3906
+ }>;
3703
3907
  error: z.ZodOptional<z.ZodString>;
3704
3908
  }, z.core.$strip>, z.ZodObject<{
3705
3909
  type: z.ZodLiteral<"agent/created">;
@@ -3713,7 +3917,13 @@ export declare const AppEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3713
3917
  type: z.ZodLiteral<"qa-document/updated">;
3714
3918
  document_id: z.ZodNumber;
3715
3919
  application_id: z.ZodNumber;
3716
- status: z.ZodString;
3920
+ status: z.ZodEnum<{
3921
+ pending: "pending";
3922
+ processing: "processing";
3923
+ waiting_review: "waiting_review";
3924
+ completed: "completed";
3925
+ failed: "failed";
3926
+ }>;
3717
3927
  step_label: z.ZodOptional<z.ZodString>;
3718
3928
  }, z.core.$strip>, z.ZodObject<{
3719
3929
  type: z.ZodLiteral<"qa-run/updated">;
@@ -3735,7 +3945,11 @@ export declare const AppEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3735
3945
  run_id: z.ZodNumber;
3736
3946
  document_id: z.ZodNumber;
3737
3947
  application_id: z.ZodNumber;
3738
- status: z.ZodString;
3948
+ status: z.ZodEnum<{
3949
+ failed: "failed";
3950
+ passed: "passed";
3951
+ needs_healing: "needs_healing";
3952
+ }>;
3739
3953
  }, z.core.$strip>, z.ZodObject<{
3740
3954
  type: z.ZodLiteral<"qa-run/report-ready">;
3741
3955
  run_id: z.ZodNumber;
@@ -3748,7 +3962,12 @@ export declare const AppEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3748
3962
  type: z.ZodLiteral<"user/updated">;
3749
3963
  user_id: z.ZodNumber;
3750
3964
  workspace_id: z.ZodNumber;
3751
- status: z.ZodString;
3965
+ status: z.ZodEnum<{
3966
+ created: "created";
3967
+ active: "active";
3968
+ suspended: "suspended";
3969
+ pending_approval: "pending_approval";
3970
+ }>;
3752
3971
  }, z.core.$strip>, z.ZodObject<{
3753
3972
  type: z.ZodLiteral<"job/progress">;
3754
3973
  job_id: z.ZodString;
@@ -6056,7 +6275,14 @@ export declare const SuggestedSimulationSchema: z.ZodObject<{
6056
6275
  selected: z.ZodBoolean;
6057
6276
  simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6058
6277
  task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6059
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6278
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6279
+ completed: "completed";
6280
+ failed: "failed";
6281
+ queued: "queued";
6282
+ running: "running";
6283
+ creating_knowledge: "creating_knowledge";
6284
+ stopped: "stopped";
6285
+ }>>>;
6060
6286
  }, z.core.$strip>;
6061
6287
  export declare const ReactionRunEntitySchema: z.ZodObject<{
6062
6288
  id: z.ZodNumber;
@@ -6076,7 +6302,14 @@ export declare const ReactionRunEntitySchema: z.ZodObject<{
6076
6302
  selected: z.ZodBoolean;
6077
6303
  simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6078
6304
  task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6079
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6305
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6306
+ completed: "completed";
6307
+ failed: "failed";
6308
+ queued: "queued";
6309
+ running: "running";
6310
+ creating_knowledge: "creating_knowledge";
6311
+ stopped: "stopped";
6312
+ }>>>;
6080
6313
  }, z.core.$strip>>;
6081
6314
  persona_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6082
6315
  results: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -6172,7 +6405,14 @@ export declare const ReactionEntitySchema: z.ZodObject<{
6172
6405
  selected: z.ZodBoolean;
6173
6406
  simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6174
6407
  task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6175
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6408
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6409
+ completed: "completed";
6410
+ failed: "failed";
6411
+ queued: "queued";
6412
+ running: "running";
6413
+ creating_knowledge: "creating_knowledge";
6414
+ stopped: "stopped";
6415
+ }>>>;
6176
6416
  }, z.core.$strip>>;
6177
6417
  persona_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
6178
6418
  results: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -6261,7 +6501,14 @@ export declare const ChatContextResponseSchema: z.ZodObject<{
6261
6501
  selected: z.ZodBoolean;
6262
6502
  simulation_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6263
6503
  task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6264
- status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6504
+ status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
6505
+ completed: "completed";
6506
+ failed: "failed";
6507
+ queued: "queued";
6508
+ running: "running";
6509
+ creating_knowledge: "creating_knowledge";
6510
+ stopped: "stopped";
6511
+ }>>>;
6265
6512
  }, z.core.$strip>>;
6266
6513
  }, z.core.$strip>;
6267
6514
  export declare const SlackCommandLogStatusSchema: z.ZodEnum<{