@qawolf/api-contracts 0.24.0 → 0.26.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/environment/find.d.ts +2 -0
- package/dist/v1/environment/find.d.ts.map +1 -1
- package/dist/v1/environment/find.js +1 -0
- package/dist/v1/environment/find.js.map +1 -1
- package/dist/v1/environment/index.d.ts +3 -1
- package/dist/v1/environment/index.d.ts.map +1 -1
- package/dist/v1/environment/index.js +1 -1
- package/dist/v1/environment/index.js.map +1 -1
- package/dist/v1/environment/resource.d.ts +1 -0
- package/dist/v1/environment/resource.d.ts.map +1 -1
- package/dist/v1/environment/resource.js +3 -0
- package/dist/v1/environment/resource.js.map +1 -1
- package/dist/v1/environment/update.d.ts +1 -0
- package/dist/v1/environment/update.d.ts.map +1 -1
- package/dist/v1/index.d.ts +240 -6
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/index.js +2 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/issue/addFlows.d.ts +55 -0
- package/dist/v1/issue/addFlows.d.ts.map +1 -0
- package/dist/v1/issue/addFlows.js +27 -0
- package/dist/v1/issue/addFlows.js.map +1 -0
- package/dist/v1/issue/create.d.ts +1 -0
- package/dist/v1/issue/create.d.ts.map +1 -1
- package/dist/v1/issue/index.d.ts +3 -0
- package/dist/v1/issue/index.d.ts.map +1 -1
- package/dist/v1/issue/index.js +3 -0
- package/dist/v1/issue/index.js.map +1 -1
- package/dist/v1/issue/update.d.ts +1 -0
- package/dist/v1/issue/update.d.ts.map +1 -1
- package/dist/v1/run/get.d.ts +63 -1
- package/dist/v1/run/get.d.ts.map +1 -1
- package/dist/v1/run/get.js +86 -0
- package/dist/v1/run/get.js.map +1 -1
- package/dist/v1/runner/performAction.d.ts +1 -1
- package/dist/v1/runner/performAction.d.ts.map +1 -1
- package/dist/v1/runner/performAction.js +2 -2
- package/dist/v1/runner/performAction.js.map +1 -1
- package/dist/v1/runner/screen.d.ts +1 -1
- package/dist/v1/runner/screen.d.ts.map +1 -1
- package/dist/v1/runner/screen.js +1 -1
- package/dist/v1/runner/screen.js.map +1 -1
- package/dist/v1/runner/takeScreenshot.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ export declare const makeFindEnvironmentsContract: <EnvironmentId extends Public
|
|
|
16
16
|
readonly kind: "read";
|
|
17
17
|
readonly name: "environment.find";
|
|
18
18
|
readonly output: z.ZodObject<{
|
|
19
|
+
defaultEnvironmentId: EnvironmentId;
|
|
19
20
|
environments: z.ZodArray<z.ZodObject<{
|
|
20
21
|
alias: z.ZodOptional<z.ZodString>;
|
|
21
22
|
flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -27,6 +28,7 @@ export declare const makeFindEnvironmentsContract: <EnvironmentId extends Public
|
|
|
27
28
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
28
29
|
}, z.core.$strip>], "syncStatus">>;
|
|
29
30
|
id: EnvironmentId;
|
|
31
|
+
isDefault: z.ZodBoolean;
|
|
30
32
|
kind: z.ZodEnum<{
|
|
31
33
|
static: "static";
|
|
32
34
|
preview: "preview";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;CAC5B
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,4BAA4B,GACvC,aAAa,SAAS,cAAc,EACpC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;CAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCA,CAAC"}
|
|
@@ -14,6 +14,7 @@ export const makeFindEnvironmentsContract = (ids) => {
|
|
|
14
14
|
...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 }),
|
|
15
15
|
});
|
|
16
16
|
const output = z.object({
|
|
17
|
+
defaultEnvironmentId: ids.environment.describe("The id of the workspace's default environment."),
|
|
17
18
|
environments: z
|
|
18
19
|
.array(makeEnvironmentResourceSchema(ids))
|
|
19
20
|
.describe("The team's environments, newest first."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../src/v1/environment/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAE1C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,CAAC;aACjB,OAAO,EAAE;aACT,OAAO,CAAC,KAAK,CAAC;aACd,QAAQ,CACP,2GAA2G,CAC5G;QACH,IAAI,EAAE,CAAC;aACJ,IAAI,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;aAC3B,QAAQ,EAAE;aACV,QAAQ,CAAC,yDAAyD,CAAC;QACtE,GAAG,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;KAClE,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,YAAY,EAAE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gB;KAC7B,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EAAE,6CAA6C;QAC1D,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,kBAAkB;QACxB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -18,6 +18,7 @@ export declare const makeGetEnvironmentContract: <EnvironmentId extends PublicId
|
|
|
18
18
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
19
19
|
}, z.core.$strip>], "syncStatus">>;
|
|
20
20
|
id: EnvironmentId;
|
|
21
|
+
isDefault: z.ZodBoolean;
|
|
21
22
|
kind: z.ZodEnum<{
|
|
22
23
|
static: "static";
|
|
23
24
|
preview: "preview";
|
|
@@ -46,7 +47,7 @@ export declare const makeListEnvironmentVariableNamesContract: <EnvironmentId ex
|
|
|
46
47
|
}, z.core.$strip>;
|
|
47
48
|
};
|
|
48
49
|
export declare const makeSetEnvironmentVariableContract: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema>(ids: PublicIdSchemasOf<EnvironmentId, FlowId, RunId>) => {
|
|
49
|
-
readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use
|
|
50
|
+
readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_EMAIL. The value is never returned.";
|
|
50
51
|
readonly input: z.ZodObject<{
|
|
51
52
|
environmentId: PublicIdSchema;
|
|
52
53
|
name: z.ZodString;
|
|
@@ -77,6 +78,7 @@ export declare const makeCreateEnvironmentContract: <EnvironmentId extends Publi
|
|
|
77
78
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
78
79
|
}, z.core.$strip>], "syncStatus">>;
|
|
79
80
|
id: EnvironmentId;
|
|
81
|
+
isDefault: z.ZodBoolean;
|
|
80
82
|
kind: z.ZodEnum<{
|
|
81
83
|
static: "static";
|
|
82
84
|
preview: "preview";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAInE,eAAO,MAAM,0BAA0B,GACrC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAE5B,KAAK,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAInE,eAAO,MAAM,0BAA0B,GACrC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAE5B,KAAK,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBrD,CAAC;AAEF,eAAO,MAAM,wCAAwC,GACnD,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAE5B,KAAK,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC;;;;;;;;;;CA8BrD,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAC7C,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAE5B,KAAK,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC;;;;;;;;;;;;CAuCrD,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAC5B,WAAW,SAAS,cAAc,GAAG,cAAc,EAEnD,KAAK,iBAAiB,CACpB,aAAa,EACb,MAAM,EACN,KAAK,EACL,cAAc,EACd,cAAc,EACd,WAAW,CACZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BF,CAAC"}
|
|
@@ -53,7 +53,7 @@ export const makeSetEnvironmentVariableContract = (ids) => {
|
|
|
53
53
|
.describe("The stored variable name after whitespace is replaced with underscores and letters are uppercased."),
|
|
54
54
|
});
|
|
55
55
|
return {
|
|
56
|
-
description: 'Create or replace an environment variable. If the user asks to create one for "my email" without naming it, use
|
|
56
|
+
description: 'Create or replace an environment variable. If the user asks to create one for "my email" without naming it, use DEFAULT_EMAIL. The value is never returned.',
|
|
57
57
|
input,
|
|
58
58
|
kind: "write",
|
|
59
59
|
name: "environment.setVariable",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/environment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAKxC,GAAoD,EACpD,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,aAAa,EAAE,GAAG,CAAC,cAAc;KAClC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,6BAA6B,CAAC,GAAG,CAAC,CAAC;IAElD,OAAO;QACL,WAAW,EACT,sGAAsG;QACxG,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,iBAAiB;QACvB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAKtD,GAAoD,EACpD,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,aAAa,EAAE,GAAG,CAAC,c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AAC,MAAM,CAAC;QACtB,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,QAAQ,CACP,oGAAoG,CACrG;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,WAAW,EACT,6JAA6J;QAC/J,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,yBAAyB;QAC/B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAM3C,GAOC,EACD,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,CAAC;aACJ,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,KAAK,CAAC,IAAI,EAAE,mCAAmC,CAAC;aAChD,QAAQ,CAAC,sCAAsC,CAAC;QACnD,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,wGAAwG,CACzG;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,6BAA6B,CAAC,GAAG,CAAC,CAAC;IAElD,OAAO;QACL,WAAW,EACT,wFAAwF;QAC1F,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,oBAAoB;QAC1B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -13,6 +13,7 @@ export declare const makeEnvironmentResourceSchema: <EnvironmentId extends Publi
|
|
|
13
13
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
14
14
|
}, z.core.$strip>], "syncStatus">>;
|
|
15
15
|
id: EnvironmentId;
|
|
16
|
+
isDefault: z.ZodBoolean;
|
|
16
17
|
kind: z.ZodEnum<{
|
|
17
18
|
static: "static";
|
|
18
19
|
preview: "preview";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,6BAA6B,GACxC,aAAa,SAAS,cAAc,EACpC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;CAC5B
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGhD,eAAO,MAAM,6BAA6B,GACxC,aAAa,SAAS,cAAc,EACpC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;CAC5B;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgEE,CAAC"}
|
|
@@ -33,6 +33,9 @@ export const makeEnvironmentResourceSchema = (ids) => resource({
|
|
|
33
33
|
.optional()
|
|
34
34
|
.describe("The environment's flow code branch and its git reconciliation state, if it has one."),
|
|
35
35
|
id: ids.environment,
|
|
36
|
+
isDefault: z
|
|
37
|
+
.boolean()
|
|
38
|
+
.describe("Whether this is the workspace's default environment."),
|
|
36
39
|
kind: z
|
|
37
40
|
.enum(["static", "preview"])
|
|
38
41
|
.describe("Whether the environment is static or a preview."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.js","sourceRoot":"","sources":["../../../src/v1/environment/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAE3C,GAED,EAAE,EAAE,CACH,QAAQ,CACN;IACE,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,+HAA+H,CAChI;IACH,iEAAiE;IACjE,kEAAkE;IAClE,0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AAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,QAAQ,CACP,8FAA8F,CAC/F;IACH,uEAAuE;IACvE,qEAAqE;IACrE,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,SAAS,EAAE,qBAAqB,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;SAC5D,QAAQ,CACP,yMAAyM,CAC1M;IACH,YAAY,EAAE,CAAC,CAAC,GAAG;SAChB,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,sDAAsD,CAAC;CACpE,EACD,EAAE,mBAAmB,EAAE,uCAAuC,EAAE,CACjE,CAAC"}
|
|
@@ -20,6 +20,7 @@ export declare const makeUpdateEnvironmentContract: <EnvironmentId extends Publi
|
|
|
20
20
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
21
21
|
}, z.core.$strip>], "syncStatus">>;
|
|
22
22
|
id: EnvironmentId;
|
|
23
|
+
isDefault: z.ZodBoolean;
|
|
23
24
|
kind: z.ZodEnum<{
|
|
24
25
|
static: "static";
|
|
25
26
|
preview: "preview";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAInE,eAAO,MAAM,6BAA6B,GACxC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAE5B,KAAK,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/v1/environment/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAInE,eAAO,MAAM,6BAA6B,GACxC,aAAa,SAAS,cAAc,EACpC,MAAM,SAAS,cAAc,EAC7B,KAAK,SAAS,cAAc,EAE5B,KAAK,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDrD,CAAC"}
|
package/dist/v1/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
56
56
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
57
57
|
}, z.core.$strip>], "syncStatus">>;
|
|
58
58
|
id: EnvironmentId;
|
|
59
|
+
isDefault: z.ZodBoolean;
|
|
59
60
|
kind: z.ZodEnum<{
|
|
60
61
|
static: "static";
|
|
61
62
|
preview: "preview";
|
|
@@ -98,6 +99,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
98
99
|
readonly kind: "read";
|
|
99
100
|
readonly name: "environment.find";
|
|
100
101
|
readonly output: z.ZodObject<{
|
|
102
|
+
defaultEnvironmentId: EnvironmentId;
|
|
101
103
|
environments: z.ZodArray<z.ZodObject<{
|
|
102
104
|
alias: z.ZodOptional<z.ZodString>;
|
|
103
105
|
flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -109,6 +111,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
109
111
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
110
112
|
}, z.core.$strip>], "syncStatus">>;
|
|
111
113
|
id: EnvironmentId;
|
|
114
|
+
isDefault: z.ZodBoolean;
|
|
112
115
|
kind: z.ZodEnum<{
|
|
113
116
|
static: "static";
|
|
114
117
|
preview: "preview";
|
|
@@ -145,6 +148,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
145
148
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
146
149
|
}, z.core.$strip>], "syncStatus">>;
|
|
147
150
|
id: EnvironmentId;
|
|
151
|
+
isDefault: z.ZodBoolean;
|
|
148
152
|
kind: z.ZodEnum<{
|
|
149
153
|
static: "static";
|
|
150
154
|
preview: "preview";
|
|
@@ -189,7 +193,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
189
193
|
}, z.core.$strip>;
|
|
190
194
|
};
|
|
191
195
|
setVariable: {
|
|
192
|
-
readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use
|
|
196
|
+
readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_EMAIL. The value is never returned.";
|
|
193
197
|
readonly input: z.ZodObject<{
|
|
194
198
|
environmentId: PublicIdSchema;
|
|
195
199
|
name: z.ZodString;
|
|
@@ -221,6 +225,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
221
225
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
222
226
|
}, z.core.$strip>], "syncStatus">>;
|
|
223
227
|
id: EnvironmentId;
|
|
228
|
+
isDefault: z.ZodBoolean;
|
|
224
229
|
kind: z.ZodEnum<{
|
|
225
230
|
static: "static";
|
|
226
231
|
preview: "preview";
|
|
@@ -301,6 +306,53 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
301
306
|
};
|
|
302
307
|
};
|
|
303
308
|
issue: {
|
|
309
|
+
addFlows: {
|
|
310
|
+
readonly description: string;
|
|
311
|
+
readonly input: z.ZodObject<{
|
|
312
|
+
flowIds: z.ZodArray<FlowId>;
|
|
313
|
+
issueId: IssueId;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
readonly kind: "write";
|
|
316
|
+
readonly name: "issue.addFlows";
|
|
317
|
+
readonly output: z.ZodObject<{
|
|
318
|
+
issue: z.ZodObject<{
|
|
319
|
+
coveredFlowIds: z.ZodArray<FlowId>;
|
|
320
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
321
|
+
description: z.ZodString;
|
|
322
|
+
issueId: IssueId;
|
|
323
|
+
name: z.ZodString;
|
|
324
|
+
number: z.ZodNumber;
|
|
325
|
+
priority: z.ZodEnum<{
|
|
326
|
+
unprioritized: "unprioritized";
|
|
327
|
+
low: "low";
|
|
328
|
+
medium: "medium";
|
|
329
|
+
high: "high";
|
|
330
|
+
urgent: "urgent";
|
|
331
|
+
}>;
|
|
332
|
+
reproductions: z.ZodArray<z.ZodObject<{
|
|
333
|
+
environmentId: EnvironmentId;
|
|
334
|
+
firstReproducedInRunId: RunId;
|
|
335
|
+
flowId: FlowId;
|
|
336
|
+
isActive: z.ZodBoolean;
|
|
337
|
+
lastReproducedInRunId: RunId;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
status: z.ZodEnum<{
|
|
340
|
+
pending: "pending";
|
|
341
|
+
inProgress: "inProgress";
|
|
342
|
+
paused: "paused";
|
|
343
|
+
resolved: "resolved";
|
|
344
|
+
canceled: "canceled";
|
|
345
|
+
archived: "archived";
|
|
346
|
+
}>;
|
|
347
|
+
type: z.ZodEnum<{
|
|
348
|
+
bug: "bug";
|
|
349
|
+
coverageRequest: "coverageRequest";
|
|
350
|
+
maintenance: "maintenance";
|
|
351
|
+
}>;
|
|
352
|
+
url: z.ZodURL;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
};
|
|
304
356
|
create: {
|
|
305
357
|
readonly description: string;
|
|
306
358
|
readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -333,6 +385,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
333
385
|
readonly name: "issue.create";
|
|
334
386
|
readonly output: z.ZodObject<{
|
|
335
387
|
issue: z.ZodObject<{
|
|
388
|
+
coveredFlowIds: z.ZodArray<FlowId>;
|
|
336
389
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
337
390
|
description: z.ZodString;
|
|
338
391
|
issueId: IssueId;
|
|
@@ -393,6 +446,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
393
446
|
readonly name: "issue.find";
|
|
394
447
|
readonly output: z.ZodObject<{
|
|
395
448
|
issues: z.ZodArray<z.ZodObject<{
|
|
449
|
+
coveredFlowIds: z.ZodArray<FlowId>;
|
|
396
450
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
397
451
|
description: z.ZodString;
|
|
398
452
|
issueId: IssueId;
|
|
@@ -439,6 +493,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
439
493
|
readonly name: "issue.get";
|
|
440
494
|
readonly output: z.ZodObject<{
|
|
441
495
|
issue: z.ZodObject<{
|
|
496
|
+
coveredFlowIds: z.ZodArray<FlowId>;
|
|
442
497
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
443
498
|
description: z.ZodString;
|
|
444
499
|
issueId: IssueId;
|
|
@@ -501,6 +556,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
501
556
|
readonly name: "issue.update";
|
|
502
557
|
readonly output: z.ZodObject<{
|
|
503
558
|
issue: z.ZodObject<{
|
|
559
|
+
coveredFlowIds: z.ZodArray<FlowId>;
|
|
504
560
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
505
561
|
description: z.ZodString;
|
|
506
562
|
issueId: IssueId;
|
|
@@ -601,13 +657,74 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
601
657
|
readonly name: "run.get";
|
|
602
658
|
readonly output: z.ZodObject<{
|
|
603
659
|
flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
660
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
661
|
+
completedAt: z.ZodISODateTime;
|
|
662
|
+
kind: z.ZodLiteral<"automated">;
|
|
663
|
+
startedAt: z.ZodISODateTime;
|
|
664
|
+
status: z.ZodLiteral<"passed">;
|
|
665
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
666
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
667
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
668
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
669
|
+
completedAt: z.ZodISODateTime;
|
|
670
|
+
kind: z.ZodLiteral<"automated">;
|
|
671
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
672
|
+
status: z.ZodLiteral<"failed">;
|
|
673
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
674
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
675
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
676
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
677
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
678
|
+
kind: z.ZodLiteral<"automated">;
|
|
679
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
680
|
+
status: z.ZodLiteral<"canceled">;
|
|
681
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
682
|
+
completedAt: z.ZodISODateTime;
|
|
683
|
+
kind: z.ZodLiteral<"manual">;
|
|
684
|
+
startedAt: z.ZodISODateTime;
|
|
685
|
+
status: z.ZodLiteral<"passed">;
|
|
686
|
+
}, z.core.$strip>]>>>;
|
|
604
687
|
failure: z.ZodObject<{
|
|
688
|
+
diagnosis: z.ZodOptional<z.ZodObject<{
|
|
689
|
+
issueId: IssueId;
|
|
690
|
+
type: z.ZodEnum<{
|
|
691
|
+
bug: "bug";
|
|
692
|
+
maintenance: "maintenance";
|
|
693
|
+
}>;
|
|
694
|
+
}, z.core.$strip>>;
|
|
605
695
|
error: z.ZodString;
|
|
606
696
|
}, z.core.$strip>;
|
|
607
697
|
flowId: FlowId;
|
|
608
698
|
name: z.ZodString;
|
|
609
699
|
status: z.ZodLiteral<"failed">;
|
|
610
700
|
}, z.core.$strip>, z.ZodObject<{
|
|
701
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
702
|
+
completedAt: z.ZodISODateTime;
|
|
703
|
+
kind: z.ZodLiteral<"automated">;
|
|
704
|
+
startedAt: z.ZodISODateTime;
|
|
705
|
+
status: z.ZodLiteral<"passed">;
|
|
706
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
707
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
708
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
709
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
710
|
+
completedAt: z.ZodISODateTime;
|
|
711
|
+
kind: z.ZodLiteral<"automated">;
|
|
712
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
713
|
+
status: z.ZodLiteral<"failed">;
|
|
714
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
715
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
716
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
717
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
718
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
719
|
+
kind: z.ZodLiteral<"automated">;
|
|
720
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
721
|
+
status: z.ZodLiteral<"canceled">;
|
|
722
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
723
|
+
completedAt: z.ZodISODateTime;
|
|
724
|
+
kind: z.ZodLiteral<"manual">;
|
|
725
|
+
startedAt: z.ZodISODateTime;
|
|
726
|
+
status: z.ZodLiteral<"passed">;
|
|
727
|
+
}, z.core.$strip>]>>>;
|
|
611
728
|
flowId: FlowId;
|
|
612
729
|
name: z.ZodString;
|
|
613
730
|
status: z.ZodEnum<{
|
|
@@ -689,7 +806,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
689
806
|
}, z.core.$strip>;
|
|
690
807
|
};
|
|
691
808
|
performAction: {
|
|
692
|
-
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect.
|
|
809
|
+
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` runner instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
|
|
693
810
|
readonly input: z.ZodObject<{
|
|
694
811
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
695
812
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -821,7 +938,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
|
|
|
821
938
|
}, z.core.$strip>;
|
|
822
939
|
};
|
|
823
940
|
takeScreenshot: {
|
|
824
|
-
readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner
|
|
941
|
+
readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` runner instead. `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.";
|
|
825
942
|
readonly input: z.ZodObject<{
|
|
826
943
|
id: z.ZodString;
|
|
827
944
|
}, z.core.$strip>;
|
|
@@ -912,6 +1029,7 @@ export declare const publicContractsV1: {
|
|
|
912
1029
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
913
1030
|
}, z.core.$strip>], "syncStatus">>;
|
|
914
1031
|
id: PublicIdSchema;
|
|
1032
|
+
isDefault: z.ZodBoolean;
|
|
915
1033
|
kind: z.ZodEnum<{
|
|
916
1034
|
static: "static";
|
|
917
1035
|
preview: "preview";
|
|
@@ -954,6 +1072,7 @@ export declare const publicContractsV1: {
|
|
|
954
1072
|
readonly kind: "read";
|
|
955
1073
|
readonly name: "environment.find";
|
|
956
1074
|
readonly output: z.ZodObject<{
|
|
1075
|
+
defaultEnvironmentId: PublicIdSchema;
|
|
957
1076
|
environments: z.ZodArray<z.ZodObject<{
|
|
958
1077
|
alias: z.ZodOptional<z.ZodString>;
|
|
959
1078
|
flowCodeBranch: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -965,6 +1084,7 @@ export declare const publicContractsV1: {
|
|
|
965
1084
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
966
1085
|
}, z.core.$strip>], "syncStatus">>;
|
|
967
1086
|
id: PublicIdSchema;
|
|
1087
|
+
isDefault: z.ZodBoolean;
|
|
968
1088
|
kind: z.ZodEnum<{
|
|
969
1089
|
static: "static";
|
|
970
1090
|
preview: "preview";
|
|
@@ -1001,6 +1121,7 @@ export declare const publicContractsV1: {
|
|
|
1001
1121
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
1002
1122
|
}, z.core.$strip>], "syncStatus">>;
|
|
1003
1123
|
id: PublicIdSchema;
|
|
1124
|
+
isDefault: z.ZodBoolean;
|
|
1004
1125
|
kind: z.ZodEnum<{
|
|
1005
1126
|
static: "static";
|
|
1006
1127
|
preview: "preview";
|
|
@@ -1045,7 +1166,7 @@ export declare const publicContractsV1: {
|
|
|
1045
1166
|
}, z.core.$strip>;
|
|
1046
1167
|
};
|
|
1047
1168
|
setVariable: {
|
|
1048
|
-
readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use
|
|
1169
|
+
readonly description: "Create or replace an environment variable. If the user asks to create one for \"my email\" without naming it, use DEFAULT_EMAIL. The value is never returned.";
|
|
1049
1170
|
readonly input: z.ZodObject<{
|
|
1050
1171
|
environmentId: PublicIdSchema;
|
|
1051
1172
|
name: z.ZodString;
|
|
@@ -1077,6 +1198,7 @@ export declare const publicContractsV1: {
|
|
|
1077
1198
|
syncStatus: z.ZodLiteral<"not-reconciled">;
|
|
1078
1199
|
}, z.core.$strip>], "syncStatus">>;
|
|
1079
1200
|
id: PublicIdSchema;
|
|
1201
|
+
isDefault: z.ZodBoolean;
|
|
1080
1202
|
kind: z.ZodEnum<{
|
|
1081
1203
|
static: "static";
|
|
1082
1204
|
preview: "preview";
|
|
@@ -1157,6 +1279,53 @@ export declare const publicContractsV1: {
|
|
|
1157
1279
|
};
|
|
1158
1280
|
};
|
|
1159
1281
|
issue: {
|
|
1282
|
+
addFlows: {
|
|
1283
|
+
readonly description: string;
|
|
1284
|
+
readonly input: z.ZodObject<{
|
|
1285
|
+
flowIds: z.ZodArray<PublicIdSchema>;
|
|
1286
|
+
issueId: PublicIdSchema;
|
|
1287
|
+
}, z.core.$strip>;
|
|
1288
|
+
readonly kind: "write";
|
|
1289
|
+
readonly name: "issue.addFlows";
|
|
1290
|
+
readonly output: z.ZodObject<{
|
|
1291
|
+
issue: z.ZodObject<{
|
|
1292
|
+
coveredFlowIds: z.ZodArray<PublicIdSchema>;
|
|
1293
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1294
|
+
description: z.ZodString;
|
|
1295
|
+
issueId: PublicIdSchema;
|
|
1296
|
+
name: z.ZodString;
|
|
1297
|
+
number: z.ZodNumber;
|
|
1298
|
+
priority: z.ZodEnum<{
|
|
1299
|
+
unprioritized: "unprioritized";
|
|
1300
|
+
low: "low";
|
|
1301
|
+
medium: "medium";
|
|
1302
|
+
high: "high";
|
|
1303
|
+
urgent: "urgent";
|
|
1304
|
+
}>;
|
|
1305
|
+
reproductions: z.ZodArray<z.ZodObject<{
|
|
1306
|
+
environmentId: PublicIdSchema;
|
|
1307
|
+
firstReproducedInRunId: PublicIdSchema;
|
|
1308
|
+
flowId: PublicIdSchema;
|
|
1309
|
+
isActive: z.ZodBoolean;
|
|
1310
|
+
lastReproducedInRunId: PublicIdSchema;
|
|
1311
|
+
}, z.core.$strip>>;
|
|
1312
|
+
status: z.ZodEnum<{
|
|
1313
|
+
pending: "pending";
|
|
1314
|
+
inProgress: "inProgress";
|
|
1315
|
+
paused: "paused";
|
|
1316
|
+
resolved: "resolved";
|
|
1317
|
+
canceled: "canceled";
|
|
1318
|
+
archived: "archived";
|
|
1319
|
+
}>;
|
|
1320
|
+
type: z.ZodEnum<{
|
|
1321
|
+
bug: "bug";
|
|
1322
|
+
coverageRequest: "coverageRequest";
|
|
1323
|
+
maintenance: "maintenance";
|
|
1324
|
+
}>;
|
|
1325
|
+
url: z.ZodURL;
|
|
1326
|
+
}, z.core.$strip>;
|
|
1327
|
+
}, z.core.$strip>;
|
|
1328
|
+
};
|
|
1160
1329
|
create: {
|
|
1161
1330
|
readonly description: string;
|
|
1162
1331
|
readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1189,6 +1358,7 @@ export declare const publicContractsV1: {
|
|
|
1189
1358
|
readonly name: "issue.create";
|
|
1190
1359
|
readonly output: z.ZodObject<{
|
|
1191
1360
|
issue: z.ZodObject<{
|
|
1361
|
+
coveredFlowIds: z.ZodArray<PublicIdSchema>;
|
|
1192
1362
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1193
1363
|
description: z.ZodString;
|
|
1194
1364
|
issueId: PublicIdSchema;
|
|
@@ -1249,6 +1419,7 @@ export declare const publicContractsV1: {
|
|
|
1249
1419
|
readonly name: "issue.find";
|
|
1250
1420
|
readonly output: z.ZodObject<{
|
|
1251
1421
|
issues: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
coveredFlowIds: z.ZodArray<PublicIdSchema>;
|
|
1252
1423
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1253
1424
|
description: z.ZodString;
|
|
1254
1425
|
issueId: PublicIdSchema;
|
|
@@ -1295,6 +1466,7 @@ export declare const publicContractsV1: {
|
|
|
1295
1466
|
readonly name: "issue.get";
|
|
1296
1467
|
readonly output: z.ZodObject<{
|
|
1297
1468
|
issue: z.ZodObject<{
|
|
1469
|
+
coveredFlowIds: z.ZodArray<PublicIdSchema>;
|
|
1298
1470
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1299
1471
|
description: z.ZodString;
|
|
1300
1472
|
issueId: PublicIdSchema;
|
|
@@ -1357,6 +1529,7 @@ export declare const publicContractsV1: {
|
|
|
1357
1529
|
readonly name: "issue.update";
|
|
1358
1530
|
readonly output: z.ZodObject<{
|
|
1359
1531
|
issue: z.ZodObject<{
|
|
1532
|
+
coveredFlowIds: z.ZodArray<PublicIdSchema>;
|
|
1360
1533
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
1361
1534
|
description: z.ZodString;
|
|
1362
1535
|
issueId: PublicIdSchema;
|
|
@@ -1457,13 +1630,74 @@ export declare const publicContractsV1: {
|
|
|
1457
1630
|
readonly name: "run.get";
|
|
1458
1631
|
readonly output: z.ZodObject<{
|
|
1459
1632
|
flows: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1633
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1634
|
+
completedAt: z.ZodISODateTime;
|
|
1635
|
+
kind: z.ZodLiteral<"automated">;
|
|
1636
|
+
startedAt: z.ZodISODateTime;
|
|
1637
|
+
status: z.ZodLiteral<"passed">;
|
|
1638
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
1639
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1640
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1641
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1642
|
+
completedAt: z.ZodISODateTime;
|
|
1643
|
+
kind: z.ZodLiteral<"automated">;
|
|
1644
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1645
|
+
status: z.ZodLiteral<"failed">;
|
|
1646
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
1647
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1648
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1649
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1650
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1651
|
+
kind: z.ZodLiteral<"automated">;
|
|
1652
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1653
|
+
status: z.ZodLiteral<"canceled">;
|
|
1654
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
1655
|
+
completedAt: z.ZodISODateTime;
|
|
1656
|
+
kind: z.ZodLiteral<"manual">;
|
|
1657
|
+
startedAt: z.ZodISODateTime;
|
|
1658
|
+
status: z.ZodLiteral<"passed">;
|
|
1659
|
+
}, z.core.$strip>]>>>;
|
|
1460
1660
|
failure: z.ZodObject<{
|
|
1661
|
+
diagnosis: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
issueId: PublicIdSchema;
|
|
1663
|
+
type: z.ZodEnum<{
|
|
1664
|
+
bug: "bug";
|
|
1665
|
+
maintenance: "maintenance";
|
|
1666
|
+
}>;
|
|
1667
|
+
}, z.core.$strip>>;
|
|
1461
1668
|
error: z.ZodString;
|
|
1462
1669
|
}, z.core.$strip>;
|
|
1463
1670
|
flowId: PublicIdSchema;
|
|
1464
1671
|
name: z.ZodString;
|
|
1465
1672
|
status: z.ZodLiteral<"failed">;
|
|
1466
1673
|
}, z.core.$strip>, z.ZodObject<{
|
|
1674
|
+
attempts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1675
|
+
completedAt: z.ZodISODateTime;
|
|
1676
|
+
kind: z.ZodLiteral<"automated">;
|
|
1677
|
+
startedAt: z.ZodISODateTime;
|
|
1678
|
+
status: z.ZodLiteral<"passed">;
|
|
1679
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
1680
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1681
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1682
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1683
|
+
completedAt: z.ZodISODateTime;
|
|
1684
|
+
kind: z.ZodLiteral<"automated">;
|
|
1685
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1686
|
+
status: z.ZodLiteral<"failed">;
|
|
1687
|
+
logsUrl: z.ZodOptional<z.ZodURL>;
|
|
1688
|
+
traceUrl: z.ZodOptional<z.ZodURL>;
|
|
1689
|
+
videoUrl: z.ZodOptional<z.ZodURL>;
|
|
1690
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1691
|
+
completedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1692
|
+
kind: z.ZodLiteral<"automated">;
|
|
1693
|
+
startedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
1694
|
+
status: z.ZodLiteral<"canceled">;
|
|
1695
|
+
}, z.core.$strip>], "status">, z.ZodObject<{
|
|
1696
|
+
completedAt: z.ZodISODateTime;
|
|
1697
|
+
kind: z.ZodLiteral<"manual">;
|
|
1698
|
+
startedAt: z.ZodISODateTime;
|
|
1699
|
+
status: z.ZodLiteral<"passed">;
|
|
1700
|
+
}, z.core.$strip>]>>>;
|
|
1467
1701
|
flowId: PublicIdSchema;
|
|
1468
1702
|
name: z.ZodString;
|
|
1469
1703
|
status: z.ZodEnum<{
|
|
@@ -1545,7 +1779,7 @@ export declare const publicContractsV1: {
|
|
|
1545
1779
|
}, z.core.$strip>;
|
|
1546
1780
|
};
|
|
1547
1781
|
performAction: {
|
|
1548
|
-
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect.
|
|
1782
|
+
readonly description: "Perform one raw browser action on an interactive runner: click, double_click, move, drag, scroll, keypress, type, or navigate. Coordinates are whole pixels on the runner's virtual desktop, in the same space as `runner.takeScreenshot`. One action per request, and the runner serves one at a time. The action shapes follow the computer-use vocabulary, minus `screenshot` (use `runner.takeScreenshot`) and `wait` (delay on the caller's side). `performed` if the action took effect. `action-failed`, with a reason, if it reached the runner and did not take effect. On a runner image with a browser, the first action on a runner that has never run anything starts its browser and waits for it, so it can take up to a minute to answer — no `runner.runFlow` is needed before acting; if the browser is still starting when the wait runs out, the answer is `screen-not-ready` and retrying converges. `screen-needs-a-run` if the browser could not be started that way — usually a runner whose runs all finished without starting its desktop; call `runner.runFlow` with a flow that opens a browser. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. A `navigate` does not go through the screen, so a screen that is not ready does not stop it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` runner instead. `runner-unreachable` if the runner could not be reached: it may still be starting, it may have terminated after inactivity, or it may have stopped answering mid-action. This does not mean the action was not performed — take a screenshot before repeating it.";
|
|
1549
1783
|
readonly input: z.ZodObject<{
|
|
1550
1784
|
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1551
1785
|
button: z.ZodLiteral<"left" | "right" | "wheel" | "back" | "forward">;
|
|
@@ -1677,7 +1911,7 @@ export declare const publicContractsV1: {
|
|
|
1677
1911
|
}, z.core.$strip>;
|
|
1678
1912
|
};
|
|
1679
1913
|
takeScreenshot: {
|
|
1680
|
-
readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner
|
|
1914
|
+
readonly description: "Take one screenshot of an interactive runner's screen. The image is the runner's whole virtual desktop, browser window and all. `screen-needs-a-run` if the runner's virtual desktop has never started. Waiting will not change this and retrying is pointless — call `runner.runFlow` with a flow that opens a browser, then ask for the screen again. On a runner image with a browser that has never run anything, any `runner.performAction` also starts the browser itself. Evaluating a snippet does not start the desktop. `screen-not-ready` if the runner has a screen that cannot serve this instant. Retry in a second or two: the desktop restarts when a run changes the display size, and it serves one see-or-act request at a time, so a screenshot or action already in flight is the usual reason. Do not submit a run to clear this — a run may restart the display and discard what is on it. `runner-has-no-screen` if this runner is not one that runs a browser on a virtual desktop. Nothing about it can be seen or driven, and retrying will never help — launch a `node20WithPlaywright` runner instead. `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.";
|
|
1681
1915
|
readonly input: z.ZodObject<{
|
|
1682
1916
|
id: z.ZodString;
|
|
1683
1917
|
}, z.core.$strip>;
|