@qawolf/api-contracts 0.100.0 → 0.104.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 (58) hide show
  1. package/dist/v1/build/delete.d.ts +46 -0
  2. package/dist/v1/build/delete.d.ts.map +1 -0
  3. package/dist/v1/build/delete.js +29 -0
  4. package/dist/v1/build/delete.js.map +1 -0
  5. package/dist/v1/build/index.d.ts +40 -0
  6. package/dist/v1/build/index.d.ts.map +1 -1
  7. package/dist/v1/build/index.js +2 -0
  8. package/dist/v1/build/index.js.map +1 -1
  9. package/dist/v1/deployment/index.d.ts +1 -0
  10. package/dist/v1/deployment/index.d.ts.map +1 -1
  11. package/dist/v1/deployment/reportStatus.d.ts +1 -0
  12. package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
  13. package/dist/v1/deployment/reportStatus.js +7 -0
  14. package/dist/v1/deployment/reportStatus.js.map +1 -1
  15. package/dist/v1/index.d.ts +266 -4
  16. package/dist/v1/index.d.ts.map +1 -1
  17. package/dist/v1/investigation/finding.d.ts +16 -0
  18. package/dist/v1/investigation/finding.d.ts.map +1 -1
  19. package/dist/v1/investigation/finding.js +28 -19
  20. package/dist/v1/investigation/finding.js.map +1 -1
  21. package/dist/v1/investigation/get.d.ts +17 -0
  22. package/dist/v1/investigation/get.d.ts.map +1 -1
  23. package/dist/v1/investigation/get.js +22 -0
  24. package/dist/v1/investigation/get.js.map +1 -1
  25. package/dist/v1/investigation/index.d.ts +72 -1
  26. package/dist/v1/investigation/index.d.ts.map +1 -1
  27. package/dist/v1/investigation/index.js +2 -0
  28. package/dist/v1/investigation/index.js.map +1 -1
  29. package/dist/v1/investigation/question/find.d.ts +60 -0
  30. package/dist/v1/investigation/question/find.d.ts.map +1 -0
  31. package/dist/v1/investigation/question/find.js +59 -0
  32. package/dist/v1/investigation/question/find.js.map +1 -0
  33. package/dist/v1/investigation/question/index.d.ts +61 -0
  34. package/dist/v1/investigation/question/index.d.ts.map +1 -0
  35. package/dist/v1/investigation/question/index.js +5 -0
  36. package/dist/v1/investigation/question/index.js.map +1 -0
  37. package/dist/v1/run/find.d.ts +1 -0
  38. package/dist/v1/run/find.d.ts.map +1 -1
  39. package/dist/v1/run/find.js +4 -0
  40. package/dist/v1/run/find.js.map +1 -1
  41. package/dist/v1/run/get.d.ts +21 -1
  42. package/dist/v1/run/get.d.ts.map +1 -1
  43. package/dist/v1/run/get.js +4 -0
  44. package/dist/v1/run/get.js.map +1 -1
  45. package/dist/v1/run/index.d.ts +1 -0
  46. package/dist/v1/run/index.d.ts.map +1 -1
  47. package/dist/v1/run/index.js +7 -0
  48. package/dist/v1/run/index.js.map +1 -1
  49. package/dist/v1/runner/catalog.d.ts +2 -2
  50. package/dist/v1/runner/readJournal.d.ts +1 -1
  51. package/dist/v1/runner/readJournal.js +1 -1
  52. package/dist/v1/runner/readJournal.js.map +1 -1
  53. package/dist/v1/runner/recording.d.ts +2 -2
  54. package/dist/v1/runner/recording.js +1 -1
  55. package/dist/v1/runner/recording.js.map +1 -1
  56. package/dist/v1/trigger/configuration.js +1 -1
  57. package/dist/v1/trigger/configuration.js.map +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeDeleteBuildContract: <EnvironmentId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
