@qawolf/api-contracts 0.88.0 → 0.91.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 (63) hide show
  1. package/dist/v1/deployment/find.d.ts +1 -0
  2. package/dist/v1/deployment/find.d.ts.map +1 -1
  3. package/dist/v1/deployment/index.d.ts +1 -0
  4. package/dist/v1/deployment/index.d.ts.map +1 -1
  5. package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
  6. package/dist/v1/deployment/reportStatus.js +1 -1
  7. package/dist/v1/deployment/reportStatus.js.map +1 -1
  8. package/dist/v1/deployment/resource.d.ts +1 -0
  9. package/dist/v1/deployment/resource.d.ts.map +1 -1
  10. package/dist/v1/deployment/resource.js +5 -1
  11. package/dist/v1/deployment/resource.js.map +1 -1
  12. package/dist/v1/environment/create.d.ts +2 -0
  13. package/dist/v1/environment/create.d.ts.map +1 -1
  14. package/dist/v1/environment/find.d.ts +2 -0
  15. package/dist/v1/environment/find.d.ts.map +1 -1
  16. package/dist/v1/environment/index.d.ts +2 -0
  17. package/dist/v1/environment/index.d.ts.map +1 -1
  18. package/dist/v1/environment/promote.d.ts +1 -1
  19. package/dist/v1/environment/promote.js +1 -1
  20. package/dist/v1/environment/promote.js.map +1 -1
  21. package/dist/v1/environment/resource.d.ts +2 -0
  22. package/dist/v1/environment/resource.d.ts.map +1 -1
  23. package/dist/v1/environment/resource.js +6 -0
  24. package/dist/v1/environment/resource.js.map +1 -1
  25. package/dist/v1/environment/{discard.d.ts → terminate.d.ts} +6 -4
  26. package/dist/v1/environment/terminate.d.ts.map +1 -0
  27. package/dist/v1/environment/{discard.js → terminate.js} +4 -4
  28. package/dist/v1/environment/terminate.js.map +1 -0
  29. package/dist/v1/environment/update.d.ts +2 -0
  30. package/dist/v1/environment/update.d.ts.map +1 -1
  31. package/dist/v1/flow/getHistory.d.ts +60 -0
  32. package/dist/v1/flow/getHistory.d.ts.map +1 -0
  33. package/dist/v1/flow/getHistory.js +75 -0
  34. package/dist/v1/flow/getHistory.js.map +1 -0
  35. package/dist/v1/index.d.ts +378 -112
  36. package/dist/v1/index.d.ts.map +1 -1
  37. package/dist/v1/index.js +6 -2
  38. package/dist/v1/index.js.map +1 -1
  39. package/dist/v1/investigation/get.d.ts +1 -0
  40. package/dist/v1/investigation/get.d.ts.map +1 -1
  41. package/dist/v1/investigation/get.js +5 -3
  42. package/dist/v1/investigation/get.js.map +1 -1
  43. package/dist/v1/investigation/index.d.ts +1 -0
  44. package/dist/v1/investigation/index.d.ts.map +1 -1
  45. package/dist/v1/issue/addFlows.d.ts +1 -1
  46. package/dist/v1/issue/create.d.ts +1 -1
  47. package/dist/v1/issue/index.d.ts +4 -4
  48. package/dist/v1/issue/listActivity.d.ts +79 -0
  49. package/dist/v1/issue/listActivity.d.ts.map +1 -0
  50. package/dist/v1/issue/listActivity.js +67 -0
  51. package/dist/v1/issue/listActivity.js.map +1 -0
  52. package/dist/v1/issue/removeFlows.d.ts +1 -1
  53. package/dist/v1/issue/update.d.ts +1 -1
  54. package/dist/v1/promotion/resource.js +1 -1
  55. package/dist/v1/promotion/resource.js.map +1 -1
  56. package/dist/v1/run/diagnose.d.ts +1 -1
  57. package/dist/v1/runner/runFlow.js +1 -1
  58. package/dist/v1/runner/runFlow.js.map +1 -1
  59. package/dist/v1/trigger/configuration.js +1 -1
  60. package/dist/v1/trigger/configuration.js.map +1 -1
  61. package/package.json +1 -1
  62. package/dist/v1/environment/discard.d.ts.map +0 -1
  63. package/dist/v1/environment/discard.js.map +0 -1
@@ -395,6 +395,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
395
395
  gitlab: "gitlab";
396
396
  api: "api";
397
397
  }>>;
398
+ repository: z.ZodOptional<z.ZodString>;
398
399
  service: z.ZodOptional<z.ZodString>;
399
400
  status: z.ZodOptional<z.ZodEnum<{
400
401
  success: "success";
@@ -837,6 +838,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
837
838
  readonly name: "environment.create";
838
839
  readonly output: z.ZodObject<{
839
840
  alias: z.ZodOptional<z.ZodString>;
841
+ baseEnvironmentId: z.ZodOptional<EnvironmentId>;
840
842
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
841
843
  lastSyncedCommitHash: z.ZodString;
842
844
  name: z.ZodString;
@@ -847,6 +849,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
847
849
  }, z.core.$strip>], "syncStatus">>;
848
850
  id: EnvironmentId;
849
851
  isDefault: z.ZodBoolean;
852
+ isDefaultBase: z.ZodBoolean;
850
853
  kind: z.ZodEnum<{
851
854
  static: "static";
852
855
  preview: "preview";
@@ -887,53 +890,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
887
890
  name: z.ZodString;
888
891
  }, z.core.$strip>;
889
892
  };
