@qawolf/api-contracts 0.130.0 → 0.133.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 (113) hide show
  1. package/dist/v1/activity/wait.d.ts +2 -2
  2. package/dist/v1/agent/get.d.ts +1 -1
  3. package/dist/v1/agent/send.d.ts +1 -1
  4. package/dist/v1/agent/status.d.ts +1 -1
  5. package/dist/v1/attempt/get.d.ts +14 -14
  6. package/dist/v1/deployment/verdict.d.ts +7 -7
  7. package/dist/v1/deployment/verdictParts.d.ts +2 -2
  8. package/dist/v1/environment/find.d.ts +2 -0
  9. package/dist/v1/environment/find.d.ts.map +1 -1
  10. package/dist/v1/environment/find.js +14 -1
  11. package/dist/v1/environment/find.js.map +1 -1
  12. package/dist/v1/environment/promote.d.ts +45 -0
  13. package/dist/v1/environment/promote.d.ts.map +1 -1
  14. package/dist/v1/flow/getHistory.d.ts +1 -1
  15. package/dist/v1/ids.d.ts +2 -0
  16. package/dist/v1/ids.d.ts.map +1 -1
  17. package/dist/v1/ids.js +4 -0
  18. package/dist/v1/ids.js.map +1 -1
  19. package/dist/v1/index.d.ts +1236 -247
  20. package/dist/v1/index.d.ts.map +1 -1
  21. package/dist/v1/index.js +3 -0
  22. package/dist/v1/index.js.map +1 -1
  23. package/dist/v1/investigation/get.d.ts +1 -1
  24. package/dist/v1/investigation/index.d.ts +1 -1
  25. package/dist/v1/issue/comment.d.ts +3 -0
  26. package/dist/v1/issue/comment.d.ts.map +1 -1
  27. package/dist/v1/issue/commentResource.d.ts +3 -0
  28. package/dist/v1/issue/commentResource.d.ts.map +1 -1
  29. package/dist/v1/issue/commentResource.js +8 -1
  30. package/dist/v1/issue/commentResource.js.map +1 -1
  31. package/dist/v1/issue/contracts.d.ts +6 -74
  32. package/dist/v1/issue/contracts.d.ts.map +1 -1
  33. package/dist/v1/issue/contracts.js +0 -2
  34. package/dist/v1/issue/contracts.js.map +1 -1
  35. package/dist/v1/issue/listComments.d.ts +3 -0
  36. package/dist/v1/issue/listComments.d.ts.map +1 -1
  37. package/dist/v1/narratedRecording/get.d.ts +1 -1
  38. package/dist/v1/promotion/decision.d.ts +51 -0
  39. package/dist/v1/promotion/decision.d.ts.map +1 -0
  40. package/dist/v1/promotion/decision.js +32 -0
  41. package/dist/v1/promotion/decision.js.map +1 -0
  42. package/dist/v1/promotion/find.d.ts +45 -0
  43. package/dist/v1/promotion/find.d.ts.map +1 -1
  44. package/dist/v1/promotion/get.d.ts +45 -0
  45. package/dist/v1/promotion/get.d.ts.map +1 -1
  46. package/dist/v1/promotion/index.d.ts +271 -1
  47. package/dist/v1/promotion/index.d.ts.map +1 -1
  48. package/dist/v1/promotion/index.js +3 -0
  49. package/dist/v1/promotion/index.js.map +1 -1
  50. package/dist/v1/promotion/needsPerson.d.ts +25 -0
  51. package/dist/v1/promotion/needsPerson.d.ts.map +1 -0
  52. package/dist/v1/promotion/needsPerson.js +20 -0
  53. package/dist/v1/promotion/needsPerson.js.map +1 -0
  54. package/dist/v1/promotion/reportDecision.d.ts +142 -0
  55. package/dist/v1/promotion/reportDecision.d.ts.map +1 -0
  56. package/dist/v1/promotion/reportDecision.js +72 -0
  57. package/dist/v1/promotion/reportDecision.js.map +1 -0
  58. package/dist/v1/promotion/resolve.d.ts +46 -1
  59. package/dist/v1/promotion/resolve.d.ts.map +1 -1
  60. package/dist/v1/promotion/resolve.js +1 -1
  61. package/dist/v1/promotion/resolve.js.map +1 -1
  62. package/dist/v1/promotion/resource.d.ts +45 -0
  63. package/dist/v1/promotion/resource.d.ts.map +1 -1
  64. package/dist/v1/promotion/resource.js +9 -0
  65. package/dist/v1/promotion/resource.js.map +1 -1
  66. package/dist/v1/promotion/validationRun.d.ts +2 -0
  67. package/dist/v1/promotion/validationRun.d.ts.map +1 -1
  68. package/dist/v1/promotion/validationRun.js +2 -2
  69. package/dist/v1/promotion/validationRun.js.map +1 -1
  70. package/dist/v1/run/alertNotifications.d.ts +28 -0
  71. package/dist/v1/run/alertNotifications.d.ts.map +1 -0
  72. package/dist/v1/run/alertNotifications.js +33 -0
  73. package/dist/v1/run/alertNotifications.js.map +1 -0
  74. package/dist/v1/run/find.d.ts +1 -1
  75. package/dist/v1/run/get.d.ts +16 -3
  76. package/dist/v1/run/get.d.ts.map +1 -1
  77. package/dist/v1/run/get.js +3 -1
  78. package/dist/v1/run/get.js.map +1 -1
  79. package/dist/v1/run/index.d.ts +1 -0
  80. package/dist/v1/run/index.d.ts.map +1 -1
  81. package/dist/v1/run/index.js +1 -1
  82. package/dist/v1/run/index.js.map +1 -1
  83. package/dist/v1/run/summary.d.ts +1 -1
  84. package/dist/v1/runEventsWebhook/index.d.ts +10 -10
  85. package/dist/v1/runner/journal.d.ts +1 -1
  86. package/dist/v1/runner/journal.d.ts.map +1 -1
  87. package/dist/v1/runner/journal.js +1 -0
  88. package/dist/v1/runner/journal.js.map +1 -1
  89. package/dist/v1/suggestion/decide.d.ts +90 -0
  90. package/dist/v1/suggestion/decide.d.ts.map +1 -0
  91. package/dist/v1/suggestion/decide.js +35 -0
  92. package/dist/v1/suggestion/decide.js.map +1 -0
  93. package/dist/v1/suggestion/find.d.ts +87 -0
  94. package/dist/v1/suggestion/find.d.ts.map +1 -0
  95. package/dist/v1/suggestion/find.js +40 -0
  96. package/dist/v1/suggestion/find.js.map +1 -0
  97. package/dist/v1/suggestion/get.d.ts +78 -0
  98. package/dist/v1/suggestion/get.d.ts.map +1 -0
  99. package/dist/v1/suggestion/get.js +27 -0
  100. package/dist/v1/suggestion/get.js.map +1 -0
  101. package/dist/v1/suggestion/index.d.ts +240 -0
  102. package/dist/v1/suggestion/index.d.ts.map +1 -0
  103. package/dist/v1/suggestion/index.js +9 -0
  104. package/dist/v1/suggestion/index.js.map +1 -0
  105. package/dist/v1/suggestion/resource.d.ts +70 -0
  106. package/dist/v1/suggestion/resource.d.ts.map +1 -0
  107. package/dist/v1/suggestion/resource.js +63 -0
  108. package/dist/v1/suggestion/resource.js.map +1 -0
  109. package/package.json +1 -1
  110. package/dist/v1/issue/decideSuggestion.d.ts +0 -82
  111. package/dist/v1/issue/decideSuggestion.d.ts.map +0 -1
  112. package/dist/v1/issue/decideSuggestion.js +0 -40
  113. package/dist/v1/issue/decideSuggestion.js.map +0 -1
@@ -12,8 +12,9 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
12
12
  * the same factory with its own strict id schemas, so the contract shape can
13
13
  * never drift between the two while validation strictness stays server-owned.
14
14
  */