4
+ environment: EnvironmentId;
5
+ workspace: WorkspaceId;
6
+ }) => {
7
+ readonly annotationJustifications: {
8
+ readonly destructiveHint: "Deletes the build. Runs never install it after, and when it is an environment's latest build, runs there install the previous one instead, if its file is still kept.";
9
+ readonly openWorldHint: "Changes QA Wolf data and storage only.";
10
+ readonly readOnlyHint: "Deletes one build.";
11
+ };
12
+ readonly annotations: {
13
+ readonly destructiveHint: true;
14
+ readonly openWorldHint: false;
15
+ readonly readOnlyHint: false;
16
+ };
17
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
18
+ readonly input: z.ZodObject<{
19
+ buildId: z.ZodString;
20
+ workspaceId: z.ZodOptional<WorkspaceId>;
21
+ }, z.core.$strip>;
22
+ readonly kind: "write";
23
+ readonly name: "build.delete";
24
+ readonly output: z.ZodObject<{
25
+ build: z.ZodObject<{
26
+ appId: z.ZodString;
27
+ appName: z.ZodOptional<z.ZodString>;
28
+ branch: z.ZodOptional<z.ZodString>;
29
+ buildNumber: z.ZodOptional<z.ZodString>;
30
+ commitSha: z.ZodOptional<z.ZodString>;
31
+ createdAt: z.ZodISODateTime;
32
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
33
+ environmentId: z.ZodOptional<EnvironmentId>;
34
+ fileName: z.ZodString;
35
+ id: z.ZodString;
36
+ platform: z.ZodEnum<{
37
+ android: "android";
38
+ ios: "ios";
39
+ }>;
40
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
41
+ version: z.ZodOptional<z.ZodString>;
42
+ url: z.ZodURL;
43
+ }, z.core.$strip>;
44
+ }, z.core.$strip>;
45
+ };
46
+ //# sourceMappingURL=delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../src/v1/build/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCA,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ import { buildIdSchema, makeBuildResourceSchema } from "./resource.js";
3
+ export const makeDeleteBuildContract = (ids) => {
4
+ const input = z.object({
5
+ buildId: buildIdSchema,
6
+ workspaceId: ids.workspace
7
+ .optional()
8
+ .describe("The workspace of the build. Required when authenticating with an organization or user API key."),
9
+ });
10
+ const output = z.object({ build: makeBuildResourceSchema(ids) });
11
+ return {
12
+ annotationJustifications: {
13
+ destructiveHint: "Deletes the build. Runs never install it after, and when it is an environment's latest build, runs there install the previous one instead, if its file is still kept.",
14
+ openWorldHint: "Changes QA Wolf data and storage only.",
15
+ readOnlyHint: "Deletes one build.",
16
+ },
17
+ annotations: {
18
+ destructiveHint: true,
19
+ openWorldHint: false,
20
+ readOnlyHint: false,
21
+ },
22
+ description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.",
23
+ input,
24
+ kind: "write",
25
+ name: "build.delete",
26
+ output,
27
+ };
28
+ };
29
+ //# sourceMappingURL=delete.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../src/v1/build/delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAGrC,GAGD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,aAAa;QACtB,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEjE,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,uKAAuK;YACzK,aAAa,EAAE,wCAAwC;YACvD,YAAY,EAAE,oBAAoB;SACnC;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,uYAAuY;QACzY,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,cAAc;QACpB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -54,6 +54,46 @@ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema,
54
54
  }, import("zod/v4/core").$strip>;
55
55
  }, import("zod/v4/core").$strip>;
56
56
  };