890
- discard: {
891
- readonly annotationJustifications: {
892
- readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
893
- readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
894
- readonly readOnlyHint: "Terminates an environment and returns it terminated.";
895
- };
896
- readonly annotations: {
897
- readonly destructiveHint: true;
898
- readonly openWorldHint: false;
899
- readonly readOnlyHint: false;
900
- };
901
- readonly description: "Declare a preview environment's work discarded, typically when its pull request closes without merging: the environment is terminated and its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be discarded again. Use environment.promote instead when the work is accepted.";
902
- readonly input: z.ZodObject<{
903
- environmentId: PublicIdSchema;
904
- workspaceId: z.ZodOptional<WorkspaceId>;
905
- }, z.core.$strip>;
906
- readonly kind: "write";
907
- readonly name: "environment.discard";
908
- readonly output: z.ZodObject<{
909
- alias: z.ZodOptional<z.ZodString>;
910
- flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
911
- lastSyncedCommitHash: z.ZodString;
912
- name: z.ZodString;
913
- syncStatus: z.ZodLiteral<"reconciled">;
914
- }, z.core.$strip>, z.ZodObject<{
915
- name: z.ZodString;
916
- syncStatus: z.ZodLiteral<"not-reconciled">;
917
- }, z.core.$strip>], "syncStatus">>;
918
- id: EnvironmentId;
919
- isDefault: z.ZodBoolean;
920
- kind: z.ZodEnum<{
921
- static: "static";
922
- preview: "preview";
923
- }>;
924
- name: z.ZodString;
925
- runConcurrencyLimit: z.ZodString;
926
- status: z.ZodEnum<{
927
- running: "running";
928
- blocked: "blocked";
929
- "needs-investigation": "needs-investigation";
930
- ready: "ready";
931
- }>;
932
- terminatedAt: z.ZodOptional<z.ZodISODateTime>;
933
- variablesUrl: z.ZodOptional<z.ZodURL>;
934
- url: z.ZodURL;
935
- }, z.core.$strip>;
936
- };
937
893
  find: {
938
894
  readonly annotationJustifications: {
939
895
  readonly destructiveHint: "Does not edit environments, variables or branches.";
@@ -962,6 +918,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
962
918
  defaultEnvironmentId: EnvironmentId;
963
919
  environments: z.ZodArray<z.ZodObject<{
964
920
  alias: z.ZodOptional<z.ZodString>;
921
+ baseEnvironmentId: z.ZodOptional<EnvironmentId>;
965
922
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
966
923
  lastSyncedCommitHash: z.ZodString;
967
924
  name: z.ZodString;
@@ -972,6 +929,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
972
929
  }, z.core.$strip>], "syncStatus">>;
973
930
  id: EnvironmentId;
974
931
  isDefault: z.ZodBoolean;
932
+ isDefaultBase: z.ZodBoolean;
975
933
  kind: z.ZodEnum<{
976
934
  static: "static";
977
935
  preview: "preview";
@@ -1011,6 +969,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1011
969
  readonly name: "environment.get";
1012
970
  readonly output: z.ZodObject<{
1013
971
  alias: z.ZodOptional<z.ZodString>;
972
+ baseEnvironmentId: z.ZodOptional<EnvironmentId>;
1014
973
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1015
974
  lastSyncedCommitHash: z.ZodString;
1016
975
  name: z.ZodString;
@@ -1021,6 +980,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1021
980
  }, z.core.$strip>], "syncStatus">>;
1022
981
  id: EnvironmentId;
1023
982
  isDefault: z.ZodBoolean;
983
+ isDefaultBase: z.ZodBoolean;
1024
984
  kind: z.ZodEnum<{
1025
985
  static: "static";
1026
986
  preview: "preview";
@@ -1098,7 +1058,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1098
1058
  readonly openWorldHint: false;
1099
1059
  readonly readOnlyHint: false;
1100
1060
  };
1101
- readonly description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.discard instead when the work is abandoned.";
1061
+ readonly description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.terminate instead when the work is abandoned.";
1102
1062
  readonly input: z.ZodObject<{
1103
1063
  environmentId: PublicIdSchema;
1104
1064
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -1153,6 +1113,55 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1153
1113
  name: z.ZodString;
1154
1114
  }, z.core.$strip>;
1155
1115
  };
