@qawolf/api-contracts 0.135.0 → 0.140.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 (78) hide show
  1. package/LICENSE +21 -0
  2. package/dist/v1/build/create.d.ts +1 -4
  3. package/dist/v1/build/create.d.ts.map +1 -1
  4. package/dist/v1/build/delete.d.ts +2 -5
  5. package/dist/v1/build/delete.d.ts.map +1 -1
  6. package/dist/v1/build/delete.js +1 -1
  7. package/dist/v1/build/delete.js.map +1 -1
  8. package/dist/v1/build/get.d.ts +1 -4
  9. package/dist/v1/build/get.d.ts.map +1 -1
  10. package/dist/v1/build/index.d.ts +6 -18
  11. package/dist/v1/build/index.d.ts.map +1 -1
  12. package/dist/v1/build/list.d.ts +1 -4
  13. package/dist/v1/build/list.d.ts.map +1 -1
  14. package/dist/v1/build/requestUpload.d.ts +1 -1
  15. package/dist/v1/build/requestUpload.js +3 -3
  16. package/dist/v1/build/requestUpload.js.map +1 -1
  17. package/dist/v1/build/resource.d.ts +2 -8
  18. package/dist/v1/build/resource.d.ts.map +1 -1
  19. package/dist/v1/build/resource.js +5 -6
  20. package/dist/v1/build/resource.js.map +1 -1
  21. package/dist/v1/codeHostIntegration/findForRepository.d.ts +51 -0
  22. package/dist/v1/codeHostIntegration/findForRepository.d.ts.map +1 -0
  23. package/dist/v1/codeHostIntegration/findForRepository.js +90 -0
  24. package/dist/v1/codeHostIntegration/findForRepository.js.map +1 -0
  25. package/dist/v1/codeHostIntegration/index.d.ts +116 -0
  26. package/dist/v1/codeHostIntegration/index.d.ts.map +1 -1
  27. package/dist/v1/codeHostIntegration/index.js +8 -0
  28. package/dist/v1/codeHostIntegration/index.js.map +1 -1
  29. package/dist/v1/deployment/index.d.ts +21 -6
  30. package/dist/v1/deployment/index.d.ts.map +1 -1
  31. package/dist/v1/deployment/reportStatus.d.ts +21 -6
  32. package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
  33. package/dist/v1/deployment/reportStatus.js +1 -1
  34. package/dist/v1/deployment/reportStatus.js.map +1 -1
  35. package/dist/v1/deployment/reportStatusChanges.d.ts +21 -6
  36. package/dist/v1/deployment/reportStatusChanges.d.ts.map +1 -1
  37. package/dist/v1/deployment/reportStatusChanges.js +50 -5
  38. package/dist/v1/deployment/reportStatusChanges.js.map +1 -1
  39. package/dist/v1/extensibleValue.d.ts +8 -0
  40. package/dist/v1/extensibleValue.d.ts.map +1 -0
  41. package/dist/v1/extensibleValue.js +10 -0
  42. package/dist/v1/extensibleValue.js.map +1 -0
  43. package/dist/v1/index.d.ts +322 -84
  44. package/dist/v1/index.d.ts.map +1 -1
  45. package/dist/v1/index.js +6 -12
  46. package/dist/v1/index.js.map +1 -1
  47. package/dist/v1/investigation/finding.d.ts +1 -0
  48. package/dist/v1/investigation/finding.d.ts.map +1 -1
  49. package/dist/v1/investigation/finding.js +4 -0
  50. package/dist/v1/investigation/finding.js.map +1 -1
  51. package/dist/v1/investigation/get.d.ts +1 -0
  52. package/dist/v1/investigation/get.d.ts.map +1 -1
  53. package/dist/v1/investigation/index.d.ts +1 -0
  54. package/dist/v1/investigation/index.d.ts.map +1 -1
  55. package/dist/v1/run/get.d.ts +2 -8
  56. package/dist/v1/run/get.d.ts.map +1 -1
  57. package/dist/v1/run/versions.d.ts +1 -4
  58. package/dist/v1/run/versions.d.ts.map +1 -1
  59. package/dist/v1/run/versions.js +1 -8
  60. package/dist/v1/run/versions.js.map +1 -1
  61. package/dist/v1/runner/catalog.d.ts +10 -10
  62. package/dist/v1/runner/identity.d.ts +4 -4
  63. package/dist/v1/runner/index.d.ts +4 -4
  64. package/dist/v1/runner/list.d.ts +2 -2
  65. package/dist/v1/runner/runFlow.d.ts +4 -4
  66. package/dist/v1/tag/contracts.d.ts +62 -0
  67. package/dist/v1/tag/contracts.d.ts.map +1 -0
  68. package/dist/v1/tag/contracts.js +7 -0
  69. package/dist/v1/tag/contracts.js.map +1 -0
  70. package/dist/v1/usage/breakdown.d.ts +79 -0
  71. package/dist/v1/usage/breakdown.d.ts.map +1 -0
  72. package/dist/v1/usage/breakdown.js +99 -0
  73. package/dist/v1/usage/breakdown.js.map +1 -0
  74. package/dist/v1/usage/index.d.ts +79 -0
  75. package/dist/v1/usage/index.d.ts.map +1 -0
  76. package/dist/v1/usage/index.js +5 -0
  77. package/dist/v1/usage/index.js.map +1 -0
  78. package/package.json +7 -6
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/codeHostIntegration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/codeHostIntegration/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,gDAAgD,EAAE,MAAM,wBAAwB,CAAC;AAC1F,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,qCAAqC,EACrC,oCAAoC,GACrC,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAE9C,GAED,EAAE,EAAE,CAAC,CAAC;IACL,IAAI,EAAE,oCAAoC,CAAC,GAAG,CAAC;IAC/C,iBAAiB,EAAE,gDAAgD,CAAC,GAAG,CAAC;IACxE,gBAAgB,EAAE,oCAAoC,CAAC,GAAG,CAAC;CAC5D,CAAC,CAAC"}
@@ -194,17 +194,32 @@ export declare const makeDeploymentContracts: <DeploymentId extends PublicIdSche
194
194
  readonly input: import("zod").ZodObject<{
195
195
  builds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
196
196
  changes: import("zod").ZodOptional<import("zod").ZodObject<{
197
- items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
197
+ ci: import("zod").ZodOptional<import("zod").ZodString>;
198
+ items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
199
+ kind: import("zod").ZodLiteral<"pull-request">;
200
+ mergeCommitSha: import("zod").ZodOptional<import("zod").ZodString>;
201
+ number: import("zod").ZodOptional<import("zod").ZodNumber>;
202
+ changedPaths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
203
+ description: import("zod").ZodOptional<import("zod").ZodString>;
204
+ title: import("zod").ZodString;
205
+ url: import("zod").ZodOptional<import("zod").ZodURL>;
206
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
207
+ kind: import("zod").ZodLiteral<"commit">;
208
+ pullRequestNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
209
+ sha: import("zod").ZodOptional<import("zod").ZodString>;
198
210
  changedPaths: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
199
211
  description: import("zod").ZodOptional<import("zod").ZodString>;
200
- kind: import("zod").ZodEnum<{
201
- "pull-request": "pull-request";
202
- commit: "commit";
203
- }>;
204
212
  title: import("zod").ZodString;
205
213
  url: import("zod").ZodOptional<import("zod").ZodURL>;
206
- }, import("zod/v4/core").$strict>>>;
214
+ }, import("zod/v4/core").$strict>], "kind">>>;
207
215
  omittedCount: import("zod").ZodOptional<import("zod").ZodNumber>;