57
+ delete: {
58
+ readonly annotationJustifications: {
59
+ readonly destructiveHint: "Deletes the build. Runs never install it after, and when it is an environment's latest build, runs there install the previous one instead, if its file is still kept.";
60
+ readonly openWorldHint: "Changes QA Wolf data and storage only.";
61
+ readonly readOnlyHint: "Deletes one build.";
62
+ };
63
+ readonly annotations: {
64
+ readonly destructiveHint: true;
65
+ readonly openWorldHint: false;
66
+ readonly readOnlyHint: false;
67
+ };
68
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
69
+ readonly input: import("zod").ZodObject<{
70
+ buildId: import("zod").ZodString;
71
+ workspaceId: import("zod").ZodOptional<WorkspaceId>;
72
+ }, import("zod/v4/core").$strip>;
73
+ readonly kind: "write";
74
+ readonly name: "build.delete";
75
+ readonly output: import("zod").ZodObject<{
76
+ build: import("zod").ZodObject<{
77
+ appId: import("zod").ZodString;
78
+ appName: import("zod").ZodOptional<import("zod").ZodString>;
79
+ branch: import("zod").ZodOptional<import("zod").ZodString>;
80
+ buildNumber: import("zod").ZodOptional<import("zod").ZodString>;
81
+ commitSha: import("zod").ZodOptional<import("zod").ZodString>;
82
+ createdAt: import("zod").ZodISODateTime;
83
+ deletedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
84
+ environmentId: import("zod").ZodOptional<EnvironmentId>;
85
+ fileName: import("zod").ZodString;
86
+ id: import("zod").ZodString;
87
+ platform: import("zod").ZodEnum<{
88
+ android: "android";
89
+ ios: "ios";
90
+ }>;
91
+ sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
92
+ version: import("zod").ZodOptional<import("zod").ZodString>;
93
+ url: import("zod").ZodURL;
94
+ }, import("zod/v4/core").$strip>;
95
+ }, import("zod/v4/core").$strip>;
96
+ };
57
97
  get: {
58
98
  readonly annotationJustifications: {
59
99
  readonly destructiveHint: "Does not change the build.";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAOhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { makeCreateBuildContract } from "./create.js";
2
+ import { makeDeleteBuildContract } from "./delete.js";
2
3
  import { makeGetBuildContract } from "./get.js";
3
4
  import { makeListBuildsContract } from "./list.js";
4
5
  import { makeRequestBuildUploadContract } from "./requestUpload.js";
@@ -6,6 +7,7 @@ export { maxBuildFileBytes } from "./requestUpload.js";
6
7
  export { buildIdSchema, buildPlatformSchema, makeBuildResourceSchema, } from "./resource.js";
7
8
  export const makeBuildContracts = (ids) => ({
8
9
  create: makeCreateBuildContract(ids),
10
+ delete: makeDeleteBuildContract(ids),
9
11
  get: makeGetBuildContract(ids),
10
12
  list: makeListBuildsContract(ids),
11
13
  requestUpload: makeRequestBuildUploadContract(ids),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/build/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAA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,GAAG,CAAC;CACnD,CAAC,CAAC"}
@@ -192,6 +192,7 @@ export declare const makeDeploymentContracts: <DeploymentId extends PublicIdSche
192
192
  };
193
193
  readonly description: "Report a deployment lifecycle status. A deployment's first success report evaluates global triggers asynchronously, and it is the only report that does: a trigger added or unpaused later does not make an already reported deployment evaluate again. Report that deployment under a new providerDeploymentId to evaluate it against the current triggers. The response contains the deployment only, not the resulting runs.";
194
194
  readonly input: import("zod").ZodObject<{
195
+ builds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
195
196
  deployTarget: import("zod").ZodOptional<import("zod").ZodURL>;
196
197
  environment: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
197
198
  id: EnvironmentId;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,uBAAuB,GAClC,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,KAAK,SAAS,cAAc,EAC5B,SAAS,SAAS,cAAc,EAChC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,uBAAuB,GAClC,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,KAAK,SAAS,cAAc,EAC5B,SAAS,SAAS,cAAc,EAChC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,CAAC"}
@@ -17,6 +17,7 @@ export declare const makeReportDeploymentStatusContract: <DeploymentId extends P
17
17
  };
18
18
  readonly description: "Report a deployment lifecycle status. A deployment's first success report evaluates global triggers asynchronously, and it is the only report that does: a trigger added or unpaused later does not make an already reported deployment evaluate again. Report that deployment under a new providerDeploymentId to evaluate it against the current triggers. The response contains the deployment only, not the resulting runs.";
19
19
  readonly input: z.ZodObject<{
20
+ builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
21
  deployTarget: z.ZodOptional<z.ZodURL>;
21
22
  environment: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
22
23
  id: EnvironmentId;
@@ -1 +1 @@
1
- {"version":3,"file":"reportStatus.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAchD,eAAO,MAAM,kCAAkC,GAC7C,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqJA,CAAC"}
1
+ {"version":3,"file":"reportStatus.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAchD,eAAO,MAAM,kCAAkC,GAC7C,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6JA,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { buildIdSchema } from "../build/resource.js";
2
3
  import { resource } from "../resource.js";
3
4
  import { deploymentReportMetadata } from "./reportStatusMetadata.js";
4
5
  // Shared by the input status field and the output resource status field so
@@ -42,6 +43,12 @@ export const makeReportDeploymentStatusContract = (ids) => {
42
43
  });
43
44
  const input = z
44
45
  .strictObject({
46
+ builds: z
47
+ .array(buildIdSchema)
48
+ .min(1)
49
+ .max(20)
50
+ .optional()
51
+ .describe("The builds this deployment ships, from build.create. Runs this deployment starts install them. A report that omits this field keeps the stored builds."),
45
52
  deployTarget: z
46
53
  .httpUrl()
47
54
  .max(2048)
@@ -1 +1 @@
1
- {"version":3,"file":"reportStatus.js","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,2EAA2E;AAC3E,+DAA+D;AAC/D,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAIhD,GAID,EAAE,EAAE;IACH,6EAA6E;IAC7E,uEAAuE;IACvE,0EAA0E;IAC1E,wDAAwD;IACxD,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CACzB;QACE,CAAC,CAAC,YAAY,CAAC;YACb,EAAE,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CAC1B,sGAAsG,CACvG;SACF,CAAC;QACF,CAAC,CAAC,YAAY,CAAC;YACb,wBAAwB,EAAE,CAAC;iBACxB,MAAM,EAAE;iBACR,IAAI,EAAE;iBACN,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,GAAG,CAAC;iBACR,QAAQ,CACP,wMAAwM,CACzM;iBACA,QAAQ,EAAE;YACb,SAAS,EAAE,CAAC;iBACT,OAAO,EAAE;iBACT,QAAQ,CACP,yIAAyI,CAC1I;iBACA,QAAQ,EAAE;YACb,IAAI,EAAE,CAAC;iBACJ,MAAM,EAAE;iBACR,IAAI,EAAE;iBACN,GAAG,CAAC,CAAC,CAAC;iBACN,GAAG,CAAC,GAAG,CAAC;iBACR,QAAQ,CACP,mHAAmH,CACpH;SACJ,CAAC;KACH,EACD;QACE,KAAK,EACH,sGAAsG;KACzG,CACF,CAAC;IAEF,MAAM,KAAK,G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C,SAAS,KAAK,IAAI,EACpC,CAAC;YACD,OAAO,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,wDAAwD;gBACjE,IAAI,EAAE,CAAC,aAAa,EAAE,0BAA0B,CAAC;aAClD,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IACL,MAAM,UAAU,GAAG,QAAQ,CACzB;QACE,EAAE,EAAE,GAAG,CAAC,UAAU;QAClB,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CACrC,sCAAsC,CACvC;KACF,EACD,EAAE,mBAAmB,EAAE,8CAA8C,EAAE,CACxE,CAAC;IACF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAExC,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qHAAqH;YACvH,aAAa,EACX,yGAAyG;YAC3G,YAAY,EACV,iHAAiH;SACpH;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,iaAAia;QACna,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,yBAAyB;QAC/B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"reportStatus.js","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,2EAA2E;AAC3E,+DAA+D;AAC/D,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,SAAS;IACT,SAAS;IACT,SAAS;IACT,UAAU;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AAQ,CACzB;QACE,EAAE,EAAE,GAAG,CAAC,UAAU;QAClB,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CACrC,sCAAsC,CACvC;KACF,EACD,EAAE,mBAAmB,EAAE,8CAA8C,EAAE,CACxE,CAAC;IACF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAExC,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qHAAqH;YACvH,aAAa,EACX,yGAAyG;YAC3G,YAAY,EACV,iHAAiH;SACpH;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,iaAAia;QACna,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,yBAAyB;QAC/B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -347,6 +347,46 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
347
347
  }, z.core.$strip>;
348
348
  }, z.core.$strip>;
349
349
  };
350
+ delete: {
351
+ readonly annotationJustifications: {
352
+ readonly destructiveHint: "Deletes the build. Runs never install it after, and when it is an environment's latest build, runs there install the previous one instead, if its file is still kept.";
353
+ readonly openWorldHint: "Changes QA Wolf data and storage only.";
354
+ readonly readOnlyHint: "Deletes one build.";
355
+ };
356
+ readonly annotations: {
357
+ readonly destructiveHint: true;
358
+ readonly openWorldHint: false;
359
+ readonly readOnlyHint: false;
360
+ };
361
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
362
+ readonly input: z.ZodObject<{
363
+ buildId: z.ZodString;
364
+ workspaceId: z.ZodOptional<WorkspaceId>;
365
+ }, z.core.$strip>;
366
+ readonly kind: "write";
367
+ readonly name: "build.delete";
368
+ readonly output: z.ZodObject<{
369
+ build: z.ZodObject<{
370
+ appId: z.ZodString;
371
+ appName: z.ZodOptional<z.ZodString>;
372
+ branch: z.ZodOptional<z.ZodString>;
373
+ buildNumber: z.ZodOptional<z.ZodString>;
374
+ commitSha: z.ZodOptional<z.ZodString>;
375
+ createdAt: z.ZodISODateTime;
376
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
377
+ environmentId: z.ZodOptional<EnvironmentId>;
378
+ fileName: z.ZodString;
379
+ id: z.ZodString;
380
+ platform: z.ZodEnum<{
381
+ android: "android";
382
+ ios: "ios";
383
+ }>;
384
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
385
+ version: z.ZodOptional<z.ZodString>;
386
+ url: z.ZodURL;
387
+ }, z.core.$strip>;
388
+ }, z.core.$strip>;
389
+ };
350
390
  get: {
351
391
  readonly annotationJustifications: {
352
392
  readonly destructiveHint: "Does not change the build.";
@@ -714,6 +754,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
714
754
  };
715
755
  readonly description: "Report a deployment lifecycle status. A deployment's first success report evaluates global triggers asynchronously, and it is the only report that does: a trigger added or unpaused later does not make an already reported deployment evaluate again. Report that deployment under a new providerDeploymentId to evaluate it against the current triggers. The response contains the deployment only, not the resulting runs.";
716
756
  readonly input: z.ZodObject<{
757
+ builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
717
758
  deployTarget: z.ZodOptional<z.ZodURL>;
718
759
  environment: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
719
760
  id: EnvironmentId;
@@ -1663,6 +1704,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1663
1704
  agent: "agent";
1664
1705
  }>>;
1665
1706
  disputeReason: z.ZodOptional<z.ZodString>;
1707
+ earlierQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1708
+ answer: z.ZodString;
1709
+ answeredAt: z.ZodISODateTime;
1710
+ body: z.ZodOptional<z.ZodString>;
1711
+ text: z.ZodString;
1712
+ }, z.core.$strip>>>;
1666
1713
  expected: z.ZodOptional<z.ZodString>;
1667
1714
  findingId: z.ZodString;
1668
1715
  fix: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1716,6 +1763,17 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1716
1763
  supersededByRunId: z.ZodOptional<RunId>;
1717
1764
  updatedAt: z.ZodISODateTime;
1718
1765
  }, z.core.$strip>>;
1766
+ questionsFromOtherRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
1767
+ answer: z.ZodOptional<z.ZodString>;
1768
+ answeredAt: z.ZodOptional<z.ZodISODateTime>;
1769
+ body: z.ZodOptional<z.ZodString>;
1770
+ findingId: z.ZodString;
1771
+ flowIds: z.ZodArray<FlowId>;
1772
+ headline: z.ZodOptional<z.ZodString>;
1773
+ runId: RunId;
1774
+ status: z.ZodString;
1775
+ text: z.ZodString;
1776
+ }, z.core.$strip>>>;
1719
1777
  runId: RunId;
1720
1778
  sessionId: z.ZodOptional<ChatSessionId>;
1721
1779
  status: z.ZodEnum<{
@@ -1737,6 +1795,58 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1737
1795
  url: z.ZodURL;
1738
1796
  }, z.core.$strip>;
1739
1797
  };
1798
+ question: {
1799
+ find: {
1800
+ readonly annotationJustifications: {
1801
+ readonly destructiveHint: "Does not answer, dismiss or change any question.";
1802
+ readonly openWorldHint: "Reads recorded QA Wolf findings without changing the application under test.";
1803
+ readonly readOnlyHint: "Lists the open questions of a workspace's investigations without answering them.";
1804
+ };
1805
+ readonly annotations: {
1806
+ readonly destructiveHint: false;
1807
+ readonly openWorldHint: false;
1808
+ readonly readOnlyHint: true;
1809
+ };
1810
+ readonly description: string;
1811
+ readonly input: z.ZodObject<{
1812
+ environmentId: z.ZodOptional<PublicIdSchema>;
1813
+ statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
1814
+ open: "open";
1815
+ }>>>;
1816
+ workspaceId: z.ZodOptional<WorkspaceId>;
1817
+ cursor: z.ZodOptional<z.ZodString>;
1818
+ limit: z.ZodDefault<z.ZodNumber>;
1819
+ }, z.core.$strip>;
1820
+ readonly kind: "read";
1821
+ readonly name: "investigation.question.find";
1822
+ readonly output: z.ZodObject<{
1823
+ nextCursor: z.ZodOptional<z.ZodString>;
1824
+ questions: z.ZodArray<z.ZodObject<{
1825
+ askedAt: z.ZodISODateTime;
1826
+ findingId: z.ZodString;
1827
+ flows: z.ZodArray<z.ZodObject<{
1828
+ flowId: FlowId;
1829
+ name: z.ZodString;
1830
+ }, z.core.$strip>>;
1831
+ headline: z.ZodOptional<z.ZodString>;
1832
+ question: z.ZodObject<{
1833
+ answers: z.ZodArray<z.ZodObject<{
1834
+ description: z.ZodOptional<z.ZodString>;
1835
+ title: z.ZodString;
1836
+ value: z.ZodString;
1837
+ }, z.core.$strip>>;
1838
+ body: z.ZodOptional<z.ZodString>;
1839
+ comparisonId: z.ZodOptional<z.ZodString>;
1840
+ text: z.ZodString;
1841
+ }, z.core.$strip>;
1842
+ runId: RunId;
1843
+ sessionId: ChatSessionId;
1844
+ summary: z.ZodOptional<z.ZodString>;
1845
+ url: z.ZodURL;
1846
+ }, z.core.$strip>>;
1847
+ }, z.core.$strip>;
1848
+ };
1849
+ };
1740
1850
  };