1116
+ terminate: {
1117
+ readonly annotationJustifications: {
1118
+ readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
1119
+ readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
1120
+ readonly readOnlyHint: "Terminates an environment and returns it terminated.";
1121
+ };
1122
+ readonly annotations: {
1123
+ readonly destructiveHint: true;
1124
+ readonly openWorldHint: false;
1125
+ readonly readOnlyHint: false;
1126
+ };
1127
+ readonly description: "Terminate a preview environment, typically when its pull request closes without merging: its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be terminated again. Use environment.promote instead when the work is accepted.";
1128
+ readonly input: z.ZodObject<{
1129
+ environmentId: PublicIdSchema;
1130
+ workspaceId: z.ZodOptional<WorkspaceId>;
1131
+ }, z.core.$strip>;
1132
+ readonly kind: "write";
1133
+ readonly name: "environment.terminate";
1134
+ readonly output: z.ZodObject<{
1135
+ alias: z.ZodOptional<z.ZodString>;
1136
+ baseEnvironmentId: z.ZodOptional<EnvironmentId>;
1137
+ flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1138
+ lastSyncedCommitHash: z.ZodString;
1139
+ name: z.ZodString;
1140
+ syncStatus: z.ZodLiteral<"reconciled">;
1141
+ }, z.core.$strip>, z.ZodObject<{
1142
+ name: z.ZodString;
1143
+ syncStatus: z.ZodLiteral<"not-reconciled">;
1144
+ }, z.core.$strip>], "syncStatus">>;
1145
+ id: EnvironmentId;
1146
+ isDefault: z.ZodBoolean;
1147
+ isDefaultBase: z.ZodBoolean;
1148
+ kind: z.ZodEnum<{
1149
+ static: "static";
1150
+ preview: "preview";
1151
+ }>;
1152
+ name: z.ZodString;
1153
+ runConcurrencyLimit: z.ZodString;
1154
+ status: z.ZodEnum<{
1155
+ running: "running";
1156
+ blocked: "blocked";
1157
+ "needs-investigation": "needs-investigation";
1158
+ ready: "ready";
1159
+ }>;
1160
+ terminatedAt: z.ZodOptional<z.ZodISODateTime>;
1161
+ variablesUrl: z.ZodOptional<z.ZodURL>;
1162
+ url: z.ZodURL;
1163
+ }, z.core.$strip>;
1164
+ };
1156
1165
  update: {
1157
1166
  readonly annotationJustifications: {
1158
1167
  readonly destructiveHint: "Can overwrite existing environment settings and affect future run capacity.";
@@ -1175,6 +1184,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1175
1184
  readonly name: "environment.update";
1176
1185
  readonly output: z.ZodObject<{
1177
1186
  alias: z.ZodOptional<z.ZodString>;
1187
+ baseEnvironmentId: z.ZodOptional<EnvironmentId>;
1178
1188
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1179
1189
  lastSyncedCommitHash: z.ZodString;
1180
1190
  name: z.ZodString;
@@ -1185,6 +1195,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1185
1195
  }, z.core.$strip>], "syncStatus">>;
1186
1196
  id: EnvironmentId;
1187
1197
  isDefault: z.ZodBoolean;
1198
+ isDefaultBase: z.ZodBoolean;
1188
1199
  kind: z.ZodEnum<{
1189
1200
  static: "static";
1190
1201
  preview: "preview";
@@ -1286,6 +1297,56 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1286
1297
  }, z.core.$strip>>;
1287
1298
  }, z.core.$strip>;
1288
1299
  };
1300
+ getHistory: {
1301
+ readonly annotationJustifications: {
1302
+ readonly destructiveHint: "Does not rerun, edit or remove the flow or its runs.";
1303
+ readonly openWorldHint: "Reads recorded QA Wolf results without changing the application under test.";
1304
+ readonly readOnlyHint: "Lists one flow's past results across runs.";
1305
+ };
1306
+ readonly annotations: {
1307
+ readonly destructiveHint: false;
1308
+ readonly openWorldHint: false;
1309
+ readonly readOnlyHint: true;
1310
+ };
1311
+ readonly description: "List one flow's results across runs in an environment, newest first, with status, attempts, duration, and diagnosis. Use it to spot flakiness, failure streaks, and duration trends.";
1312
+ readonly input: z.ZodObject<{
1313
+ environmentId: PublicIdSchema;
1314
+ flowId: FlowId;
1315
+ workspaceId: z.ZodOptional<WorkspaceId>;
1316
+ cursor: z.ZodOptional<z.ZodString>;
1317
+ limit: z.ZodDefault<z.ZodNumber>;
1318
+ createdAfter: z.ZodOptional<z.ZodISODateTime>;
1319
+ createdBefore: z.ZodOptional<z.ZodISODateTime>;
1320
+ }, z.core.$strip>;
1321
+ readonly kind: "read";
1322
+ readonly name: "flow.getHistory";
1323
+ readonly output: z.ZodObject<{
1324
+ nextCursor: z.ZodOptional<z.ZodString>;
1325
+ results: z.ZodArray<z.ZodObject<{
1326
+ attemptCount: z.ZodNumber;
1327
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
1328
+ createdAt: z.ZodISODateTime;
1329
+ diagnosis: z.ZodOptional<z.ZodObject<{
1330
+ issueId: IssueId;
1331
+ type: z.ZodEnum<{
1332
+ bug: "bug";
1333
+ maintenance: "maintenance";
1334
+ }>;
1335
+ }, z.core.$strip>>;
1336
+ durationMs: z.ZodOptional<z.ZodNumber>;
1337
+ passedAfterRetry: z.ZodBoolean;
1338
+ runId: RunId;
1339
+ status: z.ZodEnum<{
1340
+ failed: "failed";
1341
+ queued: "queued";
1342
+ running: "running";
1343
+ passed: "passed";
1344
+ canceled: "canceled";
1345
+ }>;
1346
+ url: z.ZodURL;
1347
+ }, z.core.$strip>>;
1348
+ }, z.core.$strip>;
1349
+ };
1289
1350
  list: {
1290
1351
  readonly annotationJustifications: {
1291
1352
  readonly destructiveHint: "Does not change flow code, readiness or tags.";
@@ -1484,6 +1545,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1484
1545
  investigating: "investigating";
1485
1546
  finished: "finished";
1486
1547
  "not-investigated": "not-investigated";
1548
+ "not-enabled": "not-enabled";
1487
1549
  }>;
1488
1550
  subSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1489
1551
  sessionId: ChatSessionId;
@@ -1551,8 +1613,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1551
1613
  }>;
1552
1614
  type: z.ZodEnum<{
1553
1615
  bug: "bug";
1554
- coverageRequest: "coverageRequest";
1555
1616
  maintenance: "maintenance";
1617
+ coverageRequest: "coverageRequest";
1556
1618
  }>;
1557
1619
  url: z.ZodURL;
1558
1620
  }, z.core.$strip>;
