@qawolf/api-contracts 0.73.0 → 0.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/v1/deployment/index.d.ts +4 -4
  2. package/dist/v1/deployment/listTriggerEvaluations.d.ts +4 -4
  3. package/dist/v1/deployment/verdict.d.ts +52 -1
  4. package/dist/v1/deployment/verdict.d.ts.map +1 -1
  5. package/dist/v1/deployment/verdict.js +10 -1
  6. package/dist/v1/deployment/verdict.js.map +1 -1
  7. package/dist/v1/deployment/verdictParts.d.ts +10 -0
  8. package/dist/v1/deployment/verdictParts.d.ts.map +1 -1
  9. package/dist/v1/deployment/verdictParts.js +8 -2
  10. package/dist/v1/deployment/verdictParts.js.map +1 -1
  11. package/dist/v1/ids.d.ts +2 -1
  12. package/dist/v1/ids.d.ts.map +1 -1
  13. package/dist/v1/ids.js +1 -0
  14. package/dist/v1/ids.js.map +1 -1
  15. package/dist/v1/index.d.ts +481 -11
  16. package/dist/v1/index.d.ts.map +1 -1
  17. package/dist/v1/index.js +9 -1
  18. package/dist/v1/index.js.map +1 -1
  19. package/dist/v1/issue/create.js +1 -1
  20. package/dist/v1/issue/create.js.map +1 -1
  21. package/dist/v1/issue/update.js +1 -1
  22. package/dist/v1/issue/update.js.map +1 -1
  23. package/dist/v1/run/find.d.ts +8 -1
  24. package/dist/v1/run/find.d.ts.map +1 -1
  25. package/dist/v1/run/find.js +6 -4
  26. package/dist/v1/run/find.js.map +1 -1
  27. package/dist/v1/run/flowFailure.d.ts +23 -0
  28. package/dist/v1/run/flowFailure.d.ts.map +1 -0
  29. package/dist/v1/run/flowFailure.js +41 -0
  30. package/dist/v1/run/flowFailure.js.map +1 -0
  31. package/dist/v1/run/get.d.ts +21 -1
  32. package/dist/v1/run/get.d.ts.map +1 -1
  33. package/dist/v1/run/get.js +7 -28
  34. package/dist/v1/run/get.js.map +1 -1
  35. package/dist/v1/run/getAttemptArtifacts.d.ts +196 -0
  36. package/dist/v1/run/getAttemptArtifacts.d.ts.map +1 -0
  37. package/dist/v1/run/getAttemptArtifacts.js +78 -0
  38. package/dist/v1/run/getAttemptArtifacts.js.map +1 -0
  39. package/dist/v1/run/optOutOfInvestigation.d.ts +26 -0
  40. package/dist/v1/run/optOutOfInvestigation.d.ts.map +1 -0
  41. package/dist/v1/run/optOutOfInvestigation.js +38 -0
  42. package/dist/v1/run/optOutOfInvestigation.js.map +1 -0
  43. package/dist/v1/run/summary.d.ts +12 -0
  44. package/dist/v1/run/summary.d.ts.map +1 -1
  45. package/dist/v1/run/summary.js +19 -2
  46. package/dist/v1/run/summary.js.map +1 -1
  47. package/package.json +1 -1
@@ -11,7 +11,9 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
11
11
  * the same factory with its own strict id schemas, so the contract shape can
12
12
  * never drift between the two while validation strictness stays server-owned.
13
13
  */