15
- export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema, TriggerId extends PublicIdSchema = PublicIdSchema, DeploymentId extends PublicIdSchema = PublicIdSchema, LegacyTriggerId extends PublicIdSchema = PublicIdSchema, RunAttemptId extends PublicIdSchema = PublicIdSchema, PromotionId extends PublicIdSchema = PublicIdSchema>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId, PromotionId>, "runAttempt"> & {
15
+ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema, TriggerId extends PublicIdSchema = PublicIdSchema, DeploymentId extends PublicIdSchema = PublicIdSchema, LegacyTriggerId extends PublicIdSchema = PublicIdSchema, RunAttemptId extends PublicIdSchema = PublicIdSchema, PromotionId extends PublicIdSchema = PublicIdSchema>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId, PromotionId>, "runAttempt" | "suggestion"> & {
16
16
  runAttempt?: RunAttemptId;
17
+ suggestion?: PublicIdSchema;
17
18
  }) => {
18
19
  activity: {
19
20
  wait: {
@@ -47,10 +48,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
47
48
  needsReview: z.ZodOptional<z.ZodBoolean>;
48
49
  runId: RunId;
49
50
  status: z.ZodEnum<{
51
+ passed: "passed";
50
52
  failed: "failed";
51
53
  queued: "queued";
52
54
  running: "running";
53
- passed: "passed";
54
55
  canceled: "canceled";
55
56
  superseded: "superseded";
56
57
  "not-found": "not-found";
@@ -67,10 +68,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
67
68
  }, z.core.$strip>>;
68
69
  sessionId: ChatSessionId;
69
70
  status: z.ZodEnum<{
71
+ failed: "failed";
70
72
  working: "working";
71
73
  "waiting-for-you": "waiting-for-you";
72
74
  completed: "completed";
73
- failed: "failed";
74
75
  cancelled: "cancelled";
75
76
  "not-found": "not-found";
76
77
  }>;
@@ -113,10 +114,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
113
114
  }, z.core.$strip>>;
114
115
  sessionId: ChatSessionId;
115
116
  status: z.ZodEnum<{
117
+ failed: "failed";
116
118
  working: "working";
117
119
  "waiting-for-you": "waiting-for-you";
118
120
  completed: "completed";
119
- failed: "failed";
120
121
  cancelled: "cancelled";
121
122
  }>;
122
123
  waitSeconds: z.ZodOptional<z.ZodNumber>;
@@ -155,10 +156,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
155
156
  readonly output: z.ZodObject<{
156
157
  sessionId: ChatSessionId;
157
158
  status: z.ZodEnum<{
159
+ failed: "failed";
158
160
  working: "working";
159
161
  "waiting-for-you": "waiting-for-you";
160
162
  completed: "completed";
161
- failed: "failed";
162
163
  cancelled: "cancelled";
163
164
  }>;
164
165
  url: z.ZodURL;
@@ -186,10 +187,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
186
187
  readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
187
188
  flowId: FlowId;
188
189
  flowStatus: z.ZodEnum<{
190
+ passed: "passed";
189
191
  failed: "failed";
190
192
  queued: "queued";
191
193
  running: "running";
192
- passed: "passed";
193
194
  canceled: "canceled";
194
195
  }>;
195
196
  retryContext: z.ZodObject<{
@@ -197,8 +198,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
197
198
  next: z.ZodOptional<z.ZodObject<{
198
199
  attemptId: PublicIdSchema;
199
200
  status: z.ZodEnum<{
200
- failed: "failed";
201
201
  passed: "passed";
202
+ failed: "failed";
202
203
  canceled: "canceled";
203
204
  skipped: "skipped";
204
205
  aborted: "aborted";
@@ -207,8 +208,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
207
208
  previous: z.ZodOptional<z.ZodObject<{
208
209
  attemptId: PublicIdSchema;
209
210
  status: z.ZodEnum<{
210
- failed: "failed";
211
211
  passed: "passed";
212
+ failed: "failed";
212
213
  canceled: "canceled";
213
214
  skipped: "skipped";
214
215
  aborted: "aborted";
@@ -218,10 +219,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
218
219
  }, z.core.$strip>;
219
220
  runId: RunId;
220
221
  runStatus: z.ZodEnum<{
222
+ passed: "passed";
221
223
  failed: "failed";
222
224
  queued: "queued";
223
225
  running: "running";
224
- passed: "passed";
225
226
  canceled: "canceled";
226
227
  superseded: "superseded";
227
228
  }>;
@@ -239,8 +240,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
239
240
  startedAt: z.ZodOptional<z.ZodISODateTime>;
240
241
  kind: z.ZodLiteral<"automated">;
241
242
  status: z.ZodEnum<{
242
- failed: "failed";
243
243
  passed: "passed";
244
+ failed: "failed";
244
245
  canceled: "canceled";
245
246
  skipped: "skipped";
246
247
  aborted: "aborted";
@@ -270,10 +271,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
270
271
  }, z.core.$strip>, z.ZodObject<{
271
272
  flowId: FlowId;
272
273
  flowStatus: z.ZodEnum<{
274
+ passed: "passed";
273
275
  failed: "failed";
274
276
  queued: "queued";
275
277
  running: "running";
276
- passed: "passed";
277
278
  canceled: "canceled";
278
279
  }>;
279
280
  retryContext: z.ZodObject<{
@@ -281,8 +282,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
281
282
  next: z.ZodOptional<z.ZodObject<{
282
283
  attemptId: PublicIdSchema;
283
284
  status: z.ZodEnum<{
284
- failed: "failed";
285
285
  passed: "passed";
286
+ failed: "failed";
286
287
  canceled: "canceled";
287
288
  skipped: "skipped";
288
289
  aborted: "aborted";
@@ -291,8 +292,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
291
292
  previous: z.ZodOptional<z.ZodObject<{
292
293
  attemptId: PublicIdSchema;
293
294
  status: z.ZodEnum<{
294
- failed: "failed";
295
295
  passed: "passed";
296
+ failed: "failed";
296
297
  canceled: "canceled";
297
298
  skipped: "skipped";
298
299
  aborted: "aborted";
@@ -302,10 +303,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
302
303
  }, z.core.$strip>;
303
304
  runId: RunId;
304
305
  runStatus: z.ZodEnum<{
306
+ passed: "passed";
305
307
  failed: "failed";
306
308
  queued: "queued";
307
309
  running: "running";
308
- passed: "passed";
309
310
  canceled: "canceled";
310
311
  superseded: "superseded";
311
312
  }>;
@@ -319,8 +320,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
319
320
  startedAt: z.ZodOptional<z.ZodISODateTime>;
320
321
  kind: z.ZodLiteral<"automated">;
321
322
  status: z.ZodEnum<{
322
- failed: "failed";
323
323
  passed: "passed";
324
+ failed: "failed";
324
325
  canceled: "canceled";
325
326
  skipped: "skipped";
326
327
  aborted: "aborted";
@@ -350,10 +351,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
350
351
  }, z.core.$strip>, z.ZodObject<{
351
352
  flowId: FlowId;
352
353
  flowStatus: z.ZodEnum<{
354
+ passed: "passed";
353
355
  failed: "failed";
354
356
  queued: "queued";
355
357
  running: "running";
356
- passed: "passed";
357
358
  canceled: "canceled";
358
359
  }>;
359
360
  retryContext: z.ZodObject<{
@@ -361,8 +362,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
361
362
  next: z.ZodOptional<z.ZodObject<{
362
363
  attemptId: PublicIdSchema;
363
364
  status: z.ZodEnum<{
364
- failed: "failed";
365
365
  passed: "passed";
366
+ failed: "failed";
366
367
  canceled: "canceled";
367
368
  skipped: "skipped";
368
369
  aborted: "aborted";
@@ -371,8 +372,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
371
372
  previous: z.ZodOptional<z.ZodObject<{
372
373
  attemptId: PublicIdSchema;
373
374
  status: z.ZodEnum<{
374
- failed: "failed";
375
375
  passed: "passed";
376
+ failed: "failed";
376
377
  canceled: "canceled";
377
378
  skipped: "skipped";
378
379
  aborted: "aborted";
@@ -382,10 +383,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
382
383
  }, z.core.$strip>;
383
384
  runId: RunId;
384
385
  runStatus: z.ZodEnum<{
386
+ passed: "passed";
385
387
  failed: "failed";
386
388
  queued: "queued";
387
389
  running: "running";
388
- passed: "passed";
389
390
  canceled: "canceled";
390
391
  superseded: "superseded";
391
392
  }>;
@@ -1308,6 +1309,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1308
1309
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
1309
1310
  variablesUrl: z.ZodOptional<z.ZodURL>;
1310
1311
  url: z.ZodURL;
1312
+ flowCount: z.ZodOptional<z.ZodNumber>;
1313
+ testCount: z.ZodOptional<z.ZodNumber>;
1311
1314
  }, z.core.$strip>>;
1312
1315
  nextCursor: z.ZodOptional<z.ZodString>;
1313
1316
  }, z.core.$strip>;
@@ -1438,8 +1441,52 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1438
1441
  targetCommitHash: z.ZodString;
1439
1442
  }, z.core.$strip>>;
1440
1443
  createdAt: z.ZodISODateTime;
1444
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1445
+ candidateRuns: z.ZodArray<z.ZodObject<{
1446
+ candidate: z.ZodEnum<{
1447
+ combined: "combined";
1448
+ head: "head";
1449
+ base: "base";
1450
+ }>;
1451
+ outcome: z.ZodEnum<{
1452
+ passed: "passed";
1453
+ failed: "failed";
1454
+ inconclusive: "inconclusive";
1455
+ }>;
1456
+ runId: RunId;
1457
+ }, z.core.$strip>>;
1458
+ kept: z.ZodOptional<z.ZodEnum<{
1459
+ combined: "combined";
1460
+ head: "head";
1461
+ base: "base";
1462
+ }>>;
1463
+ path: z.ZodString;
1464
+ reason: z.ZodString;
1465
+ sourceCommitHash: z.ZodString;
1466
+ targetCommitHash: z.ZodString;
1467
+ type: z.ZodEnum<{
1468
+ "picked-by-run": "picked-by-run";
1469
+ combined: "combined";
1470
+ "kept-more-checks": "kept-more-checks";
1471
+ "needs-person": "needs-person";
1472
+ }>;
1473
+ }, z.core.$strip>>>;
1441
1474
  headEnvironmentId: EnvironmentId;
1442
1475
  id: PromotionId;
1476
+ needsPerson: z.ZodOptional<z.ZodObject<{
1477
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1478
+ path: z.ZodString;
1479
+ }, z.core.$strip>>>;
1480
+ reason: z.ZodEnum<{
1481
+ "undecided-paths": "undecided-paths";
1482
+ "run-limit-reached": "run-limit-reached";
1483
+ "flows-undetermined": "flows-undetermined";
1484
+ "agent-stopped": "agent-stopped";
1485
+ "agent-failed": "agent-failed";
1486
+ "agent-not-started": "agent-not-started";
1487
+ "agent-resolution-off": "agent-resolution-off";
1488
+ }>;
1489
+ }, z.core.$strip>>;
1443
1490
  promotedCommitHash: z.ZodOptional<z.ZodString>;
1444
1491
  settledAt: z.ZodOptional<z.ZodISODateTime>;
1445
1492
  status: z.ZodEnum<{
@@ -1455,6 +1502,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1455
1502
  runId: RunId;
1456
1503
  runMode: z.ZodEnum<{
1457
1504
  "confirm-after": "confirm-after";
1505
+ "choose-version": "choose-version";
1458
1506
  }>;
1459
1507
  sourceCommitHash: z.ZodString;
1460
1508
  targetCommitHash: z.ZodString;
@@ -1712,10 +1760,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1712
1760
  passedAfterRetry: z.ZodBoolean;
1713
1761
  runId: RunId;
1714
1762
  status: z.ZodEnum<{
1763
+ passed: "passed";
1715
1764
  failed: "failed";
1716
1765
  queued: "queued";
1717
1766
  running: "running";
1718
- passed: "passed";
1719
1767
  canceled: "canceled";
1720
1768
  }>;
1721
1769
  url: z.ZodURL;
@@ -1953,10 +2001,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1953
2001
  subSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1954
2002
  sessionId: ChatSessionId;
1955
2003
  status: z.ZodEnum<{
2004
+ failed: "failed";
1956
2005
  working: "working";
1957
2006
  "waiting-for-you": "waiting-for-you";
1958
2007
  completed: "completed";
1959
- failed: "failed";
1960
2008
  cancelled: "cancelled";
1961
2009
  }>;
1962
2010
  }, z.core.$strip>>>;
@@ -2203,6 +2251,9 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2203
2251
  type: z.ZodLiteral<"team-api-key">;
2204
2252
  }, z.core.$strip>, z.ZodObject<{
2205
2253
  type: z.ZodLiteral<"system">;
2254
+ }, z.core.$strip>, z.ZodObject<{
2255
+ name: z.ZodOptional<z.ZodString>;
2256
+ type: z.ZodLiteral<"slack-user">;
2206
2257
  }, z.core.$strip>], "type">;
2207
2258
  body: z.ZodString;
2208
2259
  commentId: z.ZodString;
@@ -2330,80 +2381,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2330
2381
  }, z.core.$strip>;
2331
2382
  }, z.core.$strip>;
2332
2383
  };
2333
- decideSuggestion: {
2334
- readonly annotationJustifications: {
2335
- readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
2336
- readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
2337
- readonly readOnlyHint: "Records a decision on a suggestion and changes the issue's status.";
2338
- };
2339
- readonly annotations: {
2340
- readonly destructiveHint: false;
2341
- readonly openWorldHint: true;
2342
- readonly readOnlyHint: false;
2343
- };
2344
- readonly description: string;
2345
- readonly input: z.ZodObject<{
2346
- decision: z.ZodEnum<{
2347
- add: "add";
2348
- report: "report";
2349
- skip: "skip";
2350
- undo: "undo";
2351
- activate: "activate";
2352
- }>;
2353
- issueId: IssueId;
2354
- skipReason: z.ZodOptional<z.ZodEnum<{
2355
- "not-worth-testing": "not-worth-testing";
2356
- "already-covered": "already-covered";
2357
- "feature-removed": "feature-removed";
2358
- }>>;
2359
- }, z.core.$strip>;
2360
- readonly kind: "write";
2361
- readonly name: "issue.decideSuggestion";
2362
- readonly output: z.ZodObject<{
2363
- issue: z.ZodObject<{
2364
- coveredFlowIds: z.ZodArray<FlowId>;
2365
- createdAt: z.ZodCoercedDate<unknown>;
2366
- description: z.ZodString;
2367
- files: z.ZodDefault<z.ZodArray<z.ZodObject<{
2368
- fileId: z.ZodString;
2369
- name: z.ZodString;
2370
- sizeBytes: z.ZodNumber;
2371
- }, z.core.$strip>>>;
2372
- issueId: IssueId;
2373
- name: z.ZodString;
2374
- number: z.ZodNumber;
2375
- priority: z.ZodEnum<{
2376
- unprioritized: "unprioritized";
2377
- low: "low";
2378
- medium: "medium";
2379
- high: "high";
2380
- urgent: "urgent";
2381
- }>;
2382
- reproductions: z.ZodArray<z.ZodObject<{
2383
- environmentId: EnvironmentId;
2384
- firstReproducedInRunId: RunId;
2385
- flowId: FlowId;
2386
- isActive: z.ZodBoolean;
2387
- lastReproducedInRunId: RunId;
2388
- }, z.core.$strip>>;
2389
- status: z.ZodEnum<{
2390
- pending: "pending";
2391
- canceled: "canceled";
2392
- backlog: "backlog";
2393
- inProgress: "inProgress";
2394
- paused: "paused";
2395
- resolved: "resolved";
2396
- archived: "archived";
2397
- }>;
2398
- type: z.ZodEnum<{
2399
- bug: "bug";
2400
- maintenance: "maintenance";
2401
- coverageRequest: "coverageRequest";
2402
- }>;
2403
- url: z.ZodURL;
2404
- }, z.core.$strip>;
2405
- }, z.core.$strip>;
2406
- };
2407
2384
  find: {
2408
2385
  readonly annotationJustifications: {
2409
2386
  readonly destructiveHint: "Does not edit issue details, statuses or coverage associations.";
@@ -2655,6 +2632,9 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2655
2632
  type: z.ZodLiteral<"team-api-key">;
2656
2633
  }, z.core.$strip>, z.ZodObject<{
2657
2634
  type: z.ZodLiteral<"system">;
2635
+ }, z.core.$strip>, z.ZodObject<{
2636
+ name: z.ZodOptional<z.ZodString>;
2637
+ type: z.ZodLiteral<"slack-user">;
2658
2638
  }, z.core.$strip>], "type">;
2659
2639
  body: z.ZodString;
2660
2640
  commentId: z.ZodString;
@@ -2997,8 +2977,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2997
2977
  readonly output: z.ZodObject<{
2998
2978
  exportFailureMessage: z.ZodOptional<z.ZodString>;
2999
2979
  exportStatus: z.ZodEnum<{
3000
- pending: "pending";
3001
2980
  failed: "failed";
2981
+ pending: "pending";
3002
2982
  ready: "ready";
3003
2983
  "not-requested": "not-requested";
3004
2984
  }>;
@@ -3055,8 +3035,52 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3055
3035
  targetCommitHash: z.ZodString;
3056
3036
  }, z.core.$strip>>;
3057
3037
  createdAt: z.ZodISODateTime;
3038
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3039
+ candidateRuns: z.ZodArray<z.ZodObject<{
3040
+ candidate: z.ZodEnum<{
3041
+ combined: "combined";
3042
+ head: "head";
3043
+ base: "base";
3044
+ }>;
3045
+ outcome: z.ZodEnum<{
3046
+ passed: "passed";
3047
+ failed: "failed";
3048
+ inconclusive: "inconclusive";
3049
+ }>;
3050
+ runId: RunId;
3051
+ }, z.core.$strip>>;
3052
+ kept: z.ZodOptional<z.ZodEnum<{
3053
+ combined: "combined";
3054
+ head: "head";
3055
+ base: "base";
3056
+ }>>;
3057
+ path: z.ZodString;
3058
+ reason: z.ZodString;
3059
+ sourceCommitHash: z.ZodString;
3060
+ targetCommitHash: z.ZodString;
3061
+ type: z.ZodEnum<{
3062
+ "picked-by-run": "picked-by-run";
3063
+ combined: "combined";
3064
+ "kept-more-checks": "kept-more-checks";
3065
+ "needs-person": "needs-person";
3066
+ }>;
3067
+ }, z.core.$strip>>>;
3058
3068
  headEnvironmentId: EnvironmentId;
3059
3069
  id: PromotionId;
3070
+ needsPerson: z.ZodOptional<z.ZodObject<{
3071
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3072
+ path: z.ZodString;
3073
+ }, z.core.$strip>>>;
3074
+ reason: z.ZodEnum<{
3075
+ "undecided-paths": "undecided-paths";
3076
+ "run-limit-reached": "run-limit-reached";
3077
+ "flows-undetermined": "flows-undetermined";
3078
+ "agent-stopped": "agent-stopped";
3079
+ "agent-failed": "agent-failed";
3080
+ "agent-not-started": "agent-not-started";
3081
+ "agent-resolution-off": "agent-resolution-off";
3082
+ }>;
3083
+ }, z.core.$strip>>;
3060
3084
  promotedCommitHash: z.ZodOptional<z.ZodString>;
3061
3085
  settledAt: z.ZodOptional<z.ZodISODateTime>;
3062
3086
  status: z.ZodEnum<{
@@ -3072,6 +3096,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3072
3096
  runId: RunId;
3073
3097
  runMode: z.ZodEnum<{
3074
3098
  "confirm-after": "confirm-after";
3099
+ "choose-version": "choose-version";
3075
3100
  }>;
3076
3101
  sourceCommitHash: z.ZodString;
3077
3102
  targetCommitHash: z.ZodString;
@@ -3106,8 +3131,52 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3106
3131
  targetCommitHash: z.ZodString;
3107
3132
  }, z.core.$strip>>;
3108
3133
  createdAt: z.ZodISODateTime;
3134
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3135
+ candidateRuns: z.ZodArray<z.ZodObject<{
3136
+ candidate: z.ZodEnum<{
3137
+ combined: "combined";
3138
+ head: "head";
3139
+ base: "base";
3140
+ }>;
3141
+ outcome: z.ZodEnum<{
3142
+ passed: "passed";
3143
+ failed: "failed";
3144
+ inconclusive: "inconclusive";
3145
+ }>;
3146
+ runId: RunId;
3147
+ }, z.core.$strip>>;
3148
+ kept: z.ZodOptional<z.ZodEnum<{
3149
+ combined: "combined";
3150
+ head: "head";
3151
+ base: "base";
3152
+ }>>;
3153
+ path: z.ZodString;
3154
+ reason: z.ZodString;
3155
+ sourceCommitHash: z.ZodString;
3156
+ targetCommitHash: z.ZodString;
3157
+ type: z.ZodEnum<{
3158
+ "picked-by-run": "picked-by-run";
3159
+ combined: "combined";
3160
+ "kept-more-checks": "kept-more-checks";
3161
+ "needs-person": "needs-person";
3162
+ }>;
3163
+ }, z.core.$strip>>>;
3109
3164
  headEnvironmentId: EnvironmentId;
3110
3165
  id: PromotionId;
3166
+ needsPerson: z.ZodOptional<z.ZodObject<{
3167
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3168
+ path: z.ZodString;
3169
+ }, z.core.$strip>>>;
3170
+ reason: z.ZodEnum<{
3171
+ "undecided-paths": "undecided-paths";
3172
+ "run-limit-reached": "run-limit-reached";
3173
+ "flows-undetermined": "flows-undetermined";
3174
+ "agent-stopped": "agent-stopped";
3175
+ "agent-failed": "agent-failed";
3176
+ "agent-not-started": "agent-not-started";
3177
+ "agent-resolution-off": "agent-resolution-off";
3178
+ }>;
3179
+ }, z.core.$strip>>;
3111
3180
  promotedCommitHash: z.ZodOptional<z.ZodString>;
3112
3181
  settledAt: z.ZodOptional<z.ZodISODateTime>;
3113
3182
  status: z.ZodEnum<{
@@ -3123,6 +3192,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3123
3192
  runId: RunId;
3124
3193
  runMode: z.ZodEnum<{
3125
3194
  "confirm-after": "confirm-after";
3195
+ "choose-version": "choose-version";
3126
3196
  }>;
3127
3197
  sourceCommitHash: z.ZodString;
3128
3198
  targetCommitHash: z.ZodString;
@@ -3131,27 +3201,62 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3131
3201
  aiTaskSessionId: z.ZodOptional<ChatSessionId>;
3132
3202
  }, z.core.$strip>;
3133
3203
  };
3134
- resolve: {
3204
+ reportDecision: {
3135
3205
  readonly annotationJustifications: {
3136
- readonly destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.";
3137
- readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
3138
- readonly readOnlyHint: "Records a resolution that a background executor applies to the base branch.";
3206
+ readonly destructiveHint: "Records a decision on the promotion and changes no flow code.";
3207
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
3208
+ readonly readOnlyHint: "Records how a conflicting path was settled.";
3139
3209
  };
3140
3210
  readonly annotations: {
3141
- readonly destructiveHint: true;
3211
+ readonly destructiveHint: false;
3142
3212
  readonly openWorldHint: false;
3143
3213
  readonly readOnlyHint: false;
3144
3214
  };
3145
- readonly description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.";
3215
+ readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.";
3146
3216
  readonly input: z.ZodObject<{
3147
- deletes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3217
+ base: z.ZodOptional<z.ZodObject<{
3218
+ outcome: z.ZodEnum<{
3219
+ passed: "passed";
3220
+ failed: "failed";
3221
+ inconclusive: "inconclusive";
3222
+ }>;
3223
+ runId: RunId;
3224
+ }, z.core.$strip>>;
3225
+ combined: z.ZodOptional<z.ZodObject<{
3226
+ outcome: z.ZodEnum<{
3227
+ passed: "passed";
3228
+ failed: "failed";
3229
+ inconclusive: "inconclusive";
3230
+ }>;
3231
+ runId: RunId;
3232
+ }, z.core.$strip>>;
3233
+ decision: z.ZodEnum<{
3234
+ "picked-by-run": "picked-by-run";
3235
+ combined: "combined";
3236
+ "kept-more-checks": "kept-more-checks";
3237
+ "needs-person": "needs-person";
3238
+ }>;
3148
3239
  expectedSourceCommitHash: z.ZodString;
3149
3240
  expectedTargetCommitHash: z.ZodString;
3241
+ head: z.ZodOptional<z.ZodObject<{
3242
+ outcome: z.ZodEnum<{
3243
+ passed: "passed";
3244
+ failed: "failed";
3245
+ inconclusive: "inconclusive";
3246
+ }>;
3247
+ runId: RunId;
3248
+ }, z.core.$strip>>;
3249
+ kept: z.ZodOptional<z.ZodEnum<{
3250
+ combined: "combined";
3251
+ head: "head";
3252
+ base: "base";
3253
+ }>>;
3254
+ path: z.ZodString;
3150
3255
  promotionId: PromotionId;
3151
- writes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3256
+ reason: z.ZodString;
3152
3257
  }, z.core.$strip>;
3153
3258
  readonly kind: "write";
3154
- readonly name: "promotion.resolve";
3259
+ readonly name: "promotion.reportDecision";
3155
3260
  readonly output: z.ZodObject<{
3156
3261
  aiTaskId: z.ZodOptional<AiTaskId>;
3157
3262
  baseEnvironmentId: EnvironmentId;
@@ -3161,8 +3266,52 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3161
3266
  targetCommitHash: z.ZodString;
3162
3267
  }, z.core.$strip>>;
3163
3268
  createdAt: z.ZodISODateTime;
3269
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3270
+ candidateRuns: z.ZodArray<z.ZodObject<{
3271
+ candidate: z.ZodEnum<{
3272
+ combined: "combined";
3273
+ head: "head";
3274
+ base: "base";
3275
+ }>;
3276
+ outcome: z.ZodEnum<{
3277
+ passed: "passed";
3278
+ failed: "failed";
3279
+ inconclusive: "inconclusive";
3280
+ }>;
3281
+ runId: RunId;
3282
+ }, z.core.$strip>>;
3283
+ kept: z.ZodOptional<z.ZodEnum<{
3284
+ combined: "combined";
3285
+ head: "head";
3286
+ base: "base";
3287
+ }>>;
3288
+ path: z.ZodString;
3289
+ reason: z.ZodString;
3290
+ sourceCommitHash: z.ZodString;
3291
+ targetCommitHash: z.ZodString;
3292
+ type: z.ZodEnum<{
3293
+ "picked-by-run": "picked-by-run";
3294
+ combined: "combined";
3295
+ "kept-more-checks": "kept-more-checks";
3296
+ "needs-person": "needs-person";
3297
+ }>;
3298
+ }, z.core.$strip>>>;
3164
3299
  headEnvironmentId: EnvironmentId;
3165
3300
  id: PromotionId;
3301
+ needsPerson: z.ZodOptional<z.ZodObject<{
3302
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3303
+ path: z.ZodString;
3304
+ }, z.core.$strip>>>;
3305
+ reason: z.ZodEnum<{
3306
+ "undecided-paths": "undecided-paths";
3307
+ "run-limit-reached": "run-limit-reached";
3308
+ "flows-undetermined": "flows-undetermined";
3309
+ "agent-stopped": "agent-stopped";
3310
+ "agent-failed": "agent-failed";
3311
+ "agent-not-started": "agent-not-started";
3312
+ "agent-resolution-off": "agent-resolution-off";
3313
+ }>;
3314
+ }, z.core.$strip>>;
3166
3315
  promotedCommitHash: z.ZodOptional<z.ZodString>;
3167
3316
  settledAt: z.ZodOptional<z.ZodISODateTime>;
3168
3317
  status: z.ZodEnum<{
@@ -3178,6 +3327,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3178
3327
  runId: RunId;
3179
3328
  runMode: z.ZodEnum<{
3180
3329
  "confirm-after": "confirm-after";
3330
+ "choose-version": "choose-version";
3181
3331
  }>;
3182
3332
  sourceCommitHash: z.ZodString;
3183
3333
  targetCommitHash: z.ZodString;
@@ -3185,52 +3335,151 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3185
3335
  url: z.ZodURL;
3186
3336
  }, z.core.$strip>;
3187
3337
  };
3188
- };
3189
- run: {
3190
- acceptScreenshotBaseline: {
3338
+ resolve: {
3191
3339
  readonly annotationJustifications: {
3192
- readonly destructiveHint: "Replaces the workspace's screenshot baseline, which changes what every later run compares with.";
3193
- readonly openWorldHint: "Changes private QA Wolf baseline storage without starting external work.";
3194
- readonly readOnlyHint: "Makes the new screenshot of a failed comparison the baseline.";
3340
+ readonly destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.";
3341
+ readonly openWorldHint: "Changes QA Wolf flow code branches only, not the customer's own repository or deployments.";
3342
+ readonly readOnlyHint: "Records a resolution that a background executor applies to the base branch.";
3195
3343
  };
3196
3344
  readonly annotations: {
3197
3345
  readonly destructiveHint: true;
3198
3346
  readonly openWorldHint: false;
3199
3347
  readonly readOnlyHint: false;
3200
3348
  };
3201
- readonly description: string;
3349
+ readonly description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. If the base environment has been terminated, the call is refused as target-environment-gone and the promotion can no longer be resolved. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.";
3202
3350
  readonly input: z.ZodObject<{
3203
- chatSessionId: z.ZodOptional<z.ZodString>;
3204
- comparisonId: z.ZodString;
3205
- runId: RunId;
3351
+ deletes: z.ZodOptional<z.ZodArray<z.ZodString>>;
3352
+ expectedSourceCommitHash: z.ZodString;
3353
+ expectedTargetCommitHash: z.ZodString;
3354
+ promotionId: PromotionId;
3355
+ writes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3206
3356
  }, z.core.$strip>;
3207
3357
  readonly kind: "write";
3208
- readonly name: "run.acceptScreenshotBaseline";
3209
- readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
3210
- baselineChangeId: z.ZodString;
3211
- name: z.ZodString;
3212
- outcome: z.ZodLiteral<"accepted">;
3213
- }, z.core.$strip>, z.ZodObject<{
3214
- outcome: z.ZodLiteral<"baseline-changed">;
3215
- }, z.core.$strip>, z.ZodObject<{
3216
- outcome: z.ZodLiteral<"needs-approval">;
3217
- }, z.core.$strip>, z.ZodObject<{
3218
- outcome: z.ZodLiteral<"not-investigation-session">;
3219
- }, z.core.$strip>, z.ZodObject<{
3220
- outcome: z.ZodLiteral<"waits-for-merge">;
3221
- }, z.core.$strip>, z.ZodObject<{
3222
- outcome: z.ZodLiteral<"nothing-to-accept">;
3223
- }, z.core.$strip>], "outcome">;
3224
- };
3225
- create: {
3226
- readonly annotationJustifications: {
3227
- readonly destructiveHint: "Test code can overwrite or delete application data.";
3228
- readonly openWorldHint: "Test execution can submit forms or change the application under test and its connected services.";
3229
- readonly readOnlyHint: "Creates a run and enqueues execution of selected flows.";
3230
- };
3231
- readonly annotations: {
3232
- readonly destructiveHint: true;
3233
- readonly openWorldHint: true;
3358
+ readonly name: "promotion.resolve";
3359
+ readonly output: z.ZodObject<{
3360
+ aiTaskId: z.ZodOptional<AiTaskId>;
3361
+ baseEnvironmentId: EnvironmentId;
3362
+ conflict: z.ZodOptional<z.ZodObject<{
3363
+ paths: z.ZodArray<z.ZodString>;
3364
+ sourceCommitHash: z.ZodString;
3365
+ targetCommitHash: z.ZodString;
3366
+ }, z.core.$strip>>;
3367
+ createdAt: z.ZodISODateTime;
3368
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3369
+ candidateRuns: z.ZodArray<z.ZodObject<{
3370
+ candidate: z.ZodEnum<{
3371
+ combined: "combined";
3372
+ head: "head";
3373
+ base: "base";
3374
+ }>;
3375
+ outcome: z.ZodEnum<{
3376
+ passed: "passed";
3377
+ failed: "failed";
3378
+ inconclusive: "inconclusive";
3379
+ }>;
3380
+ runId: RunId;
3381
+ }, z.core.$strip>>;
3382
+ kept: z.ZodOptional<z.ZodEnum<{
3383
+ combined: "combined";
3384
+ head: "head";
3385
+ base: "base";
3386
+ }>>;
3387
+ path: z.ZodString;
3388
+ reason: z.ZodString;
3389
+ sourceCommitHash: z.ZodString;
3390
+ targetCommitHash: z.ZodString;
3391
+ type: z.ZodEnum<{
3392
+ "picked-by-run": "picked-by-run";
3393
+ combined: "combined";
3394
+ "kept-more-checks": "kept-more-checks";
3395
+ "needs-person": "needs-person";
3396
+ }>;
3397
+ }, z.core.$strip>>>;
3398
+ headEnvironmentId: EnvironmentId;
3399
+ id: PromotionId;
3400
+ needsPerson: z.ZodOptional<z.ZodObject<{
3401
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3402
+ path: z.ZodString;
3403
+ }, z.core.$strip>>>;
3404
+ reason: z.ZodEnum<{
3405
+ "undecided-paths": "undecided-paths";
3406
+ "run-limit-reached": "run-limit-reached";
3407
+ "flows-undetermined": "flows-undetermined";
3408
+ "agent-stopped": "agent-stopped";
3409
+ "agent-failed": "agent-failed";
3410
+ "agent-not-started": "agent-not-started";
3411
+ "agent-resolution-off": "agent-resolution-off";
3412
+ }>;
3413
+ }, z.core.$strip>>;
3414
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
3415
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
3416
+ status: z.ZodEnum<{
3417
+ pending: "pending";
3418
+ conflicted: "conflicted";
3419
+ resolving: "resolving";
3420
+ promoted: "promoted";
3421
+ "no-changes": "no-changes";
3422
+ abandoned: "abandoned";
3423
+ }>;
3424
+ validationRuns: z.ZodArray<z.ZodObject<{
3425
+ aiTaskId: AiTaskId;
3426
+ runId: RunId;
3427
+ runMode: z.ZodEnum<{
3428
+ "confirm-after": "confirm-after";
3429
+ "choose-version": "choose-version";
3430
+ }>;
3431
+ sourceCommitHash: z.ZodString;
3432
+ targetCommitHash: z.ZodString;
3433
+ }, z.core.$strip>>;
3434
+ url: z.ZodURL;
3435
+ }, z.core.$strip>;
3436
+ };
3437
+ };
3438
+ run: {
3439
+ acceptScreenshotBaseline: {
3440
+ readonly annotationJustifications: {
3441
+ readonly destructiveHint: "Replaces the workspace's screenshot baseline, which changes what every later run compares with.";
3442
+ readonly openWorldHint: "Changes private QA Wolf baseline storage without starting external work.";
3443
+ readonly readOnlyHint: "Makes the new screenshot of a failed comparison the baseline.";
3444
+ };
3445
+ readonly annotations: {
3446
+ readonly destructiveHint: true;
3447
+ readonly openWorldHint: false;
3448
+ readonly readOnlyHint: false;
3449
+ };
3450
+ readonly description: string;
3451
+ readonly input: z.ZodObject<{
3452
+ chatSessionId: z.ZodOptional<z.ZodString>;
3453
+ comparisonId: z.ZodString;
3454
+ runId: RunId;
3455
+ }, z.core.$strip>;
3456
+ readonly kind: "write";
3457
+ readonly name: "run.acceptScreenshotBaseline";
3458
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
3459
+ baselineChangeId: z.ZodString;
3460
+ name: z.ZodString;
3461
+ outcome: z.ZodLiteral<"accepted">;
3462
+ }, z.core.$strip>, z.ZodObject<{
3463
+ outcome: z.ZodLiteral<"baseline-changed">;
3464
+ }, z.core.$strip>, z.ZodObject<{
3465
+ outcome: z.ZodLiteral<"needs-approval">;
3466
+ }, z.core.$strip>, z.ZodObject<{
3467
+ outcome: z.ZodLiteral<"not-investigation-session">;
3468
+ }, z.core.$strip>, z.ZodObject<{
3469
+ outcome: z.ZodLiteral<"waits-for-merge">;
3470
+ }, z.core.$strip>, z.ZodObject<{
3471
+ outcome: z.ZodLiteral<"nothing-to-accept">;
3472
+ }, z.core.$strip>], "outcome">;
3473
+ };
3474
+ create: {
3475
+ readonly annotationJustifications: {
3476
+ readonly destructiveHint: "Test code can overwrite or delete application data.";
3477
+ readonly openWorldHint: "Test execution can submit forms or change the application under test and its connected services.";
3478
+ readonly readOnlyHint: "Creates a run and enqueues execution of selected flows.";
3479
+ };
3480
+ readonly annotations: {
3481
+ readonly destructiveHint: true;
3482
+ readonly openWorldHint: true;
3234
3483
  readonly readOnlyHint: false;
3235
3484
  };
3236
3485
  readonly description: "Create a run for the selected flows and/or tags in an environment.";
@@ -3246,6 +3495,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3246
3495
  repository: z.ZodOptional<z.ZodString>;
3247
3496
  resolutionRunMode: z.ZodOptional<z.ZodEnum<{
3248
3497
  "confirm-after": "confirm-after";
3498
+ "choose-version": "choose-version";
3249
3499
  }>>;
3250
3500
  workspaceId: z.ZodOptional<WorkspaceId>;
3251
3501
  }, z.core.$strip>, z.ZodObject<{
@@ -3375,10 +3625,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3375
3625
  needsReview: z.ZodOptional<z.ZodBoolean>;
3376
3626
  runId: RunId;
3377
3627
  status: z.ZodEnum<{
3628
+ passed: "passed";
3378
3629
  failed: "failed";
3379
3630
  queued: "queued";
3380
3631
  running: "running";
3381
- passed: "passed";
3382
3632
  canceled: "canceled";
3383
3633
  superseded: "superseded";
3384
3634
  }>;
@@ -3404,10 +3654,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3404
3654
  readonly description: "Get a run's status, per-flow results, links, and how many of its bugs are blocking. Call it without waitSeconds for an immediate answer. To wait on a run that is still queued or running, pass waitSeconds up to 45: the server holds the check open and answers the moment the status changes. A held check also waits while the run is still being created. After a held check returns, call again only while status is queued or running. Stop when status is passed, failed, canceled, or superseded.";
3405
3655
  readonly input: z.ZodObject<{
3406
3656
  flowStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3657
+ passed: "passed";
3407
3658
  failed: "failed";
3408
3659
  queued: "queued";
3409
3660
  running: "running";
3410
- passed: "passed";
3411
3661
  canceled: "canceled";
3412
3662
  }>>>;
3413
3663
  runId: RunId;
@@ -3557,12 +3807,25 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3557
3807
  flowId: FlowId;
3558
3808
  name: z.ZodString;
3559
3809
  status: z.ZodEnum<{
3810
+ passed: "passed";
3560
3811
  queued: "queued";
3561
3812
  running: "running";
3562
- passed: "passed";
3563
3813
  canceled: "canceled";
3564
3814
  }>;
3565
3815
  }, z.core.$strip>], "status">>;