216
+ problems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
217
+ kind: import("zod").ZodLiteral<"filter-failed">;
218
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
219
+ kind: import("zod").ZodLiteral<"history-unavailable">;
220
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
221
+ kind: import("zod").ZodLiteral<"since-not-found">;
222
+ }, import("zod/v4/core").$strict>], "kind">>>;
208
223
  releaseNotes: import("zod").ZodOptional<import("zod").ZodString>;
209
224
  }, import("zod/v4/core").$strict>>;
210
225
  deployTarget: import("zod").ZodOptional<import("zod").ZodURL>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,uBAAuB,GAClC,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,KAAK,SAAS,cAAc,EAC5B,SAAS,SAAS,cAAc,EAChC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAMhD,eAAO,MAAM,uBAAuB,GAClC,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,KAAK,SAAS,cAAc,EAC5B,SAAS,SAAS,cAAc,EAChC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC;IACX,OAAO,EAAE,SAAS,CAAC;IACnB,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIC,CAAC"}
@@ -19,17 +19,32 @@ export declare const makeReportDeploymentStatusContract: <DeploymentId extends P
19
19
  readonly input: z.ZodObject<{
20
20
  builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
21
  changes: z.ZodOptional<z.ZodObject<{
22
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ ci: z.ZodOptional<z.ZodString>;
23
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
24
+ kind: z.ZodLiteral<"pull-request">;
25
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
26
+ number: z.ZodOptional<z.ZodNumber>;
23
27
  changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
24
28
  description: z.ZodOptional<z.ZodString>;
25
- kind: z.ZodEnum<{
26
- "pull-request": "pull-request";
27
- commit: "commit";
28
- }>;
29
29
  title: z.ZodString;
30
30
  url: z.ZodOptional<z.ZodURL>;
31
- }, z.core.$strict>>>;
31
+ }, z.core.$strict>, z.ZodObject<{
32
+ kind: z.ZodLiteral<"commit">;
33
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
34
+ sha: z.ZodOptional<z.ZodString>;
35
+ changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ description: z.ZodOptional<z.ZodString>;
37
+ title: z.ZodString;
38
+ url: z.ZodOptional<z.ZodURL>;
39
+ }, z.core.$strict>], "kind">>>;
32
40
  omittedCount: z.ZodOptional<z.ZodNumber>;