14
- 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>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId>) => {
14
+ 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>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId>, "runAttempt"> & {
15
+ runAttempt?: RunAttemptId;
16
+ }) => {
15
17
  agent: {
16
18
  get: {
17
19
  readonly annotations: {
@@ -204,17 +206,17 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
204
206
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
205
207
  kind: z.ZodEnum<{
206
208
  branch: "branch";
209
+ environment: "environment";
207
210
  deployTarget: "deployTarget";
208
211
  service: "service";
209
- environment: "environment";
210
212
  }>;
211
213
  outcome: z.ZodLiteral<"matched">;
212
214
  }, z.core.$strip>, z.ZodObject<{
213
215
  kind: z.ZodEnum<{
214
216
  branch: "branch";
217
+ environment: "environment";
215
218
  deployTarget: "deployTarget";
216
219
  service: "service";
217
- environment: "environment";
218
220
  }>;
219
221
  outcome: z.ZodLiteral<"did-not-match">;
220
222
  reason: z.ZodString;
@@ -264,17 +266,17 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
264
266
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
265
267
  kind: z.ZodEnum<{
266
268
  branch: "branch";
269
+ environment: "environment";
267
270
  deployTarget: "deployTarget";
268
271
  service: "service";
269
- environment: "environment";
270
272
  }>;
271
273
  outcome: z.ZodLiteral<"matched">;
272
274
  }, z.core.$strip>, z.ZodObject<{
273
275
  kind: z.ZodEnum<{
274
276
  branch: "branch";
277
+ environment: "environment";
275
278
  deployTarget: "deployTarget";
276
279
  service: "service";
277
- environment: "environment";
278
280
  }>;
279
281
  outcome: z.ZodLiteral<"did-not-match">;
280
282
  reason: z.ZodString;
@@ -1652,7 +1654,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1652
1654
  readonly openWorldHint: false;
1653
1655
  readonly readOnlyHint: true;
1654
1656
  };
1655
- readonly description: "List an environment's recent runs, newest first.";
1657
+ readonly description: "List an environment's recent runs, newest first, including failed-attempt discovery metadata.";
1656
1658
  readonly input: z.ZodObject<{
1657
1659
  environmentId: PublicIdSchema;
1658
1660
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -1665,6 +1667,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1665
1667
  readonly output: z.ZodObject<{
1666
1668
  nextCursor: z.ZodOptional<z.ZodString>;
1667
1669
  runs: z.ZodArray<z.ZodObject<{
1670
+ failedAttemptCount: z.ZodOptional<z.ZodNumber>;
1671
+ hasFailedAttempts: z.ZodOptional<z.ZodBoolean>;
1668
1672
  completedAt: z.ZodOptional<z.ZodISODateTime>;
1669
1673
  createdAt: z.ZodISODateTime;
1670
1674
  git: z.ZodObject<{
@@ -1681,7 +1685,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1681
1685
  running: "running";
1682
1686
  passed: "passed";
1683
1687
  canceled: "canceled";
1688
+ superseded: "superseded";
1684
1689
  }>;
1690
+ supersededBy: z.ZodOptional<z.ZodObject<{
1691
+ runId: RunId;
1692
+ url: z.ZodURL;
1693
+ }, z.core.$strip>>;
1685
1694
  url: z.ZodURL;
1686
1695
  }, z.core.$strip>>;
1687
1696
  }, z.core.$strip>;
@@ -1709,6 +1718,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1709
1718
  blockingBugCount: z.ZodNumber;
1710
1719
  flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1711
1720
  attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1721
+ attemptId: z.ZodOptional<PublicIdSchema>;
1712
1722
  completedAt: z.ZodISODateTime;
1713
1723
  kind: z.ZodLiteral<"automated">;
1714
1724
  startedAt: z.ZodISODateTime;
@@ -1717,6 +1727,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1717
1727
  traceUrl: z.ZodOptional<z.ZodURL>;
1718
1728
  videoUrl: z.ZodOptional<z.ZodURL>;
1719
1729
  }, z.core.$strip>, z.ZodObject<{
1730
+ attemptId: z.ZodOptional<PublicIdSchema>;
1720
1731
  completedAt: z.ZodISODateTime;
1721
1732
  kind: z.ZodLiteral<"automated">;
1722
1733
  startedAt: z.ZodOptional<z.ZodISODateTime>;
@@ -1725,11 +1736,13 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1725
1736
  traceUrl: z.ZodOptional<z.ZodURL>;
1726
1737
  videoUrl: z.ZodOptional<z.ZodURL>;
1727
1738
  }, z.core.$strip>, z.ZodObject<{
1739
+ attemptId: z.ZodOptional<PublicIdSchema>;
1728
1740
  completedAt: z.ZodOptional<z.ZodISODateTime>;
1729
1741
  kind: z.ZodLiteral<"automated">;
1730
1742
  startedAt: z.ZodOptional<z.ZodISODateTime>;
1731
1743
  status: z.ZodLiteral<"canceled">;
1732
1744
  }, z.core.$strip>], "status">, z.ZodObject<{
1745
+ attemptId: z.ZodOptional<PublicIdSchema>;
1733
1746
  completedAt: z.ZodISODateTime;
1734
1747
  kind: z.ZodLiteral<"manual">;
1735
1748
  startedAt: z.ZodISODateTime;
@@ -1744,12 +1757,19 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1744
1757
  }>;
1745
1758
  }, z.core.$strip>>;
1746
1759
  error: z.ZodString;
1760
+ optedOutOfInvestigation: z.ZodOptional<z.ZodObject<{
1761
+ by: z.ZodEnum<{
1762
+ user: "user";
1763
+ system: "system";
1764
+ }>;
1765
+ }, z.core.$strip>>;
1747
1766
  }, z.core.$strip>;
1748
1767
  flowId: FlowId;
1749
1768
  name: z.ZodString;
1750
1769
  status: z.ZodLiteral<"failed">;