3816
+ runAlertNotifications: z.ZodArray<z.ZodObject<{
3817
+ channel: z.ZodEnum<{
3818
+ slack: "slack";
3819
+ }>;
3820
+ destination: z.ZodDiscriminatedUnion<[z.ZodObject<{
3821
+ channelId: z.ZodString;
3822
+ kind: z.ZodLiteral<"slack-channel">;
3823
+ workspaceId: z.ZodString;
3824
+ }, z.core.$strip>], "kind">;
3825
+ messageId: z.ZodString;
3826
+ permalink: z.ZodOptional<z.ZodString>;
3827
+ sentAt: z.ZodISODateTime;
3828
+ }, z.core.$strip>>;
3566
3829
  runId: RunId;
3567
3830
  siteVersions: z.ZodArray<z.ZodObject<{
3568
3831
  expected: z.ZodOptional<z.ZodObject<{
@@ -3592,10 +3855,10 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3592
3855
  }, z.core.$strip>;
3593
3856
  needsReview: z.ZodOptional<z.ZodBoolean>;
3594
3857
  status: z.ZodEnum<{
3858
+ passed: "passed";
3595
3859
  failed: "failed";
3596
3860
  queued: "queued";
3597
3861
  running: "running";
3598
- passed: "passed";
3599
3862
  canceled: "canceled";
3600
3863
  superseded: "superseded";
3601
3864
  }>;
@@ -4911,6 +5174,238 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4911
5174
  }, z.core.$strip>;
