@qawolf/api-contracts 0.73.0 → 0.74.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.
- package/dist/v1/deployment/index.d.ts +4 -4
- package/dist/v1/deployment/listTriggerEvaluations.d.ts +4 -4
- package/dist/v1/deployment/verdict.d.ts +52 -1
- package/dist/v1/deployment/verdict.d.ts.map +1 -1
- package/dist/v1/deployment/verdict.js +10 -1
- package/dist/v1/deployment/verdict.js.map +1 -1
- package/dist/v1/deployment/verdictParts.d.ts +10 -0
- package/dist/v1/deployment/verdictParts.d.ts.map +1 -1
- package/dist/v1/deployment/verdictParts.js +8 -2
- package/dist/v1/deployment/verdictParts.js.map +1 -1
- package/dist/v1/ids.d.ts +2 -1
- package/dist/v1/ids.d.ts.map +1 -1
- package/dist/v1/ids.js +1 -0
- package/dist/v1/ids.js.map +1 -1
- package/dist/v1/index.d.ts +431 -11
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +7 -1
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/issue/create.js +1 -1
- package/dist/v1/issue/create.js.map +1 -1
- package/dist/v1/issue/update.js +1 -1
- package/dist/v1/issue/update.js.map +1 -1
- package/dist/v1/run/find.d.ts +8 -1
- package/dist/v1/run/find.d.ts.map +1 -1
- package/dist/v1/run/find.js +6 -4
- package/dist/v1/run/find.js.map +1 -1
- package/dist/v1/run/get.d.ts +15 -1
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +5 -7
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/run/getAttemptArtifacts.d.ts +196 -0
- package/dist/v1/run/getAttemptArtifacts.d.ts.map +1 -0
- package/dist/v1/run/getAttemptArtifacts.js +78 -0
- package/dist/v1/run/getAttemptArtifacts.js.map +1 -0
- package/dist/v1/run/summary.d.ts +12 -0
- package/dist/v1/run/summary.d.ts.map +1 -1
- package/dist/v1/run/summary.js +19 -2
- package/dist/v1/run/summary.js.map +1 -1
- package/package.json +1 -1
package/dist/v1/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1750,6 +1763,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1750
1763
|
status: z.ZodLiteral<"failed">;
|
|
1751
1764
|
}, z.core.$strip>, z.ZodObject<{
|
|
1752
1765
|
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1766
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
1753
1767
|
completedAt: z.ZodISODateTime;
|
|
1754
1768
|
kind: z.ZodLiteral<"automated">;
|
|
1755
1769
|
startedAt: z.ZodISODateTime;
|
|
@@ -1758,6 +1772,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1758
1772
|
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1759
1773
|
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1760
1774
|
}, z.core.$strip>, z.ZodObject<{
|
|
1775
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
1761
1776
|
completedAt: z.ZodISODateTime;
|
|
1762
1777
|
kind: z.ZodLiteral<"automated">;
|
|
1763
1778
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -1766,11 +1781,13 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1766
1781
|
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1767
1782
|
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1768
1783
|
}, z.core.$strip>, z.ZodObject<{
|
|
1784
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
1769
1785
|
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1770
1786
|
kind: z.ZodLiteral<"automated">;
|
|
1771
1787
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1772
1788
|
status: z.ZodLiteral<"canceled">;
|
|
1773
1789
|
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
1790
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
1774
1791
|
completedAt: z.ZodISODateTime;
|
|
1775
1792
|
kind: z.ZodLiteral<"manual">;
|
|
1776
1793
|
startedAt: z.ZodISODateTime;
|
|
@@ -1801,10 +1818,204 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
1801
1818
|
running: "running";
|
|
1802
1819
|
passed: "passed";
|
|
1803
1820
|
canceled: "canceled";
|
|
1821
|
+
superseded: "superseded";
|
|
1804
1822
|
}>;
|
|
1823
|
+
supersededBy: z.ZodOptional<z.ZodObject<{
|
|
1824
|
+
runId: RunId;
|
|
1825
|
+
url: z.ZodURL;
|
|
1826
|
+
}, z.core.$strip>>;
|
|
1805
1827
|
url: z.ZodURL;
|
|
1806
1828
|
}, z.core.$strip>;
|
|
1807
1829
|
};
|
|
1830
|
+
getAttemptArtifacts: {
|
|
1831
|
+
readonly annotations: {
|
|
1832
|
+
readonly destructiveHint: false;
|
|
1833
|
+
readonly openWorldHint: false;
|
|
1834
|
+
readonly readOnlyHint: true;
|
|
1835
|
+
};
|
|
1836
|
+
readonly description: "Get metadata and signed artifact URLs for one finished run attempt.";
|
|
1837
|
+
readonly input: z.ZodObject<{
|
|
1838
|
+
attemptId: PublicIdSchema;
|
|
1839
|
+
}, z.core.$strip>;
|
|
1840
|
+
readonly kind: "read";
|
|
1841
|
+
readonly name: "run.getAttemptArtifacts";
|
|
1842
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1843
|
+
flowId: FlowId;
|
|
1844
|
+
flowStatus: z.ZodEnum<{
|
|
1845
|
+
failed: "failed";
|
|
1846
|
+
queued: "queued";
|
|
1847
|
+
running: "running";
|
|
1848
|
+
passed: "passed";
|
|
1849
|
+
canceled: "canceled";
|
|
1850
|
+
}>;
|
|
1851
|
+
retryContext: z.ZodObject<{
|
|
1852
|
+
currentOrdinal: z.ZodNumber;
|
|
1853
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
1854
|
+
attemptId: PublicIdSchema;
|
|
1855
|
+
status: z.ZodEnum<{
|
|
1856
|
+
failed: "failed";
|
|
1857
|
+
passed: "passed";
|
|
1858
|
+
canceled: "canceled";
|
|
1859
|
+
skipped: "skipped";
|
|
1860
|
+
aborted: "aborted";
|
|
1861
|
+
}>;
|
|
1862
|
+
}, z.core.$strip>>;
|
|
1863
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
1864
|
+
attemptId: PublicIdSchema;
|
|
1865
|
+
status: z.ZodEnum<{
|
|
1866
|
+
failed: "failed";
|
|
1867
|
+
passed: "passed";
|
|
1868
|
+
canceled: "canceled";
|
|
1869
|
+
skipped: "skipped";
|
|
1870
|
+
aborted: "aborted";
|
|
1871
|
+
}>;
|
|
1872
|
+
}, z.core.$strip>>;
|
|
1873
|
+
total: z.ZodNumber;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
runId: RunId;
|
|
1876
|
+
runStatus: z.ZodEnum<{
|
|
1877
|
+
failed: "failed";
|
|
1878
|
+
queued: "queued";
|
|
1879
|
+
running: "running";
|
|
1880
|
+
passed: "passed";
|
|
1881
|
+
canceled: "canceled";
|
|
1882
|
+
superseded: "superseded";
|
|
1883
|
+
}>;
|
|
1884
|
+
artifacts: z.ZodObject<{
|
|
1885
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
1886
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1887
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1888
|
+
}, z.core.$strip>;
|
|
1889
|
+
artifactStatus: z.ZodLiteral<"signed">;
|
|
1890
|
+
attempt: z.ZodObject<{
|
|
1891
|
+
attemptId: PublicIdSchema;
|
|
1892
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1893
|
+
createdAt: z.ZodISODateTime;
|
|
1894
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1895
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1896
|
+
kind: z.ZodLiteral<"automated">;
|
|
1897
|
+
status: z.ZodEnum<{
|
|
1898
|
+
failed: "failed";
|
|
1899
|
+
passed: "passed";
|
|
1900
|
+
canceled: "canceled";
|
|
1901
|
+
skipped: "skipped";
|
|
1902
|
+
aborted: "aborted";
|
|
1903
|
+
}>;
|
|
1904
|
+
}, z.core.$strip>;
|
|
1905
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1906
|
+
flowId: FlowId;
|
|
1907
|
+
flowStatus: z.ZodEnum<{
|
|
1908
|
+
failed: "failed";
|
|
1909
|
+
queued: "queued";
|
|
1910
|
+
running: "running";
|
|
1911
|
+
passed: "passed";
|
|
1912
|
+
canceled: "canceled";
|
|
1913
|
+
}>;
|
|
1914
|
+
retryContext: z.ZodObject<{
|
|
1915
|
+
currentOrdinal: z.ZodNumber;
|
|
1916
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
1917
|
+
attemptId: PublicIdSchema;
|
|
1918
|
+
status: z.ZodEnum<{
|
|
1919
|
+
failed: "failed";
|
|
1920
|
+
passed: "passed";
|
|
1921
|
+
canceled: "canceled";
|
|
1922
|
+
skipped: "skipped";
|
|
1923
|
+
aborted: "aborted";
|
|
1924
|
+
}>;
|
|
1925
|
+
}, z.core.$strip>>;
|
|
1926
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
1927
|
+
attemptId: PublicIdSchema;
|
|
1928
|
+
status: z.ZodEnum<{
|
|
1929
|
+
failed: "failed";
|
|
1930
|
+
passed: "passed";
|
|
1931
|
+
canceled: "canceled";
|
|
1932
|
+
skipped: "skipped";
|
|
1933
|
+
aborted: "aborted";
|
|
1934
|
+
}>;
|
|
1935
|
+
}, z.core.$strip>>;
|
|
1936
|
+
total: z.ZodNumber;
|
|
1937
|
+
}, z.core.$strip>;
|
|
1938
|
+
runId: RunId;
|
|
1939
|
+
runStatus: z.ZodEnum<{
|
|
1940
|
+
failed: "failed";
|
|
1941
|
+
queued: "queued";
|
|
1942
|
+
running: "running";
|
|
1943
|
+
passed: "passed";
|
|
1944
|
+
canceled: "canceled";
|
|
1945
|
+
superseded: "superseded";
|
|
1946
|
+
}>;
|
|
1947
|
+
artifacts: z.ZodObject<{}, z.core.$strict>;
|
|
1948
|
+
artifactStatus: z.ZodLiteral<"signing-failed">;
|
|
1949
|
+
attempt: z.ZodObject<{
|
|
1950
|
+
attemptId: PublicIdSchema;
|
|
1951
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1952
|
+
createdAt: z.ZodISODateTime;
|
|
1953
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1955
|
+
kind: z.ZodLiteral<"automated">;
|
|
1956
|
+
status: z.ZodEnum<{
|
|
1957
|
+
failed: "failed";
|
|
1958
|
+
passed: "passed";
|
|
1959
|
+
canceled: "canceled";
|
|
1960
|
+
skipped: "skipped";
|
|
1961
|
+
aborted: "aborted";
|
|
1962
|
+
}>;
|
|
1963
|
+
}, z.core.$strip>;
|
|
1964
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1965
|
+
flowId: FlowId;
|
|
1966
|
+
flowStatus: z.ZodEnum<{
|
|
1967
|
+
failed: "failed";
|
|
1968
|
+
queued: "queued";
|
|
1969
|
+
running: "running";
|
|
1970
|
+
passed: "passed";
|
|
1971
|
+
canceled: "canceled";
|
|
1972
|
+
}>;
|
|
1973
|
+
retryContext: z.ZodObject<{
|
|
1974
|
+
currentOrdinal: z.ZodNumber;
|
|
1975
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
1976
|
+
attemptId: PublicIdSchema;
|
|
1977
|
+
status: z.ZodEnum<{
|
|
1978
|
+
failed: "failed";
|
|
1979
|
+
passed: "passed";
|
|
1980
|
+
canceled: "canceled";
|
|
1981
|
+
skipped: "skipped";
|
|
1982
|
+
aborted: "aborted";
|
|
1983
|
+
}>;
|
|
1984
|
+
}, z.core.$strip>>;
|
|
1985
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
1986
|
+
attemptId: PublicIdSchema;
|
|
1987
|
+
status: z.ZodEnum<{
|
|
1988
|
+
failed: "failed";
|
|
1989
|
+
passed: "passed";
|
|
1990
|
+
canceled: "canceled";
|
|
1991
|
+
skipped: "skipped";
|
|
1992
|
+
aborted: "aborted";
|
|
1993
|
+
}>;
|
|
1994
|
+
}, z.core.$strip>>;
|
|
1995
|
+
total: z.ZodNumber;
|
|
1996
|
+
}, z.core.$strip>;
|
|
1997
|
+
runId: RunId;
|
|
1998
|
+
runStatus: z.ZodEnum<{
|
|
1999
|
+
failed: "failed";
|
|
2000
|
+
queued: "queued";
|
|
2001
|
+
running: "running";
|
|
2002
|
+
passed: "passed";
|
|
2003
|
+
canceled: "canceled";
|
|
2004
|
+
superseded: "superseded";
|
|
2005
|
+
}>;
|
|
2006
|
+
artifacts: z.ZodObject<{}, z.core.$strict>;
|
|
2007
|
+
artifactStatus: z.ZodLiteral<"not-captured">;
|
|
2008
|
+
attempt: z.ZodObject<{
|
|
2009
|
+
attemptId: PublicIdSchema;
|
|
2010
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2011
|
+
createdAt: z.ZodISODateTime;
|
|
2012
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2013
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2014
|
+
kind: z.ZodLiteral<"manual">;
|
|
2015
|
+
status: z.ZodLiteral<"passed">;
|
|
2016
|
+
}, z.core.$strip>;
|
|
2017
|
+
}, z.core.$strip>], "artifactStatus">;
|
|
2018
|
+
};
|
|
1808
2019
|
reattempt: {
|
|
1809
2020
|
readonly annotations: {
|
|
1810
2021
|
readonly destructiveHint: true;
|
|
@@ -3749,17 +3960,17 @@ export declare const publicContractsV1: {
|
|
|
3749
3960
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3750
3961
|
kind: z.ZodEnum<{
|
|
3751
3962
|
branch: "branch";
|
|
3963
|
+
environment: "environment";
|
|
3752
3964
|
deployTarget: "deployTarget";
|
|
3753
3965
|
service: "service";
|
|
3754
|
-
environment: "environment";
|
|
3755
3966
|
}>;
|
|
3756
3967
|
outcome: z.ZodLiteral<"matched">;
|
|
3757
3968
|
}, z.core.$strip>, z.ZodObject<{
|
|
3758
3969
|
kind: z.ZodEnum<{
|
|
3759
3970
|
branch: "branch";
|
|
3971
|
+
environment: "environment";
|
|
3760
3972
|
deployTarget: "deployTarget";
|
|
3761
3973
|
service: "service";
|
|
3762
|
-
environment: "environment";
|
|
3763
3974
|
}>;
|
|
3764
3975
|
outcome: z.ZodLiteral<"did-not-match">;
|
|
3765
3976
|
reason: z.ZodString;
|
|
@@ -3809,17 +4020,17 @@ export declare const publicContractsV1: {
|
|
|
3809
4020
|
conditions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3810
4021
|
kind: z.ZodEnum<{
|
|
3811
4022
|
branch: "branch";
|
|
4023
|
+
environment: "environment";
|
|
3812
4024
|
deployTarget: "deployTarget";
|
|
3813
4025
|
service: "service";
|
|
3814
|
-
environment: "environment";
|
|
3815
4026
|
}>;
|
|
3816
4027
|
outcome: z.ZodLiteral<"matched">;
|
|
3817
4028
|
}, z.core.$strip>, z.ZodObject<{
|
|
3818
4029
|
kind: z.ZodEnum<{
|
|
3819
4030
|
branch: "branch";
|
|
4031
|
+
environment: "environment";
|
|
3820
4032
|
deployTarget: "deployTarget";
|
|
3821
4033
|
service: "service";
|
|
3822
|
-
environment: "environment";
|
|
3823
4034
|
}>;
|
|
3824
4035
|
outcome: z.ZodLiteral<"did-not-match">;
|
|
3825
4036
|
reason: z.ZodString;
|
|
@@ -5197,7 +5408,7 @@ export declare const publicContractsV1: {
|
|
|
5197
5408
|
readonly openWorldHint: false;
|
|
5198
5409
|
readonly readOnlyHint: true;
|
|
5199
5410
|
};
|
|
5200
|
-
readonly description: "List an environment's recent runs, newest first.";
|
|
5411
|
+
readonly description: "List an environment's recent runs, newest first, including failed-attempt discovery metadata.";
|
|
5201
5412
|
readonly input: z.ZodObject<{
|
|
5202
5413
|
environmentId: PublicIdSchema;
|
|
5203
5414
|
workspaceId: z.ZodOptional<PublicIdSchema>;
|
|
@@ -5210,6 +5421,8 @@ export declare const publicContractsV1: {
|
|
|
5210
5421
|
readonly output: z.ZodObject<{
|
|
5211
5422
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
5212
5423
|
runs: z.ZodArray<z.ZodObject<{
|
|
5424
|
+
failedAttemptCount: z.ZodOptional<z.ZodNumber>;
|
|
5425
|
+
hasFailedAttempts: z.ZodOptional<z.ZodBoolean>;
|
|
5213
5426
|
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5214
5427
|
createdAt: z.ZodISODateTime;
|
|
5215
5428
|
git: z.ZodObject<{
|
|
@@ -5226,7 +5439,12 @@ export declare const publicContractsV1: {
|
|
|
5226
5439
|
running: "running";
|
|
5227
5440
|
passed: "passed";
|
|
5228
5441
|
canceled: "canceled";
|
|
5442
|
+
superseded: "superseded";
|
|
5229
5443
|
}>;
|
|
5444
|
+
supersededBy: z.ZodOptional<z.ZodObject<{
|
|
5445
|
+
runId: PublicIdSchema;
|
|
5446
|
+
url: z.ZodURL;
|
|
5447
|
+
}, z.core.$strip>>;
|
|
5230
5448
|
url: z.ZodURL;
|
|
5231
5449
|
}, z.core.$strip>>;
|
|
5232
5450
|
}, z.core.$strip>;
|
|
@@ -5254,6 +5472,7 @@ export declare const publicContractsV1: {
|
|
|
5254
5472
|
blockingBugCount: z.ZodNumber;
|
|
5255
5473
|
flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5256
5474
|
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5475
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5257
5476
|
completedAt: z.ZodISODateTime;
|
|
5258
5477
|
kind: z.ZodLiteral<"automated">;
|
|
5259
5478
|
startedAt: z.ZodISODateTime;
|
|
@@ -5262,6 +5481,7 @@ export declare const publicContractsV1: {
|
|
|
5262
5481
|
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
5263
5482
|
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
5264
5483
|
}, z.core.$strip>, z.ZodObject<{
|
|
5484
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5265
5485
|
completedAt: z.ZodISODateTime;
|
|
5266
5486
|
kind: z.ZodLiteral<"automated">;
|
|
5267
5487
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -5270,11 +5490,13 @@ export declare const publicContractsV1: {
|
|
|
5270
5490
|
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
5271
5491
|
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
5272
5492
|
}, z.core.$strip>, z.ZodObject<{
|
|
5493
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5273
5494
|
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5274
5495
|
kind: z.ZodLiteral<"automated">;
|
|
5275
5496
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5276
5497
|
status: z.ZodLiteral<"canceled">;
|
|
5277
5498
|
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
5499
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5278
5500
|
completedAt: z.ZodISODateTime;
|
|
5279
5501
|
kind: z.ZodLiteral<"manual">;
|
|
5280
5502
|
startedAt: z.ZodISODateTime;
|
|
@@ -5295,6 +5517,7 @@ export declare const publicContractsV1: {
|
|
|
5295
5517
|
status: z.ZodLiteral<"failed">;
|
|
5296
5518
|
}, z.core.$strip>, z.ZodObject<{
|
|
5297
5519
|
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5520
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5298
5521
|
completedAt: z.ZodISODateTime;
|
|
5299
5522
|
kind: z.ZodLiteral<"automated">;
|
|
5300
5523
|
startedAt: z.ZodISODateTime;
|
|
@@ -5303,6 +5526,7 @@ export declare const publicContractsV1: {
|
|
|
5303
5526
|
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
5304
5527
|
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
5305
5528
|
}, z.core.$strip>, z.ZodObject<{
|
|
5529
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5306
5530
|
completedAt: z.ZodISODateTime;
|
|
5307
5531
|
kind: z.ZodLiteral<"automated">;
|
|
5308
5532
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
@@ -5311,11 +5535,13 @@ export declare const publicContractsV1: {
|
|
|
5311
5535
|
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
5312
5536
|
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
5313
5537
|
}, z.core.$strip>, z.ZodObject<{
|
|
5538
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5314
5539
|
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5315
5540
|
kind: z.ZodLiteral<"automated">;
|
|
5316
5541
|
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5317
5542
|
status: z.ZodLiteral<"canceled">;
|
|
5318
5543
|
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
5544
|
+
attemptId: z.ZodOptional<PublicIdSchema>;
|
|
5319
5545
|
completedAt: z.ZodISODateTime;
|
|
5320
5546
|
kind: z.ZodLiteral<"manual">;
|
|
5321
5547
|
startedAt: z.ZodISODateTime;
|
|
@@ -5346,10 +5572,204 @@ export declare const publicContractsV1: {
|
|
|
5346
5572
|
running: "running";
|
|
5347
5573
|
passed: "passed";
|
|
5348
5574
|
canceled: "canceled";
|
|
5575
|
+
superseded: "superseded";
|
|
5349
5576
|
}>;
|
|
5577
|
+
supersededBy: z.ZodOptional<z.ZodObject<{
|
|
5578
|
+
runId: PublicIdSchema;
|
|
5579
|
+
url: z.ZodURL;
|
|
5580
|
+
}, z.core.$strip>>;
|
|
5350
5581
|
url: z.ZodURL;
|
|
5351
5582
|
}, z.core.$strip>;
|
|
5352
5583
|
};
|
|
5584
|
+
getAttemptArtifacts: {
|
|
5585
|
+
readonly annotations: {
|
|
5586
|
+
readonly destructiveHint: false;
|
|
5587
|
+
readonly openWorldHint: false;
|
|
5588
|
+
readonly readOnlyHint: true;
|
|
5589
|
+
};
|
|
5590
|
+
readonly description: "Get metadata and signed artifact URLs for one finished run attempt.";
|
|
5591
|
+
readonly input: z.ZodObject<{
|
|
5592
|
+
attemptId: PublicIdSchema;
|
|
5593
|
+
}, z.core.$strip>;
|
|
5594
|
+
readonly kind: "read";
|
|
5595
|
+
readonly name: "run.getAttemptArtifacts";
|
|
5596
|
+
readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5597
|
+
flowId: PublicIdSchema;
|
|
5598
|
+
flowStatus: z.ZodEnum<{
|
|
5599
|
+
failed: "failed";
|
|
5600
|
+
queued: "queued";
|
|
5601
|
+
running: "running";
|
|
5602
|
+
passed: "passed";
|
|
5603
|
+
canceled: "canceled";
|
|
5604
|
+
}>;
|
|
5605
|
+
retryContext: z.ZodObject<{
|
|
5606
|
+
currentOrdinal: z.ZodNumber;
|
|
5607
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
5608
|
+
attemptId: PublicIdSchema;
|
|
5609
|
+
status: z.ZodEnum<{
|
|
5610
|
+
failed: "failed";
|
|
5611
|
+
passed: "passed";
|
|
5612
|
+
canceled: "canceled";
|
|
5613
|
+
skipped: "skipped";
|
|
5614
|
+
aborted: "aborted";
|
|
5615
|
+
}>;
|
|
5616
|
+
}, z.core.$strip>>;
|
|
5617
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5618
|
+
attemptId: PublicIdSchema;
|
|
5619
|
+
status: z.ZodEnum<{
|
|
5620
|
+
failed: "failed";
|
|
5621
|
+
passed: "passed";
|
|
5622
|
+
canceled: "canceled";
|
|
5623
|
+
skipped: "skipped";
|
|
5624
|
+
aborted: "aborted";
|
|
5625
|
+
}>;
|
|
5626
|
+
}, z.core.$strip>>;
|
|
5627
|
+
total: z.ZodNumber;
|
|
5628
|
+
}, z.core.$strip>;
|
|
5629
|
+
runId: PublicIdSchema;
|
|
5630
|
+
runStatus: z.ZodEnum<{
|
|
5631
|
+
failed: "failed";
|
|
5632
|
+
queued: "queued";
|
|
5633
|
+
running: "running";
|
|
5634
|
+
passed: "passed";
|
|
5635
|
+
canceled: "canceled";
|
|
5636
|
+
superseded: "superseded";
|
|
5637
|
+
}>;
|
|
5638
|
+
artifacts: z.ZodObject<{
|
|
5639
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
5640
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
5641
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
5642
|
+
}, z.core.$strip>;
|
|
5643
|
+
artifactStatus: z.ZodLiteral<"signed">;
|
|
5644
|
+
attempt: z.ZodObject<{
|
|
5645
|
+
attemptId: PublicIdSchema;
|
|
5646
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5647
|
+
createdAt: z.ZodISODateTime;
|
|
5648
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5649
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5650
|
+
kind: z.ZodLiteral<"automated">;
|
|
5651
|
+
status: z.ZodEnum<{
|
|
5652
|
+
failed: "failed";
|
|
5653
|
+
passed: "passed";
|
|
5654
|
+
canceled: "canceled";
|
|
5655
|
+
skipped: "skipped";
|
|
5656
|
+
aborted: "aborted";
|
|
5657
|
+
}>;
|
|
5658
|
+
}, z.core.$strip>;
|
|
5659
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5660
|
+
flowId: PublicIdSchema;
|
|
5661
|
+
flowStatus: z.ZodEnum<{
|
|
5662
|
+
failed: "failed";
|
|
5663
|
+
queued: "queued";
|
|
5664
|
+
running: "running";
|
|
5665
|
+
passed: "passed";
|
|
5666
|
+
canceled: "canceled";
|
|
5667
|
+
}>;
|
|
5668
|
+
retryContext: z.ZodObject<{
|
|
5669
|
+
currentOrdinal: z.ZodNumber;
|
|
5670
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
5671
|
+
attemptId: PublicIdSchema;
|
|
5672
|
+
status: z.ZodEnum<{
|
|
5673
|
+
failed: "failed";
|
|
5674
|
+
passed: "passed";
|
|
5675
|
+
canceled: "canceled";
|
|
5676
|
+
skipped: "skipped";
|
|
5677
|
+
aborted: "aborted";
|
|
5678
|
+
}>;
|
|
5679
|
+
}, z.core.$strip>>;
|
|
5680
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5681
|
+
attemptId: PublicIdSchema;
|
|
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
|
+
total: z.ZodNumber;
|
|
5691
|
+
}, z.core.$strip>;
|
|
5692
|
+
runId: PublicIdSchema;
|
|
5693
|
+
runStatus: z.ZodEnum<{
|
|
5694
|
+
failed: "failed";
|
|
5695
|
+
queued: "queued";
|
|
5696
|
+
running: "running";
|
|
5697
|
+
passed: "passed";
|
|
5698
|
+
canceled: "canceled";
|
|
5699
|
+
superseded: "superseded";
|
|
5700
|
+
}>;
|
|
5701
|
+
artifacts: z.ZodObject<{}, z.core.$strict>;
|
|
5702
|
+
artifactStatus: z.ZodLiteral<"signing-failed">;
|
|
5703
|
+
attempt: z.ZodObject<{
|
|
5704
|
+
attemptId: PublicIdSchema;
|
|
5705
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5706
|
+
createdAt: z.ZodISODateTime;
|
|
5707
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5708
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5709
|
+
kind: z.ZodLiteral<"automated">;
|
|
5710
|
+
status: z.ZodEnum<{
|
|
5711
|
+
failed: "failed";
|
|
5712
|
+
passed: "passed";
|
|
5713
|
+
canceled: "canceled";
|
|
5714
|
+
skipped: "skipped";
|
|
5715
|
+
aborted: "aborted";
|
|
5716
|
+
}>;
|
|
5717
|
+
}, z.core.$strip>;
|
|
5718
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5719
|
+
flowId: PublicIdSchema;
|
|
5720
|
+
flowStatus: z.ZodEnum<{
|
|
5721
|
+
failed: "failed";
|
|
5722
|
+
queued: "queued";
|
|
5723
|
+
running: "running";
|
|
5724
|
+
passed: "passed";
|
|
5725
|
+
canceled: "canceled";
|
|
5726
|
+
}>;
|
|
5727
|
+
retryContext: z.ZodObject<{
|
|
5728
|
+
currentOrdinal: z.ZodNumber;
|
|
5729
|
+
next: z.ZodOptional<z.ZodObject<{
|
|
5730
|
+
attemptId: PublicIdSchema;
|
|
5731
|
+
status: z.ZodEnum<{
|
|
5732
|
+
failed: "failed";
|
|
5733
|
+
passed: "passed";
|
|
5734
|
+
canceled: "canceled";
|
|
5735
|
+
skipped: "skipped";
|
|
5736
|
+
aborted: "aborted";
|
|
5737
|
+
}>;
|
|
5738
|
+
}, z.core.$strip>>;
|
|
5739
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
5740
|
+
attemptId: PublicIdSchema;
|
|
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
|
+
total: z.ZodNumber;
|
|
5750
|
+
}, z.core.$strip>;
|
|
5751
|
+
runId: PublicIdSchema;
|
|
5752
|
+
runStatus: z.ZodEnum<{
|
|
5753
|
+
failed: "failed";
|
|
5754
|
+
queued: "queued";
|
|
5755
|
+
running: "running";
|
|
5756
|
+
passed: "passed";
|
|
5757
|
+
canceled: "canceled";
|
|
5758
|
+
superseded: "superseded";
|
|
5759
|
+
}>;
|
|
5760
|
+
artifacts: z.ZodObject<{}, z.core.$strict>;
|
|
5761
|
+
artifactStatus: z.ZodLiteral<"not-captured">;
|
|
5762
|
+
attempt: z.ZodObject<{
|
|
5763
|
+
attemptId: PublicIdSchema;
|
|
5764
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5765
|
+
createdAt: z.ZodISODateTime;
|
|
5766
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5767
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
5768
|
+
kind: z.ZodLiteral<"manual">;
|
|
5769
|
+
status: z.ZodLiteral<"passed">;
|
|
5770
|
+
}, z.core.$strip>;
|
|
5771
|
+
}, z.core.$strip>], "artifactStatus">;
|
|
5772
|
+
};
|
|
5353
5773
|
reattempt: {
|
|
5354
5774
|
readonly annotations: {
|
|
5355
5775
|
readonly destructiveHint: true;
|