@@ -1655,8 +1717,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1655
1717
  }>;
1656
1718
  type: z.ZodEnum<{
1657
1719
  bug: "bug";
1658
- coverageRequest: "coverageRequest";
1659
1720
  maintenance: "maintenance";
1721
+ coverageRequest: "coverageRequest";
1660
1722
  }>;
1661
1723
  url: z.ZodURL;
1662
1724
  }, z.core.$strip>;
@@ -1686,8 +1748,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1686
1748
  }>>>;
1687
1749
  type: z.ZodEnum<{
1688
1750
  bug: "bug";
1689
- coverageRequest: "coverageRequest";
1690
1751
  maintenance: "maintenance";
1752
+ coverageRequest: "coverageRequest";
1691
1753
  }>;
1692
1754
  workspaceId: z.ZodOptional<WorkspaceId>;
1693
1755
  cursor: z.ZodOptional<z.ZodString>;
@@ -1728,8 +1790,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1728
1790
  }>;
1729
1791
  type: z.ZodEnum<{
1730
1792
  bug: "bug";
1731
- coverageRequest: "coverageRequest";
1732
1793
  maintenance: "maintenance";
1794
+ coverageRequest: "coverageRequest";
1733
1795
  }>;
1734
1796
  url: z.ZodURL;
1735
1797
  }, z.core.$strip>>;
@@ -1786,13 +1848,84 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1786
1848
  }>;
1787
1849
  type: z.ZodEnum<{
1788
1850
  bug: "bug";
1789
- coverageRequest: "coverageRequest";
1790
1851
  maintenance: "maintenance";
1852
+ coverageRequest: "coverageRequest";
1791
1853
  }>;
1792
1854
  url: z.ZodURL;
1793
1855
  }, z.core.$strip>;
1794
1856
  }, z.core.$strip>;
1795
1857
  };
1858
+ listActivity: {
1859
+ readonly annotationJustifications: {
1860
+ readonly destructiveHint: "Does not edit the issue or its activity.";
1861
+ readonly openWorldHint: "Reads QA Wolf issue history without publishing updates to linked trackers.";
1862
+ readonly readOnlyHint: "Lists the recorded activity of one issue.";
1863
+ };
1864
+ readonly annotations: {
1865
+ readonly destructiveHint: false;
1866
+ readonly openWorldHint: false;
1867
+ readonly readOnlyHint: true;
1868
+ };
1869
+ readonly description: "List an issue's activity, oldest first: creation, status and priority changes, and the flows that started or stopped reproducing it. Use it to measure time to fix or to find issues that came back.";
1870
+ readonly input: z.ZodObject<{
1871
+ cursor: z.ZodOptional<z.ZodString>;
1872
+ limit: z.ZodDefault<z.ZodNumber>;
1873
+ issueId: IssueId;
1874
+ }, z.core.$strip>;
1875
+ readonly kind: "read";
1876
+ readonly name: "issue.listActivity";
1877
+ readonly output: z.ZodObject<{
1878
+ events: z.ZodArray<z.ZodObject<{
1879
+ actorKind: z.ZodOptional<z.ZodEnum<{
1880
+ user: "user";
1881
+ "qa-wolf": "qa-wolf";
1882
+ "api-key": "api-key";
1883
+ }>>;
1884
+ environmentId: z.ZodOptional<EnvironmentId>;
1885
+ flowId: z.ZodOptional<FlowId>;
1886
+ fromPriority: z.ZodOptional<z.ZodEnum<{
1887
+ unprioritized: "unprioritized";
1888
+ low: "low";
1889
+ medium: "medium";
1890
+ high: "high";
1891
+ urgent: "urgent";
1892
+ }>>;
1893
+ occurredAt: z.ZodISODateTime;
1894
+ runId: z.ZodOptional<RunId>;
1895
+ toPriority: z.ZodOptional<z.ZodEnum<{
1896
+ unprioritized: "unprioritized";
1897
+ low: "low";
1898
+ medium: "medium";
1899
+ high: "high";
1900
+ urgent: "urgent";
1901
+ }>>;
1902
+ toStatus: z.ZodOptional<z.ZodEnum<{
1903
+ pending: "pending";
1904
+ canceled: "canceled";
1905
+ backlog: "backlog";
1906
+ inProgress: "inProgress";
1907
+ paused: "paused";
1908
+ resolved: "resolved";
1909
+ archived: "archived";
1910
+ }>>;
1911
+ type: z.ZodEnum<{
1912
+ resolved: "resolved";
1913
+ other: "other";
1914
+ created: "created";
1915
+ "status-changed": "status-changed";
1916
+ "priority-changed": "priority-changed";
1917
+ "auto-resolved": "auto-resolved";
1918
+ reopened: "reopened";
1919
+ "flow-started-reproducing": "flow-started-reproducing";
1920
+ "flow-stopped-reproducing": "flow-stopped-reproducing";
1921
+ "flow-removed": "flow-removed";
1922
+ "maintenance-reason-changed": "maintenance-reason-changed";
1923
+ "due-date-changed": "due-date-changed";
1924
+ }>;
1925
+ }, z.core.$strip>>;
1926
+ nextCursor: z.ZodOptional<z.ZodString>;
1927
+ }, z.core.$strip>;
1928
+ };
1796
1929
  removeFlows: {
1797
1930
  readonly annotationJustifications: {
1798
1931
  readonly destructiveHint: "Deletes existing coverage associations while leaving already-unassociated flows unchanged.";
@@ -1845,8 +1978,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1845
1978
  }>;
1846
1979
  type: z.ZodEnum<{
1847
1980
  bug: "bug";
1848
- coverageRequest: "coverageRequest";
1849
1981
  maintenance: "maintenance";
1982
+ coverageRequest: "coverageRequest";
1850
1983
  }>;
1851
1984
  url: z.ZodURL;
1852
1985
  }, z.core.$strip>;