41
+ problems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
42
+ kind: z.ZodLiteral<"filter-failed">;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ kind: z.ZodLiteral<"history-unavailable">;
45
+ }, z.core.$strict>, z.ZodObject<{
46
+ kind: z.ZodLiteral<"since-not-found">;
47
+ }, z.core.$strict>], "kind">>>;
33
48
  releaseNotes: z.ZodOptional<z.ZodString>;
34
49
  }, z.core.$strict>>;
35
50
  deployTarget: z.ZodOptional<z.ZodURL>;
@@ -1 +1 @@
1
- {"version":3,"file":"reportStatus.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAehD,eAAO,MAAM,kCAAkC,GAC7C,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKA,CAAC"}
1
+ {"version":3,"file":"reportStatus.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAehD,eAAO,MAAM,kCAAkC,GAC7C,YAAY,SAAS,cAAc,EACnC,aAAa,SAAS,cAAc,EACpC,WAAW,SAAS,cAAc,EAClC,KAAK;IACL,UAAU,EAAE,YAAY,CAAC;IACzB,WAAW,EAAE,aAAa,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkKA,CAAC"}
@@ -51,7 +51,7 @@ export const makeReportDeploymentStatusContract = (ids) => {
51
51
  .optional()
52
52
  .describe("The builds this deployment ships, from build.create. Runs this deployment starts install them. A report that omits this field keeps the stored builds."),
53
53
  changes: deploymentReportChanges
54
- .describe("What the deployment changed, as text a reader can act on, which lets a trigger where QA Wolf chooses the flows work without a pull request: each merged pull request or pushed commit with its title, description and changed file paths, plus release notes. Code is never accepted: there is no field for diffs or file contents, and unknown keys are refused. A report that omits this field keeps the stored summary, a report that sends it replaces it, and one with no items and no release notes counts as not sent. Triggers are evaluated on the first success report, so send it on that report or earlier. In the QA Wolf CLI, pass it as one JSON value.")
54
+ .describe("What the deployment changed, as text a reader can act on, which lets a trigger where QA Wolf chooses the flows work without a pull request: each merged pull request or pushed commit with its title, description and changed file paths, plus release notes. Code is never accepted: there is no field for diffs or file contents, and unknown keys are refused. A report that omits this field keeps the stored summary, a report that sends it replaces it, and one with no items, no release notes and no problems counts as not sent. Triggers are evaluated on the first success report, so send it on that report or earlier. In the QA Wolf CLI, pass it as one JSON value.")
55
55
  .optional(),
56
56
  deployTarget: z
57
57
  .httpUrl()
@@ -1 +1 @@
1
- {"version":3,"file":"reportStatus.js","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE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,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,UAAU,GAAG,QAAQ,CACzB;QACE,EAAE,EAAE,GAAG,CAAC,UAAU;QAClB,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CACrC,sCAAsC,CACvC;KACF,EACD,EAAE,mBAAmB,EAAE,8CAA8C,EAAE,CACxE,CAAC;IACF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAExC,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qHAAqH;YACvH,aAAa,EACX,yGAAyG;YAC3G,YAAY,EACV,iHAAiH;SACpH;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,iaAAia;QACna,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,yBAAyB;QAC/B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"reportStatus.js","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,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O,CAAC,QAAQ,CAAC;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,wDAAwD;gBACjE,IAAI,EAAE,CAAC,aAAa,EAAE,0BAA0B,CAAC;aAClD,CAAC,CAAC;QACL,CAAC;IACH,CAAC,CAAC,CAAC;IACL,MAAM,UAAU,GAAG,QAAQ,CACzB;QACE,EAAE,EAAE,GAAG,CAAC,UAAU;QAClB,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CACrC,sCAAsC,CACvC;KACF,EACD,EAAE,mBAAmB,EAAE,8CAA8C,EAAE,CACxE,CAAC;IACF,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAExC,OAAO;QACL,wBAAwB,EAAE;YACxB,eAAe,EACb,qHAAqH;YACvH,aAAa,EACX,yGAAyG;YAC3G,YAAY,EACV,iHAAiH;SACpH;QACD,WAAW,EAAE;YACX,eAAe,EAAE,IAAI;YACrB,aAAa,EAAE,IAAI;YACnB,YAAY,EAAE,KAAK;SACpB;QACD,WAAW,EACT,iaAAia;QACna,KAAK;QACL,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,yBAAyB;QAC/B,MAAM;KAMP,CAAC;AACJ,CAAC,CAAC"}
@@ -1,16 +1,31 @@
1
1
  import { z } from "zod";
2
2
  export declare const deploymentReportChanges: z.ZodObject<{
3
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
3
+ ci: z.ZodOptional<z.ZodString>;
4
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
5
+ kind: z.ZodLiteral<"pull-request">;
6
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
7
+ number: z.ZodOptional<z.ZodNumber>;
4
8
  changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
5
9
  description: z.ZodOptional<z.ZodString>;
6
- kind: z.ZodEnum<{
7
- "pull-request": "pull-request";
8
- commit: "commit";
9
- }>;
10
10
  title: z.ZodString;
11
11
  url: z.ZodOptional<z.ZodURL>;
12
- }, z.core.$strict>>>;
12
+ }, z.core.$strict>, z.ZodObject<{
13
+ kind: z.ZodLiteral<"commit">;
14
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
15
+ sha: z.ZodOptional<z.ZodString>;
16
+ changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
+ description: z.ZodOptional<z.ZodString>;
18
+ title: z.ZodString;
19
+ url: z.ZodOptional<z.ZodURL>;
20
+ }, z.core.$strict>], "kind">>>;
13
21
  omittedCount: z.ZodOptional<z.ZodNumber>;
