@qawolf/api-contracts 0.99.0 → 0.100.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 (72) hide show
  1. package/README.md +1 -1
  2. package/dist/v1/build/create.d.ts +55 -0
  3. package/dist/v1/build/create.d.ts.map +1 -0
  4. package/dist/v1/build/create.js +59 -0
  5. package/dist/v1/build/create.js.map +1 -0
  6. package/dist/v1/build/get.d.ts +46 -0
  7. package/dist/v1/build/get.d.ts.map +1 -0
  8. package/dist/v1/build/get.js +29 -0
  9. package/dist/v1/build/get.js.map +1 -0
  10. package/dist/v1/build/index.d.ts +170 -0
  11. package/dist/v1/build/index.d.ts.map +1 -0
  12. package/dist/v1/build/index.js +13 -0
  13. package/dist/v1/build/index.js.map +1 -0
  14. package/dist/v1/build/list.d.ts +51 -0
  15. package/dist/v1/build/list.d.ts.map +1 -0
  16. package/dist/v1/build/list.js +53 -0
  17. package/dist/v1/build/list.js.map +1 -0
  18. package/dist/v1/build/requestUpload.d.ts +33 -0
  19. package/dist/v1/build/requestUpload.d.ts.map +1 -0
  20. package/dist/v1/build/requestUpload.js +54 -0
  21. package/dist/v1/build/requestUpload.js.map +1 -0
  22. package/dist/v1/build/resource.d.ts +40 -0
  23. package/dist/v1/build/resource.d.ts.map +1 -0
  24. package/dist/v1/build/resource.js +79 -0
  25. package/dist/v1/build/resource.js.map +1 -0
  26. package/dist/v1/index.d.ts +528 -28
  27. package/dist/v1/index.d.ts.map +1 -1
  28. package/dist/v1/index.js +4 -0
  29. package/dist/v1/index.js.map +1 -1
  30. package/dist/v1/investigation/finding.d.ts +5 -2
  31. package/dist/v1/investigation/finding.d.ts.map +1 -1
  32. package/dist/v1/investigation/finding.js +8 -1
  33. package/dist/v1/investigation/finding.js.map +1 -1
  34. package/dist/v1/investigation/get.d.ts +2 -0
  35. package/dist/v1/investigation/get.d.ts.map +1 -1
  36. package/dist/v1/investigation/index.d.ts +2 -0
  37. package/dist/v1/investigation/index.d.ts.map +1 -1
  38. package/dist/v1/issue/decideSuggestion.d.ts +77 -0
  39. package/dist/v1/issue/decideSuggestion.d.ts.map +1 -0
  40. package/dist/v1/issue/decideSuggestion.js +40 -0
  41. package/dist/v1/issue/decideSuggestion.js.map +1 -0
  42. package/dist/v1/runner/catalog.d.ts +14 -14
  43. package/dist/v1/runner/identity.d.ts +4 -4
  44. package/dist/v1/runner/index.d.ts +4 -4
  45. package/dist/v1/runner/inspectMobile.d.ts +3 -3
  46. package/dist/v1/runner/inspectMobile.js +3 -3
  47. package/dist/v1/runner/inspectMobile.js.map +1 -1
  48. package/dist/v1/runner/list.d.ts +2 -2
  49. package/dist/v1/runner/runFlow.d.ts +4 -4
  50. package/dist/v1/runner/takeScreenshot.d.ts +1 -1
  51. package/dist/v1/runner/takeScreenshot.js +1 -1
  52. package/dist/v1/trigger/configuration.d.ts +2 -0
  53. package/dist/v1/trigger/configuration.d.ts.map +1 -1
  54. package/dist/v1/trigger/configuration.js +4 -0
  55. package/dist/v1/trigger/configuration.js.map +1 -1
  56. package/dist/v1/trigger/create.d.ts +4 -0
  57. package/dist/v1/trigger/create.d.ts.map +1 -1
  58. package/dist/v1/trigger/deploymentFields.d.ts +1 -0
  59. package/dist/v1/trigger/deploymentFields.d.ts.map +1 -1
  60. package/dist/v1/trigger/find.d.ts +2 -0
  61. package/dist/v1/trigger/find.d.ts.map +1 -1
  62. package/dist/v1/trigger/get.d.ts +2 -0
  63. package/dist/v1/trigger/get.d.ts.map +1 -1
  64. package/dist/v1/trigger/index.d.ts +16 -0
  65. package/dist/v1/trigger/index.d.ts.map +1 -1
  66. package/dist/v1/trigger/lifecycle.d.ts +4 -0
  67. package/dist/v1/trigger/lifecycle.d.ts.map +1 -1
  68. package/dist/v1/trigger/resource.d.ts +2 -0
  69. package/dist/v1/trigger/resource.d.ts.map +1 -1
  70. package/dist/v1/trigger/update.d.ts +4 -0
  71. package/dist/v1/trigger/update.d.ts.map +1 -1
  72. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ Every contract declares `annotations` with explicit `readOnlyHint`, `destructive
14
14
 
15
15
  Every contract also requires `annotationJustifications`, with an explanation for each of those three hints. Keep each explanation specific to the tool, nonblank, and at most 200 characters so it fits the OpenAI submission form. Apex exposes these explanations in the QA Wolf extension `_meta["qawolf/annotationJustifications"]` on each MCP tool, including discovery before sign-in. This metadata does not replace the standard boolean annotations or change authorization. Submission authors can copy the explanations into the form; automatic import by OpenAI is not assumed.
16
16
 
17
- Annotations include downstream effects in connected integrations. Creating an environment can create a remote Git branch, and stopping a run can update external run-status messages and commit statuses, so both declare `openWorldHint: true`. Browser inspection, journal reads and browser screenshots refresh the runner's inactivity timer and can extend its billed lifetime. Mobile inspection does not refresh that timer and remains read-only; the shared screenshot contract declares `readOnlyHint: false` because its browser path does refresh it.
17
+ Annotations include downstream effects in connected integrations. Creating an environment can create a remote Git branch, and stopping a run can update external run-status messages and commit statuses, so both declare `openWorldHint: true`. Inspection, journal reads and screenshots refresh the runner's inactivity timer on every runner and can extend its billed lifetime, so their contracts declare `readOnlyHint: false`.
18
18
 
19
19
  Contracts are built by a factory that takes the id schemas as input. External consumers use `publicContractsV1`, which validates ids loosely (the server is the source of truth for id formats). The server instantiates `makeContractsV1` with its own strict id schemas, so the contract shape can never drift between the two sides while validation strictness stays server-owned.
20
20
 
@@ -0,0 +1,55 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeCreateBuildContract: <EnvironmentId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
4
+ environment: EnvironmentId;
5
+ workspace: WorkspaceId;
6
+ }) => {
7
+ readonly annotationJustifications: {
8
+ readonly destructiveHint: "Creates a build. With an environment, later runs there install it instead of the previous build.";
9
+ readonly openWorldHint: "Reads the uploaded file from QA Wolf storage only.";
10
+ readonly readOnlyHint: "Creates a build, and can create the environment it names.";
11
+ };
12
+ readonly annotations: {
13
+ readonly destructiveHint: false;
14
+ readonly openWorldHint: false;
15
+ readonly readOnlyHint: false;
16
+ };
17
+ readonly description: "Create a build from a file uploaded with build.requestUpload. Reads the app ID, name, version and build number from the file before it answers, or refuses a file that isn't an app. Calling it again with the same buildId answers the build the first call created, unchanged: a repeated call's branch, commitSha and environment are ignored.";
18
+ readonly input: z.ZodObject<{
19
+ branch: z.ZodOptional<z.ZodString>;
20
+ buildId: z.ZodString;
21
+ commitSha: z.ZodOptional<z.ZodString>;
22
+ environment: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
23
+ id: EnvironmentId;
24
+ }, z.core.$strict>, z.ZodObject<{
25
+ baseEphemeralEnvironment: z.ZodOptional<z.ZodString>;
26
+ ephemeral: z.ZodOptional<z.ZodBoolean>;
27
+ name: z.ZodString;
28
+ }, z.core.$strict>]>>;
29
+ workspaceId: z.ZodOptional<WorkspaceId>;
30
+ }, z.core.$strip>;
31
+ readonly kind: "write";
32
+ readonly name: "build.create";
33
+ readonly output: z.ZodObject<{
34
+ build: z.ZodObject<{
35
+ appId: z.ZodString;
36
+ appName: z.ZodOptional<z.ZodString>;
37
+ branch: z.ZodOptional<z.ZodString>;
38
+ buildNumber: z.ZodOptional<z.ZodString>;
39
+ commitSha: z.ZodOptional<z.ZodString>;
40
+ createdAt: z.ZodISODateTime;
41
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
42
+ environmentId: z.ZodOptional<EnvironmentId>;
43
+ fileName: z.ZodString;
44
+ id: z.ZodString;
45
+ platform: z.ZodEnum<{
46
+ android: "android";
47
+ ios: "ios";
48
+ }>;
49
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
50
+ version: z.ZodOptional<z.ZodString>;
51
+ url: z.ZodURL;
52
+ }, z.core.$strip>;
53
+ }, z.core.$strip>;
54
+ };
55
+ //# sourceMappingURL=create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../src/v1/build/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAQhD,eAAO,MAAM,uBAAuB,GAClC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEA,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { z } from "zod";
2
+ import { buildIdSchema, makeBuildEnvironmentSelectorSchema, makeBuildResourceSchema, } from "./resource.js";
3
+ export const makeCreateBuildContract = (ids) => {
4
+ const input = z
5
+ .object({
6
+ branch: z
7
+ .string()
8
+ .trim()
9
+ .min(1)
10
+ .max(255)
11
+ .optional()
12
+ .describe("The branch the build came from. Shown with the build."),
13
+ buildId: buildIdSchema.describe("The buildId build.requestUpload answered with. Upload the file first."),
14
+ commitSha: z
15
+ .string()
16
+ .trim()
17
+ .min(1)
18
+ .max(255)
19
+ .optional()
20
+ .describe("The commit the build came from. Shown with the build."),
21
+ environment: makeBuildEnvironmentSelectorSchema(ids)
22
+ .optional()
23
+ .describe("The environment whose runs install the build from now on, until a newer build of the same app and platform arrives. Omit for a build that only runs created with it install."),
24
+ workspaceId: ids.workspace
25
+ .optional()
26
+ .describe("The workspace of the build. Required when authenticating with an organization or user API key."),
27
+ })
28
+ .superRefine((value, context) => {
29
+ if (value.environment !== undefined &&
30
+ "name" in value.environment &&
31
+ value.environment.baseEphemeralEnvironment !== undefined &&
32
+ value.environment.ephemeral !== true) {
33
+ context.addIssue({
34
+ code: "custom",
35
+ message: "baseEphemeralEnvironment is only valid with ephemeral.",
36
+ path: ["environment", "baseEphemeralEnvironment"],
37
+ });
38
+ }
39
+ });
40
+ const output = z.object({ build: makeBuildResourceSchema(ids) });
41
+ return {
42
+ annotationJustifications: {
43
+ destructiveHint: "Creates a build. With an environment, later runs there install it instead of the previous build.",
44
+ openWorldHint: "Reads the uploaded file from QA Wolf storage only.",
45
+ readOnlyHint: "Creates a build, and can create the environment it names.",
46
+ },
47
+ annotations: {
48
+ destructiveHint: false,
49
+ openWorldHint: false,
50
+ readOnlyHint: false,
51
+ },
52
+ description: "Create a build from a file uploaded with build.requestUpload. Reads the app ID, name, version and build number from the file before it answers, or refuses a file that isn't an app. Calling it again with the same buildId answers the build the first call created, unchanged: a repeated call's branch, commitSha and environment are ignored.",
53
+ input,
54
+ kind: "write",
55
+ name: "build.create",
56
+ output,
57
+ };
58
+ };
59
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/v1/build/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EACL,aAAa,EACb,kCAAkC,EAClC,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAGrC,GAGD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,MAAM,EAAE,CAAC;aACN,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,uDAAuD,CAAC;QACpE,OAAO,EAAE,aAAa,CAAC,QAAQ,CAC7B,uEAAuE,CACxE;QACD,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,EAAE;aACV,QAAQ,CAAC,uDAAuD,CAAC;QACpE,WAAW,EAAE,kCAAkC,CAAC,GAAG,CAAC;aACjD,QAAQ,EAAE;aACV,QAAQ,CACP,8KAA8K,CAC/K;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,gGAAgG,CACjG;KACJ,CAAC;SACD,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QAC9B,IACE,KAAK,CAAC,WAAW,KAAK,SAAS;YAC/B,MAAM,IAAI,KAAK,CAAC,WAAW;YAC3B,KAAK,CAAC,WAAW,CAAC,wBAAwB,KAAK,SAAS;YACxD,KAAK,CAAC,WAAW,CAAC,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,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEjE,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,kGAAkG;YACpG,aAAa,EAAE,oDAAoD;YACnE,YAAY,EAAE,2DAA2D;SAC1E;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,mVAAmV;QACrV,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,cAAc;QACpB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeGetBuildContract: <EnvironmentId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
4
+ environment: EnvironmentId;
5
+ workspace: WorkspaceId;
6
+ }) => {
7
+ readonly annotationJustifications: {
8
+ readonly destructiveHint: "Does not change the build.";
9
+ readonly openWorldHint: "Reads QA Wolf data only.";
10
+ readonly readOnlyHint: "Reads one build.";
11
+ };
12
+ readonly annotations: {
13
+ readonly destructiveHint: false;
14
+ readonly openWorldHint: false;
15
+ readonly readOnlyHint: true;
16
+ };
17
+ readonly description: "Get a build: its app, platform, version and environment. Deleted builds are returned too.";
18
+ readonly input: z.ZodObject<{
19
+ buildId: z.ZodString;
20
+ workspaceId: z.ZodOptional<WorkspaceId>;
21
+ }, z.core.$strip>;
22
+ readonly kind: "read";
23
+ readonly name: "build.get";
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=get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/v1/build/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,oBAAoB,GAC/B,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCA,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from "zod";
2
+ import { buildIdSchema, makeBuildResourceSchema } from "./resource.js";
3
+ export const makeGetBuildContract = (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: "Does not change the build.",
14
+ openWorldHint: "Reads QA Wolf data only.",
15
+ readOnlyHint: "Reads one build.",
16
+ },
17
+ annotations: {
18
+ destructiveHint: false,
19
+ openWorldHint: false,
20
+ readOnlyHint: true,
21
+ },
22
+ description: "Get a build: its app, platform, version and environment. Deleted builds are returned too.",
23
+ input,
24
+ kind: "read",
25
+ name: "build.get",
26
+ output,
27
+ };
28
+ };
29
+ //# sourceMappingURL=get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/v1/build/get.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,oBAAoB,GAAG,CAGlC,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,EAAE,4BAA4B;YAC7C,aAAa,EAAE,0BAA0B;YACzC,YAAY,EAAE,kBAAkB;SACjC;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,2FAA2F;QAC7F,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,WAAW;QACjB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,170 @@
1
+ import type { PublicIdSchema } from "../ids.js";
2
+ export { maxBuildFileBytes } from "./requestUpload.js";
3
+ export { buildIdSchema, buildPlatformSchema, makeBuildResourceSchema, } from "./resource.js";
4
+ export declare const makeBuildContracts: <EnvironmentId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
5
+ environment: EnvironmentId;
6
+ workspace: WorkspaceId;
7
+ }) => {
8
+ create: {
9
+ readonly annotationJustifications: {
10
+ readonly destructiveHint: "Creates a build. With an environment, later runs there install it instead of the previous build.";
11
+ readonly openWorldHint: "Reads the uploaded file from QA Wolf storage only.";
12
+ readonly readOnlyHint: "Creates a build, and can create the environment it names.";
13
+ };
14
+ readonly annotations: {
15
+ readonly destructiveHint: false;
16
+ readonly openWorldHint: false;
17
+ readonly readOnlyHint: false;
18
+ };
19
+ readonly description: "Create a build from a file uploaded with build.requestUpload. Reads the app ID, name, version and build number from the file before it answers, or refuses a file that isn't an app. Calling it again with the same buildId answers the build the first call created, unchanged: a repeated call's branch, commitSha and environment are ignored.";
20
+ readonly input: import("zod").ZodObject<{
21
+ branch: import("zod").ZodOptional<import("zod").ZodString>;
22
+ buildId: import("zod").ZodString;
23
+ commitSha: import("zod").ZodOptional<import("zod").ZodString>;
24
+ environment: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
25
+ id: EnvironmentId;
26
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
27
+ baseEphemeralEnvironment: import("zod").ZodOptional<import("zod").ZodString>;
28
+ ephemeral: import("zod").ZodOptional<import("zod").ZodBoolean>;
29
+ name: import("zod").ZodString;
30
+ }, import("zod/v4/core").$strict>]>>;
31
+ workspaceId: import("zod").ZodOptional<WorkspaceId>;
32
+ }, import("zod/v4/core").$strip>;
33
+ readonly kind: "write";
34
+ readonly name: "build.create";
35
+ readonly output: import("zod").ZodObject<{
36
+ build: import("zod").ZodObject<{
37
+ appId: import("zod").ZodString;
38
+ appName: import("zod").ZodOptional<import("zod").ZodString>;
39
+ branch: import("zod").ZodOptional<import("zod").ZodString>;
40
+ buildNumber: import("zod").ZodOptional<import("zod").ZodString>;
41
+ commitSha: import("zod").ZodOptional<import("zod").ZodString>;
42
+ createdAt: import("zod").ZodISODateTime;
43
+ deletedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
44
+ environmentId: import("zod").ZodOptional<EnvironmentId>;
45
+ fileName: import("zod").ZodString;
46
+ id: import("zod").ZodString;
47
+ platform: import("zod").ZodEnum<{
48
+ android: "android";
49
+ ios: "ios";
50
+ }>;
51
+ sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
52
+ version: import("zod").ZodOptional<import("zod").ZodString>;
53
+ url: import("zod").ZodURL;
54
+ }, import("zod/v4/core").$strip>;
55
+ }, import("zod/v4/core").$strip>;
56
+ };
57
+ get: {
58
+ readonly annotationJustifications: {
59
+ readonly destructiveHint: "Does not change the build.";
60
+ readonly openWorldHint: "Reads QA Wolf data only.";
61
+ readonly readOnlyHint: "Reads one build.";
62
+ };
63
+ readonly annotations: {
64
+ readonly destructiveHint: false;
65
+ readonly openWorldHint: false;
66
+ readonly readOnlyHint: true;
67
+ };
68
+ readonly description: "Get a build: its app, platform, version and environment. Deleted builds are returned too.";
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: "read";
74
+ readonly name: "build.get";
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
+ };
97
+ list: {
98
+ readonly annotationJustifications: {
99
+ readonly destructiveHint: "Does not change any build.";
100
+ readonly openWorldHint: "Reads QA Wolf data only.";
101
+ readonly readOnlyHint: "Lists builds.";
102
+ };
103
+ readonly annotations: {
104
+ readonly destructiveHint: false;
105
+ readonly openWorldHint: false;
106
+ readonly readOnlyHint: true;
107
+ };
108
+ readonly description: "List the workspace's undeleted builds, newest first. With latestOnly, list what the environment's next run installs.";
109
+ readonly input: import("zod").ZodObject<{
110
+ cursor: import("zod").ZodOptional<import("zod").ZodString>;
111
+ limit: import("zod").ZodDefault<import("zod").ZodNumber>;
112
+ appId: import("zod").ZodOptional<import("zod").ZodString>;
113
+ environmentId: import("zod").ZodOptional<EnvironmentId>;
114
+ latestOnly: import("zod").ZodDefault<import("zod").ZodBoolean>;
115
+ workspaceId: import("zod").ZodOptional<WorkspaceId>;
116
+ }, import("zod/v4/core").$strip>;
117
+ readonly kind: "read";
118
+ readonly name: "build.list";
119
+ readonly output: import("zod").ZodObject<{
120
+ builds: import("zod").ZodArray<import("zod").ZodObject<{
121
+ appId: import("zod").ZodString;
122
+ appName: import("zod").ZodOptional<import("zod").ZodString>;
123
+ branch: import("zod").ZodOptional<import("zod").ZodString>;
124
+ buildNumber: import("zod").ZodOptional<import("zod").ZodString>;
125
+ commitSha: import("zod").ZodOptional<import("zod").ZodString>;
126
+ createdAt: import("zod").ZodISODateTime;
127
+ deletedAt: import("zod").ZodOptional<import("zod").ZodISODateTime>;
128
+ environmentId: import("zod").ZodOptional<EnvironmentId>;
129
+ fileName: import("zod").ZodString;
130
+ id: import("zod").ZodString;
131
+ platform: import("zod").ZodEnum<{
132
+ android: "android";
133
+ ios: "ios";
134
+ }>;
135
+ sizeBytes: import("zod").ZodOptional<import("zod").ZodNumber>;
136
+ version: import("zod").ZodOptional<import("zod").ZodString>;
137
+ url: import("zod").ZodURL;
138
+ }, import("zod/v4/core").$strip>>;
139
+ nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
140
+ }, import("zod/v4/core").$strip>;
141
+ };
142
+ requestUpload: {
143
+ readonly annotationJustifications: {
144
+ readonly destructiveHint: "The URL only creates a new file. It cannot overwrite or delete one.";
145
+ readonly openWorldHint: "The upload target is QA Wolf's run inputs storage, not an external service.";
146
+ readonly readOnlyHint: "Returns an expiring URL that permits writing one file to the workspace's storage.";
147
+ };
148
+ readonly annotations: {
149
+ readonly destructiveHint: false;
150
+ readonly openWorldHint: false;
151
+ readonly readOnlyHint: false;
152
+ };
153
+ readonly description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 500 MB. PUT the file there with uploadHeaders, then call build.create with the buildId.";
154
+ readonly input: import("zod").ZodObject<{
155
+ buildId: import("zod").ZodOptional<import("zod").ZodString>;
156
+ fileName: import("zod").ZodString;
157
+ fileSizeBytes: import("zod").ZodNumber;
158
+ workspaceId: import("zod").ZodOptional<WorkspaceId>;
159
+ }, import("zod/v4/core").$strip>;
160
+ readonly kind: "write";
161
+ readonly name: "build.requestUpload";
162
+ readonly output: import("zod").ZodObject<{
163
+ buildId: import("zod").ZodString;
164
+ expiresAt: import("zod").ZodISODateTime;
165
+ uploadHeaders: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
166
+ uploadUrl: import("zod").ZodString;
167
+ }, import("zod/v4/core").$strip>;
168
+ };
169
+ };
170
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,13 @@
1
+ import { makeCreateBuildContract } from "./create.js";
2
+ import { makeGetBuildContract } from "./get.js";
3
+ import { makeListBuildsContract } from "./list.js";
4
+ import { makeRequestBuildUploadContract } from "./requestUpload.js";
5
+ export { maxBuildFileBytes } from "./requestUpload.js";
6
+ export { buildIdSchema, buildPlatformSchema, makeBuildResourceSchema, } from "./resource.js";
7
+ export const makeBuildContracts = (ids) => ({
8
+ create: makeCreateBuildContract(ids),
9
+ get: makeGetBuildContract(ids),
10
+ list: makeListBuildsContract(ids),
11
+ requestUpload: makeRequestBuildUploadContract(ids),
12
+ });
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAGhC,GAGD,EAAE,EAAE,CAAC,CAAC;IACL,MAAM,EAAE,uBAAuB,CAAC,GAAG,CAAC;IACpC,GAAG,EAAE,oBAAoB,CAAC,GAAG,CAAC;IAC9B,IAAI,EAAE,sBAAsB,CAAC,GAAG,CAAC;IACjC,aAAa,EAAE,8BAA8B,CAAC,GAAG,CAAC;CACnD,CAAC,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const makeListBuildsContract: <EnvironmentId extends PublicIdSchema, WorkspaceId extends PublicIdSchema>(ids: {
4
+ environment: EnvironmentId;
5
+ workspace: WorkspaceId;
6
+ }) => {
7
+ readonly annotationJustifications: {
8
+ readonly destructiveHint: "Does not change any build.";
9
+ readonly openWorldHint: "Reads QA Wolf data only.";
10
+ readonly readOnlyHint: "Lists builds.";
11
+ };
12
+ readonly annotations: {
13
+ readonly destructiveHint: false;
14
+ readonly openWorldHint: false;
15
+ readonly readOnlyHint: true;
16
+ };
17
+ readonly description: "List the workspace's undeleted builds, newest first. With latestOnly, list what the environment's next run installs.";
18
+ readonly input: z.ZodObject<{
19
+ cursor: z.ZodOptional<z.ZodString>;
20
+ limit: z.ZodDefault<z.ZodNumber>;
21
+ appId: z.ZodOptional<z.ZodString>;
22
+ environmentId: z.ZodOptional<EnvironmentId>;
23
+ latestOnly: z.ZodDefault<z.ZodBoolean>;
24
+ workspaceId: z.ZodOptional<WorkspaceId>;
25
+ }, z.core.$strip>;
26
+ readonly kind: "read";
27
+ readonly name: "build.list";
28
+ readonly output: z.ZodObject<{
29
+ builds: z.ZodArray<z.ZodObject<{
30
+ appId: z.ZodString;
31
+ appName: z.ZodOptional<z.ZodString>;
32
+ branch: z.ZodOptional<z.ZodString>;
33
+ buildNumber: z.ZodOptional<z.ZodString>;
34
+ commitSha: z.ZodOptional<z.ZodString>;
35
+ createdAt: z.ZodISODateTime;
36
+ deletedAt: z.ZodOptional<z.ZodISODateTime>;
37
+ environmentId: z.ZodOptional<EnvironmentId>;
38
+ fileName: z.ZodString;
39
+ id: z.ZodString;
40
+ platform: z.ZodEnum<{
41
+ android: "android";
42
+ ios: "ios";
43
+ }>;
44
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
45
+ version: z.ZodOptional<z.ZodString>;
46
+ url: z.ZodURL;
47
+ }, z.core.$strip>>;
48
+ nextCursor: z.ZodOptional<z.ZodString>;
49
+ }, z.core.$strip>;
50
+ };
51
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/v1/build/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAKhD,eAAO,MAAM,sBAAsB,GACjC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DA,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { z } from "zod";
2
+ import { makePaginationInputFields, nextCursorSchema } from "../pagination.js";
3
+ import { makeBuildResourceSchema } from "./resource.js";
4
+ export const makeListBuildsContract = (ids) => {
5
+ const input = z
6
+ .object({
7
+ appId: z
8
+ .string()
9
+ .trim()
10
+ .min(1)
11
+ .optional()
12
+ .describe("Only list builds of this package name or bundle ID."),
13
+ environmentId: ids.environment
14
+ .optional()
15
+ .describe("Only list builds on this environment."),
16
+ latestOnly: z
17
+ .boolean()
18
+ .default(false)
19
+ .describe("List only the builds the environment's next run installs: the newest undeleted build of each app and platform. Requires environmentId."),
20
+ workspaceId: ids.workspace
21
+ .optional()
22
+ .describe("The workspace to list builds from. Required when authenticating with an organization or user API key."),
23
+ ...makePaginationInputFields({ defaultLimit: 20, maxLimit: 100 }),
24
+ })
25
+ .refine((value) => !value.latestOnly || value.environmentId !== undefined, {
26
+ message: "latestOnly requires environmentId.",
27
+ path: ["latestOnly"],
28
+ });
29
+ const output = z.object({
30
+ builds: z
31
+ .array(makeBuildResourceSchema(ids))
32
+ .describe("Undeleted builds, newest first."),
33
+ nextCursor: nextCursorSchema,
34
+ });
35
+ return {
36
+ annotationJustifications: {
37
+ destructiveHint: "Does not change any build.",
38
+ openWorldHint: "Reads QA Wolf data only.",
39
+ readOnlyHint: "Lists builds.",
40
+ },
41
+ annotations: {
42
+ destructiveHint: false,
43
+ openWorldHint: false,
44
+ readOnlyHint: true,
45
+ },
46
+ description: "List the workspace's undeleted builds, newest first. With latestOnly, list what the environment's next run installs.",
47
+ input,
48
+ kind: "read",
49
+ name: "build.list",
50
+ output,
51
+ };
52
+ };
53
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/v1/build/list.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,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAGpC,GAGD,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC;SACZ,MAAM,CAAC;QACN,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,IAAI,EAAE;aACN,GAAG,CAAC,CAAC,CAAC;aACN,QAAQ,EAAE;aACV,QAAQ,CAAC,qDAAqD,CAAC;QAClE,aAAa,EAAE,GAAG,CAAC,WAAW;aAC3B,QAAQ,EAAE;aACV,QAAQ,CAAC,uCAAuC,CAAC;QACpD,UAAU,EAAE,CAAC;aACV,OAAO,EAAE;aACT,OAAO,CAAC,KAAK,CAAC;aACd,QAAQ,CACP,wIAAwI,CACzI;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,uGAAuG,CACxG;QACH,GAAG,yBAAyB,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;KAClE,CAAC;SACD,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS,EAAE;QACzE,OAAO,EAAE,oCAAoC;QAC7C,IAAI,EAAE,CAAC,YAAY,CAAC;KACrB,CAAC,CAAC;IACL,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,MAAM,EAAE,CAAC;aACN,KAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC;aACnC,QAAQ,CAAC,iCAAiC,CAAC;QAC9C,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EAAE,4BAA4B;YAC7C,aAAa,EAAE,0BAA0B;YACzC,YAAY,EAAE,eAAe;SAC9B;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,IAAI;SACnB;QACD,WAAW,EACT,sHAAsH;QACxH,KAAK;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { z } from "zod";
2
+ import type { PublicIdSchema } from "../ids.js";
3
+ export declare const maxBuildFileBytes: number;
4
+ export declare const makeRequestBuildUploadContract: <WorkspaceId extends PublicIdSchema>(ids: {
5
+ workspace: WorkspaceId;
6
+ }) => {
7
+ readonly annotationJustifications: {
8
+ readonly destructiveHint: "The URL only creates a new file. It cannot overwrite or delete one.";
9
+ readonly openWorldHint: "The upload target is QA Wolf's run inputs storage, not an external service.";
10
+ readonly readOnlyHint: "Returns an expiring URL that permits writing one file to the workspace's storage.";
11
+ };
12
+ readonly annotations: {
13
+ readonly destructiveHint: false;
14
+ readonly openWorldHint: false;
15
+ readonly readOnlyHint: false;
16
+ };
17
+ readonly description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 500 MB. PUT the file there with uploadHeaders, then call build.create with the buildId.";
18
+ readonly input: z.ZodObject<{
19
+ buildId: z.ZodOptional<z.ZodString>;
20
+ fileName: z.ZodString;
21
+ fileSizeBytes: z.ZodNumber;
22
+ workspaceId: z.ZodOptional<WorkspaceId>;
23
+ }, z.core.$strip>;
24
+ readonly kind: "write";
25
+ readonly name: "build.requestUpload";
26
+ readonly output: z.ZodObject<{
27
+ buildId: z.ZodString;
28
+ expiresAt: z.ZodISODateTime;
29
+ uploadHeaders: z.ZodRecord<z.ZodString, z.ZodString>;
30
+ uploadUrl: z.ZodString;
31
+ }, z.core.$strip>;
32
+ };
33
+ //# sourceMappingURL=requestUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestUpload.d.ts","sourceRoot":"","sources":["../../../src/v1/build/requestUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAIhD,eAAO,MAAM,iBAAiB,QAAoB,CAAC;AAEnD,eAAO,MAAM,8BAA8B,GACzC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;CA6EA,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { z } from "zod";
2
+ import { buildIdSchema } from "./resource.js";
3
+ export const maxBuildFileBytes = 500 * 1024 * 1024;
4
+ export const makeRequestBuildUploadContract = (ids) => {
5
+ const input = z.object({
6
+ buildId: buildIdSchema
7
+ .optional()
8
+ .describe("Send the buildId of an earlier answer to get a fresh URL for the same build. Omit for a new build."),
9
+ fileName: z
10
+ .string()
11
+ .regex(/^[A-Za-z0-9._-]{1,255}$/, "A file name is one path segment of letters, digits, dots, dashes and underscores, at most 255 characters.")
12
+ .refine((fileName) => /\.(apk|aab|ipa)$/i.test(fileName), "A build is an .apk, .aab or .ipa file.")
13
+ .describe("The file's name, such as `app-release.apk`, `app-release.aab` or `App.ipa`. Its extension sets the platform."),
14
+ fileSizeBytes: z
15
+ .number()
16
+ .int()
17
+ .min(1)
18
+ .max(maxBuildFileBytes)
19
+ .describe("The file's exact size in bytes, at most 500 MB. The URL accepts only a file of this size."),
20
+ workspaceId: ids.workspace
21
+ .optional()
22
+ .describe("The workspace to upload into. Required when authenticating with an organization or user API key."),
23
+ });
24
+ const output = z.object({
25
+ buildId: buildIdSchema.describe("Send this to build.create after the PUT."),
26
+ expiresAt: z.iso
27
+ .datetime()
28
+ .describe("When uploadUrl stops working. Request another one after it."),
29
+ uploadHeaders: z
30
+ .record(z.string(), z.string())
31
+ .describe("Send these headers with the PUT, exactly. The URL is signed for them."),
32
+ uploadUrl: z
33
+ .string()
34
+ .describe("Send the file's bytes here with a single HTTP PUT carrying uploadHeaders, for example `curl -X PUT -H 'Content-Type: application/octet-stream' -H 'x-goog-if-generation-match: 0' --upload-file app.apk \"<uploadUrl>\"`. The URL only creates the file: it refuses to overwrite one."),
35
+ });
36
+ return {
37
+ annotationJustifications: {
38
+ destructiveHint: "The URL only creates a new file. It cannot overwrite or delete one.",
39
+ openWorldHint: "The upload target is QA Wolf's run inputs storage, not an external service.",
40
+ readOnlyHint: "Returns an expiring URL that permits writing one file to the workspace's storage.",
41
+ },
42
+ annotations: {
43
+ destructiveHint: false,
44
+ openWorldHint: false,
45
+ readOnlyHint: false,
46
+ },
47
+ description: "Get a URL to upload an app build: an .apk, .aab or .ipa, up to 500 MB. PUT the file there with uploadHeaders, then call build.create with the buildId.",
48
+ input,
49
+ kind: "write",
50
+ name: "build.requestUpload",
51
+ output,
52
+ };
53
+ };
54
+ //# sourceMappingURL=requestUpload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestUpload.js","sourceRoot":"","sources":["../../../src/v1/build/requestUpload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAE5C,GAED,EAAE,EAAE;IACH,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,aAAa;aACnB,QAAQ,EAAE;aACV,QAAQ,CACP,oGAAoG,CACrG;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,KAAK,CACJ,yBAAyB,EACzB,2GAA2G,CAC5G;aACA,MAAM,CACL,CAAC,QAAQ,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAChD,wCAAwC,CACzC;aACA,QAAQ,CACP,8GAA8G,CAC/G;QACH,aAAa,EAAE,CAAC;aACb,MAAM,EAAE;aACR,GAAG,EAAE;aACL,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,iBAAiB,CAAC;aACtB,QAAQ,CACP,2FAA2F,CAC5F;QACH,WAAW,EAAE,GAAG,CAAC,SAAS;aACvB,QAAQ,EAAE;aACV,QAAQ,CACP,kGAAkG,CACnG;KACJ,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;QACtB,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,0CAA0C,CAAC;QAC3E,SAAS,EAAE,CAAC,CAAC,GAAG;aACb,QAAQ,EAAE;aACV,QAAQ,CAAC,6DAA6D,CAAC;QAC1E,aAAa,EAAE,CAAC;aACb,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;aAC9B,QAAQ,CACP,uEAAuE,CACxE;QACH,SAAS,EAAE,CAAC;aACT,MAAM,EAAE;aACR,QAAQ,CACP,uRAAuR,CACxR;KACJ,CAAC,CAAC;IAEH,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qEAAqE;YACvE,aAAa,EACX,6EAA6E;YAC/E,YAAY,EACV,mFAAmF;SACtF;QACD,WAAW,EAAE;YACX,eAAe,EAAE,KAAK;YACtB,aAAa,EAAE,KAAK;YACpB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,wJAAwJ;QAC1J,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,qBAAqB;QAC3B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}