@@ -1920,8 +2053,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1920
2053
  }>;
1921
2054
  type: z.ZodEnum<{
1922
2055
  bug: "bug";
1923
- coverageRequest: "coverageRequest";
1924
2056
  maintenance: "maintenance";
2057
+ coverageRequest: "coverageRequest";
1925
2058
  }>;
1926
2059
  url: z.ZodURL;
1927
2060
  }, z.core.$strip>;
@@ -2341,8 +2474,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2341
2474
  }>;
2342
2475
  type: z.ZodEnum<{
2343
2476
  bug: "bug";
2344
- coverageRequest: "coverageRequest";
2345
2477
  maintenance: "maintenance";
2478
+ coverageRequest: "coverageRequest";
2346
2479
  }>;
2347
2480
  url: z.ZodURL;
2348
2481
  }, z.core.$strip>;
@@ -4977,6 +5110,7 @@ export declare const publicContractsV1: {
4977
5110
  gitlab: "gitlab";
4978
5111
  api: "api";
4979
5112
  }>>;
5113
+ repository: z.ZodOptional<z.ZodString>;
4980
5114
  service: z.ZodOptional<z.ZodString>;
4981
5115
  status: z.ZodOptional<z.ZodEnum<{
4982
5116
  success: "success";
@@ -5419,6 +5553,7 @@ export declare const publicContractsV1: {
5419
5553
  readonly name: "environment.create";
5420
5554
  readonly output: z.ZodObject<{
5421
5555
  alias: z.ZodOptional<z.ZodString>;
5556
+ baseEnvironmentId: z.ZodOptional<PublicIdSchema>;
5422
5557
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5423
5558
  lastSyncedCommitHash: z.ZodString;
5424
5559
  name: z.ZodString;
@@ -5429,6 +5564,7 @@ export declare const publicContractsV1: {
5429
5564
  }, z.core.$strip>], "syncStatus">>;
5430
5565
  id: PublicIdSchema;
5431
5566
  isDefault: z.ZodBoolean;
5567
+ isDefaultBase: z.ZodBoolean;
5432
5568
  kind: z.ZodEnum<{
5433
5569
  static: "static";
5434
5570
  preview: "preview";
@@ -5469,53 +5605,6 @@ export declare const publicContractsV1: {
5469
5605
  name: z.ZodString;
5470
5606
  }, z.core.$strip>;
5471
5607
  };
5472
- discard: {
5473
- readonly annotationJustifications: {
5474
- readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
5475
- readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
5476
- readonly readOnlyHint: "Terminates an environment and returns it terminated.";
5477
- };
5478
- readonly annotations: {
5479
- readonly destructiveHint: true;
5480
- readonly openWorldHint: false;
5481
- readonly readOnlyHint: false;
5482
- };
5483
- readonly description: "Declare a preview environment's work discarded, typically when its pull request closes without merging: the environment is terminated and its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be discarded again. Use environment.promote instead when the work is accepted.";
5484
- readonly input: z.ZodObject<{
5485
- environmentId: PublicIdSchema;
5486
- workspaceId: z.ZodOptional<PublicIdSchema>;
5487
- }, z.core.$strip>;
5488
- readonly kind: "write";
5489
- readonly name: "environment.discard";
5490
- readonly output: z.ZodObject<{
5491
- alias: z.ZodOptional<z.ZodString>;
5492
- flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5493
- lastSyncedCommitHash: z.ZodString;
5494
- name: z.ZodString;
5495
- syncStatus: z.ZodLiteral<"reconciled">;
5496
- }, z.core.$strip>, z.ZodObject<{
5497
- name: z.ZodString;
5498
- syncStatus: z.ZodLiteral<"not-reconciled">;
5499
- }, z.core.$strip>], "syncStatus">>;
5500
- id: PublicIdSchema;
5501
- isDefault: z.ZodBoolean;
5502
- kind: z.ZodEnum<{
5503
- static: "static";
5504
- preview: "preview";
5505
- }>;
5506
- name: z.ZodString;
5507
- runConcurrencyLimit: z.ZodString;
5508
- status: z.ZodEnum<{
5509
- running: "running";
5510
- blocked: "blocked";
5511
- "needs-investigation": "needs-investigation";
5512
- ready: "ready";
5513
- }>;
5514
- terminatedAt: z.ZodOptional<z.ZodISODateTime>;
5515
- variablesUrl: z.ZodOptional<z.ZodURL>;
5516
- url: z.ZodURL;
5517
- }, z.core.$strip>;
5518
- };
5519
5608
  find: {
5520
5609
  readonly annotationJustifications: {
5521
5610
  readonly destructiveHint: "Does not edit environments, variables or branches.";
@@ -5544,6 +5633,7 @@ export declare const publicContractsV1: {
5544
5633
  defaultEnvironmentId: PublicIdSchema;
5545
5634
  environments: z.ZodArray<z.ZodObject<{
5546
5635
  alias: z.ZodOptional<z.ZodString>;
5636
+ baseEnvironmentId: z.ZodOptional<PublicIdSchema>;
5547
5637
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5548
5638
  lastSyncedCommitHash: z.ZodString;
5549
5639
  name: z.ZodString;
@@ -5554,6 +5644,7 @@ export declare const publicContractsV1: {
5554
5644
  }, z.core.$strip>], "syncStatus">>;
5555
5645
  id: PublicIdSchema;
5556
5646
  isDefault: z.ZodBoolean;
5647
+ isDefaultBase: z.ZodBoolean;
5557
5648
  kind: z.ZodEnum<{
5558
5649
  static: "static";
5559
5650
  preview: "preview";
@@ -5593,6 +5684,7 @@ export declare const publicContractsV1: {
5593
5684
  readonly name: "environment.get";
5594
5685
  readonly output: z.ZodObject<{
5595
5686
  alias: z.ZodOptional<z.ZodString>;
5687
+ baseEnvironmentId: z.ZodOptional<PublicIdSchema>;
5596
5688
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5597
5689
  lastSyncedCommitHash: z.ZodString;
5598
5690
  name: z.ZodString;
@@ -5603,6 +5695,7 @@ export declare const publicContractsV1: {
5603
5695
  }, z.core.$strip>], "syncStatus">>;
5604
5696
  id: PublicIdSchema;
5605
5697
  isDefault: z.ZodBoolean;
5698
+ isDefaultBase: z.ZodBoolean;
5606
5699
  kind: z.ZodEnum<{
5607
5700
  static: "static";
5608
5701
  preview: "preview";
@@ -5680,7 +5773,7 @@ export declare const publicContractsV1: {
5680
5773
  readonly openWorldHint: false;
5681
5774
  readonly readOnlyHint: false;
5682
5775
  };
5683
- readonly description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.discard instead when the work is abandoned.";
5776
+ readonly description: "Declare a preview environment's work accepted, typically when its pull request merges: its flow changes are promoted into its base environment and the environment is terminated once they land. Returns the promotion in pending; poll promotion.get to learn how it settled. Calling again while a promotion is open returns that promotion. A conflict settles the promotion conflicted and cancels the environment's in-progress runs; promotion.get names the conflicting paths. Use environment.terminate instead when the work is abandoned.";
5684
5777
  readonly input: z.ZodObject<{
5685
5778
  environmentId: PublicIdSchema;
5686
5779
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -5735,6 +5828,55 @@ export declare const publicContractsV1: {
5735
5828
  name: z.ZodString;
5736
5829
  }, z.core.$strip>;
5737
5830
  };
5831
+ terminate: {
5832
+ readonly annotationJustifications: {
5833
+ readonly destructiveHint: "Terminates the environment for good: its runs are canceled and its flow changes are never promoted.";
5834
+ readonly openWorldHint: "Changes QA Wolf environments only, not the customer's own repository or deployments.";
5835
+ readonly readOnlyHint: "Terminates an environment and returns it terminated.";
5836
+ };
5837
+ readonly annotations: {
5838
+ readonly destructiveHint: true;
5839
+ readonly openWorldHint: false;
5840
+ readonly readOnlyHint: false;
5841
+ };
5842
+ readonly description: "Terminate a preview environment, typically when its pull request closes without merging: its flow changes are not promoted into its base. Returns the environment, now terminated. A terminated environment cannot be terminated again. Use environment.promote instead when the work is accepted.";
5843
+ readonly input: z.ZodObject<{
5844
+ environmentId: PublicIdSchema;
5845
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5846
+ }, z.core.$strip>;
5847
+ readonly kind: "write";
5848
+ readonly name: "environment.terminate";
5849
+ readonly output: z.ZodObject<{
5850
+ alias: z.ZodOptional<z.ZodString>;
5851
+ baseEnvironmentId: z.ZodOptional<PublicIdSchema>;
5852
+ flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5853
+ lastSyncedCommitHash: z.ZodString;
5854
+ name: z.ZodString;
5855
+ syncStatus: z.ZodLiteral<"reconciled">;
5856
+ }, z.core.$strip>, z.ZodObject<{
5857
+ name: z.ZodString;
5858
+ syncStatus: z.ZodLiteral<"not-reconciled">;
5859
+ }, z.core.$strip>], "syncStatus">>;
5860
+ id: PublicIdSchema;
5861
+ isDefault: z.ZodBoolean;
5862
+ isDefaultBase: z.ZodBoolean;
5863
+ kind: z.ZodEnum<{
5864
+ static: "static";
5865
+ preview: "preview";
5866
+ }>;
5867
+ name: z.ZodString;
5868
+ runConcurrencyLimit: z.ZodString;
5869
+ status: z.ZodEnum<{
5870
+ running: "running";
5871
+ blocked: "blocked";
5872
+ "needs-investigation": "needs-investigation";
5873
+ ready: "ready";
5874
+ }>;
5875
+ terminatedAt: z.ZodOptional<z.ZodISODateTime>;
5876
+ variablesUrl: z.ZodOptional<z.ZodURL>;
5877
+ url: z.ZodURL;
5878
+ }, z.core.$strip>;
5879
+ };
5738
5880
  update: {
5739
5881
  readonly annotationJustifications: {
5740
5882
  readonly destructiveHint: "Can overwrite existing environment settings and affect future run capacity.";
@@ -5757,6 +5899,7 @@ export declare const publicContractsV1: {
5757
5899
  readonly name: "environment.update";
5758
5900
  readonly output: z.ZodObject<{
5759
5901
  alias: z.ZodOptional<z.ZodString>;
5902
+ baseEnvironmentId: z.ZodOptional<PublicIdSchema>;
5760
5903
  flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5761
5904
  lastSyncedCommitHash: z.ZodString;
5762
5905
  name: z.ZodString;
@@ -5767,6 +5910,7 @@ export declare const publicContractsV1: {
5767
5910
  }, z.core.$strip>], "syncStatus">>;
5768
5911
  id: PublicIdSchema;
5769
5912
  isDefault: z.ZodBoolean;
5913
+ isDefaultBase: z.ZodBoolean;
5770
5914
  kind: z.ZodEnum<{
5771
5915
  static: "static";
5772
5916
  preview: "preview";
@@ -5868,6 +6012,56 @@ export declare const publicContractsV1: {
5868
6012
  }, z.core.$strip>>;
5869
6013
  }, z.core.$strip>;
5870
6014
  };
6015
+ getHistory: {
6016
+ readonly annotationJustifications: {
6017
+ readonly destructiveHint: "Does not rerun, edit or remove the flow or its runs.";
6018
+ readonly openWorldHint: "Reads recorded QA Wolf results without changing the application under test.";
6019
+ readonly readOnlyHint: "Lists one flow's past results across runs.";
6020
+ };
6021
+ readonly annotations: {
6022
+ readonly destructiveHint: false;
6023
+ readonly openWorldHint: false;
6024
+ readonly readOnlyHint: true;
6025
+ };
6026
+ readonly description: "List one flow's results across runs in an environment, newest first, with status, attempts, duration, and diagnosis. Use it to spot flakiness, failure streaks, and duration trends.";
6027
+ readonly input: z.ZodObject<{
6028
+ environmentId: PublicIdSchema;
6029
+ flowId: PublicIdSchema;
6030
+ workspaceId: z.ZodOptional<PublicIdSchema>;
6031
+ cursor: z.ZodOptional<z.ZodString>;
6032
+ limit: z.ZodDefault<z.ZodNumber>;
6033
+ createdAfter: z.ZodOptional<z.ZodISODateTime>;
6034
+ createdBefore: z.ZodOptional<z.ZodISODateTime>;
6035
+ }, z.core.$strip>;
6036
+ readonly kind: "read";
6037
+ readonly name: "flow.getHistory";
6038
+ readonly output: z.ZodObject<{
6039
+ nextCursor: z.ZodOptional<z.ZodString>;
6040
+ results: z.ZodArray<z.ZodObject<{
6041
+ attemptCount: z.ZodNumber;
6042
+ completedAt: z.ZodOptional<z.ZodISODateTime>;
6043
+ createdAt: z.ZodISODateTime;
6044
+ diagnosis: z.ZodOptional<z.ZodObject<{
6045
+ issueId: PublicIdSchema;
6046
+ type: z.ZodEnum<{
6047
+ bug: "bug";
6048
+ maintenance: "maintenance";
6049
+ }>;
6050
+ }, z.core.$strip>>;
6051
+ durationMs: z.ZodOptional<z.ZodNumber>;
6052
+ passedAfterRetry: z.ZodBoolean;
6053
+ runId: PublicIdSchema;
6054
+ status: z.ZodEnum<{
6055
+ failed: "failed";
6056
+ queued: "queued";
6057
+ running: "running";
6058
+ passed: "passed";
6059
+ canceled: "canceled";
6060
+ }>;
6061
+ url: z.ZodURL;
6062
+ }, z.core.$strip>>;
6063
+ }, z.core.$strip>;
6064
+ };
5871
6065
  list: {
5872
6066
  readonly annotationJustifications: {
5873
6067
  readonly destructiveHint: "Does not change flow code, readiness or tags.";
@@ -6066,6 +6260,7 @@ export declare const publicContractsV1: {
6066
6260
  investigating: "investigating";
6067
6261
  finished: "finished";
6068
6262
  "not-investigated": "not-investigated";
6263
+ "not-enabled": "not-enabled";
6069
6264
  }>;
6070
6265
  subSessions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6071
6266
  sessionId: PublicIdSchema;
@@ -6133,8 +6328,8 @@ export declare const publicContractsV1: {
6133
6328
  }>;
6134
6329
  type: z.ZodEnum<{
6135
6330
  bug: "bug";
6136
- coverageRequest: "coverageRequest";
6137
6331
  maintenance: "maintenance";
6332
+ coverageRequest: "coverageRequest";
6138
6333
  }>;
6139
6334
  url: z.ZodURL;
6140
6335
  }, z.core.$strip>;
@@ -6237,8 +6432,8 @@ export declare const publicContractsV1: {
6237
6432
  }>;
6238
6433
  type: z.ZodEnum<{
6239
6434
  bug: "bug";
6240
- coverageRequest: "coverageRequest";
6241
6435
  maintenance: "maintenance";
6436
+ coverageRequest: "coverageRequest";
6242
6437
  }>;
6243
6438
  url: z.ZodURL;
6244
6439
  }, z.core.$strip>;
@@ -6268,8 +6463,8 @@ export declare const publicContractsV1: {
6268
6463
  }>>>;
6269
6464
  type: z.ZodEnum<{
6270
6465
  bug: "bug";
6271
- coverageRequest: "coverageRequest";
6272
6466
  maintenance: "maintenance";
6467
+ coverageRequest: "coverageRequest";
6273
6468
  }>;
6274
6469
  workspaceId: z.ZodOptional<PublicIdSchema>;
6275
6470
  cursor: z.ZodOptional<z.ZodString>;
@@ -6310,8 +6505,8 @@ export declare const publicContractsV1: {
6310
6505
  }>;
6311
6506
  type: z.ZodEnum<{
6312
6507
  bug: "bug";
6313
- coverageRequest: "coverageRequest";
6314
6508
  maintenance: "maintenance";
6509
+ coverageRequest: "coverageRequest";
6315
6510
  }>;
6316
6511
  url: z.ZodURL;
6317
6512
  }, z.core.$strip>>;
@@ -6368,13 +6563,84 @@ export declare const publicContractsV1: {
6368
6563
  }>;
6369
6564
  type: z.ZodEnum<{
6370
6565
  bug: "bug";
6371
- coverageRequest: "coverageRequest";
6372
6566
  maintenance: "maintenance";
6567
+ coverageRequest: "coverageRequest";
6373
6568
  }>;
6374
6569
  url: z.ZodURL;
6375
6570
  }, z.core.$strip>;
6376
6571
  }, z.core.$strip>;
6377
6572
  };
6573
+ listActivity: {
6574
+ readonly annotationJustifications: {
6575
+ readonly destructiveHint: "Does not edit the issue or its activity.";
6576
+ readonly openWorldHint: "Reads QA Wolf issue history without publishing updates to linked trackers.";
6577
+ readonly readOnlyHint: "Lists the recorded activity of one issue.";
6578
+ };
6579
+ readonly annotations: {
6580
+ readonly destructiveHint: false;
6581
+ readonly openWorldHint: false;
6582
+ readonly readOnlyHint: true;
6583
+ };
6584
+ readonly description: "List an issue's activity, oldest first: creation, status and priority changes, and the flows that started or stopped reproducing it. Use it to measure time to fix or to find issues that came back.";
6585
+ readonly input: z.ZodObject<{
6586
+ cursor: z.ZodOptional<z.ZodString>;
6587
+ limit: z.ZodDefault<z.ZodNumber>;
6588
+ issueId: PublicIdSchema;
6589
+ }, z.core.$strip>;
6590
+ readonly kind: "read";
6591
+ readonly name: "issue.listActivity";
6592
+ readonly output: z.ZodObject<{
6593
+ events: z.ZodArray<z.ZodObject<{
6594
+ actorKind: z.ZodOptional<z.ZodEnum<{
6595
+ user: "user";
6596
+ "qa-wolf": "qa-wolf";
6597
+ "api-key": "api-key";
6598
+ }>>;
6599
+ environmentId: z.ZodOptional<PublicIdSchema>;
6600
+ flowId: z.ZodOptional<PublicIdSchema>;
6601
+ fromPriority: z.ZodOptional<z.ZodEnum<{
6602
+ unprioritized: "unprioritized";
6603
+ low: "low";
6604
+ medium: "medium";
6605
+ high: "high";
6606
+ urgent: "urgent";
6607
+ }>>;
6608
+ occurredAt: z.ZodISODateTime;
6609
+ runId: z.ZodOptional<PublicIdSchema>;
6610
+ toPriority: z.ZodOptional<z.ZodEnum<{
6611
+ unprioritized: "unprioritized";
6612
+ low: "low";
6613
+ medium: "medium";
6614
+ high: "high";
6615
+ urgent: "urgent";
6616
+ }>>;
6617
+ toStatus: z.ZodOptional<z.ZodEnum<{
6618
+ pending: "pending";
6619
+ canceled: "canceled";
6620
+ backlog: "backlog";
6621
+ inProgress: "inProgress";
6622
+ paused: "paused";
6623
+ resolved: "resolved";
6624
+ archived: "archived";
6625
+ }>>;
6626
+ type: z.ZodEnum<{
6627
+ resolved: "resolved";
6628
+ other: "other";
6629
+ created: "created";
6630
+ "status-changed": "status-changed";
6631
+ "priority-changed": "priority-changed";
6632
+ "auto-resolved": "auto-resolved";
6633
+ reopened: "reopened";
6634
+ "flow-started-reproducing": "flow-started-reproducing";
6635
+ "flow-stopped-reproducing": "flow-stopped-reproducing";
6636
+ "flow-removed": "flow-removed";
6637
+ "maintenance-reason-changed": "maintenance-reason-changed";
6638
+ "due-date-changed": "due-date-changed";
6639
+ }>;
6640
+ }, z.core.$strip>>;
6641
+ nextCursor: z.ZodOptional<z.ZodString>;
6642
+ }, z.core.$strip>;
6643
+ };
6378
6644
  removeFlows: {
6379
6645
  readonly annotationJustifications: {
6380
6646
  readonly destructiveHint: "Deletes existing coverage associations while leaving already-unassociated flows unchanged.";
@@ -6427,8 +6693,8 @@ export declare const publicContractsV1: {
6427
6693
  }>;
6428
6694
  type: z.ZodEnum<{
6429
6695
  bug: "bug";
6430
- coverageRequest: "coverageRequest";
6431
6696
  maintenance: "maintenance";
6697
+ coverageRequest: "coverageRequest";
6432
6698
  }>;
6433
6699
  url: z.ZodURL;
6434
6700
  }, z.core.$strip>;
@@ -6502,8 +6768,8 @@ export declare const publicContractsV1: {
6502
6768
  }>;
6503
6769
  type: z.ZodEnum<{
6504
6770
  bug: "bug";
6505
- coverageRequest: "coverageRequest";
6506
6771
  maintenance: "maintenance";
6772
+ coverageRequest: "coverageRequest";
6507
6773
  }>;
6508
6774
  url: z.ZodURL;
6509
6775
  }, z.core.$strip>;
@@ -6923,8 +7189,8 @@ export declare const publicContractsV1: {
6923
7189
  }>;
6924
7190
  type: z.ZodEnum<{
6925
7191
  bug: "bug";
6926
- coverageRequest: "coverageRequest";
6927
7192
  maintenance: "maintenance";
7193
+ coverageRequest: "coverageRequest";
6928
7194
  }>;
6929
7195
  url: z.ZodURL;
6930
7196
  }, z.core.$strip>;