22
+ problems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
23
+ kind: z.ZodLiteral<"filter-failed">;
24
+ }, z.core.$strict>, z.ZodObject<{
25
+ kind: z.ZodLiteral<"history-unavailable">;
26
+ }, z.core.$strict>, z.ZodObject<{
27
+ kind: z.ZodLiteral<"since-not-found">;
28
+ }, z.core.$strict>], "kind">>>;
14
29
  releaseNotes: z.ZodOptional<z.ZodString>;
15
30
  }, z.core.$strict>;
16
31
  //# sourceMappingURL=reportStatusChanges.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reportStatusChanges.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatusChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkCxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;kBAyBjC,CAAC"}
1
+ {"version":3,"file":"reportStatusChanges.d.ts","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatusChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyFxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAqCjC,CAAC"}
@@ -1,7 +1,13 @@
1
1
  import { z } from "zod";
2
2
  const maxChangesBytes = 256 * 1024;
3
3
  const text = (max) => z.string().trim().min(1).max(max);
4
- const changeItem = z.strictObject({
4
+ const sha = (description) => z
5
+ .string()
6
+ .regex(/^[0-9a-f]{7,64}$/iu)
7
+ .describe(description)
8
+ .optional();
9
+ const number = (description) => z.number().int().positive().describe(description).optional();
10
+ const sharedFields = {
5
11
  changedPaths: z
6
12
  .array(text(1024))
7
13
  .max(1000)
@@ -10,20 +16,54 @@ const changeItem = z.strictObject({
10
16
  description: text(4000)
11
17
  .describe("The pull request description or the commit message body. Ticket ids and titles belong here or in the title.")
12
18
  .optional(),
13
- kind: z
14
- .enum(["pull-request", "commit"])
15
- .describe("pull-request for a merged pull request, commit for a commit pushed without one."),
16
19
  title: text(512).describe('The pull request title or the commit subject, e.g. "Recalculate the cart total with discounts".'),
17
20
  url: z
18
21
  .httpUrl()
19
22
  .max(2048)
20
23
  .describe("A link to the pull request or commit.")
21
24
  .optional(),
22
- });
25
+ };
26
+ const changeItem = z.discriminatedUnion("kind", [
27
+ z.strictObject({
28
+ ...sharedFields,
29
+ kind: z.literal("pull-request").describe("A merged pull or merge request."),
30
+ mergeCommitSha: sha("The sha of the commit the pull request landed as: its merge, squash or last rebased commit, at least 7 characters. Lets QA Wolf list a pull request it also reads from your code host only once."),
31
+ number: number("The pull or merge request number. Lets QA Wolf list a pull request it also reads from your code host only once."),
32
+ }),
33
+ z.strictObject({
34
+ ...sharedFields,
35
+ kind: z
36
+ .literal("commit")
37
+ .describe("A commit, such as one pushed without a pull request."),
38
+ pullRequestNumber: number('The number of the pull or merge request the commit came in through, e.g. 12 for "Fix the total (#12)".'),
39
+ sha: sha("The commit sha, at least 7 characters. Lets QA Wolf list a commit it also reads from your code host only once."),
40
+ }),
41
+ ]);
42
+ // One member per kind, so a kind that needs details adds them to its member.
43
+ const collectionProblem = z.discriminatedUnion("kind", [
44
+ z.strictObject({
45
+ kind: z
46
+ .literal("filter-failed")
47
+ .describe("The filter that edits the changes before they're sent failed, so the changes it would have sent are missing."),
48
+ }),
49
+ z.strictObject({
50
+ kind: z
51
+ .literal("history-unavailable")
52
+ .describe("The CI checkout's git history was too shallow to hold every change since the previous deploy, so changes are missing."),
53
+ }),
54
+ z.strictObject({
55
+ kind: z
56
+ .literal("since-not-found")
57
+ .describe("The commit or tag the changes are collected since isn't in the CI checkout, so the changes couldn't be read."),
58
+ }),
59
+ ]);
23
60
  // The CLI takes this whole field as one JSON value rather than one flag per
24
61
  // leaf (see `jsonFlagFields` in `mappableInputs.testSeed.ts`).
25
62
  export const deploymentReportChanges = z
26
63
  .strictObject({
64
+ ci: text(64)
65
+ .describe('The CI system that collected the changes, e.g. "GitHub Actions". QA Wolf names it when it tells you collecting them went wrong.')
66
+ .optional(),
27
67
  items: z
28
68
  .array(changeItem)
29
69
  .max(250)
@@ -35,6 +75,11 @@ export const deploymentReportChanges = z
35
75
  .nonnegative()
36
76
  .describe("How many pull requests or commits you left out of items to stay within the limits.")
37
77
  .optional(),
78
+ problems: z
79
+ .array(collectionProblem)
80
+ .max(10)
81
+ .describe("What went wrong collecting the changes, so QA Wolf can tell you in the Inbox and work with what it has. Send items too when only some changes are missing. Empty or absent means collecting them went fine.")
82
+ .optional(),
38
83
  releaseNotes: text(16000)
39
84
  .describe("Release notes written for the deployment.")
40
85
  .optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"reportStatusChanges.js","sourceRoot":"","sources":["../../../src/v1/deployment/reportStatusChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,CAAC;AAEnC,MAAM,IAAI,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEhE,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IAChC,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,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AE,CAAC;SACZ,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,CACP,oFAAoF,CACrF;SACA,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,6MAA6M,CAC9M;SACA,QAAQ,EAAE;IACb,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC;SACtB,QAAQ,CAAC,2CAA2C,CAAC;SACrD,QAAQ,EAAE;CACd,CAAC;KACD,MAAM,CACL,CAAC,KAAK,EAAE,EAAE,CACR,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,IAAI,eAAe,EAC3E,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAC/C,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * A string output field whose values the server may extend. A closed enum
4
+ * would make every client on an older package refuse the whole response once
5
+ * the server sends a new value.
6
+ */
7
+ export declare const extensibleValue: (values: string[], meanings: string) => z.ZodString;
8
+ //# sourceMappingURL=extensibleValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensibleValue.d.ts","sourceRoot":"","sources":["../../src/v1/extensibleValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,EAAE,EAAE,UAAU,MAAM,gBAK7D,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * A string output field whose values the server may extend. A closed enum
4
+ * would make every client on an older package refuse the whole response once
5
+ * the server sends a new value.
6
+ */
7
+ export const extensibleValue = (values, meanings) => z
8
+ .string()
9
+ .describe(`One of ${values.join(", ")}; newer servers may add values, so ignore any you don't know. ${meanings}`);
10
+ //# sourceMappingURL=extensibleValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensibleValue.js","sourceRoot":"","sources":["../../src/v1/extensibleValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAgB,EAAE,QAAgB,EAAE,EAAE,CACpE,CAAC;KACE,MAAM,EAAE;KACR,QAAQ,CACP,UAAU,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iEAAiE,QAAQ,EAAE,CACvG,CAAC"}