1751
1770
  }, z.core.$strip>, z.ZodObject<{
1752
1771
  attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1772
+ attemptId: z.ZodOptional<PublicIdSchema>;
1753
1773
  completedAt: z.ZodISODateTime;
1754
1774
  kind: z.ZodLiteral<"automated">;
1755
1775
  startedAt: z.ZodISODateTime;
@@ -1758,6 +1778,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1758
1778
  traceUrl: z.ZodOptional<z.ZodURL>;
1759
1779
  videoUrl: z.ZodOptional<z.ZodURL>;
1760
1780
  }, z.core.$strip>, z.ZodObject<{
1781
+ attemptId: z.ZodOptional<PublicIdSchema>;
1761
1782
  completedAt: z.ZodISODateTime;
1762
1783
  kind: z.ZodLiteral<"automated">;
1763
1784
  startedAt: z.ZodOptional<z.ZodISODateTime>;
@@ -1766,11 +1787,13 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1766
1787
  traceUrl: z.ZodOptional<z.ZodURL>;
1767
1788
  videoUrl: z.ZodOptional<z.ZodURL>;
1768
1789
  }, z.core.$strip>, z.ZodObject<{
1790
+ attemptId: z.ZodOptional<PublicIdSchema>;
1769
1791
  completedAt: z.ZodOptional<z.ZodISODateTime>;
1770
1792
  kind: z.ZodLiteral<"automated">;
1771
1793
  startedAt: z.ZodOptional<z.ZodISODateTime>;
1772
1794
  status: z.ZodLiteral<"canceled">;
1773
1795
  }, z.core.$strip>], "status">, z.ZodObject<{
1796
+ attemptId: z.ZodOptional<PublicIdSchema>;
1774
1797
  completedAt: z.ZodISODateTime;
1775
1798
  kind: z.ZodLiteral<"manual">;
1776
1799
  startedAt: z.ZodISODateTime;
@@ -1801,7 +1824,220 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1801
1824
  running: "running";
1802
1825
  passed: "passed";
1803
1826
  canceled: "canceled";
1827
+ superseded: "superseded";
1828
+ }>;
1829
+ supersededBy: z.ZodOptional<z.ZodObject<{
1830
+ runId: RunId;
1831
+ url: z.ZodURL;
1832
+ }, z.core.$strip>>;
1833
+ url: z.ZodURL;
1834
+ }, z.core.$strip>;
1835
+ };
1836
+ getAttemptArtifacts: {
1837
+ readonly annotations: {
1838
+ readonly destructiveHint: false;
1839
+ readonly openWorldHint: false;
1840
+ readonly readOnlyHint: true;
1841
+ };
1842
+ readonly description: "Get metadata and signed artifact URLs for one finished run attempt.";
1843
+ readonly input: z.ZodObject<{
1844
+ attemptId: PublicIdSchema;
1845
+ }, z.core.$strip>;
1846
+ readonly kind: "read";
1847
+ readonly name: "run.getAttemptArtifacts";
1848
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
1849
+ flowId: FlowId;
1850
+ flowStatus: z.ZodEnum<{
1851
+ failed: "failed";
1852
+ queued: "queued";
1853
+ running: "running";
1854
+ passed: "passed";
1855
+ canceled: "canceled";
1856
+ }>;
1857
+ retryContext: z.ZodObject<{
1858
+ currentOrdinal: z.ZodNumber;
1859
+ next: z.ZodOptional<z.ZodObject<{
1860
+ attemptId: PublicIdSchema;
1861
+ status: z.ZodEnum<{
1862
+ failed: "failed";
1863
+ passed: "passed";
1864
+ canceled: "canceled";
1865
+ skipped: "skipped";
1866
+ aborted: "aborted";
1867
+ }>;
1868
+ }, z.core.$strip>>;
1869
+ previous: z.ZodOptional<z.ZodObject<{
1870
+ attemptId: PublicIdSchema;
1871
+ status: z.ZodEnum<{
1872
+ failed: "failed";
1873
+ passed: "passed";
1874
+ canceled: "canceled";
1875
+ skipped: "skipped";
1876
+ aborted: "aborted";
1877
+ }>;
1878
+ }, z.core.$strip>>;
1879
+ total: z.ZodNumber;
1880
+ }, z.core.$strip>;
1881
+ runId: RunId;
1882
+ runStatus: z.ZodEnum<{
1883
+ failed: "failed";
1884
+ queued: "queued";
1885
+ running: "running";
1886
+ passed: "passed";
1887
+ canceled: "canceled";
1888
+ superseded: "superseded";
1889
+ }>;
1890
+ artifacts: z.ZodObject<{
1891
+ logsUrl: z.ZodOptional<z.ZodURL>;
1892
+ traceUrl: z.ZodOptional<z.ZodURL>;
1893
+ videoUrl: z.ZodOptional<z.ZodURL>;
1894
+ }, z.core.$strip>;
1895
+ artifactStatus: z.ZodLiteral<"signed">;
1896
+ attempt: z.ZodObject<{
1897
+ attemptId: PublicIdSchema;
1898
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
1899
+ createdAt: z.ZodISODateTime;
1900
+ error: z.ZodOptional<z.ZodString>;
1901
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
1902
+ kind: z.ZodLiteral<"automated">;
1903
+ status: z.ZodEnum<{
1904
+ failed: "failed";
1905
+ passed: "passed";
1906
+ canceled: "canceled";
1907
+ skipped: "skipped";
1908
+ aborted: "aborted";
1909
+ }>;
1910
+ }, z.core.$strip>;
1911
+ }, z.core.$strip>, z.ZodObject<{
1912
+ flowId: FlowId;
1913
+ flowStatus: z.ZodEnum<{
1914
+ failed: "failed";
1915
+ queued: "queued";
1916
+ running: "running";
1917
+ passed: "passed";
1918
+ canceled: "canceled";
1919
+ }>;
1920
+ retryContext: z.ZodObject<{
1921
+ currentOrdinal: z.ZodNumber;
1922
+ next: z.ZodOptional<z.ZodObject<{
1923
+ attemptId: PublicIdSchema;
1924
+ status: z.ZodEnum<{
1925
+ failed: "failed";
1926
+ passed: "passed";
1927
+ canceled: "canceled";
1928
+ skipped: "skipped";
1929
+ aborted: "aborted";
1930
+ }>;
1931
+ }, z.core.$strip>>;
1932
+ previous: z.ZodOptional<z.ZodObject<{
1933
+ attemptId: PublicIdSchema;
1934
+ status: z.ZodEnum<{
1935
+ failed: "failed";
1936
+ passed: "passed";
1937
+ canceled: "canceled";
1938
+ skipped: "skipped";
1939
+ aborted: "aborted";
1940
+ }>;
1941
+ }, z.core.$strip>>;
1942
+ total: z.ZodNumber;
1943
+ }, z.core.$strip>;
1944
+ runId: RunId;
1945
+ runStatus: z.ZodEnum<{
1946
+ failed: "failed";
1947
+ queued: "queued";
1948
+ running: "running";
1949
+ passed: "passed";
1950
+ canceled: "canceled";
1951
+ superseded: "superseded";
1952
+ }>;
1953
+ artifacts: z.ZodObject<{}, z.core.$strict>;
1954
+ artifactStatus: z.ZodLiteral<"signing-failed">;
1955
+ attempt: z.ZodObject<{
1956
+ attemptId: PublicIdSchema;
1957
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
1958
+ createdAt: z.ZodISODateTime;
1959
+ error: z.ZodOptional<z.ZodString>;
1960
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
1961
+ kind: z.ZodLiteral<"automated">;
1962
+ status: z.ZodEnum<{
1963
+ failed: "failed";
1964
+ passed: "passed";
1965
+ canceled: "canceled";
1966
+ skipped: "skipped";
1967
+ aborted: "aborted";
1968
+ }>;
1969
+ }, z.core.$strip>;
1970
+ }, z.core.$strip>, z.ZodObject<{
1971
+ flowId: FlowId;
1972
+ flowStatus: z.ZodEnum<{
1973
+ failed: "failed";
1974
+ queued: "queued";
1975
+ running: "running";
1976
+ passed: "passed";
1977
+ canceled: "canceled";
1804
1978
  }>;
1979
+ retryContext: z.ZodObject<{
1980
+ currentOrdinal: z.ZodNumber;
1981
+ next: z.ZodOptional<z.ZodObject<{
1982
+ attemptId: PublicIdSchema;
1983
+ status: z.ZodEnum<{
1984
+ failed: "failed";
1985
+ passed: "passed";
1986
+ canceled: "canceled";
1987
+ skipped: "skipped";
1988
+ aborted: "aborted";
1989
+ }>;
1990
+ }, z.core.$strip>>;
1991
+ previous: z.ZodOptional<z.ZodObject<{
1992
+ attemptId: PublicIdSchema;
1993
+ status: z.ZodEnum<{
1994
+ failed: "failed";
1995
+ passed: "passed";
1996
+ canceled: "canceled";
1997
+ skipped: "skipped";
1998
+ aborted: "aborted";
1999
+ }>;
2000
+ }, z.core.$strip>>;
2001
+ total: z.ZodNumber;
2002
+ }, z.core.$strip>;
2003
+ runId: RunId;
2004
+ runStatus: z.ZodEnum<{
2005
+ failed: "failed";
2006
+ queued: "queued";
2007
+ running: "running";
2008
+ passed: "passed";
2009
+ canceled: "canceled";
2010
+ superseded: "superseded";
2011
+ }>;
2012
+ artifacts: z.ZodObject<{}, z.core.$strict>;
2013
+ artifactStatus: z.ZodLiteral<"not-captured">;
2014
+ attempt: z.ZodObject<{
2015
+ attemptId: PublicIdSchema;
2016
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
2017
+ createdAt: z.ZodISODateTime;
2018
+ error: z.ZodOptional<z.ZodString>;
2019
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
2020
+ kind: z.ZodLiteral<"manual">;
2021
+ status: z.ZodLiteral<"passed">;
2022
+ }, z.core.$strip>;
2023
+ }, z.core.$strip>], "artifactStatus">;
2024
+ };
2025
+ optOutOfInvestigation: {
2026
+ readonly annotations: {
2027
+ readonly destructiveHint: true;
2028
+ readonly openWorldHint: true;
2029
+ readonly readOnlyHint: false;
2030
+ };
2031
+ readonly description: string;
2032
+ readonly input: z.ZodObject<{
2033
+ flowIds: z.ZodArray<FlowId>;
2034
+ runId: RunId;
2035
+ }, z.core.$strip>;
2036
+ readonly kind: "write";
2037
+ readonly name: "run.optOutOfInvestigation";
2038
+ readonly output: z.ZodObject<{
2039
+ optedOutFlowIds: z.ZodArray<FlowId>;
2040
+ runId: RunId;
1805
2041
  url: z.ZodURL;
1806
2042
  }, z.core.$strip>;
1807
2043
  };
