@qawolf/api-contracts 0.101.0 → 0.105.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/build/delete.d.ts +46 -0
- package/dist/v1/build/delete.d.ts.map +1 -0
- package/dist/v1/build/delete.js +29 -0
- package/dist/v1/build/delete.js.map +1 -0
- package/dist/v1/build/index.d.ts +40 -0
- package/dist/v1/build/index.d.ts.map +1 -1
- package/dist/v1/build/index.js +2 -0
- package/dist/v1/build/index.js.map +1 -1
- package/dist/v1/deployment/index.d.ts +1 -0
- package/dist/v1/deployment/index.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatus.d.ts +1 -0
- package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
- package/dist/v1/deployment/reportStatus.js +7 -0
- package/dist/v1/deployment/reportStatus.js.map +1 -1
- package/dist/v1/index.d.ts +252 -2
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/investigation/finding.d.ts +10 -0
- package/dist/v1/investigation/finding.d.ts.map +1 -1
- package/dist/v1/investigation/finding.js +19 -19
- package/dist/v1/investigation/finding.js.map +1 -1
- package/dist/v1/investigation/index.d.ts +55 -1
- package/dist/v1/investigation/index.d.ts.map +1 -1
- package/dist/v1/investigation/index.js +2 -0
- package/dist/v1/investigation/index.js.map +1 -1
- package/dist/v1/investigation/question/find.d.ts +60 -0
- package/dist/v1/investigation/question/find.d.ts.map +1 -0
- package/dist/v1/investigation/question/find.js +59 -0
- package/dist/v1/investigation/question/find.js.map +1 -0
- package/dist/v1/investigation/question/index.d.ts +61 -0
- package/dist/v1/investigation/question/index.d.ts.map +1 -0
- package/dist/v1/investigation/question/index.js +5 -0
- package/dist/v1/investigation/question/index.js.map +1 -0
- package/dist/v1/run/get.d.ts +32 -0
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +7 -0
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/run/versions.d.ts +34 -0
- package/dist/v1/run/versions.d.ts.map +1 -0
- package/dist/v1/run/versions.js +67 -0
- package/dist/v1/run/versions.js.map +1 -0
- package/dist/v1/runner/catalog.d.ts +1 -1
- package/dist/v1/runner/readJournal.d.ts +1 -1
- package/dist/v1/runner/readJournal.js +1 -1
- package/dist/v1/runner/readJournal.js.map +1 -1
- package/dist/v1/trigger/configuration.js +1 -1
- package/dist/v1/trigger/configuration.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { PublicIdSchema } from "../ids.js";
|
|
3
3
|
export declare const investigationFindingStateDescription = "What the investigation concluded about the cause. Known values: \"investigating\", \"fixed\", \"fix-proposed\", \"reported\", \"report-proposed\", \"flake\", \"question\", \"dismissed\" and \"superseded\". \"superseded\" means a newer run replaced this run before the investigation concluded. New values can appear.";
|
|
4
|
+
export declare const investigationQuestionSchema: z.ZodObject<{
|
|
5
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title: z.ZodString;
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
body: z.ZodOptional<z.ZodString>;
|
|
11
|
+
comparisonId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
text: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
4
14
|
export declare const makeInvestigationFindingSchema: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
5
15
|
[key: string]: unknown;
|
|
6
16
|
chatSession: ChatSessionId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/finding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,oCAAoC,gUAC0P,CAAC;AAE5S,eAAO,MAAM,8BAA8B,GACzC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"finding.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/finding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,oCAAoC,gUAC0P,CAAC;AAE5S,eAAO,MAAM,2BAA2B;;;;;;;;;iBAyBtC,CAAC;AAEH,eAAO,MAAM,8BAA8B,GACzC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuIG,CAAC"}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { issuePrioritySchema } from "../issue/index.js";
|
|
3
3
|
export const investigationFindingStateDescription = 'What the investigation concluded about the cause. Known values: "investigating", "fixed", "fix-proposed", "reported", "report-proposed", "flake", "question", "dismissed" and "superseded". "superseded" means a newer run replaced this run before the investigation concluded. New values can appear.';
|
|
4
|
+
export const investigationQuestionSchema = z.object({
|
|
5
|
+
answers: z.array(z.object({
|
|
6
|
+
description: z.string().optional(),
|
|
7
|
+
title: z.string(),
|
|
8
|
+
value: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('What choosing this answer means. Known values: "apply", "dismiss", "report", "maintenance", "bug" and "baseline". New values can appear.'),
|
|
11
|
+
})),
|
|
12
|
+
body: z
|
|
13
|
+
.string()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe("Markdown details under the question: what the test expects, what the app does and what each answer changes. A value a person must copy is in a code block."),
|
|
16
|
+
comparisonId: z
|
|
17
|
+
.string()
|
|
18
|
+
.optional()
|
|
19
|
+
.describe('The failed screenshot comparison a screenshot question is about, as `run listScreenshotComparisons` names it. Its answers are "bug" (the old screenshot is right), "maintenance" (both are right) and "baseline" (the new screenshot is right).'),
|
|
20
|
+
text: z.string(),
|
|
21
|
+
});
|
|
4
22
|
export const makeInvestigationFindingSchema = (ids) => z.object({
|
|
5
23
|
actual: z.string().optional(),
|
|
6
24
|
commitHash: z
|
|
@@ -79,25 +97,7 @@ export const makeInvestigationFindingSchema = (ids) => z.object({
|
|
|
79
97
|
})
|
|
80
98
|
.optional()
|
|
81
99
|
.describe("Whether the pull request the run tested caused this finding. Absent on a run that didn't test a pull request, and when the investigation didn't say."),
|
|
82
|
-
question:
|
|
83
|
-
.object({
|
|
84
|
-
answers: z.array(z.object({
|
|
85
|
-
description: z.string().optional(),
|
|
86
|
-
title: z.string(),
|
|
87
|
-
value: z
|
|
88
|
-
.string()
|
|
89
|
-
.describe('What choosing this answer means. Known values: "apply", "dismiss", "report", "maintenance", "bug" and "baseline". New values can appear.'),
|
|
90
|
-
})),
|
|
91
|
-
body: z
|
|
92
|
-
.string()
|
|
93
|
-
.optional()
|
|
94
|
-
.describe("Markdown details under the question: what the test expects, what the app does and what each answer changes. A value a person must copy is in a code block."),
|
|
95
|
-
comparisonId: z
|
|
96
|
-
.string()
|
|
97
|
-
.optional()
|
|
98
|
-
.describe('The failed screenshot comparison a screenshot question is about, as `run listScreenshotComparisons` names it. Its answers are "bug" (the old screenshot is right), "maintenance" (both are right) and "baseline" (the new screenshot is right).'),
|
|
99
|
-
text: z.string(),
|
|
100
|
-
})
|
|
100
|
+
question: investigationQuestionSchema
|
|
101
101
|
.optional()
|
|
102
102
|
.describe("The question waiting for a person, with the answers offered."),
|
|
103
103
|
response: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finding.js","sourceRoot":"","sources":["../../../src/v1/investigation/finding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAExD,MAAM,CAAC,MAAM,oCAAoC,GAC/C,ySAAyS,CAAC;AAE5S,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAK5C,GAMD,EAAE,EAAE,CACH,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,SAAS,EAAE,CAAC;SACT,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;SACvB,QAAQ,EAAE;SACV,QAAQ,CACP,yGAAyG,CAC1G;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oGAAoG,CACrG;IACH,gBAAgB,EAAE,CAAC;SAChB,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,UAAU,EAAE,CAAC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D,QAAQ,EAAE;SACV,QAAQ,CACP,sJAAsJ,CACvJ;IACH,QAAQ,EAAE,2BAA2B;SAClC,QAAQ,EAAE;SACV,QAAQ,CAAC,8DAA8D,CAAC;IAC3E,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;QACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,EAAE;aACV,QAAQ,CACP,4DAA4D,CAC7D;QACH,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,CACP,uEAAuE,CACxE;KACJ,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,CACP,0EAA0E,CAC3E;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IAChE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,iBAAiB,EAAE,GAAG,CAAC,GAAG;SACvB,QAAQ,EAAE;SACV,QAAQ,CACP,kEAAkE,CACnE;IACH,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { PublicIdSchema } from "../ids.js";
|
|
2
|
-
export declare const makeInvestigationContracts: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: {
|
|
2
|
+
export declare const makeInvestigationContracts: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, IssueId extends PublicIdSchema, RunId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
chatSession: ChatSessionId;
|
|
5
|
+
environmentRef: PublicIdSchema;
|
|
5
6
|
flow: FlowId;
|
|
6
7
|
issue: IssueId;
|
|
7
8
|
run: RunId;
|
|
9
|
+
workspace: WorkspaceId;
|
|
8
10
|
}) => {
|
|
9
11
|
get: {
|
|
10
12
|
readonly annotationJustifications: {
|
|
@@ -127,5 +129,57 @@ export declare const makeInvestigationContracts: <ChatSessionId extends PublicId
|
|
|
127
129
|
url: import("zod").ZodURL;
|
|
128
130
|
}, import("zod/v4/core").$strip>;
|
|
129
131
|
};
|
|
132
|
+
question: {
|
|
133
|
+
find: {
|
|
134
|
+
readonly annotationJustifications: {
|
|
135
|
+
readonly destructiveHint: "Does not answer, dismiss or change any question.";
|
|
136
|
+
readonly openWorldHint: "Reads recorded QA Wolf findings without changing the application under test.";
|
|
137
|
+
readonly readOnlyHint: "Lists the open questions of a workspace's investigations without answering them.";
|
|
138
|
+
};
|
|
139
|
+
readonly annotations: {
|
|
140
|
+
readonly destructiveHint: false;
|
|
141
|
+
readonly openWorldHint: false;
|
|
142
|
+
readonly readOnlyHint: true;
|
|
143
|
+
};
|
|
144
|
+
readonly description: string;
|
|
145
|
+
readonly input: import("zod").ZodObject<{
|
|
146
|
+
environmentId: import("zod").ZodOptional<PublicIdSchema>;
|
|
147
|
+
statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
148
|
+
open: "open";
|
|
149
|
+
}>>>;
|
|
150
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
151
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
152
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
153
|
+
}, import("zod/v4/core").$strip>;
|
|
154
|
+
readonly kind: "read";
|
|
155
|
+
readonly name: "investigation.question.find";
|
|
156
|
+
readonly output: import("zod").ZodObject<{
|
|
157
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
158
|
+
questions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
159
|
+
askedAt: import("zod").ZodISODateTime;
|
|
160
|
+
findingId: import("zod").ZodString;
|
|
161
|
+
flows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
162
|
+
flowId: FlowId;
|
|
163
|
+
name: import("zod").ZodString;
|
|
164
|
+
}, import("zod/v4/core").$strip>>;
|
|
165
|
+
headline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
166
|
+
question: import("zod").ZodObject<{
|
|
167
|
+
answers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
168
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
+
title: import("zod").ZodString;
|
|
170
|
+
value: import("zod").ZodString;
|
|
171
|
+
}, import("zod/v4/core").$strip>>;
|
|
172
|
+
body: import("zod").ZodOptional<import("zod").ZodString>;
|
|
173
|
+
comparisonId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
text: import("zod").ZodString;
|
|
175
|
+
}, import("zod/v4/core").$strip>;
|
|
176
|
+
runId: RunId;
|
|
177
|
+
sessionId: ChatSessionId;
|
|
178
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
179
|
+
url: import("zod").ZodURL;
|
|
180
|
+
}, import("zod/v4/core").$strip>>;
|
|
181
|
+
}, import("zod/v4/core").$strip>;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
130
184
|
};
|
|
131
185
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/investigation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,0BAA0B,GACrC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { makeGetInvestigationContract } from "./get.js";
|
|
2
|
+
import { makeInvestigationQuestionContracts } from "./question/index.js";
|
|
2
3
|
export const makeInvestigationContracts = (ids) => ({
|
|
3
4
|
get: makeGetInvestigationContract(ids),
|
|
5
|
+
question: makeInvestigationQuestionContracts(ids),
|
|
4
6
|
});
|
|
5
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/investigation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/investigation/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,kCAAkC,EAAE,MAAM,qBAAqB,CAAC;AAEzE,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAMxC,GAQD,EAAE,EAAE,CAAC,CAAC;IACL,GAAG,EAAE,4BAA4B,CAAC,GAAG,CAAC;IACtC,QAAQ,EAAE,kCAAkC,CAAC,GAAG,CAAC;CAClD,CAAC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PublicIdSchema } from "../../ids.js";
|
|
3
|
+
export declare const makeFindInvestigationQuestionsContract: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
chatSession: ChatSessionId;
|
|
6
|
+
environmentRef: PublicIdSchema;
|
|
7
|
+
flow: FlowId;
|
|
8
|
+
run: RunId;
|
|
9
|
+
workspace: WorkspaceId;
|
|
10
|
+
}) => {
|
|
11
|
+
readonly annotationJustifications: {
|
|
12
|
+
readonly destructiveHint: "Does not answer, dismiss or change any question.";
|
|
13
|
+
readonly openWorldHint: "Reads recorded QA Wolf findings without changing the application under test.";
|
|
14
|
+
readonly readOnlyHint: "Lists the open questions of a workspace's investigations without answering them.";
|
|
15
|
+
};
|
|
16
|
+
readonly annotations: {
|
|
17
|
+
readonly destructiveHint: false;
|
|
18
|
+
readonly openWorldHint: false;
|
|
19
|
+
readonly readOnlyHint: true;
|
|
20
|
+
};
|
|
21
|
+
readonly description: string;
|
|
22
|
+
readonly input: z.ZodObject<{
|
|
23
|
+
environmentId: z.ZodOptional<PublicIdSchema>;
|
|
24
|
+
statuses: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
25
|
+
open: "open";
|
|
26
|
+
}>>>;
|
|
27
|
+
workspaceId: z.ZodOptional<WorkspaceId>;
|
|
28
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
29
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
readonly kind: "read";
|
|
32
|
+
readonly name: "investigation.question.find";
|
|
33
|
+
readonly output: z.ZodObject<{
|
|
34
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
35
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
36
|
+
askedAt: z.ZodISODateTime;
|
|
37
|
+
findingId: z.ZodString;
|
|
38
|
+
flows: z.ZodArray<z.ZodObject<{
|
|
39
|
+
flowId: FlowId;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
headline: z.ZodOptional<z.ZodString>;
|
|
43
|
+
question: z.ZodObject<{
|
|
44
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
45
|
+
description: z.ZodOptional<z.ZodString>;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
value: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
body: z.ZodOptional<z.ZodString>;
|
|
50
|
+
comparisonId: z.ZodOptional<z.ZodString>;
|
|
51
|
+
text: z.ZodString;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
runId: RunId;
|
|
54
|
+
sessionId: ChatSessionId;
|
|
55
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
56
|
+
url: z.ZodURL;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../src/v1/investigation/question/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAQnD,eAAO,MAAM,sCAAsC,GACjD,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFA,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { makePaginationInputFields, nextCursorSchema, } from "../../pagination.js";
|
|
3
|
+
import { resource } from "../../resource.js";
|
|
4
|
+
import { investigationQuestionSchema } from "../finding.js";
|
|
5
|
+
export const makeFindInvestigationQuestionsContract = (ids) => {
|
|
6
|
+
const input = z.object({
|
|
7
|
+
...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 }),
|
|
8
|
+
environmentId: ids.environmentRef
|
|
9
|
+
.optional()
|
|
10
|
+
.describe("Only list the questions of runs in this environment. Omit to list the questions of every environment."),
|
|
11
|
+
statuses: z
|
|
12
|
+
.array(z.enum(["open"]))
|
|
13
|
+
.min(1)
|
|
14
|
+
.default(["open"])
|
|
15
|
+
.describe('Question statuses to include. "open" (waiting for a person\'s answer) is the only status today.'),
|
|
16
|
+
workspaceId: ids.workspace
|
|
17
|
+
.optional()
|
|
18
|
+
.describe("The workspace to list questions from. Required when authenticating with an organization or user API key."),
|
|
19
|
+
});
|
|
20
|
+
const output = z.object({
|
|
21
|
+
nextCursor: nextCursorSchema,
|
|
22
|
+
questions: z
|
|
23
|
+
.array(resource({
|
|
24
|
+
askedAt: z.iso
|
|
25
|
+
.datetime()
|
|
26
|
+
.describe("When the investigation first recorded the finding that asks the question."),
|
|
27
|
+
findingId: z.string(),
|
|
28
|
+
flows: z
|
|
29
|
+
.array(z.object({ flowId: ids.flow, name: z.string() }))
|
|
30
|
+
.describe("The failed flows the question is about."),
|
|
31
|
+
headline: z.string().optional(),
|
|
32
|
+
question: investigationQuestionSchema,
|
|
33
|
+
runId: ids.run,
|
|
34
|
+
sessionId: ids.chatSession.describe("The investigation session. Answer the question by sending the person's answer to it with agent.send."),
|
|
35
|
+
summary: z.string().optional(),
|
|
36
|
+
}, { urlFieldDescription: "The run in the QA Wolf app." }))
|
|
37
|
+
.describe("Questions that wait for a person's answer, the most recently recorded first. A page can hold fewer than limit questions, or none, while nextCursor is present."),
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
annotationJustifications: {
|
|
41
|
+
destructiveHint: "Does not answer, dismiss or change any question.",
|
|
42
|
+
openWorldHint: "Reads recorded QA Wolf findings without changing the application under test.",
|
|
43
|
+
readOnlyHint: "Lists the open questions of a workspace's investigations without answering them.",
|
|
44
|
+
},
|
|
45
|
+
annotations: {
|
|
46
|
+
destructiveHint: false,
|
|
47
|
+
openWorldHint: false,
|
|
48
|
+
readOnlyHint: true,
|
|
49
|
+
},
|
|
50
|
+
description: "List the questions the QA Wolf AI investigating failed runs is waiting for a person to answer, across a workspace's runs. " +
|
|
51
|
+
"Each question names its run, flows, details and offered answers. " +
|
|
52
|
+
"To answer one, send the person's answer to its sessionId with agent.send.",
|
|
53
|
+
input,
|
|
54
|
+
kind: "read",
|
|
55
|
+
name: "investigation.question.find",
|
|
56
|
+
output,
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=find.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../../src/v1/investigation/question/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EACL,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,E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GAAG,CAAC,GAAG;YACd,SAAS,EAAE,GAAG,CAAC,WAAW,CAAC,QAAQ,CACjC,sGAAsG,CACvG;YACD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAC/B,EACD,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,CACvD,CACF;aACA,QAAQ,CACP,gKAAgK,CACjK;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,kDAAkD;YACnE,aAAa,EACX,8EAA8E;YAChF,YAAY,EACV,kFAAkF;SACrF;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,4HAA4H;YAC5H,mEAAmE;YACnE,2EAA2E;QAC7E,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,6BAA6B;QACnC,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { PublicIdSchema } from "../../ids.js";
|
|
2
|
+
export declare const makeInvestigationQuestionContracts: <ChatSessionId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
chatSession: ChatSessionId;
|
|
5
|
+
environmentRef: PublicIdSchema;
|
|
6
|
+
flow: FlowId;
|
|
7
|
+
run: RunId;
|
|
8
|
+
workspace: WorkspaceId;
|
|
9
|
+
}) => {
|
|
10
|
+
find: {
|
|
11
|
+
readonly annotationJustifications: {
|
|
12
|
+
readonly destructiveHint: "Does not answer, dismiss or change any question.";
|
|
13
|
+
readonly openWorldHint: "Reads recorded QA Wolf findings without changing the application under test.";
|
|
14
|
+
readonly readOnlyHint: "Lists the open questions of a workspace's investigations without answering them.";
|
|
15
|
+
};
|
|
16
|
+
readonly annotations: {
|
|
17
|
+
readonly destructiveHint: false;
|
|
18
|
+
readonly openWorldHint: false;
|
|
19
|
+
readonly readOnlyHint: true;
|
|
20
|
+
};
|
|
21
|
+
readonly description: string;
|
|
22
|
+
readonly input: import("zod").ZodObject<{
|
|
23
|
+
environmentId: import("zod").ZodOptional<PublicIdSchema>;
|
|
24
|
+
statuses: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
25
|
+
open: "open";
|
|
26
|
+
}>>>;
|
|
27
|
+
workspaceId: import("zod").ZodOptional<WorkspaceId>;
|
|
28
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
30
|
+
}, import("zod/v4/core").$strip>;
|
|
31
|
+
readonly kind: "read";
|
|
32
|
+
readonly name: "investigation.question.find";
|
|
33
|
+
readonly output: import("zod").ZodObject<{
|
|
34
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
questions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
36
|
+
askedAt: import("zod").ZodISODateTime;
|
|
37
|
+
findingId: import("zod").ZodString;
|
|
38
|
+
flows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
39
|
+
flowId: FlowId;
|
|
40
|
+
name: import("zod").ZodString;
|
|
41
|
+
}, import("zod/v4/core").$strip>>;
|
|
42
|
+
headline: import("zod").ZodOptional<import("zod").ZodString>;
|
|
43
|
+
question: import("zod").ZodObject<{
|
|
44
|
+
answers: import("zod").ZodArray<import("zod").ZodObject<{
|
|
45
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
title: import("zod").ZodString;
|
|
47
|
+
value: import("zod").ZodString;
|
|
48
|
+
}, import("zod/v4/core").$strip>>;
|
|
49
|
+
body: import("zod").ZodOptional<import("zod").ZodString>;
|
|
50
|
+
comparisonId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
51
|
+
text: import("zod").ZodString;
|
|
52
|
+
}, import("zod/v4/core").$strip>;
|
|
53
|
+
runId: RunId;
|
|
54
|
+
sessionId: ChatSessionId;
|
|
55
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
56
|
+
url: import("zod").ZodURL;
|
|
57
|
+
}, import("zod/v4/core").$strip>>;
|
|
58
|
+
}, import("zod/v4/core").$strip>;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v1/investigation/question/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,eAAO,MAAM,kCAAkC,GAC7C,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,cAAc,EAAE,cAAc,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,KAAK,CAAC;IACX,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/investigation/question/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,WAAW,CAAC;AAEnE,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAKhD,GAOD,EAAE,EAAE,CAAC,CAAC;IACL,IAAI,EAAE,sCAAsC,CAAC,GAAG,CAAC;CAClD,CAAC,CAAC"}
|
package/dist/v1/run/get.d.ts
CHANGED
|
@@ -52,6 +52,25 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
|
|
|
52
52
|
version: z.ZodOptional<z.ZodString>;
|
|
53
53
|
url: z.ZodURL;
|
|
54
54
|
}, z.core.$strip>>;
|
|
55
|
+
buildVersions: z.ZodArray<z.ZodObject<{
|
|
56
|
+
appId: z.ZodString;
|
|
57
|
+
expected: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
buildId: z.ZodString;
|
|
59
|
+
version: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
kind: z.ZodString;
|
|
62
|
+
observed: z.ZodArray<z.ZodObject<{
|
|
63
|
+
attempts: z.ZodNumber;
|
|
64
|
+
buildId: z.ZodOptional<z.ZodString>;
|
|
65
|
+
version: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
platform: z.ZodEnum<{
|
|
68
|
+
android: "android";
|
|
69
|
+
ios: "ios";
|
|
70
|
+
}>;
|
|
71
|
+
unreportedAttempts: z.ZodNumber;
|
|
72
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
73
|
+
}, z.core.$strip>>;
|
|
55
74
|
flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
56
75
|
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
76
|
attemptId: z.ZodOptional<RunAttemptId>;
|
|
@@ -161,6 +180,19 @@ export declare const makeGetRunContract: <EnvironmentId extends PublicIdSchema,
|
|
|
161
180
|
}>;
|
|
162
181
|
}, z.core.$strip>], "status">>;
|
|
163
182
|
runId: RunId;
|
|
183
|
+
siteVersions: z.ZodArray<z.ZodObject<{
|
|
184
|
+
expected: z.ZodOptional<z.ZodObject<{
|
|
185
|
+
from: z.ZodString;
|
|
186
|
+
version: z.ZodString;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
observed: z.ZodArray<z.ZodObject<{
|
|
189
|
+
attempts: z.ZodNumber;
|
|
190
|
+
source: z.ZodString;
|
|
191
|
+
version: z.ZodString;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
origin: z.ZodString;
|
|
194
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
164
196
|
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
165
197
|
createdAt: z.ZodISODateTime;
|
|
166
198
|
git: z.ZodObject<{
|
package/dist/v1/run/get.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,kBAAkB,GAC7B,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,OAAO,SAAS,cAAc,EAC9B,KAAK,SAAS,cAAc,EAC5B,YAAY,SAAS,cAAc,EACnC,KAAK;IACL,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,GAAG,EAAE,KAAK,CAAC;IACX,UAAU,EAAE,YAAY,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHA,CAAC"}
|
package/dist/v1/run/get.js
CHANGED
|
@@ -4,6 +4,7 @@ import { resource } from "../resource.js";
|
|
|
4
4
|
import { makeFlowAttemptsSchema } from "./flowAttempts.js";
|
|
5
5
|
import { makeFlowFailureSchema } from "./flowFailure.js";
|
|
6
6
|
import { makeRunSummaryFields, publicRunStatusValues } from "./summary.js";
|
|
7
|
+
import { runBuildVersionSchema, runSiteVersionSchema } from "./versions.js";
|
|
7
8
|
export const makeGetRunContract = (ids) => {
|
|
8
9
|
const flowStatus = z.enum(publicRunStatusValues);
|
|
9
10
|
const input = z.object({
|
|
@@ -59,10 +60,16 @@ export const makeGetRunContract = (ids) => {
|
|
|
59
60
|
builds: z
|
|
60
61
|
.array(makeBuildResourceSchema(ids))
|
|
61
62
|
.describe("The builds the run installs, one per app and platform. Empty when the run has none."),
|
|
63
|
+
buildVersions: z
|
|
64
|
+
.array(runBuildVersionSchema)
|
|
65
|
+
.describe("The apps the run's attempts installed, one per app and platform, with warnings. Empty when no attempt reported an install and the run has no builds."),
|
|
62
66
|
flows,
|
|
63
67
|
// Overrides the shared field: only this endpoint takes a run id, so only
|
|
64
68
|
// here can the answer describe a different run than the one requested.
|
|
65
69
|
runId: ids.run.describe("The run this response describes. Treat it as canonical: it can differ from the id you asked for. A deploy notification returns a run id before the run exists, and if a second notification for the same commit is folded into an earlier run, that id resolves to the earlier run instead."),
|
|
70
|
+
siteVersions: z
|
|
71
|
+
.array(runSiteVersionSchema)
|
|
72
|
+
.describe("The versions the run's attempts saw on each site origin, with warnings. Empty when no attempt reported one."),
|
|
66
73
|
}, { urlFieldDescription: "Absolute URL of the run page." });
|
|
67
74
|
return {
|
|
68
75
|
annotationJustifications: {
|
package/dist/v1/run/get.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/run/get.ts"],"names":[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,CAAC;aACb,KAAK,CAAC,qBAAqB,CAAC;aAC5B,QAAQ,CACP,sJAAsJ,CACvJ;QACH,KAAK;QACL,yEAAyE;QACzE,uEAAuE;QACvE,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,QAAQ,CACrB,6RAA6R,CAC9R;QACD,YAAY,EAAE,CAAC;aACZ,KAAK,CAAC,oBAAoB,CAAC;aAC3B,QAAQ,CACP,6GAA6G,CAC9G;KACJ,EACD,EAAE,mBAAmB,EAAE,+BAA+B,EAAE,CACzD,CAAC;IAEF,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,0CAA0C;YAC3D,aAAa,EACX,6EAA6E;YAC/E,YAAY,EACV,8DAA8D;SACjE;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,qFAAqF;QACvF,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const runBuildVersionSchema: z.ZodObject<{
|
|
3
|
+
appId: z.ZodString;
|
|
4
|
+
expected: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
buildId: z.ZodString;
|
|
6
|
+
version: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
kind: z.ZodString;
|
|
9
|
+
observed: z.ZodArray<z.ZodObject<{
|
|
10
|
+
attempts: z.ZodNumber;
|
|
11
|
+
buildId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
version: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
platform: z.ZodEnum<{
|
|
15
|
+
android: "android";
|
|
16
|
+
ios: "ios";
|
|
17
|
+
}>;
|
|
18
|
+
unreportedAttempts: z.ZodNumber;
|
|
19
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const runSiteVersionSchema: z.ZodObject<{
|
|
22
|
+
expected: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
from: z.ZodString;
|
|
24
|
+
version: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
observed: z.ZodArray<z.ZodObject<{
|
|
27
|
+
attempts: z.ZodNumber;
|
|
28
|
+
source: z.ZodString;
|
|
29
|
+
version: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
origin: z.ZodString;
|
|
32
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
//# sourceMappingURL=versions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../src/v1/run/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsBxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;iBA0ChC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAkC/B,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { buildIdSchema, buildPlatformSchema } from "../build/resource.js";
|
|
3
|
+
/**
|
|
4
|
+
* A string output field whose values the server may extend. A closed enum
|
|
5
|
+
* would make every client on an older package refuse the whole response once
|
|
6
|
+
* the server sends a new value.
|
|
7
|
+
*/
|
|
8
|
+
const extensibleValue = (values, meanings) => z
|
|
9
|
+
.string()
|
|
10
|
+
.describe(`One of ${values.join(", ")}; newer servers may add values, so ignore any you don't know. ${meanings}`);
|
|
11
|
+
const attemptCount = z
|
|
12
|
+
.number()
|
|
13
|
+
.int()
|
|
14
|
+
.positive()
|
|
15
|
+
.describe("How many attempts reported it.");
|
|
16
|
+
export const runBuildVersionSchema = z.object({
|
|
17
|
+
appId: z
|
|
18
|
+
.string()
|
|
19
|
+
.describe("The package name (Android) or bundle ID (iOS) of the app."),
|
|
20
|
+
expected: z
|
|
21
|
+
.object({
|
|
22
|
+
buildId: buildIdSchema,
|
|
23
|
+
version: z.string().optional(),
|
|
24
|
+
})
|
|
25
|
+
.optional()
|
|
26
|
+
.describe("The run's build of this app. Absent for an app it got none of."),
|
|
27
|
+
kind: extensibleValue(["build", "info"], "build: the run got a build of this app. info: any other app an attempt installed, such as a companion app. It has no warnings."),
|
|
28
|
+
observed: z
|
|
29
|
+
.array(z.object({
|
|
30
|
+
attempts: attemptCount,
|
|
31
|
+
buildId: buildIdSchema
|
|
32
|
+
.optional()
|
|
33
|
+
.describe("Absent when the file is not one of the team's builds."),
|
|
34
|
+
version: z.string().optional(),
|
|
35
|
+
}))
|
|
36
|
+
.describe("What attempts installed, one entry per build or version."),
|
|
37
|
+
platform: buildPlatformSchema,
|
|
38
|
+
unreportedAttempts: z
|
|
39
|
+
.number()
|
|
40
|
+
.int()
|
|
41
|
+
.nonnegative()
|
|
42
|
+
.describe("Finished attempts that reported no installed app, such as web attempts or attempts on an older Flows SDK."),
|
|
43
|
+
warnings: z
|
|
44
|
+
.array(extensibleValue(["changedDuringRun", "notTested", "unknownApp"], "changedDuringRun: attempts installed different builds of the run's app. notTested: attempts reported installs on this platform, but none installed the run's build. unknownApp: an attempt installed a file of this app that is not the run's build."))
|
|
45
|
+
.describe("Why the installed apps may not be what the run should test."),
|
|
46
|
+
});
|
|
47
|
+
export const runSiteVersionSchema = z.object({
|
|
48
|
+
expected: z
|
|
49
|
+
.object({
|
|
50
|
+
from: extensibleValue(["deployment", "latestDeployment"], "deployment: the run's own deployment. latestDeployment: the environment's latest successful deployment before the run."),
|
|
51
|
+
version: z.string().describe("The deployed commit."),
|
|
52
|
+
})
|
|
53
|
+
.optional()
|
|
54
|
+
.describe("The commit the run should see. Only on the origin the deployment reported as its target. Absent when no deployment names a commit and a target, or the deployment has a service."),
|
|
55
|
+
observed: z
|
|
56
|
+
.array(z.object({
|
|
57
|
+
attempts: attemptCount,
|
|
58
|
+
source: extensibleValue(["header", "meta", "versionPath", "frameworkBuildId", "fingerprint"], "Where the attempt read the version."),
|
|
59
|
+
version: z.string(),
|
|
60
|
+
}))
|
|
61
|
+
.describe("What attempts saw, one entry per version and source."),
|
|
62
|
+
origin: z.string().describe("The site origin the attempts visited."),
|
|
63
|
+
warnings: z
|
|
64
|
+
.array(extensibleValue(["changedDuringRun", "unexpectedVersion"], "changedDuringRun: attempts saw different versions from one source. unexpectedVersion: the site served another commit than expected."))
|
|
65
|
+
.describe("Why the site may not be the version the run should test."),
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=versions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../src/v1/run/versions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE1E;;;;GAIG;AACH,MAAM,eAAe,GAAG,CAAC,MAAgB,EAAE,QAAgB,EAAE,EAAE,CAC7D,CAAC;KACE,MAAM,EAAE;KACR,QAAQ,CACP,UAAU,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iEAAiE,QAAQ,EAAE,CACvG,CAAC;AAEN,MAAM,YAAY,GAAG,CAAC;KACnB,MAAM,EAAE;KACR,GAAG,EAAE;KACL,QAAQ,EAAE;KACV,QAAQ,CAAC,gCAAgC,CAAC,CAAC;AAE9C,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CAAC,2DAA2D,CAAC;IACxE,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,OAAO,EAAE,aAAa;QACtB,OAAO,EAAE,CAA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EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,CAAC,EACpE,qCAAqC,CACtC;QACD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;KACpB,CAAC,CACH;SACA,QAAQ,CAAC,sDAAsD,CAAC;IACnE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IACpE,QAAQ,EAAE,CAAC;SACR,KAAK,CACJ,eAAe,CACb,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,EACzC,qIAAqI,CACtI,CACF;SACA,QAAQ,CAAC,0DAA0D,CAAC;CACxE,CAAC,CAAC"}
|
|
@@ -1050,7 +1050,7 @@ export declare const makeRunnerContracts: <FlowId extends PublicIdSchema, Worksp
|
|
|
1050
1050
|
readonly openWorldHint: false;
|
|
1051
1051
|
readonly readOnlyHint: false;
|
|
1052
1052
|
};
|
|
1053
|
-
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.";
|
|
1053
|
+
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.";
|
|
1054
1054
|
readonly input: import("zod").ZodObject<{
|
|
1055
1055
|
runId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1056
1056
|
sinceSequence: import("zod").ZodOptional<import("zod").ZodNumber>;
|