4912
5175
  };
4913
5176
  };
5177
+ suggestion: {
5178
+ decide: {
5179
+ readonly annotationJustifications: {
5180
+ readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
5181
+ readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
5182
+ readonly readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.";
5183
+ };
5184
+ readonly annotations: {
5185
+ readonly destructiveHint: false;
5186
+ readonly openWorldHint: true;
5187
+ readonly readOnlyHint: false;
5188
+ };
5189
+ readonly description: string;
5190
+ readonly input: z.ZodObject<{
5191
+ decision: z.ZodEnum<{
5192
+ add: "add";
5193
+ report: "report";
5194
+ skip: "skip";
5195
+ undo: "undo";
5196
+ activate: "activate";
5197
+ }>;
5198
+ skipReason: z.ZodOptional<z.ZodEnum<{
5199
+ "not-worth-testing": "not-worth-testing";
5200
+ "already-covered": "already-covered";
5201
+ "feature-removed": "feature-removed";
5202
+ }>>;
5203
+ suggestionId: PublicIdSchema;
5204
+ }, z.core.$strip>;
5205
+ readonly kind: "write";
5206
+ readonly name: "suggestion.decide";
5207
+ readonly output: z.ZodObject<{
5208
+ suggestion: z.ZodObject<{
5209
+ decidedAt: z.ZodOptional<z.ZodISODateTime>;
5210
+ decisions: z.ZodArray<z.ZodEnum<{
5211
+ add: "add";
5212
+ report: "report";
5213
+ skip: "skip";
5214
+ undo: "undo";
5215
+ activate: "activate";
5216
+ }>>;
5217
+ environmentId: EnvironmentId;
5218
+ environmentName: z.ZodString;
5219
+ flow: z.ZodObject<{
5220
+ flowId: z.ZodOptional<FlowId>;
5221
+ path: z.ZodString;
5222
+ }, z.core.$strip>;
5223
+ holdReason: z.ZodOptional<z.ZodEnum<{
5224
+ "path-taken": "path-taken";
5225
+ "not-proven-on-merged-commit": "not-proven-on-merged-commit";
5226
+ "merge-conflicted": "merge-conflicted";
5227
+ "undo-cleanup-failed": "undo-cleanup-failed";
5228
+ }>>;
5229
+ issue: z.ZodOptional<z.ZodObject<{
5230
+ issueId: IssueId;
5231
+ type: z.ZodEnum<{
5232
+ bug: "bug";
5233
+ coverageRequest: "coverageRequest";
5234
+ }>;
5235
+ }, z.core.$strip>>;
5236
+ kind: z.ZodEnum<{
5237
+ "new-flow": "new-flow";
5238
+ "potential-bug": "potential-bug";
5239
+ }>;
5240
+ location: z.ZodString;
5241
+ reason: z.ZodString;
5242
+ skipReason: z.ZodOptional<z.ZodEnum<{
5243
+ "not-worth-testing": "not-worth-testing";
5244
+ "already-covered": "already-covered";
5245
+ "feature-removed": "feature-removed";
5246
+ }>>;
5247
+ state: z.ZodEnum<{
5248
+ skipped: "skipped";
5249
+ accepted: "accepted";
5250
+ waiting: "waiting";
5251
+ expired: "expired";
5252
+ }>;
5253
+ suggestedAt: z.ZodISODateTime;
5254
+ suggestionId: PublicIdSchema;
5255
+ title: z.ZodString;
5256
+ url: z.ZodURL;
5257
+ }, z.core.$strip>;
5258
+ }, z.core.$strip>;
5259
+ };
5260
+ find: {
5261
+ readonly annotationJustifications: {
5262
+ readonly destructiveHint: "Does not decide or change any suggestion.";
5263
+ readonly openWorldHint: "Reads QA Wolf suggestion records without changing external systems.";
5264
+ readonly readOnlyHint: "Lists the workspace's coverage suggestions.";
5265
+ };
5266
+ readonly annotations: {
5267
+ readonly destructiveHint: false;
5268
+ readonly openWorldHint: false;
5269
+ readonly readOnlyHint: true;
5270
+ };
5271
+ readonly description: string;
5272
+ readonly input: z.ZodObject<{
5273
+ cursor: z.ZodOptional<z.ZodString>;
5274
+ limit: z.ZodDefault<z.ZodNumber>;
5275
+ state: z.ZodOptional<z.ZodEnum<{
5276
+ skipped: "skipped";
5277
+ accepted: "accepted";
5278
+ waiting: "waiting";
5279
+ }>>;
5280
+ workspaceId: z.ZodOptional<WorkspaceId>;
5281
+ }, z.core.$strip>;
5282
+ readonly kind: "read";
5283
+ readonly name: "suggestion.find";
5284
+ readonly output: z.ZodObject<{
5285
+ nextCursor: z.ZodOptional<z.ZodString>;
5286
+ suggestions: z.ZodArray<z.ZodObject<{
5287
+ decidedAt: z.ZodOptional<z.ZodISODateTime>;
5288
+ decisions: z.ZodArray<z.ZodEnum<{
5289
+ add: "add";
5290
+ report: "report";
5291
+ skip: "skip";
5292
+ undo: "undo";
5293
+ activate: "activate";
5294
+ }>>;
5295
+ environmentId: EnvironmentId;
5296
+ environmentName: z.ZodString;
5297
+ flow: z.ZodObject<{
5298
+ flowId: z.ZodOptional<FlowId>;
5299
+ path: z.ZodString;
5300
+ }, z.core.$strip>;
5301
+ holdReason: z.ZodOptional<z.ZodEnum<{
5302
+ "path-taken": "path-taken";
5303
+ "not-proven-on-merged-commit": "not-proven-on-merged-commit";
5304
+ "merge-conflicted": "merge-conflicted";
5305
+ "undo-cleanup-failed": "undo-cleanup-failed";
5306
+ }>>;
5307
+ issue: z.ZodOptional<z.ZodObject<{
5308
+ issueId: IssueId;
5309
+ type: z.ZodEnum<{
5310
+ bug: "bug";
5311
+ coverageRequest: "coverageRequest";
5312
+ }>;
5313
+ }, z.core.$strip>>;
5314
+ kind: z.ZodEnum<{
5315
+ "new-flow": "new-flow";
5316
+ "potential-bug": "potential-bug";
5317
+ }>;
5318
+ location: z.ZodString;
5319
+ reason: z.ZodString;
5320
+ skipReason: z.ZodOptional<z.ZodEnum<{
5321
+ "not-worth-testing": "not-worth-testing";
5322
+ "already-covered": "already-covered";
5323
+ "feature-removed": "feature-removed";
5324
+ }>>;
5325
+ state: z.ZodEnum<{
5326
+ skipped: "skipped";
5327
+ accepted: "accepted";
5328
+ waiting: "waiting";
5329
+ expired: "expired";
5330
+ }>;
5331
+ suggestedAt: z.ZodISODateTime;
5332
+ suggestionId: PublicIdSchema;
5333
+ title: z.ZodString;
5334
+ url: z.ZodURL;
5335
+ }, z.core.$strip>>;
5336
+ }, z.core.$strip>;
5337
+ };
5338
+ get: {
5339
+ readonly annotationJustifications: {
5340
+ readonly destructiveHint: "Does not decide or change the suggestion.";
5341
+ readonly openWorldHint: "Reads a QA Wolf suggestion record without changing external systems.";
5342
+ readonly readOnlyHint: "Retrieves one coverage suggestion.";
5343
+ };
5344
+ readonly annotations: {
5345
+ readonly destructiveHint: false;
5346
+ readonly openWorldHint: false;
5347
+ readonly readOnlyHint: true;
5348
+ };
5349
+ readonly description: string;
5350
+ readonly input: z.ZodObject<{
5351
+ suggestionId: PublicIdSchema;
5352
+ }, z.core.$strip>;
5353
+ readonly kind: "read";
5354
+ readonly name: "suggestion.get";
5355
+ readonly output: z.ZodObject<{
5356
+ suggestion: z.ZodObject<{
5357
+ decidedAt: z.ZodOptional<z.ZodISODateTime>;
5358
+ decisions: z.ZodArray<z.ZodEnum<{
5359
+ add: "add";
5360
+ report: "report";
5361
+ skip: "skip";
5362
+ undo: "undo";
5363
+ activate: "activate";
5364
+ }>>;
5365
+ environmentId: EnvironmentId;
5366
+ environmentName: z.ZodString;
5367
+ flow: z.ZodObject<{
5368
+ flowId: z.ZodOptional<FlowId>;
5369
+ path: z.ZodString;
5370
+ }, z.core.$strip>;
5371
+ holdReason: z.ZodOptional<z.ZodEnum<{
5372
+ "path-taken": "path-taken";
5373
+ "not-proven-on-merged-commit": "not-proven-on-merged-commit";
5374
+ "merge-conflicted": "merge-conflicted";
5375
+ "undo-cleanup-failed": "undo-cleanup-failed";
5376
+ }>>;
5377
+ issue: z.ZodOptional<z.ZodObject<{
5378
+ issueId: IssueId;
5379
+ type: z.ZodEnum<{
5380
+ bug: "bug";
5381
+ coverageRequest: "coverageRequest";
5382
+ }>;
5383
+ }, z.core.$strip>>;
5384
+ kind: z.ZodEnum<{
5385
+ "new-flow": "new-flow";
5386
+ "potential-bug": "potential-bug";
5387
+ }>;
5388
+ location: z.ZodString;
5389
+ reason: z.ZodString;
5390
+ skipReason: z.ZodOptional<z.ZodEnum<{
5391
+ "not-worth-testing": "not-worth-testing";
5392
+ "already-covered": "already-covered";
5393
+ "feature-removed": "feature-removed";
5394
+ }>>;
5395
+ state: z.ZodEnum<{
5396
+ skipped: "skipped";
5397
+ accepted: "accepted";
5398
+ waiting: "waiting";
5399
+ expired: "expired";
5400
+ }>;
5401
+ suggestedAt: z.ZodISODateTime;
5402
+ suggestionId: PublicIdSchema;
5403
+ title: z.ZodString;
5404
+ url: z.ZodURL;
5405
+ }, z.core.$strip>;
5406
+ }, z.core.$strip>;
5407
+ };
5408
+ };
4914
5409
  tag: {
4915
5410
  create: {
4916
5411
  readonly annotationJustifications: {
@@ -5792,10 +6287,10 @@ export declare const publicContractsV1: {
5792
6287
  needsReview: z.ZodOptional<z.ZodBoolean>;
5793
6288
  runId: PublicIdSchema;
5794
6289
  status: z.ZodEnum<{
6290
+ passed: "passed";
5795
6291
  failed: "failed";
5796
6292
  queued: "queued";
5797
6293
  running: "running";
5798
- passed: "passed";
5799
6294
  canceled: "canceled";
5800
6295
  superseded: "superseded";
5801
6296
  "not-found": "not-found";
@@ -5812,10 +6307,10 @@ export declare const publicContractsV1: {
5812
6307
  }, z.core.$strip>>;
5813
6308
  sessionId: PublicIdSchema;
5814
6309
  status: z.ZodEnum<{
6310
+ failed: "failed";
5815
6311
  working: "working";
5816
6312
  "waiting-for-you": "waiting-for-you";
5817
6313
  completed: "completed";
5818
- failed: "failed";
5819
6314
  cancelled: "cancelled";
5820
6315
  "not-found": "not-found";
5821
6316
  }>;
@@ -5858,10 +6353,10 @@ export declare const publicContractsV1: {
5858
6353
  }, z.core.$strip>>;
5859
6354
  sessionId: PublicIdSchema;
5860
6355
  status: z.ZodEnum<{
6356
+ failed: "failed";
5861
6357
  working: "working";
5862
6358
  "waiting-for-you": "waiting-for-you";
5863
6359
  completed: "completed";
5864
- failed: "failed";
5865
6360
  cancelled: "cancelled";
5866
6361
  }>;
5867
6362
  waitSeconds: z.ZodOptional<z.ZodNumber>;
@@ -5900,10 +6395,10 @@ export declare const publicContractsV1: {
5900
6395
  readonly output: z.ZodObject<{
5901
6396
  sessionId: PublicIdSchema;
5902
6397
  status: z.ZodEnum<{
6398
+ failed: "failed";
5903
6399
  working: "working";
5904
6400
  "waiting-for-you": "waiting-for-you";
5905
6401
  completed: "completed";
5906
- failed: "failed";
5907
6402
  cancelled: "cancelled";
5908
6403
  }>;
5909
6404
  url: z.ZodURL;
@@ -5931,10 +6426,10 @@ export declare const publicContractsV1: {
5931
6426
  readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
5932
6427
  flowId: PublicIdSchema;
5933
6428
  flowStatus: z.ZodEnum<{
6429
+ passed: "passed";
5934
6430
  failed: "failed";
5935
6431
  queued: "queued";
5936
6432
  running: "running";
5937
- passed: "passed";
5938
6433
  canceled: "canceled";
5939
6434
  }>;
5940
6435
  retryContext: z.ZodObject<{
@@ -5942,8 +6437,8 @@ export declare const publicContractsV1: {
5942
6437
  next: z.ZodOptional<z.ZodObject<{
5943
6438
  attemptId: PublicIdSchema;
5944
6439
  status: z.ZodEnum<{
5945
- failed: "failed";
5946
6440
  passed: "passed";
6441
+ failed: "failed";
5947
6442
  canceled: "canceled";
5948
6443
  skipped: "skipped";
5949
6444
  aborted: "aborted";
@@ -5952,8 +6447,8 @@ export declare const publicContractsV1: {
5952
6447
  previous: z.ZodOptional<z.ZodObject<{
5953
6448
  attemptId: PublicIdSchema;
5954
6449
  status: z.ZodEnum<{
5955
- failed: "failed";
5956
6450
  passed: "passed";
6451
+ failed: "failed";
5957
6452
  canceled: "canceled";
5958
6453
  skipped: "skipped";
5959
6454
  aborted: "aborted";
@@ -5963,10 +6458,10 @@ export declare const publicContractsV1: {
5963
6458
  }, z.core.$strip>;
5964
6459
  runId: PublicIdSchema;
5965
6460
  runStatus: z.ZodEnum<{
6461
+ passed: "passed";
5966
6462
  failed: "failed";
5967
6463
  queued: "queued";
5968
6464
  running: "running";
5969
- passed: "passed";
5970
6465
  canceled: "canceled";
5971
6466
  superseded: "superseded";
5972
6467
  }>;
@@ -5984,8 +6479,8 @@ export declare const publicContractsV1: {
5984
6479
  startedAt: z.ZodOptional<z.ZodISODateTime>;
5985
6480
  kind: z.ZodLiteral<"automated">;
5986
6481
  status: z.ZodEnum<{
5987
- failed: "failed";
5988
6482
  passed: "passed";
6483
+ failed: "failed";
5989
6484
  canceled: "canceled";
5990
6485
  skipped: "skipped";
5991
6486
  aborted: "aborted";
@@ -6015,10 +6510,10 @@ export declare const publicContractsV1: {
6015
6510
  }, z.core.$strip>, z.ZodObject<{
6016
6511
  flowId: PublicIdSchema;
6017
6512
  flowStatus: z.ZodEnum<{
6513
+ passed: "passed";
6018
6514
  failed: "failed";
6019
6515
  queued: "queued";
6020
6516
  running: "running";
6021
- passed: "passed";
6022
6517
  canceled: "canceled";
6023
6518
  }>;
6024
6519
  retryContext: z.ZodObject<{
@@ -6026,8 +6521,8 @@ export declare const publicContractsV1: {
6026
6521
  next: z.ZodOptional<z.ZodObject<{
6027
6522
  attemptId: PublicIdSchema;
6028
6523
  status: z.ZodEnum<{
6029
- failed: "failed";
6030
6524
  passed: "passed";
6525
+ failed: "failed";
6031
6526
  canceled: "canceled";
6032
6527
  skipped: "skipped";
6033
6528
  aborted: "aborted";
@@ -6036,8 +6531,8 @@ export declare const publicContractsV1: {
6036
6531
  previous: z.ZodOptional<z.ZodObject<{
6037
6532
  attemptId: PublicIdSchema;
6038
6533
  status: z.ZodEnum<{
6039
- failed: "failed";
6040
6534
  passed: "passed";
6535
+ failed: "failed";
6041
6536
  canceled: "canceled";
6042
6537
  skipped: "skipped";
6043
6538
  aborted: "aborted";
@@ -6047,10 +6542,10 @@ export declare const publicContractsV1: {
6047
6542
  }, z.core.$strip>;
6048
6543
  runId: PublicIdSchema;
6049
6544
  runStatus: z.ZodEnum<{
6545
+ passed: "passed";
6050
6546
  failed: "failed";
6051
6547
  queued: "queued";
6052
6548
  running: "running";
6053
- passed: "passed";
6054
6549
  canceled: "canceled";
6055
6550
  superseded: "superseded";
6056
6551
  }>;
@@ -6064,8 +6559,8 @@ export declare const publicContractsV1: {
6064
6559
  startedAt: z.ZodOptional<z.ZodISODateTime>;
6065
6560
  kind: z.ZodLiteral<"automated">;
6066
6561
  status: z.ZodEnum<{
6067
- failed: "failed";
6068
6562
  passed: "passed";
6563
+ failed: "failed";
6069
6564
  canceled: "canceled";
6070
6565
  skipped: "skipped";
6071
6566
  aborted: "aborted";
@@ -6095,10 +6590,10 @@ export declare const publicContractsV1: {
6095
6590
  }, z.core.$strip>, z.ZodObject<{
6096
6591
  flowId: PublicIdSchema;
6097
6592
  flowStatus: z.ZodEnum<{
6593
+ passed: "passed";
6098
6594
  failed: "failed";
6099
6595
  queued: "queued";
6100
6596
  running: "running";
6101
- passed: "passed";
6102
6597
  canceled: "canceled";
6103
6598
  }>;
6104
6599
  retryContext: z.ZodObject<{
@@ -6106,8 +6601,8 @@ export declare const publicContractsV1: {
6106
6601
  next: z.ZodOptional<z.ZodObject<{
6107
6602
  attemptId: PublicIdSchema;
6108
6603
  status: z.ZodEnum<{
6109
- failed: "failed";
6110
6604
  passed: "passed";
6605
+ failed: "failed";
6111
6606
  canceled: "canceled";
6112
6607
  skipped: "skipped";
6113
6608
  aborted: "aborted";
@@ -6116,8 +6611,8 @@ export declare const publicContractsV1: {
6116
6611
  previous: z.ZodOptional<z.ZodObject<{
6117
6612
  attemptId: PublicIdSchema;
6118
6613
  status: z.ZodEnum<{
6119
- failed: "failed";
6120
6614
  passed: "passed";
6615
+ failed: "failed";
6121
6616
  canceled: "canceled";
6122
6617
  skipped: "skipped";
6123
6618
  aborted: "aborted";
@@ -6127,10 +6622,10 @@ export declare const publicContractsV1: {
6127
6622
  }, z.core.$strip>;
6128
6623
  runId: PublicIdSchema;
6129
6624
  runStatus: z.ZodEnum<{
6625
+ passed: "passed";
6130
6626
  failed: "failed";
6131
6627
  queued: "queued";
6132
6628
  running: "running";
6133
- passed: "passed";
6134
6629
  canceled: "canceled";
6135
6630
  superseded: "superseded";
6136
6631
  }>;
@@ -7053,6 +7548,8 @@ export declare const publicContractsV1: {
7053
7548
  terminatedAt: z.ZodOptional<z.ZodISODateTime>;
7054
7549
  variablesUrl: z.ZodOptional<z.ZodURL>;
7055
7550
  url: z.ZodURL;
7551
+ flowCount: z.ZodOptional<z.ZodNumber>;
7552
+ testCount: z.ZodOptional<z.ZodNumber>;
7056
7553
  }, z.core.$strip>>;
7057
7554
  nextCursor: z.ZodOptional<z.ZodString>;
7058
7555
  }, z.core.$strip>;
@@ -7183,8 +7680,52 @@ export declare const publicContractsV1: {
7183
7680
  targetCommitHash: z.ZodString;
7184
7681
  }, z.core.$strip>>;
7185
7682
  createdAt: z.ZodISODateTime;
7186
- headEnvironmentId: PublicIdSchema;
7187
- id: PublicIdSchema;
7683
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7684
+ candidateRuns: z.ZodArray<z.ZodObject<{
7685
+ candidate: z.ZodEnum<{
7686
+ combined: "combined";
7687
+ head: "head";
7688
+ base: "base";
7689
+ }>;
7690
+ outcome: z.ZodEnum<{
7691
+ passed: "passed";
7692
+ failed: "failed";
7693
+ inconclusive: "inconclusive";
7694
+ }>;
7695
+ runId: PublicIdSchema;
7696
+ }, z.core.$strip>>;
7697
+ kept: z.ZodOptional<z.ZodEnum<{
7698
+ combined: "combined";
7699
+ head: "head";
7700
+ base: "base";
7701
+ }>>;
7702
+ path: z.ZodString;
7703
+ reason: z.ZodString;
7704
+ sourceCommitHash: z.ZodString;
7705
+ targetCommitHash: z.ZodString;
7706
+ type: z.ZodEnum<{
7707
+ "picked-by-run": "picked-by-run";
7708
+ combined: "combined";
7709
+ "kept-more-checks": "kept-more-checks";
7710
+ "needs-person": "needs-person";
7711
+ }>;
7712
+ }, z.core.$strip>>>;
7713
+ headEnvironmentId: PublicIdSchema;
7714
+ id: PublicIdSchema;
7715
+ needsPerson: z.ZodOptional<z.ZodObject<{
7716
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
7717
+ path: z.ZodString;
7718
+ }, z.core.$strip>>>;
7719
+ reason: z.ZodEnum<{
7720
+ "undecided-paths": "undecided-paths";
7721
+ "run-limit-reached": "run-limit-reached";
7722
+ "flows-undetermined": "flows-undetermined";
7723
+ "agent-stopped": "agent-stopped";
7724
+ "agent-failed": "agent-failed";
7725
+ "agent-not-started": "agent-not-started";
7726
+ "agent-resolution-off": "agent-resolution-off";
7727
+ }>;
7728
+ }, z.core.$strip>>;
7188
7729
  promotedCommitHash: z.ZodOptional<z.ZodString>;
7189
7730
  settledAt: z.ZodOptional<z.ZodISODateTime>;
7190
7731
  status: z.ZodEnum<{
@@ -7200,6 +7741,7 @@ export declare const publicContractsV1: {
7200
7741
  runId: PublicIdSchema;
7201
7742
  runMode: z.ZodEnum<{
7202
7743
  "confirm-after": "confirm-after";
7744
+ "choose-version": "choose-version";
7203
7745
  }>;
7204
7746
  sourceCommitHash: z.ZodString;
7205
7747
  targetCommitHash: z.ZodString;
@@ -7457,10 +7999,10 @@ export declare const publicContractsV1: {
7457
7999
  passedAfterRetry: z.ZodBoolean;
7458
8000
  runId: PublicIdSchema;
7459
8001
  status: z.ZodEnum<{
8002
+ passed: "passed";
7460
8003
  failed: "failed";
7461
8004
  queued: "queued";
7462
8005
  running: "running";
7463
- passed: "passed";
7464
8006
  canceled: "canceled";
7465
8007
  }>;
7466
8008
  url: z.ZodURL;
@@ -7698,10 +8240,10 @@ export declare const publicContractsV1: {
7698
8240
  subSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7699
8241
  sessionId: PublicIdSchema;
7700
8242
  status: z.ZodEnum<{
8243
+ failed: "failed";
7701
8244
  working: "working";
7702
8245
  "waiting-for-you": "waiting-for-you";
7703
8246
  completed: "completed";
7704
- failed: "failed";
7705
8247
  cancelled: "cancelled";
7706
8248
  }>;
7707
8249
  }, z.core.$strip>>>;
@@ -7948,6 +8490,9 @@ export declare const publicContractsV1: {
7948
8490
  type: z.ZodLiteral<"team-api-key">;
7949
8491
  }, z.core.$strip>, z.ZodObject<{
7950
8492
  type: z.ZodLiteral<"system">;
8493
+ }, z.core.$strip>, z.ZodObject<{
8494
+ name: z.ZodOptional<z.ZodString>;
8495
+ type: z.ZodLiteral<"slack-user">;
7951
8496
  }, z.core.$strip>], "type">;
7952
8497
  body: z.ZodString;
7953
8498
  commentId: z.ZodString;
@@ -8075,80 +8620,6 @@ export declare const publicContractsV1: {
8075
8620
  }, z.core.$strip>;
8076
8621
  }, z.core.$strip>;
8077
8622
  };
8078
- decideSuggestion: {
8079
- readonly annotationJustifications: {
8080
- readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
8081
- readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
8082
- readonly readOnlyHint: "Records a decision on a suggestion and changes the issue's status.";
8083
- };
8084
- readonly annotations: {
8085
- readonly destructiveHint: false;
8086
- readonly openWorldHint: true;
8087
- readonly readOnlyHint: false;
8088
- };
8089
- readonly description: string;
8090
- readonly input: z.ZodObject<{
8091
- decision: z.ZodEnum<{
8092
- add: "add";
8093
- report: "report";
8094
- skip: "skip";
8095
- undo: "undo";
8096
- activate: "activate";
8097
- }>;
8098
- issueId: PublicIdSchema;
8099
- skipReason: z.ZodOptional<z.ZodEnum<{
8100
- "not-worth-testing": "not-worth-testing";
8101
- "already-covered": "already-covered";
8102
- "feature-removed": "feature-removed";
8103
- }>>;
8104
- }, z.core.$strip>;
8105
- readonly kind: "write";
8106
- readonly name: "issue.decideSuggestion";
8107
- readonly output: z.ZodObject<{
8108
- issue: z.ZodObject<{
8109
- coveredFlowIds: z.ZodArray<PublicIdSchema>;
8110
- createdAt: z.ZodCoercedDate<unknown>;
8111
- description: z.ZodString;
8112
- files: z.ZodDefault<z.ZodArray<z.ZodObject<{
8113
- fileId: z.ZodString;
8114
- name: z.ZodString;
8115
- sizeBytes: z.ZodNumber;
8116
- }, z.core.$strip>>>;
8117
- issueId: PublicIdSchema;
8118
- name: z.ZodString;
8119
- number: z.ZodNumber;
8120
- priority: z.ZodEnum<{
8121
- unprioritized: "unprioritized";
8122
- low: "low";
8123
- medium: "medium";
8124
- high: "high";
8125
- urgent: "urgent";
8126
- }>;
8127
- reproductions: z.ZodArray<z.ZodObject<{
8128
- environmentId: PublicIdSchema;
8129
- firstReproducedInRunId: PublicIdSchema;
8130
- flowId: PublicIdSchema;
8131
- isActive: z.ZodBoolean;
8132
- lastReproducedInRunId: PublicIdSchema;
8133
- }, z.core.$strip>>;
8134
- status: z.ZodEnum<{
8135
- pending: "pending";
8136
- canceled: "canceled";
8137
- backlog: "backlog";
8138
- inProgress: "inProgress";
8139
- paused: "paused";
8140
- resolved: "resolved";
8141
- archived: "archived";
8142
- }>;
8143
- type: z.ZodEnum<{
8144
- bug: "bug";
8145
- maintenance: "maintenance";
8146
- coverageRequest: "coverageRequest";
8147
- }>;
8148
- url: z.ZodURL;
8149
- }, z.core.$strip>;
8150
- }, z.core.$strip>;
8151
- };
8152
8623
  find: {
8153
8624
  readonly annotationJustifications: {
8154
8625
  readonly destructiveHint: "Does not edit issue details, statuses or coverage associations.";
@@ -8400,6 +8871,9 @@ export declare const publicContractsV1: {
8400
8871
  type: z.ZodLiteral<"team-api-key">;
8401
8872
  }, z.core.$strip>, z.ZodObject<{
8402
8873
  type: z.ZodLiteral<"system">;
8874
+ }, z.core.$strip>, z.ZodObject<{
8875
+ name: z.ZodOptional<z.ZodString>;
8876
+ type: z.ZodLiteral<"slack-user">;
8403
8877
  }, z.core.$strip>], "type">;
8404
8878
  body: z.ZodString;
8405
8879
  commentId: z.ZodString;
@@ -8742,8 +9216,8 @@ export declare const publicContractsV1: {
8742
9216
  readonly output: z.ZodObject<{
8743
9217
  exportFailureMessage: z.ZodOptional<z.ZodString>;
8744
9218
  exportStatus: z.ZodEnum<{
8745
- pending: "pending";
8746
9219
  failed: "failed";
9220
+ pending: "pending";
8747
9221
  ready: "ready";
8748
9222
  "not-requested": "not-requested";
8749
9223
  }>;
@@ -8800,8 +9274,52 @@ export declare const publicContractsV1: {
8800
9274
  targetCommitHash: z.ZodString;
8801
9275
  }, z.core.$strip>>;
8802
9276
  createdAt: z.ZodISODateTime;
9277
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9278
+ candidateRuns: z.ZodArray<z.ZodObject<{
9279
+ candidate: z.ZodEnum<{
9280
+ combined: "combined";
9281
+ head: "head";
9282
+ base: "base";
9283
+ }>;
9284
+ outcome: z.ZodEnum<{
9285
+ passed: "passed";
9286
+ failed: "failed";
9287
+ inconclusive: "inconclusive";
9288
+ }>;
9289
+ runId: PublicIdSchema;
9290
+ }, z.core.$strip>>;
9291
+ kept: z.ZodOptional<z.ZodEnum<{
9292
+ combined: "combined";
9293
+ head: "head";
9294
+ base: "base";
9295
+ }>>;
9296
+ path: z.ZodString;
9297
+ reason: z.ZodString;
9298
+ sourceCommitHash: z.ZodString;
9299
+ targetCommitHash: z.ZodString;
9300
+ type: z.ZodEnum<{
9301
+ "picked-by-run": "picked-by-run";
9302
+ combined: "combined";
9303
+ "kept-more-checks": "kept-more-checks";
9304
+ "needs-person": "needs-person";
9305
+ }>;
9306
+ }, z.core.$strip>>>;
8803
9307
  headEnvironmentId: PublicIdSchema;
8804
9308
  id: PublicIdSchema;
9309
+ needsPerson: z.ZodOptional<z.ZodObject<{
9310
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9311
+ path: z.ZodString;
9312
+ }, z.core.$strip>>>;
9313
+ reason: z.ZodEnum<{
9314
+ "undecided-paths": "undecided-paths";
9315
+ "run-limit-reached": "run-limit-reached";
9316
+ "flows-undetermined": "flows-undetermined";
9317
+ "agent-stopped": "agent-stopped";
9318
+ "agent-failed": "agent-failed";
9319
+ "agent-not-started": "agent-not-started";
9320
+ "agent-resolution-off": "agent-resolution-off";
9321
+ }>;
9322
+ }, z.core.$strip>>;
8805
9323
  promotedCommitHash: z.ZodOptional<z.ZodString>;
8806
9324
  settledAt: z.ZodOptional<z.ZodISODateTime>;
8807
9325
  status: z.ZodEnum<{
@@ -8817,6 +9335,7 @@ export declare const publicContractsV1: {
8817
9335
  runId: PublicIdSchema;
8818
9336
  runMode: z.ZodEnum<{
8819
9337
  "confirm-after": "confirm-after";
9338
+ "choose-version": "choose-version";
8820
9339
  }>;
8821
9340
  sourceCommitHash: z.ZodString;
8822
9341
  targetCommitHash: z.ZodString;
@@ -8851,8 +9370,52 @@ export declare const publicContractsV1: {
8851
9370
  targetCommitHash: z.ZodString;
8852
9371
  }, z.core.$strip>>;
8853
9372
  createdAt: z.ZodISODateTime;
9373
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9374
+ candidateRuns: z.ZodArray<z.ZodObject<{
9375
+ candidate: z.ZodEnum<{
9376
+ combined: "combined";
9377
+ head: "head";
9378
+ base: "base";
9379
+ }>;
9380
+ outcome: z.ZodEnum<{
9381
+ passed: "passed";
9382
+ failed: "failed";
9383
+ inconclusive: "inconclusive";
9384
+ }>;
9385
+ runId: PublicIdSchema;
9386
+ }, z.core.$strip>>;
9387
+ kept: z.ZodOptional<z.ZodEnum<{
9388
+ combined: "combined";
9389
+ head: "head";
9390
+ base: "base";
9391
+ }>>;
9392
+ path: z.ZodString;
9393
+ reason: z.ZodString;
9394
+ sourceCommitHash: z.ZodString;
9395
+ targetCommitHash: z.ZodString;
9396
+ type: z.ZodEnum<{
9397
+ "picked-by-run": "picked-by-run";
9398
+ combined: "combined";
9399
+ "kept-more-checks": "kept-more-checks";
9400
+ "needs-person": "needs-person";
9401
+ }>;
9402
+ }, z.core.$strip>>>;
8854
9403
  headEnvironmentId: PublicIdSchema;
8855
9404
  id: PublicIdSchema;
9405
+ needsPerson: z.ZodOptional<z.ZodObject<{
9406
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9407
+ path: z.ZodString;
9408
+ }, z.core.$strip>>>;
9409
+ reason: z.ZodEnum<{
9410
+ "undecided-paths": "undecided-paths";
9411
+ "run-limit-reached": "run-limit-reached";
9412
+ "flows-undetermined": "flows-undetermined";
9413
+ "agent-stopped": "agent-stopped";
9414
+ "agent-failed": "agent-failed";
9415
+ "agent-not-started": "agent-not-started";
9416
+ "agent-resolution-off": "agent-resolution-off";
9417
+ }>;
9418
+ }, z.core.$strip>>;
8856
9419
  promotedCommitHash: z.ZodOptional<z.ZodString>;
8857
9420
  settledAt: z.ZodOptional<z.ZodISODateTime>;
8858
9421
  status: z.ZodEnum<{
@@ -8868,6 +9431,7 @@ export declare const publicContractsV1: {
8868
9431
  runId: PublicIdSchema;
8869
9432
  runMode: z.ZodEnum<{
8870
9433
  "confirm-after": "confirm-after";
9434
+ "choose-version": "choose-version";
8871
9435
  }>;
8872
9436
  sourceCommitHash: z.ZodString;
8873
9437
  targetCommitHash: z.ZodString;
@@ -8876,6 +9440,140 @@ export declare const publicContractsV1: {
8876
9440
  aiTaskSessionId: z.ZodOptional<PublicIdSchema>;
8877
9441
  }, z.core.$strip>;
8878
9442
  };
9443
+ reportDecision: {
9444
+ readonly annotationJustifications: {
9445
+ readonly destructiveHint: "Records a decision on the promotion and changes no flow code.";
9446
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
9447
+ readonly readOnlyHint: "Records how a conflicting path was settled.";
9448
+ };
9449
+ readonly annotations: {
9450
+ readonly destructiveHint: false;
9451
+ readonly openWorldHint: false;
9452
+ readonly readOnlyHint: false;
9453
+ };
9454
+ readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.";
9455
+ readonly input: z.ZodObject<{
9456
+ base: z.ZodOptional<z.ZodObject<{
9457
+ outcome: z.ZodEnum<{
9458
+ passed: "passed";
9459
+ failed: "failed";
9460
+ inconclusive: "inconclusive";
9461
+ }>;
9462
+ runId: PublicIdSchema;
9463
+ }, z.core.$strip>>;
9464
+ combined: z.ZodOptional<z.ZodObject<{
9465
+ outcome: z.ZodEnum<{
9466
+ passed: "passed";
9467
+ failed: "failed";
9468
+ inconclusive: "inconclusive";
9469
+ }>;
9470
+ runId: PublicIdSchema;
9471
+ }, z.core.$strip>>;
9472
+ decision: z.ZodEnum<{
9473
+ "picked-by-run": "picked-by-run";
9474
+ combined: "combined";
9475
+ "kept-more-checks": "kept-more-checks";
9476
+ "needs-person": "needs-person";
9477
+ }>;
9478
+ expectedSourceCommitHash: z.ZodString;
9479
+ expectedTargetCommitHash: z.ZodString;
9480
+ head: z.ZodOptional<z.ZodObject<{
9481
+ outcome: z.ZodEnum<{
9482
+ passed: "passed";
9483
+ failed: "failed";
9484
+ inconclusive: "inconclusive";
9485
+ }>;
9486
+ runId: PublicIdSchema;
9487
+ }, z.core.$strip>>;
9488
+ kept: z.ZodOptional<z.ZodEnum<{
9489
+ combined: "combined";
9490
+ head: "head";
9491
+ base: "base";
9492
+ }>>;
9493
+ path: z.ZodString;
9494
+ promotionId: PublicIdSchema;
9495
+ reason: z.ZodString;
9496
+ }, z.core.$strip>;
9497
+ readonly kind: "write";
9498
+ readonly name: "promotion.reportDecision";
9499
+ readonly output: z.ZodObject<{
9500
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
9501
+ baseEnvironmentId: PublicIdSchema;
9502
+ conflict: z.ZodOptional<z.ZodObject<{
9503
+ paths: z.ZodArray<z.ZodString>;
9504
+ sourceCommitHash: z.ZodString;
9505
+ targetCommitHash: z.ZodString;
9506
+ }, z.core.$strip>>;
9507
+ createdAt: z.ZodISODateTime;
9508
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9509
+ candidateRuns: z.ZodArray<z.ZodObject<{
9510
+ candidate: z.ZodEnum<{
9511
+ combined: "combined";
9512
+ head: "head";
9513
+ base: "base";
9514
+ }>;
9515
+ outcome: z.ZodEnum<{
9516
+ passed: "passed";
9517
+ failed: "failed";
9518
+ inconclusive: "inconclusive";
9519
+ }>;
9520
+ runId: PublicIdSchema;
9521
+ }, z.core.$strip>>;
9522
+ kept: z.ZodOptional<z.ZodEnum<{
9523
+ combined: "combined";
9524
+ head: "head";
9525
+ base: "base";
9526
+ }>>;
9527
+ path: z.ZodString;
9528
+ reason: z.ZodString;
9529
+ sourceCommitHash: z.ZodString;
9530
+ targetCommitHash: z.ZodString;
9531
+ type: z.ZodEnum<{
9532
+ "picked-by-run": "picked-by-run";
9533
+ combined: "combined";
9534
+ "kept-more-checks": "kept-more-checks";
9535
+ "needs-person": "needs-person";
9536
+ }>;
9537
+ }, z.core.$strip>>>;
9538
+ headEnvironmentId: PublicIdSchema;
9539
+ id: PublicIdSchema;
9540
+ needsPerson: z.ZodOptional<z.ZodObject<{
9541
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9542
+ path: z.ZodString;
9543
+ }, z.core.$strip>>>;
9544
+ reason: z.ZodEnum<{
9545
+ "undecided-paths": "undecided-paths";
9546
+ "run-limit-reached": "run-limit-reached";
9547
+ "flows-undetermined": "flows-undetermined";
9548
+ "agent-stopped": "agent-stopped";
9549
+ "agent-failed": "agent-failed";
9550
+ "agent-not-started": "agent-not-started";
9551
+ "agent-resolution-off": "agent-resolution-off";
9552
+ }>;
9553
+ }, z.core.$strip>>;
9554
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
9555
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
9556
+ status: z.ZodEnum<{
9557
+ pending: "pending";
9558
+ conflicted: "conflicted";
9559
+ resolving: "resolving";
9560
+ promoted: "promoted";
9561
+ "no-changes": "no-changes";
9562
+ abandoned: "abandoned";
9563
+ }>;
9564
+ validationRuns: z.ZodArray<z.ZodObject<{
9565
+ aiTaskId: PublicIdSchema;
9566
+ runId: PublicIdSchema;
9567
+ runMode: z.ZodEnum<{
9568
+ "confirm-after": "confirm-after";
9569
+ "choose-version": "choose-version";
9570
+ }>;
9571
+ sourceCommitHash: z.ZodString;
9572
+ targetCommitHash: z.ZodString;
9573
+ }, z.core.$strip>>;
9574
+ url: z.ZodURL;
9575
+ }, z.core.$strip>;
9576
+ };
8879
9577
  resolve: {
8880
9578
  readonly annotationJustifications: {
8881
9579
  readonly destructiveHint: "Lands the resolved files on the base environment's flow code branch and terminates the head environment once they land.";
@@ -8887,7 +9585,7 @@ export declare const publicContractsV1: {
8887
9585
  readonly openWorldHint: false;
8888
9586
  readonly readOnlyHint: false;
8889
9587
  };
8890
- readonly description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.";
9588
+ readonly description: "Submit the resolution of a conflicted promotion: the full resolved contents of every conflicting path to keep, and every conflicting path to delete. Together they must cover exactly the paths in the promotion's conflict, and both commit hashes must match the conflict's; if a branch moved since, the call is refused as stale-conflict and promotion.get has the current conflict. If the base environment has been terminated, the call is refused as target-environment-gone and the promotion can no longer be resolved. Returns the promotion in resolving; poll promotion.get until it is promoted, or conflicted again if the branches moved while it applied.";
8891
9589
  readonly input: z.ZodObject<{
8892
9590
  deletes: z.ZodOptional<z.ZodArray<z.ZodString>>;
8893
9591
  expectedSourceCommitHash: z.ZodString;
@@ -8906,8 +9604,52 @@ export declare const publicContractsV1: {
8906
9604
  targetCommitHash: z.ZodString;
8907
9605
  }, z.core.$strip>>;
8908
9606
  createdAt: z.ZodISODateTime;
9607
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9608
+ candidateRuns: z.ZodArray<z.ZodObject<{
9609
+ candidate: z.ZodEnum<{
9610
+ combined: "combined";
9611
+ head: "head";
9612
+ base: "base";
9613
+ }>;
9614
+ outcome: z.ZodEnum<{
9615
+ passed: "passed";
9616
+ failed: "failed";
9617
+ inconclusive: "inconclusive";
9618
+ }>;
9619
+ runId: PublicIdSchema;
9620
+ }, z.core.$strip>>;
9621
+ kept: z.ZodOptional<z.ZodEnum<{
9622
+ combined: "combined";
9623
+ head: "head";
9624
+ base: "base";
9625
+ }>>;
9626
+ path: z.ZodString;
9627
+ reason: z.ZodString;
9628
+ sourceCommitHash: z.ZodString;
9629
+ targetCommitHash: z.ZodString;
9630
+ type: z.ZodEnum<{
9631
+ "picked-by-run": "picked-by-run";
9632
+ combined: "combined";
9633
+ "kept-more-checks": "kept-more-checks";
9634
+ "needs-person": "needs-person";
9635
+ }>;
9636
+ }, z.core.$strip>>>;
8909
9637
  headEnvironmentId: PublicIdSchema;
8910
9638
  id: PublicIdSchema;
9639
+ needsPerson: z.ZodOptional<z.ZodObject<{
9640
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9641
+ path: z.ZodString;
9642
+ }, z.core.$strip>>>;
9643
+ reason: z.ZodEnum<{
9644
+ "undecided-paths": "undecided-paths";
9645
+ "run-limit-reached": "run-limit-reached";
9646
+ "flows-undetermined": "flows-undetermined";
9647
+ "agent-stopped": "agent-stopped";
9648
+ "agent-failed": "agent-failed";
9649
+ "agent-not-started": "agent-not-started";
9650
+ "agent-resolution-off": "agent-resolution-off";
9651
+ }>;
9652
+ }, z.core.$strip>>;
8911
9653
  promotedCommitHash: z.ZodOptional<z.ZodString>;
8912
9654
  settledAt: z.ZodOptional<z.ZodISODateTime>;
8913
9655
  status: z.ZodEnum<{
@@ -8923,6 +9665,7 @@ export declare const publicContractsV1: {
8923
9665
  runId: PublicIdSchema;
8924
9666
  runMode: z.ZodEnum<{
8925
9667
  "confirm-after": "confirm-after";
9668
+ "choose-version": "choose-version";
8926
9669
  }>;
8927
9670
  sourceCommitHash: z.ZodString;
8928
9671
  targetCommitHash: z.ZodString;
@@ -8991,6 +9734,7 @@ export declare const publicContractsV1: {
8991
9734
  repository: z.ZodOptional<z.ZodString>;
8992
9735
  resolutionRunMode: z.ZodOptional<z.ZodEnum<{
8993
9736
  "confirm-after": "confirm-after";
9737
+ "choose-version": "choose-version";
8994
9738
  }>>;
8995
9739
  workspaceId: z.ZodOptional<PublicIdSchema>;
8996
9740
  }, z.core.$strip>, z.ZodObject<{
@@ -9120,10 +9864,10 @@ export declare const publicContractsV1: {
9120
9864
  needsReview: z.ZodOptional<z.ZodBoolean>;
9121
9865
  runId: PublicIdSchema;
9122
9866
  status: z.ZodEnum<{
9867
+ passed: "passed";
9123
9868
  failed: "failed";
9124
9869
  queued: "queued";
9125
9870
  running: "running";
9126
- passed: "passed";
9127
9871
  canceled: "canceled";
9128
9872
  superseded: "superseded";
9129
9873
  }>;
@@ -9149,10 +9893,10 @@ export declare const publicContractsV1: {
9149
9893
  readonly description: "Get a run's status, per-flow results, links, and how many of its bugs are blocking. Call it without waitSeconds for an immediate answer. To wait on a run that is still queued or running, pass waitSeconds up to 45: the server holds the check open and answers the moment the status changes. A held check also waits while the run is still being created. After a held check returns, call again only while status is queued or running. Stop when status is passed, failed, canceled, or superseded.";
9150
9894
  readonly input: z.ZodObject<{
9151
9895
  flowStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9896
+ passed: "passed";
9152
9897
  failed: "failed";
9153
9898
  queued: "queued";
9154
9899
  running: "running";
9155
- passed: "passed";
9156
9900
  canceled: "canceled";
9157
9901
  }>>>;
9158
9902
  runId: PublicIdSchema;
@@ -9302,12 +10046,25 @@ export declare const publicContractsV1: {
9302
10046
  flowId: PublicIdSchema;
9303
10047
  name: z.ZodString;
9304
10048
  status: z.ZodEnum<{
10049
+ passed: "passed";
9305
10050
  queued: "queued";
9306
10051
  running: "running";
9307
- passed: "passed";
9308
10052
  canceled: "canceled";
9309
10053
  }>;
9310
10054
  }, z.core.$strip>], "status">>;
10055
+ runAlertNotifications: z.ZodArray<z.ZodObject<{
10056
+ channel: z.ZodEnum<{
10057
+ slack: "slack";
10058
+ }>;
10059
+ destination: z.ZodDiscriminatedUnion<[z.ZodObject<{
10060
+ channelId: z.ZodString;
10061
+ kind: z.ZodLiteral<"slack-channel">;
10062
+ workspaceId: z.ZodString;
10063
+ }, z.core.$strip>], "kind">;
10064
+ messageId: z.ZodString;
10065
+ permalink: z.ZodOptional<z.ZodString>;
10066
+ sentAt: z.ZodISODateTime;
10067
+ }, z.core.$strip>>;
9311
10068
  runId: PublicIdSchema;
9312
10069
  siteVersions: z.ZodArray<z.ZodObject<{
9313
10070
  expected: z.ZodOptional<z.ZodObject<{
@@ -9337,10 +10094,10 @@ export declare const publicContractsV1: {
9337
10094
  }, z.core.$strip>;
9338
10095
  needsReview: z.ZodOptional<z.ZodBoolean>;
9339
10096
  status: z.ZodEnum<{
10097
+ passed: "passed";
9340
10098
  failed: "failed";
9341
10099
  queued: "queued";
9342
10100
  running: "running";
9343
- passed: "passed";
9344
10101
  canceled: "canceled";
9345
10102
  superseded: "superseded";
9346
10103
  }>;
@@ -10656,6 +11413,238 @@ export declare const publicContractsV1: {
10656
11413
  }, z.core.$strip>;
10657
11414
  };
10658
11415
  };
11416
+ suggestion: {
11417
+ decide: {
11418
+ readonly annotationJustifications: {
11419
+ readonly destructiveHint: "Every decision can be undone until the flow joins, and nothing is deleted.";
11420
+ readonly openWorldHint: "An added suggestion writes its flow to the environment's flow code repository.";
11421
+ readonly readOnlyHint: "Records a decision on a suggestion and changes its linked issue's status.";
11422
+ };
11423
+ readonly annotations: {
11424
+ readonly destructiveHint: false;
11425
+ readonly openWorldHint: true;
11426
+ readonly readOnlyHint: false;
11427
+ };
11428
+ readonly description: string;
11429
+ readonly input: z.ZodObject<{
11430
+ decision: z.ZodEnum<{
11431
+ add: "add";
11432
+ report: "report";
11433
+ skip: "skip";
11434
+ undo: "undo";
11435
+ activate: "activate";
11436
+ }>;
11437
+ skipReason: z.ZodOptional<z.ZodEnum<{
11438
+ "not-worth-testing": "not-worth-testing";
11439
+ "already-covered": "already-covered";
11440
+ "feature-removed": "feature-removed";
11441
+ }>>;
11442
+ suggestionId: PublicIdSchema;
11443
+ }, z.core.$strip>;
11444
+ readonly kind: "write";
11445
+ readonly name: "suggestion.decide";
11446
+ readonly output: z.ZodObject<{
11447
+ suggestion: z.ZodObject<{
11448
+ decidedAt: z.ZodOptional<z.ZodISODateTime>;
11449
+ decisions: z.ZodArray<z.ZodEnum<{
11450
+ add: "add";
11451
+ report: "report";
11452
+ skip: "skip";
11453
+ undo: "undo";
11454
+ activate: "activate";
11455
+ }>>;
11456
+ environmentId: PublicIdSchema;
11457
+ environmentName: z.ZodString;
11458
+ flow: z.ZodObject<{
11459
+ flowId: z.ZodOptional<PublicIdSchema>;
11460
+ path: z.ZodString;
11461
+ }, z.core.$strip>;
11462
+ holdReason: z.ZodOptional<z.ZodEnum<{
11463
+ "path-taken": "path-taken";
11464
+ "not-proven-on-merged-commit": "not-proven-on-merged-commit";
11465
+ "merge-conflicted": "merge-conflicted";
11466
+ "undo-cleanup-failed": "undo-cleanup-failed";
11467
+ }>>;
11468
+ issue: z.ZodOptional<z.ZodObject<{
11469
+ issueId: PublicIdSchema;
11470
+ type: z.ZodEnum<{
11471
+ bug: "bug";
11472
+ coverageRequest: "coverageRequest";
11473
+ }>;
11474
+ }, z.core.$strip>>;
11475
+ kind: z.ZodEnum<{
11476
+ "new-flow": "new-flow";
11477
+ "potential-bug": "potential-bug";
11478
+ }>;
11479
+ location: z.ZodString;
11480
+ reason: z.ZodString;
11481
+ skipReason: z.ZodOptional<z.ZodEnum<{
11482
+ "not-worth-testing": "not-worth-testing";
11483
+ "already-covered": "already-covered";
11484
+ "feature-removed": "feature-removed";
11485
+ }>>;
11486
+ state: z.ZodEnum<{
11487
+ skipped: "skipped";
11488
+ accepted: "accepted";
11489
+ waiting: "waiting";
11490
+ expired: "expired";
11491
+ }>;
11492
+ suggestedAt: z.ZodISODateTime;
11493
+ suggestionId: PublicIdSchema;
11494
+ title: z.ZodString;
11495
+ url: z.ZodURL;
11496
+ }, z.core.$strip>;
11497
+ }, z.core.$strip>;
11498
+ };
11499
+ find: {
11500
+ readonly annotationJustifications: {
11501
+ readonly destructiveHint: "Does not decide or change any suggestion.";
11502
+ readonly openWorldHint: "Reads QA Wolf suggestion records without changing external systems.";
11503
+ readonly readOnlyHint: "Lists the workspace's coverage suggestions.";
11504
+ };
11505
+ readonly annotations: {
11506
+ readonly destructiveHint: false;
11507
+ readonly openWorldHint: false;
11508
+ readonly readOnlyHint: true;
11509
+ };
11510
+ readonly description: string;
11511
+ readonly input: z.ZodObject<{
11512
+ cursor: z.ZodOptional<z.ZodString>;
11513
+ limit: z.ZodDefault<z.ZodNumber>;
11514
+ state: z.ZodOptional<z.ZodEnum<{
11515
+ skipped: "skipped";
11516
+ accepted: "accepted";
11517
+ waiting: "waiting";
11518
+ }>>;
11519
+ workspaceId: z.ZodOptional<PublicIdSchema>;
11520
+ }, z.core.$strip>;
11521
+ readonly kind: "read";
11522
+ readonly name: "suggestion.find";
11523
+ readonly output: z.ZodObject<{
11524
+ nextCursor: z.ZodOptional<z.ZodString>;
11525
+ suggestions: z.ZodArray<z.ZodObject<{
11526
+ decidedAt: z.ZodOptional<z.ZodISODateTime>;
11527
+ decisions: z.ZodArray<z.ZodEnum<{
11528
+ add: "add";
11529
+ report: "report";
11530
+ skip: "skip";
11531
+ undo: "undo";
11532
+ activate: "activate";
11533
+ }>>;
11534
+ environmentId: PublicIdSchema;
11535
+ environmentName: z.ZodString;
11536
+ flow: z.ZodObject<{
11537
+ flowId: z.ZodOptional<PublicIdSchema>;
11538
+ path: z.ZodString;
11539
+ }, z.core.$strip>;
11540
+ holdReason: z.ZodOptional<z.ZodEnum<{
11541
+ "path-taken": "path-taken";
11542
+ "not-proven-on-merged-commit": "not-proven-on-merged-commit";
11543
+ "merge-conflicted": "merge-conflicted";
11544
+ "undo-cleanup-failed": "undo-cleanup-failed";
11545
+ }>>;
11546
+ issue: z.ZodOptional<z.ZodObject<{
11547
+ issueId: PublicIdSchema;
11548
+ type: z.ZodEnum<{
11549
+ bug: "bug";
11550
+ coverageRequest: "coverageRequest";
11551
+ }>;
11552
+ }, z.core.$strip>>;
11553
+ kind: z.ZodEnum<{
11554
+ "new-flow": "new-flow";
11555
+ "potential-bug": "potential-bug";
11556
+ }>;
11557
+ location: z.ZodString;
11558
+ reason: z.ZodString;
11559
+ skipReason: z.ZodOptional<z.ZodEnum<{
11560
+ "not-worth-testing": "not-worth-testing";
11561
+ "already-covered": "already-covered";
11562
+ "feature-removed": "feature-removed";
11563
+ }>>;
11564
+ state: z.ZodEnum<{
11565
+ skipped: "skipped";
11566
+ accepted: "accepted";
11567
+ waiting: "waiting";
11568
+ expired: "expired";
11569
+ }>;
11570
+ suggestedAt: z.ZodISODateTime;
11571
+ suggestionId: PublicIdSchema;
11572
+ title: z.ZodString;
11573
+ url: z.ZodURL;
11574
+ }, z.core.$strip>>;
11575
+ }, z.core.$strip>;
11576
+ };
11577
+ get: {
11578
+ readonly annotationJustifications: {
11579
+ readonly destructiveHint: "Does not decide or change the suggestion.";
11580
+ readonly openWorldHint: "Reads a QA Wolf suggestion record without changing external systems.";
11581
+ readonly readOnlyHint: "Retrieves one coverage suggestion.";
11582
+ };
11583
+ readonly annotations: {
11584
+ readonly destructiveHint: false;
11585
+ readonly openWorldHint: false;
11586
+ readonly readOnlyHint: true;
11587
+ };
11588
+ readonly description: string;
11589
+ readonly input: z.ZodObject<{
11590
+ suggestionId: PublicIdSchema;
11591
+ }, z.core.$strip>;
11592
+ readonly kind: "read";
11593
+ readonly name: "suggestion.get";
11594
+ readonly output: z.ZodObject<{
11595
+ suggestion: z.ZodObject<{
11596
+ decidedAt: z.ZodOptional<z.ZodISODateTime>;
11597
+ decisions: z.ZodArray<z.ZodEnum<{
11598
+ add: "add";
11599
+ report: "report";
11600
+ skip: "skip";
11601
+ undo: "undo";
11602
+ activate: "activate";
11603
+ }>>;
11604
+ environmentId: PublicIdSchema;
11605
+ environmentName: z.ZodString;
11606
+ flow: z.ZodObject<{
11607
+ flowId: z.ZodOptional<PublicIdSchema>;
11608
+ path: z.ZodString;
11609
+ }, z.core.$strip>;
11610
+ holdReason: z.ZodOptional<z.ZodEnum<{
11611
+ "path-taken": "path-taken";
11612
+ "not-proven-on-merged-commit": "not-proven-on-merged-commit";
11613
+ "merge-conflicted": "merge-conflicted";
11614
+ "undo-cleanup-failed": "undo-cleanup-failed";
11615
+ }>>;
11616
+ issue: z.ZodOptional<z.ZodObject<{
11617
+ issueId: PublicIdSchema;
11618
+ type: z.ZodEnum<{
11619
+ bug: "bug";
11620
+ coverageRequest: "coverageRequest";
11621
+ }>;
11622
+ }, z.core.$strip>>;
11623
+ kind: z.ZodEnum<{
11624
+ "new-flow": "new-flow";
11625
+ "potential-bug": "potential-bug";
11626
+ }>;
11627
+ location: z.ZodString;
11628
+ reason: z.ZodString;
11629
+ skipReason: z.ZodOptional<z.ZodEnum<{
11630
+ "not-worth-testing": "not-worth-testing";
11631
+ "already-covered": "already-covered";
11632
+ "feature-removed": "feature-removed";
11633
+ }>>;
11634
+ state: z.ZodEnum<{
11635
+ skipped: "skipped";
11636
+ accepted: "accepted";
11637
+ waiting: "waiting";
11638
+ expired: "expired";
11639
+ }>;
11640
+ suggestedAt: z.ZodISODateTime;
11641
+ suggestionId: PublicIdSchema;
11642
+ title: z.ZodString;
11643
+ url: z.ZodURL;
11644
+ }, z.core.$strip>;
11645
+ }, z.core.$strip>;
11646
+ };
11647
+ };
10659
11648
  tag: {
10660
11649
  create: {
10661
11650
  readonly annotationJustifications: {