@@ -3749,17 +3985,17 @@ export declare const publicContractsV1: {
3749
3985
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3750
3986
  kind: z.ZodEnum<{
3751
3987
  branch: "branch";
3988
+ environment: "environment";
3752
3989
  deployTarget: "deployTarget";
3753
3990
  service: "service";
3754
- environment: "environment";
3755
3991
  }>;
3756
3992
  outcome: z.ZodLiteral<"matched">;
3757
3993
  }, z.core.$strip>, z.ZodObject<{
3758
3994
  kind: z.ZodEnum<{
3759
3995
  branch: "branch";
3996
+ environment: "environment";
3760
3997
  deployTarget: "deployTarget";
3761
3998
  service: "service";
3762
- environment: "environment";
3763
3999
  }>;
3764
4000
  outcome: z.ZodLiteral<"did-not-match">;
3765
4001
  reason: z.ZodString;
@@ -3809,17 +4045,17 @@ export declare const publicContractsV1: {
3809
4045
  conditions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3810
4046
  kind: z.ZodEnum<{
3811
4047
  branch: "branch";
4048
+ environment: "environment";
3812
4049
  deployTarget: "deployTarget";
3813
4050
  service: "service";
3814
- environment: "environment";
3815
4051
  }>;
3816
4052
  outcome: z.ZodLiteral<"matched">;
3817
4053
  }, z.core.$strip>, z.ZodObject<{
3818
4054
  kind: z.ZodEnum<{
3819
4055
  branch: "branch";
4056
+ environment: "environment";
3820
4057
  deployTarget: "deployTarget";
3821
4058
  service: "service";
3822
- environment: "environment";
3823
4059
  }>;
3824
4060
  outcome: z.ZodLiteral<"did-not-match">;
3825
4061
  reason: z.ZodString;
@@ -5197,7 +5433,7 @@ export declare const publicContractsV1: {
5197
5433
  readonly openWorldHint: false;
5198
5434
  readonly readOnlyHint: true;
5199
5435
  };
5200
- readonly description: "List an environment's recent runs, newest first.";
5436
+ readonly description: "List an environment's recent runs, newest first, including failed-attempt discovery metadata.";
5201
5437
  readonly input: z.ZodObject<{
5202
5438
  environmentId: PublicIdSchema;
5203
5439
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -5210,6 +5446,8 @@ export declare const publicContractsV1: {
5210
5446
  readonly output: z.ZodObject<{
5211
5447
  nextCursor: z.ZodOptional<z.ZodString>;
5212
5448
  runs: z.ZodArray<z.ZodObject<{
5449
+ failedAttemptCount: z.ZodOptional<z.ZodNumber>;
5450
+ hasFailedAttempts: z.ZodOptional<z.ZodBoolean>;
5213
5451
  completedAt: z.ZodOptional<z.ZodISODateTime>;
5214
5452
  createdAt: z.ZodISODateTime;
5215
5453
  git: z.ZodObject<{
@@ -5226,7 +5464,12 @@ export declare const publicContractsV1: {
5226
5464
  running: "running";
5227
5465
  passed: "passed";
5228
5466
  canceled: "canceled";
5467
+ superseded: "superseded";
5229
5468
  }>;
5469
+ supersededBy: z.ZodOptional<z.ZodObject<{
5470
+ runId: PublicIdSchema;
5471
+ url: z.ZodURL;
5472
+ }, z.core.$strip>>;
5230
5473
  url: z.ZodURL;
5231
5474
  }, z.core.$strip>>;
5232
5475
  }, z.core.$strip>;
@@ -5254,6 +5497,7 @@ export declare const publicContractsV1: {
5254
5497
  blockingBugCount: z.ZodNumber;
5255
5498
  flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5256
5499
  attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
5500
+ attemptId: z.ZodOptional<PublicIdSchema>;
5257
5501
  completedAt: z.ZodISODateTime;
5258
5502
  kind: z.ZodLiteral<"automated">;
5259
5503
  startedAt: z.ZodISODateTime;
@@ -5262,6 +5506,7 @@ export declare const publicContractsV1: {
5262
5506
  traceUrl: z.ZodOptional<z.ZodURL>;
5263
5507
  videoUrl: z.ZodOptional<z.ZodURL>;
5264
5508
  }, z.core.$strip>, z.ZodObject<{
5509
+ attemptId: z.ZodOptional<PublicIdSchema>;
5265
5510
  completedAt: z.ZodISODateTime;
5266
5511
  kind: z.ZodLiteral<"automated">;
5267
5512
  startedAt: z.ZodOptional<z.ZodISODateTime>;
@@ -5270,11 +5515,13 @@ export declare const publicContractsV1: {
5270
5515
  traceUrl: z.ZodOptional<z.ZodURL>;
5271
5516
  videoUrl: z.ZodOptional<z.ZodURL>;
5272
5517
  }, z.core.$strip>, z.ZodObject<{
5518
+ attemptId: z.ZodOptional<PublicIdSchema>;
5273
5519
  completedAt: z.ZodOptional<z.ZodISODateTime>;
5274
5520
  kind: z.ZodLiteral<"automated">;
5275
5521
  startedAt: z.ZodOptional<z.ZodISODateTime>;
5276
5522
  status: z.ZodLiteral<"canceled">;
5277
5523
  }, z.core.$strip>], "status">, z.ZodObject<{
5524
+ attemptId: z.ZodOptional<PublicIdSchema>;
5278
5525
  completedAt: z.ZodISODateTime;
5279
5526
  kind: z.ZodLiteral<"manual">;
5280
5527
  startedAt: z.ZodISODateTime;
@@ -5289,12 +5536,19 @@ export declare const publicContractsV1: {
5289
5536
  }>;
5290
5537
  }, z.core.$strip>>;
5291
5538
  error: z.ZodString;
5539
+ optedOutOfInvestigation: z.ZodOptional<z.ZodObject<{
5540
+ by: z.ZodEnum<{
5541
+ user: "user";
5542
+ system: "system";
5543
+ }>;
5544
+ }, z.core.$strip>>;
5292
5545
  }, z.core.$strip>;
5293
5546
  flowId: PublicIdSchema;
5294
5547
  name: z.ZodString;
5295
5548
  status: z.ZodLiteral<"failed">;
5296
5549
  }, z.core.$strip>, z.ZodObject<{
5297
5550
  attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
5551
+ attemptId: z.ZodOptional<PublicIdSchema>;
5298
5552
  completedAt: z.ZodISODateTime;
5299
5553
  kind: z.ZodLiteral<"automated">;
5300
5554
  startedAt: z.ZodISODateTime;
@@ -5303,6 +5557,7 @@ export declare const publicContractsV1: {
5303
5557
  traceUrl: z.ZodOptional<z.ZodURL>;
5304
5558
  videoUrl: z.ZodOptional<z.ZodURL>;
5305
5559
  }, z.core.$strip>, z.ZodObject<{
5560
+ attemptId: z.ZodOptional<PublicIdSchema>;
5306
5561
  completedAt: z.ZodISODateTime;
5307
5562
  kind: z.ZodLiteral<"automated">;
5308
5563
  startedAt: z.ZodOptional<z.ZodISODateTime>;
@@ -5311,11 +5566,13 @@ export declare const publicContractsV1: {
5311
5566
  traceUrl: z.ZodOptional<z.ZodURL>;
5312
5567
  videoUrl: z.ZodOptional<z.ZodURL>;
5313
5568
  }, z.core.$strip>, z.ZodObject<{
5569
+ attemptId: z.ZodOptional<PublicIdSchema>;
5314
5570
  completedAt: z.ZodOptional<z.ZodISODateTime>;
5315
5571
  kind: z.ZodLiteral<"automated">;
5316
5572
  startedAt: z.ZodOptional<z.ZodISODateTime>;
5317
5573
  status: z.ZodLiteral<"canceled">;
5318
5574
  }, z.core.$strip>], "status">, z.ZodObject<{
5575
+ attemptId: z.ZodOptional<PublicIdSchema>;
5319
5576
  completedAt: z.ZodISODateTime;
5320
5577
  kind: z.ZodLiteral<"manual">;
5321
5578
  startedAt: z.ZodISODateTime;
@@ -5346,7 +5603,220 @@ export declare const publicContractsV1: {
5346
5603
  running: "running";
5347
5604
  passed: "passed";
5348
5605
  canceled: "canceled";
5606
+ superseded: "superseded";
5607
+ }>;
5608
+ supersededBy: z.ZodOptional<z.ZodObject<{
5609
+ runId: PublicIdSchema;
5610
+ url: z.ZodURL;
5611
+ }, z.core.$strip>>;
5612
+ url: z.ZodURL;
5613
+ }, z.core.$strip>;
5614
+ };
5615
+ getAttemptArtifacts: {
5616
+ readonly annotations: {
5617
+ readonly destructiveHint: false;
5618
+ readonly openWorldHint: false;
5619
+ readonly readOnlyHint: true;
5620
+ };
5621
+ readonly description: "Get metadata and signed artifact URLs for one finished run attempt.";
5622
+ readonly input: z.ZodObject<{
5623
+ attemptId: PublicIdSchema;
5624
+ }, z.core.$strip>;
5625
+ readonly kind: "read";
5626
+ readonly name: "run.getAttemptArtifacts";
5627
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
5628
+ flowId: PublicIdSchema;
5629
+ flowStatus: z.ZodEnum<{
5630
+ failed: "failed";
5631
+ queued: "queued";
5632
+ running: "running";
5633
+ passed: "passed";
5634
+ canceled: "canceled";
5635
+ }>;
5636
+ retryContext: z.ZodObject<{
5637
+ currentOrdinal: z.ZodNumber;
5638
+ next: z.ZodOptional<z.ZodObject<{
5639
+ attemptId: PublicIdSchema;
5640
+ status: z.ZodEnum<{
5641
+ failed: "failed";
5642
+ passed: "passed";
5643
+ canceled: "canceled";
5644
+ skipped: "skipped";
5645
+ aborted: "aborted";
5646
+ }>;
5647
+ }, z.core.$strip>>;
5648
+ previous: z.ZodOptional<z.ZodObject<{
5649
+ attemptId: PublicIdSchema;
5650
+ status: z.ZodEnum<{
5651
+ failed: "failed";
5652
+ passed: "passed";
5653
+ canceled: "canceled";
5654
+ skipped: "skipped";
5655
+ aborted: "aborted";
5656
+ }>;
5657
+ }, z.core.$strip>>;
5658
+ total: z.ZodNumber;
5659
+ }, z.core.$strip>;
5660
+ runId: PublicIdSchema;
5661
+ runStatus: z.ZodEnum<{
5662
+ failed: "failed";
5663
+ queued: "queued";
5664
+ running: "running";
5665
+ passed: "passed";
5666
+ canceled: "canceled";
5667
+ superseded: "superseded";
5668
+ }>;
5669
+ artifacts: z.ZodObject<{
5670
+ logsUrl: z.ZodOptional<z.ZodURL>;
5671
+ traceUrl: z.ZodOptional<z.ZodURL>;
5672
+ videoUrl: z.ZodOptional<z.ZodURL>;
5673
+ }, z.core.$strip>;
5674
+ artifactStatus: z.ZodLiteral<"signed">;
5675
+ attempt: z.ZodObject<{
5676
+ attemptId: PublicIdSchema;
5677
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
5678
+ createdAt: z.ZodISODateTime;
5679
+ error: z.ZodOptional<z.ZodString>;
5680
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
5681
+ kind: z.ZodLiteral<"automated">;
5682
+ status: z.ZodEnum<{
5683
+ failed: "failed";
5684
+ passed: "passed";
5685
+ canceled: "canceled";
5686
+ skipped: "skipped";
5687
+ aborted: "aborted";
5688
+ }>;
5689
+ }, z.core.$strip>;
5690
+ }, z.core.$strip>, z.ZodObject<{
5691
+ flowId: PublicIdSchema;
5692
+ flowStatus: z.ZodEnum<{
5693
+ failed: "failed";
5694
+ queued: "queued";
5695
+ running: "running";
5696
+ passed: "passed";
5697
+ canceled: "canceled";
5698
+ }>;
5699
+ retryContext: z.ZodObject<{
5700
+ currentOrdinal: z.ZodNumber;
5701
+ next: z.ZodOptional<z.ZodObject<{
5702
+ attemptId: PublicIdSchema;
5703
+ status: z.ZodEnum<{
5704
+ failed: "failed";
5705
+ passed: "passed";
5706
+ canceled: "canceled";
5707
+ skipped: "skipped";
5708
+ aborted: "aborted";
5709
+ }>;
5710
+ }, z.core.$strip>>;
5711
+ previous: z.ZodOptional<z.ZodObject<{
5712
+ attemptId: PublicIdSchema;
5713
+ status: z.ZodEnum<{
5714
+ failed: "failed";
5715
+ passed: "passed";
5716
+ canceled: "canceled";
5717
+ skipped: "skipped";
5718
+ aborted: "aborted";
5719
+ }>;
5720
+ }, z.core.$strip>>;
5721
+ total: z.ZodNumber;
5722
+ }, z.core.$strip>;
5723
+ runId: PublicIdSchema;
5724
+ runStatus: z.ZodEnum<{
5725
+ failed: "failed";
5726
+ queued: "queued";
5727
+ running: "running";
5728
+ passed: "passed";
5729
+ canceled: "canceled";
5730
+ superseded: "superseded";
5731
+ }>;
5732
+ artifacts: z.ZodObject<{}, z.core.$strict>;
5733
+ artifactStatus: z.ZodLiteral<"signing-failed">;
5734
+ attempt: z.ZodObject<{
5735
+ attemptId: PublicIdSchema;
5736
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
5737
+ createdAt: z.ZodISODateTime;
5738
+ error: z.ZodOptional<z.ZodString>;
5739
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
5740
+ kind: z.ZodLiteral<"automated">;
5741
+ status: z.ZodEnum<{
5742
+ failed: "failed";
5743
+ passed: "passed";
5744
+ canceled: "canceled";
5745
+ skipped: "skipped";
5746
+ aborted: "aborted";
5747
+ }>;
5748
+ }, z.core.$strip>;
5749
+ }, z.core.$strip>, z.ZodObject<{
5750
+ flowId: PublicIdSchema;
5751
+ flowStatus: z.ZodEnum<{
5752
+ failed: "failed";
5753
+ queued: "queued";
5754
+ running: "running";
5755
+ passed: "passed";
5756
+ canceled: "canceled";
5349
5757
  }>;
5758
+ retryContext: z.ZodObject<{
5759
+ currentOrdinal: z.ZodNumber;
5760
+ next: z.ZodOptional<z.ZodObject<{
5761
+ attemptId: PublicIdSchema;
5762
+ status: z.ZodEnum<{
5763
+ failed: "failed";
5764
+ passed: "passed";
5765
+ canceled: "canceled";
5766
+ skipped: "skipped";
5767
+ aborted: "aborted";
5768
+ }>;
5769
+ }, z.core.$strip>>;
5770
+ previous: z.ZodOptional<z.ZodObject<{
5771
+ attemptId: PublicIdSchema;
5772
+ status: z.ZodEnum<{
5773
+ failed: "failed";
5774
+ passed: "passed";
5775
+ canceled: "canceled";
5776
+ skipped: "skipped";
5777
+ aborted: "aborted";
5778
+ }>;
5779
+ }, z.core.$strip>>;
5780
+ total: z.ZodNumber;
5781
+ }, z.core.$strip>;
5782
+ runId: PublicIdSchema;
5783
+ runStatus: z.ZodEnum<{
5784
+ failed: "failed";
5785
+ queued: "queued";
5786
+ running: "running";
5787
+ passed: "passed";
5788
+ canceled: "canceled";
5789
+ superseded: "superseded";
5790
+ }>;
5791
+ artifacts: z.ZodObject<{}, z.core.$strict>;
5792
+ artifactStatus: z.ZodLiteral<"not-captured">;
5793
+ attempt: z.ZodObject<{
5794
+ attemptId: PublicIdSchema;
5795
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
5796
+ createdAt: z.ZodISODateTime;
5797
+ error: z.ZodOptional<z.ZodString>;
5798
+ startedAt: z.ZodOptional<z.ZodISODateTime>;
5799
+ kind: z.ZodLiteral<"manual">;
5800
+ status: z.ZodLiteral<"passed">;
5801
+ }, z.core.$strip>;
5802
+ }, z.core.$strip>], "artifactStatus">;
5803
+ };
5804
+ optOutOfInvestigation: {
5805
+ readonly annotations: {
5806
+ readonly destructiveHint: true;
5807
+ readonly openWorldHint: true;
5808
+ readonly readOnlyHint: false;
5809
+ };
5810
+ readonly description: string;
5811
+ readonly input: z.ZodObject<{
5812
+ flowIds: z.ZodArray<PublicIdSchema>;
5813
+ runId: PublicIdSchema;
5814
+ }, z.core.$strip>;
5815
+ readonly kind: "write";
5816
+ readonly name: "run.optOutOfInvestigation";
5817
+ readonly output: z.ZodObject<{
5818
+ optedOutFlowIds: z.ZodArray<PublicIdSchema>;
5819
+ runId: PublicIdSchema;
5350
5820
  url: z.ZodURL;
5351
5821
  }, z.core.$strip>;
5352
5822
  };