1741
1851
  issue: {
1742
1852
  addFlows: {
@@ -2669,6 +2779,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2669
2779
  readonly description: "Create a run for the selected flows and/or tags in an environment.";
2670
2780
  readonly input: z.ZodIntersection<z.ZodObject<{
2671
2781
  aiTaskId: z.ZodOptional<AiTaskId>;
2782
+ builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
2672
2783
  chatSessionId: z.ZodOptional<ChatSessionId>;
2673
2784
  environmentId: PublicIdSchema;
2674
2785
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -2776,6 +2887,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2776
2887
  workspaceId: z.ZodOptional<WorkspaceId>;
2777
2888
  cursor: z.ZodOptional<z.ZodString>;
2778
2889
  limit: z.ZodDefault<z.ZodNumber>;
2890
+ buildId: z.ZodOptional<z.ZodString>;
2779
2891
  createdAfter: z.ZodOptional<z.ZodISODateTime>;
2780
2892
  }, z.core.$strip>;
2781
2893
  readonly kind: "read";
@@ -2837,6 +2949,25 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2837
2949
  readonly name: "run.get";
2838
2950
  readonly output: z.ZodObject<{
2839
2951
  blockingBugCount: z.ZodNumber;
2952
+ builds: z.ZodArray<z.ZodObject<{
2953
+ appId: z.ZodString;
2954
+ appName: z.ZodOptional<z.ZodString>;
2955
+ branch: z.ZodOptional<z.ZodString>;
2956
+ buildNumber: z.ZodOptional<z.ZodString>;
2957
+ commitSha: z.ZodOptional<z.ZodString>;
2958
+ createdAt: z.ZodISODateTime;
2959
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
2960
+ environmentId: z.ZodOptional<EnvironmentId>;
2961
+ fileName: z.ZodString;
2962
+ id: z.ZodString;
2963
+ platform: z.ZodEnum<{
2964
+ android: "android";
2965
+ ios: "ios";
2966
+ }>;
2967
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
2968
+ version: z.ZodOptional<z.ZodString>;
2969
+ url: z.ZodURL;
2970
+ }, z.core.$strip>>;
2840
2971
  flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2841
2972
  attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2842
2973
  attemptId: z.ZodOptional<PublicIdSchema>;
@@ -3299,7 +3430,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3299
3430
  readonly openWorldHint: false;
3300
3431
  readonly readOnlyHint: false;
3301
3432
  };
3302
- readonly description: "Control video recording on a Playwright runner. Start requires a caller-generated UUID; stop targets that UUID so retries cannot stop a later recording. Manual capture spans runs and suppresses automatic capture. Auto settings affect subsequent full runs. The URL opens recording history after the runner terminates. Videos may be unavailable after abrupt pod loss.";
3433
+ readonly description: "Control video recording on a browser, mobile, Windows, or Mac runner. Start requires a caller-generated UUID; stop targets that UUID so retries cannot stop a later recording. Manual capture spans runs and suppresses automatic capture. Auto settings affect subsequent full runs. The URL opens recording history after the runner terminates. Videos may be unavailable after abrupt pod loss.";
3303
3434
  readonly input: z.ZodObject<{
3304
3435
  command: z.ZodDiscriminatedUnion<[z.ZodObject<{
3305
3436
  action: z.ZodLiteral<"start">;
@@ -4190,7 +4321,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4190
4321
  readonly openWorldHint: false;
4191
4322
  readonly readOnlyHint: false;
4192
4323
  };
4193
- readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
4324
+ readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. Polling `runner.get` or `runner.list` does not count as activity, so the inactivity clock keeps running until the runner is reaped. The journal lives only on the runner: once it is terminated or stops after inactivity, the journal is gone and this read answers not-found. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
4194
4325
  readonly input: z.ZodObject<{
4195
4326
  runId: z.ZodOptional<z.ZodString>;
4196
4327
  sinceSequence: z.ZodOptional<z.ZodNumber>;
@@ -5391,6 +5522,46 @@ export declare const publicContractsV1: {
5391
5522
  }, z.core.$strip>;
5392
5523
  }, z.core.$strip>;
5393
5524
  };
5525
+ delete: {
5526
+ readonly annotationJustifications: {
5527
+ readonly destructiveHint: "Deletes the build. Runs never install it after, and when it is an environment's latest build, runs there install the previous one instead, if its file is still kept.";
5528
+ readonly openWorldHint: "Changes QA Wolf data and storage only.";
5529
+ readonly readOnlyHint: "Deletes one build.";
5530
+ };
5531
+ readonly annotations: {
5532
+ readonly destructiveHint: true;
5533
+ readonly openWorldHint: false;
5534
+ readonly readOnlyHint: false;
5535
+ };
5536
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
5537
+ readonly input: z.ZodObject<{
5538
+ buildId: z.ZodString;
5539
+ workspaceId: z.ZodOptional<PublicIdSchema>;
5540
+ }, z.core.$strip>;
5541
+ readonly kind: "write";
5542
+ readonly name: "build.delete";
5543
+ readonly output: z.ZodObject<{
5544
+ build: z.ZodObject<{
5545
+ appId: z.ZodString;
5546
+ appName: z.ZodOptional<z.ZodString>;
5547
+ branch: z.ZodOptional<z.ZodString>;
5548
+ buildNumber: z.ZodOptional<z.ZodString>;
5549
+ commitSha: z.ZodOptional<z.ZodString>;
5550
+ createdAt: z.ZodISODateTime;
5551
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
5552
+ environmentId: z.ZodOptional<PublicIdSchema>;
5553
+ fileName: z.ZodString;
5554
+ id: z.ZodString;
5555
+ platform: z.ZodEnum<{
5556
+ android: "android";
5557
+ ios: "ios";
5558
+ }>;
5559
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
5560
+ version: z.ZodOptional<z.ZodString>;
5561
+ url: z.ZodURL;
5562
+ }, z.core.$strip>;
5563
+ }, z.core.$strip>;
5564
+ };
5394
5565
  get: {
5395
5566
  readonly annotationJustifications: {
5396
5567
  readonly destructiveHint: "Does not change the build.";
@@ -5758,6 +5929,7 @@ export declare const publicContractsV1: {
5758
5929
  };
5759
5930
  readonly description: "Report a deployment lifecycle status. A deployment's first success report evaluates global triggers asynchronously, and it is the only report that does: a trigger added or unpaused later does not make an already reported deployment evaluate again. Report that deployment under a new providerDeploymentId to evaluate it against the current triggers. The response contains the deployment only, not the resulting runs.";
5760
5931
  readonly input: z.ZodObject<{
5932
+ builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
5761
5933
  deployTarget: z.ZodOptional<z.ZodURL>;
5762
5934
  environment: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
5763
5935
  id: PublicIdSchema;
@@ -6707,6 +6879,12 @@ export declare const publicContractsV1: {
6707
6879
  agent: "agent";
6708
6880
  }>>;
6709
6881
  disputeReason: z.ZodOptional<z.ZodString>;
6882
+ earlierQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6883
+ answer: z.ZodString;
6884
+ answeredAt: z.ZodISODateTime;
6885
+ body: z.ZodOptional<z.ZodString>;
6886
+ text: z.ZodString;
6887
+ }, z.core.$strip>>>;
6710
6888
  expected: z.ZodOptional<z.ZodString>;
6711
6889
  findingId: z.ZodString;
6712
6890
  fix: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -6760,6 +6938,17 @@ export declare const publicContractsV1: {
6760
6938
  supersededByRunId: z.ZodOptional<PublicIdSchema>;
6761
6939
  updatedAt: z.ZodISODateTime;
6762
6940
  }, z.core.$strip>>;
6941
+ questionsFromOtherRuns: z.ZodOptional<z.ZodArray<z.ZodObject<{
6942
+ answer: z.ZodOptional<z.ZodString>;
6943
+ answeredAt: z.ZodOptional<z.ZodISODateTime>;
6944
+ body: z.ZodOptional<z.ZodString>;
6945
+ findingId: z.ZodString;
6946
+ flowIds: z.ZodArray<PublicIdSchema>;
6947
+ headline: z.ZodOptional<z.ZodString>;
6948
+ runId: PublicIdSchema;
6949
+ status: z.ZodString;
6950
+ text: z.ZodString;
6951
+ }, z.core.$strip>>>;
6763
6952
  runId: PublicIdSchema;
6764
6953
  sessionId: z.ZodOptional<PublicIdSchema>;
6765
6954
  status: z.ZodEnum<{
@@ -6781,6 +6970,58 @@ export declare const publicContractsV1: {
6781
6970
  url: z.ZodURL;
6782
6971
  }, z.core.$strip>;
6783
6972
  };
6973
+ question: {
6974
+ find: {
6975
+ readonly annotationJustifications: {
6976
+ readonly destructiveHint: "Does not answer, dismiss or change any question.";
6977
+ readonly openWorldHint: "Reads recorded QA Wolf findings without changing the application under test.";
6978
+ readonly readOnlyHint: "Lists the open questions of a workspace's investigations without answering them.";
6979
+ };
6980
+ readonly annotations: {
6981
+ readonly destructiveHint: false;
6982
+ readonly openWorldHint: false;
6983
+ readonly readOnlyHint: true;
6984
+ };
6985
+ readonly description: string;
6986
+ readonly input: z.ZodObject<{
6987
+ environmentId: z.ZodOptional<PublicIdSchema>;
6988
+ statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6989
+ open: "open";
6990
+ }>>>;
6991
+ workspaceId: z.ZodOptional<PublicIdSchema>;
6992
+ cursor: z.ZodOptional<z.ZodString>;
6993
+ limit: z.ZodDefault<z.ZodNumber>;
6994
+ }, z.core.$strip>;
6995
+ readonly kind: "read";
6996
+ readonly name: "investigation.question.find";
6997
+ readonly output: z.ZodObject<{
6998
+ nextCursor: z.ZodOptional<z.ZodString>;
6999
+ questions: z.ZodArray<z.ZodObject<{
7000
+ askedAt: z.ZodISODateTime;
7001
+ findingId: z.ZodString;
7002
+ flows: z.ZodArray<z.ZodObject<{
7003
+ flowId: PublicIdSchema;
7004
+ name: z.ZodString;
7005
+ }, z.core.$strip>>;
7006
+ headline: z.ZodOptional<z.ZodString>;
7007
+ question: z.ZodObject<{
7008
+ answers: z.ZodArray<z.ZodObject<{
7009
+ description: z.ZodOptional<z.ZodString>;
7010
+ title: z.ZodString;
7011
+ value: z.ZodString;
7012
+ }, z.core.$strip>>;
7013
+ body: z.ZodOptional<z.ZodString>;
7014
+ comparisonId: z.ZodOptional<z.ZodString>;
7015
+ text: z.ZodString;
7016
+ }, z.core.$strip>;
7017
+ runId: PublicIdSchema;
7018
+ sessionId: PublicIdSchema;
7019
+ summary: z.ZodOptional<z.ZodString>;
7020
+ url: z.ZodURL;
7021
+ }, z.core.$strip>>;
7022
+ }, z.core.$strip>;
7023
+ };
7024
+ };
6784
7025
  };
6785
7026
  issue: {
6786
7027
  addFlows: {
@@ -7713,6 +7954,7 @@ export declare const publicContractsV1: {
7713
7954
  readonly description: "Create a run for the selected flows and/or tags in an environment.";
7714
7955
  readonly input: z.ZodIntersection<z.ZodObject<{
7715
7956
  aiTaskId: z.ZodOptional<PublicIdSchema>;
7957
+ builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
7716
7958
  chatSessionId: z.ZodOptional<PublicIdSchema>;
7717
7959
  environmentId: PublicIdSchema;
7718
7960
  environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
@@ -7820,6 +8062,7 @@ export declare const publicContractsV1: {
7820
8062
  workspaceId: z.ZodOptional<PublicIdSchema>;
7821
8063
  cursor: z.ZodOptional<z.ZodString>;
7822
8064
  limit: z.ZodDefault<z.ZodNumber>;
8065
+ buildId: z.ZodOptional<z.ZodString>;
7823
8066
  createdAfter: z.ZodOptional<z.ZodISODateTime>;
7824
8067
  }, z.core.$strip>;
7825
8068
  readonly kind: "read";
@@ -7881,6 +8124,25 @@ export declare const publicContractsV1: {
7881
8124
  readonly name: "run.get";
7882
8125
  readonly output: z.ZodObject<{
7883
8126
  blockingBugCount: z.ZodNumber;
8127
+ builds: z.ZodArray<z.ZodObject<{
8128
+ appId: z.ZodString;
8129
+ appName: z.ZodOptional<z.ZodString>;
8130
+ branch: z.ZodOptional<z.ZodString>;
8131
+ buildNumber: z.ZodOptional<z.ZodString>;
8132
+ commitSha: z.ZodOptional<z.ZodString>;
8133
+ createdAt: z.ZodISODateTime;
8134
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
8135
+ environmentId: z.ZodOptional<PublicIdSchema>;
8136
+ fileName: z.ZodString;
8137
+ id: z.ZodString;
8138
+ platform: z.ZodEnum<{
8139
+ android: "android";
8140
+ ios: "ios";
8141
+ }>;
8142
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
8143
+ version: z.ZodOptional<z.ZodString>;
8144
+ url: z.ZodURL;
8145
+ }, z.core.$strip>>;
7884
8146
  flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7885
8147
  attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
7886
8148
  attemptId: z.ZodOptional<PublicIdSchema>;
@@ -8343,7 +8605,7 @@ export declare const publicContractsV1: {
8343
8605
  readonly openWorldHint: false;
8344
8606
  readonly readOnlyHint: false;
8345
8607
  };
8346
- readonly description: "Control video recording on a Playwright runner. Start requires a caller-generated UUID; stop targets that UUID so retries cannot stop a later recording. Manual capture spans runs and suppresses automatic capture. Auto settings affect subsequent full runs. The URL opens recording history after the runner terminates. Videos may be unavailable after abrupt pod loss.";
8608
+ readonly description: "Control video recording on a browser, mobile, Windows, or Mac runner. Start requires a caller-generated UUID; stop targets that UUID so retries cannot stop a later recording. Manual capture spans runs and suppresses automatic capture. Auto settings affect subsequent full runs. The URL opens recording history after the runner terminates. Videos may be unavailable after abrupt pod loss.";
8347
8609
  readonly input: z.ZodObject<{
8348
8610
  command: z.ZodDiscriminatedUnion<[z.ZodObject<{
8349
8611
  action: z.ZodLiteral<"start">;
@@ -9234,7 +9496,7 @@ export declare const publicContractsV1: {
9234
9496
  readonly openWorldHint: false;
9235
9497
  readonly readOnlyHint: false;
9236
9498
  };
9237
- readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
9499
+ readonly description: "Read a window of one of an interactive runner's journal streams — the newest few, everything after a cursor, or everything belonging to one run. This is how a flow run's outcome and output are followed: `run-status` settles it, `run-logs` and `run-events` carry what it produced, and `recorder` carries the browser actions the runner recorded. A read counts as activity, so working through history does not get the runner reaped underneath you. Polling `runner.get` or `runner.list` does not count as activity, so the inactivity clock keeps running until the runner is reaped. The journal lives only on the runner: once it is terminated or stops after inactivity, the journal is gone and this read answers not-found. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may be too busy to answer. Nothing was changed, so retrying is safe; if it persists, launch the runner again.";
9238
9500
  readonly input: z.ZodObject<{
9239
9501
  runId: z.ZodOptional<z.ZodString>;
9240
9502
  sinceSequence: z.ZodOptional<z.ZodNumber>;