@qawolf/api-contracts 0.134.0 → 0.139.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 (71) hide show
  1. package/dist/v1/build/delete.d.ts +1 -1
  2. package/dist/v1/build/delete.js +1 -1
  3. package/dist/v1/build/delete.js.map +1 -1
  4. package/dist/v1/build/index.d.ts +1 -1
  5. package/dist/v1/codeHostIntegration/findForRepository.d.ts +51 -0
  6. package/dist/v1/codeHostIntegration/findForRepository.d.ts.map +1 -0
  7. package/dist/v1/codeHostIntegration/findForRepository.js +90 -0
  8. package/dist/v1/codeHostIntegration/findForRepository.js.map +1 -0
  9. package/dist/v1/codeHostIntegration/index.d.ts +116 -0
  10. package/dist/v1/codeHostIntegration/index.d.ts.map +1 -1
  11. package/dist/v1/codeHostIntegration/index.js +8 -0
  12. package/dist/v1/codeHostIntegration/index.js.map +1 -1
  13. package/dist/v1/deployment/index.d.ts +21 -6
  14. package/dist/v1/deployment/index.d.ts.map +1 -1
  15. package/dist/v1/deployment/reportStatus.d.ts +21 -6
  16. package/dist/v1/deployment/reportStatus.d.ts.map +1 -1
  17. package/dist/v1/deployment/reportStatus.js +1 -1
  18. package/dist/v1/deployment/reportStatus.js.map +1 -1
  19. package/dist/v1/deployment/reportStatusChanges.d.ts +21 -6
  20. package/dist/v1/deployment/reportStatusChanges.d.ts.map +1 -1
  21. package/dist/v1/deployment/reportStatusChanges.js +50 -5
  22. package/dist/v1/deployment/reportStatusChanges.js.map +1 -1
  23. package/dist/v1/environment/promote.d.ts +1 -0
  24. package/dist/v1/environment/promote.d.ts.map +1 -1
  25. package/dist/v1/ids.d.ts +8 -0
  26. package/dist/v1/ids.d.ts.map +1 -1
  27. package/dist/v1/ids.js +4 -0
  28. package/dist/v1/ids.js.map +1 -1
  29. package/dist/v1/index.d.ts +686 -23
  30. package/dist/v1/index.d.ts.map +1 -1
  31. package/dist/v1/index.js +3 -6
  32. package/dist/v1/index.js.map +1 -1
  33. package/dist/v1/promotion/answerQuestions.d.ts +116 -0
  34. package/dist/v1/promotion/answerQuestions.d.ts.map +1 -0
  35. package/dist/v1/promotion/answerQuestions.js +58 -0
  36. package/dist/v1/promotion/answerQuestions.js.map +1 -0
  37. package/dist/v1/promotion/askQuestion.d.ts +115 -0
  38. package/dist/v1/promotion/askQuestion.d.ts.map +1 -0
  39. package/dist/v1/promotion/askQuestion.js +40 -0
  40. package/dist/v1/promotion/askQuestion.js.map +1 -0
  41. package/dist/v1/promotion/find.d.ts +1 -0
  42. package/dist/v1/promotion/find.d.ts.map +1 -1
  43. package/dist/v1/promotion/get.d.ts +54 -1
  44. package/dist/v1/promotion/get.d.ts.map +1 -1
  45. package/dist/v1/promotion/get.js +5 -0
  46. package/dist/v1/promotion/get.js.map +1 -1
  47. package/dist/v1/promotion/index.d.ts +276 -2
  48. package/dist/v1/promotion/index.d.ts.map +1 -1
  49. package/dist/v1/promotion/index.js +6 -0
  50. package/dist/v1/promotion/index.js.map +1 -1
  51. package/dist/v1/promotion/needsPerson.d.ts +1 -0
  52. package/dist/v1/promotion/needsPerson.d.ts.map +1 -1
  53. package/dist/v1/promotion/needsPerson.js +7 -1
  54. package/dist/v1/promotion/needsPerson.js.map +1 -1
  55. package/dist/v1/promotion/question.d.ts +93 -0
  56. package/dist/v1/promotion/question.d.ts.map +1 -0
  57. package/dist/v1/promotion/question.js +126 -0
  58. package/dist/v1/promotion/question.js.map +1 -0
  59. package/dist/v1/promotion/reportDecision.d.ts +2 -1
  60. package/dist/v1/promotion/reportDecision.d.ts.map +1 -1
  61. package/dist/v1/promotion/reportDecision.js +1 -1
  62. package/dist/v1/promotion/reportDecision.js.map +1 -1
  63. package/dist/v1/promotion/resolve.d.ts +1 -0
  64. package/dist/v1/promotion/resolve.d.ts.map +1 -1
  65. package/dist/v1/promotion/resource.d.ts +1 -0
  66. package/dist/v1/promotion/resource.d.ts.map +1 -1
  67. package/dist/v1/run/listScreenshotComparisons.d.ts +1 -1
  68. package/dist/v1/run/reattempt.d.ts.map +1 -1
  69. package/dist/v1/run/reattempt.js +3 -0
  70. package/dist/v1/run/reattempt.js.map +1 -1
  71. package/package.json +1 -1
@@ -2,7 +2,7 @@ import type { z } from "zod";
2
2
  export { maxResolvedFileBytes } from "./promotion/index.js";
3
3
  export * from "./sharedSchemas.js";
4
4
  import type { AnyPublicApiContract } from "./definition.js";
5
- import { type PublicIdSchema, type PublicIdSchemasOf } from "./ids.js";
5
+ import { type OptionalIdSchemas, type PublicIdSchema, type PublicIdSchemasOf } from "./ids.js";
6
6
  export type PublicApiInput<Api extends AnyPublicApiContract> = z.input<Api["input"]>;
7
7
  export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["output"]>;
8
8
  /**
@@ -12,10 +12,7 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
12
12
  * the same factory with its own strict id schemas, so the contract shape can
13
13
  * never drift between the two while validation strictness stays server-owned.
14
14
  */
15
- export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema, TriggerId extends PublicIdSchema = PublicIdSchema, DeploymentId extends PublicIdSchema = PublicIdSchema, LegacyTriggerId extends PublicIdSchema = PublicIdSchema, RunAttemptId extends PublicIdSchema = PublicIdSchema, PromotionId extends PublicIdSchema = PublicIdSchema>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId, PromotionId>, "runAttempt" | "suggestion"> & {
16
- runAttempt?: RunAttemptId;
17
- suggestion?: PublicIdSchema;
18
- }) => {
15
+ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, FlowId extends PublicIdSchema, RunId extends PublicIdSchema, IssueId extends PublicIdSchema = PublicIdSchema, WorkspaceId extends PublicIdSchema = PublicIdSchema, AiTaskId extends PublicIdSchema = PublicIdSchema, ChatSessionId extends PublicIdSchema = PublicIdSchema, TriggerId extends PublicIdSchema = PublicIdSchema, DeploymentId extends PublicIdSchema = PublicIdSchema, LegacyTriggerId extends PublicIdSchema = PublicIdSchema, RunAttemptId extends PublicIdSchema = PublicIdSchema, PromotionId extends PublicIdSchema = PublicIdSchema>(ids: Omit<PublicIdSchemasOf<EnvironmentId, FlowId, RunId, IssueId, WorkspaceId, AiTaskId, ChatSessionId, TriggerId, DeploymentId, LegacyTriggerId, RunAttemptId, PromotionId>, keyof OptionalIdSchemas<RunAttemptId>> & OptionalIdSchemas<RunAttemptId>) => {
19
16
  activity: {
20
17
  wait: {
21
18
  readonly annotationJustifications: {
@@ -470,7 +467,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
470
467
  readonly openWorldHint: false;
471
468
  readonly readOnlyHint: false;
472
469
  };
473
- readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
470
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
474
471
  readonly input: z.ZodObject<{
475
472
  buildId: z.ZodString;
476
473
  workspaceId: z.ZodOptional<WorkspaceId>;
@@ -667,6 +664,52 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
667
664
  settingsUrl: z.ZodURL;
668
665
  }, z.core.$strip>;
669
666
  };
667
+ findForRepository: {
668
+ readonly annotationJustifications: {
669
+ readonly destructiveHint: "Does not connect, disconnect or change code host integrations.";
670
+ readonly openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.";
671
+ readonly readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.";
672
+ };
673
+ readonly annotations: {
674
+ readonly destructiveHint: false;
675
+ readonly openWorldHint: false;
676
+ readonly readOnlyHint: true;
677
+ };
678
+ readonly description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.";
679
+ readonly input: z.ZodObject<{
680
+ url: z.ZodString;
681
+ workspaceId: z.ZodOptional<WorkspaceId>;
682
+ }, z.core.$strip>;
683
+ readonly kind: "read";
684
+ readonly name: "codeHostIntegration.findForRepository";
685
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
686
+ coverage: z.ZodLiteral<"covered">;
687
+ fullName: z.ZodString;
688
+ permissions: z.ZodObject<{
689
+ code: z.ZodEnum<{
690
+ read: "read";
691
+ write: "write";
692
+ "no-access": "no-access";
693
+ }>;
694
+ pullRequests: z.ZodEnum<{
695
+ read: "read";
696
+ write: "write";
697
+ }>;
698
+ }, z.core.$strip>;
699
+ provider: z.ZodEnum<{
700
+ github: "github";
701
+ gitlab: "gitlab";
702
+ }>;
703
+ settingsUrl: z.ZodURL;
704
+ }, z.core.$strip>, z.ZodObject<{
705
+ coverage: z.ZodLiteral<"not-covered">;
706
+ settingsUrl: z.ZodURL;
707
+ }, z.core.$strip>, z.ZodObject<{
708
+ coverage: z.ZodLiteral<"unsupported-host">;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ coverage: z.ZodLiteral<"unrecognized-url">;
711
+ }, z.core.$strip>], "coverage">;
712
+ };
670
713
  listRepositories: {
671
714
  readonly annotationJustifications: {
672
715
  readonly destructiveHint: "Does not edit repositories, integration settings, or access permissions.";
@@ -892,17 +935,32 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
892
935
  readonly input: z.ZodObject<{
893
936
  builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
894
937
  changes: z.ZodOptional<z.ZodObject<{
895
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
938
+ ci: z.ZodOptional<z.ZodString>;
939
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
940
+ kind: z.ZodLiteral<"pull-request">;
941
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
942
+ number: z.ZodOptional<z.ZodNumber>;
896
943
  changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
897
944
  description: z.ZodOptional<z.ZodString>;
898
- kind: z.ZodEnum<{
899
- "pull-request": "pull-request";
900
- commit: "commit";
901
- }>;
902
945
  title: z.ZodString;
903
946
  url: z.ZodOptional<z.ZodURL>;
904
- }, z.core.$strict>>>;
947
+ }, z.core.$strict>, z.ZodObject<{
948
+ kind: z.ZodLiteral<"commit">;
949
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
950
+ sha: z.ZodOptional<z.ZodString>;
951
+ changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
952
+ description: z.ZodOptional<z.ZodString>;
953
+ title: z.ZodString;
954
+ url: z.ZodOptional<z.ZodURL>;
955
+ }, z.core.$strict>], "kind">>>;
905
956
  omittedCount: z.ZodOptional<z.ZodNumber>;
957
+ problems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
958
+ kind: z.ZodLiteral<"filter-failed">;
959
+ }, z.core.$strict>, z.ZodObject<{
960
+ kind: z.ZodLiteral<"history-unavailable">;
961
+ }, z.core.$strict>, z.ZodObject<{
962
+ kind: z.ZodLiteral<"since-not-found">;
963
+ }, z.core.$strict>], "kind">>>;
906
964
  releaseNotes: z.ZodOptional<z.ZodString>;
907
965
  }, z.core.$strict>>;
908
966
  deployTarget: z.ZodOptional<z.ZodURL>;
@@ -1476,6 +1534,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1476
1534
  needsPerson: z.ZodOptional<z.ZodObject<{
1477
1535
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
1478
1536
  path: z.ZodString;
1537
+ questionId: z.ZodOptional<z.ZodString>;
1479
1538
  }, z.core.$strip>>>;
1480
1539
  reason: z.ZodEnum<{
1481
1540
  "undecided-paths": "undecided-paths";
@@ -2996,6 +3055,222 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
2996
3055
  };
2997
3056
  };
2998
3057
  promotion: {
3058
+ answerQuestions: {
3059
+ readonly annotationJustifications: {
3060
+ readonly destructiveHint: "Records the answers and hands the promotion back to QA Wolf without changing flow code itself.";
3061
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
3062
+ readonly readOnlyHint: "Records answers and starts QA Wolf on the promotion again.";
3063
+ };
3064
+ readonly annotations: {
3065
+ readonly destructiveHint: false;
3066
+ readonly openWorldHint: false;
3067
+ readonly readOnlyHint: false;
3068
+ };
3069
+ readonly description: "Answer every question QA Wolf asked about a promotion's current conflict, at once, and hand it back to QA Wolf, which updates the flows the way they were answered and promotes them. Refused while the promotion is not waiting on a person, and for an answer to a question QA Wolf has since asked anew. Picking an answer that reports a bug files nothing on its own. Returns the promotion.";
3070
+ readonly input: z.ZodObject<{
3071
+ answers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
3072
+ optionId: z.ZodString;
3073
+ questionId: PublicIdSchema;
3074
+ questionRevision: z.ZodNumber;
3075
+ type: z.ZodLiteral<"option">;
3076
+ }, z.core.$strict>, z.ZodObject<{
3077
+ questionId: PublicIdSchema;
3078
+ questionRevision: z.ZodNumber;
3079
+ text: z.ZodString;
3080
+ type: z.ZodLiteral<"own-words">;
3081
+ }, z.core.$strict>], "type">>;
3082
+ promotionId: PromotionId;
3083
+ }, z.core.$strip>;
3084
+ readonly kind: "write";
3085
+ readonly name: "promotion.answerQuestions";
3086
+ readonly output: z.ZodObject<{
3087
+ aiTaskId: z.ZodOptional<AiTaskId>;
3088
+ baseEnvironmentId: EnvironmentId;
3089
+ conflict: z.ZodOptional<z.ZodObject<{
3090
+ paths: z.ZodArray<z.ZodString>;
3091
+ sourceCommitHash: z.ZodString;
3092
+ targetCommitHash: z.ZodString;
3093
+ }, z.core.$strip>>;
3094
+ createdAt: z.ZodISODateTime;
3095
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3096
+ candidateRuns: z.ZodArray<z.ZodObject<{
3097
+ candidate: z.ZodEnum<{
3098
+ combined: "combined";
3099
+ head: "head";
3100
+ base: "base";
3101
+ }>;
3102
+ outcome: z.ZodEnum<{
3103
+ passed: "passed";
3104
+ failed: "failed";
3105
+ inconclusive: "inconclusive";
3106
+ }>;
3107
+ runId: RunId;
3108
+ }, z.core.$strip>>;
3109
+ kept: z.ZodOptional<z.ZodEnum<{
3110
+ combined: "combined";
3111
+ head: "head";
3112
+ base: "base";
3113
+ }>>;
3114
+ path: z.ZodString;
3115
+ reason: z.ZodString;
3116
+ sourceCommitHash: z.ZodString;
3117
+ targetCommitHash: z.ZodString;
3118
+ type: z.ZodEnum<{
3119
+ "picked-by-run": "picked-by-run";
3120
+ combined: "combined";
3121
+ "kept-more-checks": "kept-more-checks";
3122
+ "needs-person": "needs-person";
3123
+ }>;
3124
+ }, z.core.$strip>>>;
3125
+ headEnvironmentId: EnvironmentId;
3126
+ id: PromotionId;
3127
+ needsPerson: z.ZodOptional<z.ZodObject<{
3128
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3129
+ path: z.ZodString;
3130
+ questionId: z.ZodOptional<z.ZodString>;
3131
+ }, z.core.$strip>>>;
3132
+ reason: z.ZodEnum<{
3133
+ "undecided-paths": "undecided-paths";
3134
+ "run-limit-reached": "run-limit-reached";
3135
+ "flows-undetermined": "flows-undetermined";
3136
+ "agent-stopped": "agent-stopped";
3137
+ "agent-failed": "agent-failed";
3138
+ "agent-not-started": "agent-not-started";
3139
+ "agent-resolution-off": "agent-resolution-off";
3140
+ }>;
3141
+ }, z.core.$strip>>;
3142
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
3143
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
3144
+ status: z.ZodEnum<{
3145
+ pending: "pending";
3146
+ conflicted: "conflicted";
3147
+ resolving: "resolving";
3148
+ promoted: "promoted";
3149
+ "no-changes": "no-changes";
3150
+ abandoned: "abandoned";
3151
+ }>;
3152
+ validationRuns: z.ZodArray<z.ZodObject<{
3153
+ aiTaskId: AiTaskId;
3154
+ runId: RunId;
3155
+ runMode: z.ZodEnum<{
3156
+ "confirm-after": "confirm-after";
3157
+ "choose-version": "choose-version";
3158
+ }>;
3159
+ sourceCommitHash: z.ZodString;
3160
+ targetCommitHash: z.ZodString;
3161
+ }, z.core.$strip>>;
3162
+ url: z.ZodURL;
3163
+ }, z.core.$strip>;
3164
+ };
3165
+ askQuestion: {
3166
+ readonly annotationJustifications: {
3167
+ readonly destructiveHint: "Records a question on the promotion and changes no flow code.";
3168
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
3169
+ readonly readOnlyHint: "Records a question for a person to answer.";
3170
+ };
3171
+ readonly annotations: {
3172
+ readonly destructiveHint: false;
3173
+ readonly openWorldHint: false;
3174
+ readonly readOnlyHint: false;
3175
+ };
3176
+ readonly description: "Ask a person about one conflicting path of a conflicted promotion that was reported as needs-person: a question about the app, both versions as plain steps with how each ran, the answers with what each does to the flow, and QA Wolf's pick. Ask before finishing; a promotion that already waits on a person is refused. Asking again about the same path replaces the question. Returns the question.";
3177
+ readonly input: z.ZodObject<{
3178
+ content: z.ZodObject<{
3179
+ base: z.ZodObject<{
3180
+ code: z.ZodString;
3181
+ runSummary: z.ZodString;
3182
+ steps: z.ZodArray<z.ZodObject<{
3183
+ mark: z.ZodOptional<z.ZodEnum<{
3184
+ changed: "changed";
3185
+ added: "added";
3186
+ deleted: "deleted";
3187
+ }>>;
3188
+ text: z.ZodString;
3189
+ }, z.core.$strict>>;
3190
+ }, z.core.$strict>;
3191
+ flowName: z.ZodString;
3192
+ head: z.ZodObject<{
3193
+ code: z.ZodString;
3194
+ runSummary: z.ZodString;
3195
+ steps: z.ZodArray<z.ZodObject<{
3196
+ mark: z.ZodOptional<z.ZodEnum<{
3197
+ changed: "changed";
3198
+ added: "added";
3199
+ deleted: "deleted";
3200
+ }>>;
3201
+ text: z.ZodString;
3202
+ }, z.core.$strict>>;
3203
+ }, z.core.$strict>;
3204
+ options: z.ZodArray<z.ZodObject<{
3205
+ bugTitle: z.ZodOptional<z.ZodString>;
3206
+ consequence: z.ZodString;
3207
+ id: z.ZodString;
3208
+ title: z.ZodString;
3209
+ }, z.core.$strict>>;
3210
+ proposal: z.ZodString;
3211
+ proposedOptionId: z.ZodString;
3212
+ question: z.ZodString;
3213
+ stepLabel: z.ZodString;
3214
+ }, z.core.$strict>;
3215
+ expectedSourceCommitHash: z.ZodString;
3216
+ expectedTargetCommitHash: z.ZodString;
3217
+ path: z.ZodString;
3218
+ promotionId: PromotionId;
3219
+ }, z.core.$strip>;
3220
+ readonly kind: "write";
3221
+ readonly name: "promotion.askQuestion";
3222
+ readonly output: z.ZodObject<{
3223
+ answer: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3224
+ answeredAt: z.ZodISODateTime;
3225
+ optionId: z.ZodString;
3226
+ type: z.ZodLiteral<"option">;
3227
+ }, z.core.$strip>, z.ZodObject<{
3228
+ answeredAt: z.ZodISODateTime;
3229
+ text: z.ZodString;
3230
+ type: z.ZodLiteral<"own-words">;
3231
+ }, z.core.$strip>], "type">>;
3232
+ content: z.ZodObject<{
3233
+ base: z.ZodObject<{
3234
+ code: z.ZodString;
3235
+ runSummary: z.ZodString;
3236
+ steps: z.ZodArray<z.ZodObject<{
3237
+ mark: z.ZodOptional<z.ZodEnum<{
3238
+ changed: "changed";
3239
+ added: "added";
3240
+ deleted: "deleted";
3241
+ }>>;
3242
+ text: z.ZodString;
3243
+ }, z.core.$strict>>;
3244
+ }, z.core.$strict>;
3245
+ flowName: z.ZodString;
3246
+ head: z.ZodObject<{
3247
+ code: z.ZodString;
3248
+ runSummary: z.ZodString;
3249
+ steps: z.ZodArray<z.ZodObject<{
3250
+ mark: z.ZodOptional<z.ZodEnum<{
3251
+ changed: "changed";
3252
+ added: "added";
3253
+ deleted: "deleted";
3254
+ }>>;
3255
+ text: z.ZodString;
3256
+ }, z.core.$strict>>;
3257
+ }, z.core.$strict>;
3258
+ options: z.ZodArray<z.ZodObject<{
3259
+ bugTitle: z.ZodOptional<z.ZodString>;
3260
+ consequence: z.ZodString;
3261
+ id: z.ZodString;
3262
+ title: z.ZodString;
3263
+ }, z.core.$strict>>;
3264
+ proposal: z.ZodString;
3265
+ proposedOptionId: z.ZodString;
3266
+ question: z.ZodString;
3267
+ stepLabel: z.ZodString;
3268
+ }, z.core.$strict>;
3269
+ id: PublicIdSchema;
3270
+ path: z.ZodString;
3271
+ revision: z.ZodNumber;
3272
+ }, z.core.$strip>;
3273
+ };
2999
3274
  find: {
3000
3275
  readonly annotationJustifications: {
3001
3276
  readonly destructiveHint: "Does not change promotions, environments or flow code branches.";
@@ -3070,6 +3345,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3070
3345
  needsPerson: z.ZodOptional<z.ZodObject<{
3071
3346
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3072
3347
  path: z.ZodString;
3348
+ questionId: z.ZodOptional<z.ZodString>;
3073
3349
  }, z.core.$strip>>>;
3074
3350
  reason: z.ZodEnum<{
3075
3351
  "undecided-paths": "undecided-paths";
@@ -3166,6 +3442,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3166
3442
  needsPerson: z.ZodOptional<z.ZodObject<{
3167
3443
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3168
3444
  path: z.ZodString;
3445
+ questionId: z.ZodOptional<z.ZodString>;
3169
3446
  }, z.core.$strip>>>;
3170
3447
  reason: z.ZodEnum<{
3171
3448
  "undecided-paths": "undecided-paths";
@@ -3199,6 +3476,57 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3199
3476
  }, z.core.$strip>>;
3200
3477
  url: z.ZodURL;
3201
3478
  aiTaskSessionId: z.ZodOptional<ChatSessionId>;
3479
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3480
+ answer: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3481
+ answeredAt: z.ZodISODateTime;
3482
+ optionId: z.ZodString;
3483
+ type: z.ZodLiteral<"option">;
3484
+ }, z.core.$strip>, z.ZodObject<{
3485
+ answeredAt: z.ZodISODateTime;
3486
+ text: z.ZodString;
3487
+ type: z.ZodLiteral<"own-words">;
3488
+ }, z.core.$strip>], "type">>;
3489
+ content: z.ZodObject<{
3490
+ base: z.ZodObject<{
3491
+ code: z.ZodString;
3492
+ runSummary: z.ZodString;
3493
+ steps: z.ZodArray<z.ZodObject<{
3494
+ mark: z.ZodOptional<z.ZodEnum<{
3495
+ changed: "changed";
3496
+ added: "added";
3497
+ deleted: "deleted";
3498
+ }>>;
3499
+ text: z.ZodString;
3500
+ }, z.core.$strict>>;
3501
+ }, z.core.$strict>;
3502
+ flowName: z.ZodString;
3503
+ head: z.ZodObject<{
3504
+ code: z.ZodString;
3505
+ runSummary: z.ZodString;
3506
+ steps: z.ZodArray<z.ZodObject<{
3507
+ mark: z.ZodOptional<z.ZodEnum<{
3508
+ changed: "changed";
3509
+ added: "added";
3510
+ deleted: "deleted";
3511
+ }>>;
3512
+ text: z.ZodString;
3513
+ }, z.core.$strict>>;
3514
+ }, z.core.$strict>;
3515
+ options: z.ZodArray<z.ZodObject<{
3516
+ bugTitle: z.ZodOptional<z.ZodString>;
3517
+ consequence: z.ZodString;
3518
+ id: z.ZodString;
3519
+ title: z.ZodString;
3520
+ }, z.core.$strict>>;
3521
+ proposal: z.ZodString;
3522
+ proposedOptionId: z.ZodString;
3523
+ question: z.ZodString;
3524
+ stepLabel: z.ZodString;
3525
+ }, z.core.$strict>;
3526
+ id: PublicIdSchema;
3527
+ path: z.ZodString;
3528
+ revision: z.ZodNumber;
3529
+ }, z.core.$strip>>>;
3202
3530
  }, z.core.$strip>;
3203
3531
  };
3204
3532
  reportDecision: {
@@ -3212,7 +3540,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3212
3540
  readonly openWorldHint: false;
3213
3541
  readonly readOnlyHint: false;
3214
3542
  };
3215
- readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.";
3543
+ readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. When the workspace runs no versions but has promotion questions on, only a needs-person decision with no runs is recorded, so the path can be asked about. Reporting a path again replaces its decision. Returns the promotion.";
3216
3544
  readonly input: z.ZodObject<{
3217
3545
  base: z.ZodOptional<z.ZodObject<{
3218
3546
  outcome: z.ZodEnum<{
@@ -3301,6 +3629,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3301
3629
  needsPerson: z.ZodOptional<z.ZodObject<{
3302
3630
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3303
3631
  path: z.ZodString;
3632
+ questionId: z.ZodOptional<z.ZodString>;
3304
3633
  }, z.core.$strip>>>;
3305
3634
  reason: z.ZodEnum<{
3306
3635
  "undecided-paths": "undecided-paths";
@@ -3400,6 +3729,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3400
3729
  needsPerson: z.ZodOptional<z.ZodObject<{
3401
3730
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
3402
3731
  path: z.ZodString;
3732
+ questionId: z.ZodOptional<z.ZodString>;
3403
3733
  }, z.core.$strip>>>;
3404
3734
  reason: z.ZodEnum<{
3405
3735
  "undecided-paths": "undecided-paths";
@@ -3898,8 +4228,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
3898
4228
  attemptCompletedAt: z.ZodISODateTime;
3899
4229
  baselineStatus: z.ZodEnum<{
3900
4230
  unknown: "unknown";
3901
- accepted: "accepted";
3902
4231
  deleted: "deleted";
4232
+ accepted: "accepted";
3903
4233
  unchanged: "unchanged";
3904
4234
  "changed-since-run": "changed-since-run";
3905
4235
  }>;
@@ -6713,7 +7043,7 @@ export declare const publicContractsV1: {
6713
7043
  readonly openWorldHint: false;
6714
7044
  readonly readOnlyHint: false;
6715
7045
  };
6716
- readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept: only the latest builds of static environments are kept past the bucket's expiry, 180 days after upload on QA Wolf's cloud. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
7046
+ readonly description: "Delete a build. Runs never install a deleted build. Deleting an environment's latest build makes the previous one its latest. Runs install that build only if its file is still kept. On QA Wolf's cloud, the latest builds of static environments are always kept. Otherwise the newest 50 builds of each app and platform in an environment, and the newest 100 with no environment, are kept up to 180 days after upload; older ones are deleted 7 days after they fall out. The builds of a terminated preview environment are deleted 7 days after it terminates. Answers the build with deletedAt set. Deleting a deleted build answers it unchanged.";
6717
7047
  readonly input: z.ZodObject<{
6718
7048
  buildId: z.ZodString;
6719
7049
  workspaceId: z.ZodOptional<PublicIdSchema>;
@@ -6910,6 +7240,52 @@ export declare const publicContractsV1: {
6910
7240
  settingsUrl: z.ZodURL;
6911
7241
  }, z.core.$strip>;
6912
7242
  };
7243
+ findForRepository: {
7244
+ readonly annotationJustifications: {
7245
+ readonly destructiveHint: "Does not connect, disconnect or change code host integrations.";
7246
+ readonly openWorldHint: "Answers from QA Wolf integration records without contacting the URL, GitHub or GitLab.";
7247
+ readonly readOnlyHint: "Looks the repository up in the workspace's integrations and stores nothing.";
7248
+ };
7249
+ readonly annotations: {
7250
+ readonly destructiveHint: false;
7251
+ readonly openWorldHint: false;
7252
+ readonly readOnlyHint: true;
7253
+ };
7254
+ readonly description: "Check whether QA Wolf can read a repository through the workspace's code host integrations, and what it can access: the repository's code and its pull requests. A CI job calls this before reporting a deployment to decide which changes to include. Not covered means QA Wolf only knows the changes the report includes; settingsUrl is where a workspace admin connects the code host.";
7255
+ readonly input: z.ZodObject<{
7256
+ url: z.ZodString;
7257
+ workspaceId: z.ZodOptional<PublicIdSchema>;
7258
+ }, z.core.$strip>;
7259
+ readonly kind: "read";
7260
+ readonly name: "codeHostIntegration.findForRepository";
7261
+ readonly output: z.ZodDiscriminatedUnion<[z.ZodObject<{
7262
+ coverage: z.ZodLiteral<"covered">;
7263
+ fullName: z.ZodString;
7264
+ permissions: z.ZodObject<{
7265
+ code: z.ZodEnum<{
7266
+ read: "read";
7267
+ write: "write";
7268
+ "no-access": "no-access";
7269
+ }>;
7270
+ pullRequests: z.ZodEnum<{
7271
+ read: "read";
7272
+ write: "write";
7273
+ }>;
7274
+ }, z.core.$strip>;
7275
+ provider: z.ZodEnum<{
7276
+ github: "github";
7277
+ gitlab: "gitlab";
7278
+ }>;
7279
+ settingsUrl: z.ZodURL;
7280
+ }, z.core.$strip>, z.ZodObject<{
7281
+ coverage: z.ZodLiteral<"not-covered">;
7282
+ settingsUrl: z.ZodURL;
7283
+ }, z.core.$strip>, z.ZodObject<{
7284
+ coverage: z.ZodLiteral<"unsupported-host">;
7285
+ }, z.core.$strip>, z.ZodObject<{
7286
+ coverage: z.ZodLiteral<"unrecognized-url">;
7287
+ }, z.core.$strip>], "coverage">;
7288
+ };
6913
7289
  listRepositories: {
6914
7290
  readonly annotationJustifications: {
6915
7291
  readonly destructiveHint: "Does not edit repositories, integration settings, or access permissions.";
@@ -7135,17 +7511,32 @@ export declare const publicContractsV1: {
7135
7511
  readonly input: z.ZodObject<{
7136
7512
  builds: z.ZodOptional<z.ZodArray<z.ZodString>>;
7137
7513
  changes: z.ZodOptional<z.ZodObject<{
7138
- items: z.ZodOptional<z.ZodArray<z.ZodObject<{
7514
+ ci: z.ZodOptional<z.ZodString>;
7515
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7516
+ kind: z.ZodLiteral<"pull-request">;
7517
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
7518
+ number: z.ZodOptional<z.ZodNumber>;
7139
7519
  changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
7140
7520
  description: z.ZodOptional<z.ZodString>;
7141
- kind: z.ZodEnum<{
7142
- "pull-request": "pull-request";
7143
- commit: "commit";
7144
- }>;
7145
7521
  title: z.ZodString;
7146
7522
  url: z.ZodOptional<z.ZodURL>;
7147
- }, z.core.$strict>>>;
7523
+ }, z.core.$strict>, z.ZodObject<{
7524
+ kind: z.ZodLiteral<"commit">;
7525
+ pullRequestNumber: z.ZodOptional<z.ZodNumber>;
7526
+ sha: z.ZodOptional<z.ZodString>;
7527
+ changedPaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
7528
+ description: z.ZodOptional<z.ZodString>;
7529
+ title: z.ZodString;
7530
+ url: z.ZodOptional<z.ZodURL>;
7531
+ }, z.core.$strict>], "kind">>>;
7148
7532
  omittedCount: z.ZodOptional<z.ZodNumber>;
7533
+ problems: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7534
+ kind: z.ZodLiteral<"filter-failed">;
7535
+ }, z.core.$strict>, z.ZodObject<{
7536
+ kind: z.ZodLiteral<"history-unavailable">;
7537
+ }, z.core.$strict>, z.ZodObject<{
7538
+ kind: z.ZodLiteral<"since-not-found">;
7539
+ }, z.core.$strict>], "kind">>>;
7149
7540
  releaseNotes: z.ZodOptional<z.ZodString>;
7150
7541
  }, z.core.$strict>>;
7151
7542
  deployTarget: z.ZodOptional<z.ZodURL>;
@@ -7719,6 +8110,7 @@ export declare const publicContractsV1: {
7719
8110
  needsPerson: z.ZodOptional<z.ZodObject<{
7720
8111
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
7721
8112
  path: z.ZodString;
8113
+ questionId: z.ZodOptional<z.ZodString>;
7722
8114
  }, z.core.$strip>>>;
7723
8115
  reason: z.ZodEnum<{
7724
8116
  "undecided-paths": "undecided-paths";
@@ -9239,6 +9631,222 @@ export declare const publicContractsV1: {
9239
9631
  };
9240
9632
  };
9241
9633
  promotion: {
9634
+ answerQuestions: {
9635
+ readonly annotationJustifications: {
9636
+ readonly destructiveHint: "Records the answers and hands the promotion back to QA Wolf without changing flow code itself.";
9637
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
9638
+ readonly readOnlyHint: "Records answers and starts QA Wolf on the promotion again.";
9639
+ };
9640
+ readonly annotations: {
9641
+ readonly destructiveHint: false;
9642
+ readonly openWorldHint: false;
9643
+ readonly readOnlyHint: false;
9644
+ };
9645
+ readonly description: "Answer every question QA Wolf asked about a promotion's current conflict, at once, and hand it back to QA Wolf, which updates the flows the way they were answered and promotes them. Refused while the promotion is not waiting on a person, and for an answer to a question QA Wolf has since asked anew. Picking an answer that reports a bug files nothing on its own. Returns the promotion.";
9646
+ readonly input: z.ZodObject<{
9647
+ answers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
9648
+ optionId: z.ZodString;
9649
+ questionId: PublicIdSchema;
9650
+ questionRevision: z.ZodNumber;
9651
+ type: z.ZodLiteral<"option">;
9652
+ }, z.core.$strict>, z.ZodObject<{
9653
+ questionId: PublicIdSchema;
9654
+ questionRevision: z.ZodNumber;
9655
+ text: z.ZodString;
9656
+ type: z.ZodLiteral<"own-words">;
9657
+ }, z.core.$strict>], "type">>;
9658
+ promotionId: PublicIdSchema;
9659
+ }, z.core.$strip>;
9660
+ readonly kind: "write";
9661
+ readonly name: "promotion.answerQuestions";
9662
+ readonly output: z.ZodObject<{
9663
+ aiTaskId: z.ZodOptional<PublicIdSchema>;
9664
+ baseEnvironmentId: PublicIdSchema;
9665
+ conflict: z.ZodOptional<z.ZodObject<{
9666
+ paths: z.ZodArray<z.ZodString>;
9667
+ sourceCommitHash: z.ZodString;
9668
+ targetCommitHash: z.ZodString;
9669
+ }, z.core.$strip>>;
9670
+ createdAt: z.ZodISODateTime;
9671
+ decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9672
+ candidateRuns: z.ZodArray<z.ZodObject<{
9673
+ candidate: z.ZodEnum<{
9674
+ combined: "combined";
9675
+ head: "head";
9676
+ base: "base";
9677
+ }>;
9678
+ outcome: z.ZodEnum<{
9679
+ passed: "passed";
9680
+ failed: "failed";
9681
+ inconclusive: "inconclusive";
9682
+ }>;
9683
+ runId: PublicIdSchema;
9684
+ }, z.core.$strip>>;
9685
+ kept: z.ZodOptional<z.ZodEnum<{
9686
+ combined: "combined";
9687
+ head: "head";
9688
+ base: "base";
9689
+ }>>;
9690
+ path: z.ZodString;
9691
+ reason: z.ZodString;
9692
+ sourceCommitHash: z.ZodString;
9693
+ targetCommitHash: z.ZodString;
9694
+ type: z.ZodEnum<{
9695
+ "picked-by-run": "picked-by-run";
9696
+ combined: "combined";
9697
+ "kept-more-checks": "kept-more-checks";
9698
+ "needs-person": "needs-person";
9699
+ }>;
9700
+ }, z.core.$strip>>>;
9701
+ headEnvironmentId: PublicIdSchema;
9702
+ id: PublicIdSchema;
9703
+ needsPerson: z.ZodOptional<z.ZodObject<{
9704
+ paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9705
+ path: z.ZodString;
9706
+ questionId: z.ZodOptional<z.ZodString>;
9707
+ }, z.core.$strip>>>;
9708
+ reason: z.ZodEnum<{
9709
+ "undecided-paths": "undecided-paths";
9710
+ "run-limit-reached": "run-limit-reached";
9711
+ "flows-undetermined": "flows-undetermined";
9712
+ "agent-stopped": "agent-stopped";
9713
+ "agent-failed": "agent-failed";
9714
+ "agent-not-started": "agent-not-started";
9715
+ "agent-resolution-off": "agent-resolution-off";
9716
+ }>;
9717
+ }, z.core.$strip>>;
9718
+ promotedCommitHash: z.ZodOptional<z.ZodString>;
9719
+ settledAt: z.ZodOptional<z.ZodISODateTime>;
9720
+ status: z.ZodEnum<{
9721
+ pending: "pending";
9722
+ conflicted: "conflicted";
9723
+ resolving: "resolving";
9724
+ promoted: "promoted";
9725
+ "no-changes": "no-changes";
9726
+ abandoned: "abandoned";
9727
+ }>;
9728
+ validationRuns: z.ZodArray<z.ZodObject<{
9729
+ aiTaskId: PublicIdSchema;
9730
+ runId: PublicIdSchema;
9731
+ runMode: z.ZodEnum<{
9732
+ "confirm-after": "confirm-after";
9733
+ "choose-version": "choose-version";
9734
+ }>;
9735
+ sourceCommitHash: z.ZodString;
9736
+ targetCommitHash: z.ZodString;
9737
+ }, z.core.$strip>>;
9738
+ url: z.ZodURL;
9739
+ }, z.core.$strip>;
9740
+ };
9741
+ askQuestion: {
9742
+ readonly annotationJustifications: {
9743
+ readonly destructiveHint: "Records a question on the promotion and changes no flow code.";
9744
+ readonly openWorldHint: "Changes a private QA Wolf promotion record without touching external systems.";
9745
+ readonly readOnlyHint: "Records a question for a person to answer.";
9746
+ };
9747
+ readonly annotations: {
9748
+ readonly destructiveHint: false;
9749
+ readonly openWorldHint: false;
9750
+ readonly readOnlyHint: false;
9751
+ };
9752
+ readonly description: "Ask a person about one conflicting path of a conflicted promotion that was reported as needs-person: a question about the app, both versions as plain steps with how each ran, the answers with what each does to the flow, and QA Wolf's pick. Ask before finishing; a promotion that already waits on a person is refused. Asking again about the same path replaces the question. Returns the question.";
9753
+ readonly input: z.ZodObject<{
9754
+ content: z.ZodObject<{
9755
+ base: z.ZodObject<{
9756
+ code: z.ZodString;
9757
+ runSummary: z.ZodString;
9758
+ steps: z.ZodArray<z.ZodObject<{
9759
+ mark: z.ZodOptional<z.ZodEnum<{
9760
+ changed: "changed";
9761
+ added: "added";
9762
+ deleted: "deleted";
9763
+ }>>;
9764
+ text: z.ZodString;
9765
+ }, z.core.$strict>>;
9766
+ }, z.core.$strict>;
9767
+ flowName: z.ZodString;
9768
+ head: z.ZodObject<{
9769
+ code: z.ZodString;
9770
+ runSummary: z.ZodString;
9771
+ steps: z.ZodArray<z.ZodObject<{
9772
+ mark: z.ZodOptional<z.ZodEnum<{
9773
+ changed: "changed";
9774
+ added: "added";
9775
+ deleted: "deleted";
9776
+ }>>;
9777
+ text: z.ZodString;
9778
+ }, z.core.$strict>>;
9779
+ }, z.core.$strict>;
9780
+ options: z.ZodArray<z.ZodObject<{
9781
+ bugTitle: z.ZodOptional<z.ZodString>;
9782
+ consequence: z.ZodString;
9783
+ id: z.ZodString;
9784
+ title: z.ZodString;
9785
+ }, z.core.$strict>>;
9786
+ proposal: z.ZodString;
9787
+ proposedOptionId: z.ZodString;
9788
+ question: z.ZodString;
9789
+ stepLabel: z.ZodString;
9790
+ }, z.core.$strict>;
9791
+ expectedSourceCommitHash: z.ZodString;
9792
+ expectedTargetCommitHash: z.ZodString;
9793
+ path: z.ZodString;
9794
+ promotionId: PublicIdSchema;
9795
+ }, z.core.$strip>;
9796
+ readonly kind: "write";
9797
+ readonly name: "promotion.askQuestion";
9798
+ readonly output: z.ZodObject<{
9799
+ answer: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
9800
+ answeredAt: z.ZodISODateTime;
9801
+ optionId: z.ZodString;
9802
+ type: z.ZodLiteral<"option">;
9803
+ }, z.core.$strip>, z.ZodObject<{
9804
+ answeredAt: z.ZodISODateTime;
9805
+ text: z.ZodString;
9806
+ type: z.ZodLiteral<"own-words">;
9807
+ }, z.core.$strip>], "type">>;
9808
+ content: z.ZodObject<{
9809
+ base: z.ZodObject<{
9810
+ code: z.ZodString;
9811
+ runSummary: z.ZodString;
9812
+ steps: z.ZodArray<z.ZodObject<{
9813
+ mark: z.ZodOptional<z.ZodEnum<{
9814
+ changed: "changed";
9815
+ added: "added";
9816
+ deleted: "deleted";
9817
+ }>>;
9818
+ text: z.ZodString;
9819
+ }, z.core.$strict>>;
9820
+ }, z.core.$strict>;
9821
+ flowName: z.ZodString;
9822
+ head: z.ZodObject<{
9823
+ code: z.ZodString;
9824
+ runSummary: z.ZodString;
9825
+ steps: z.ZodArray<z.ZodObject<{
9826
+ mark: z.ZodOptional<z.ZodEnum<{
9827
+ changed: "changed";
9828
+ added: "added";
9829
+ deleted: "deleted";
9830
+ }>>;
9831
+ text: z.ZodString;
9832
+ }, z.core.$strict>>;
9833
+ }, z.core.$strict>;
9834
+ options: z.ZodArray<z.ZodObject<{
9835
+ bugTitle: z.ZodOptional<z.ZodString>;
9836
+ consequence: z.ZodString;
9837
+ id: z.ZodString;
9838
+ title: z.ZodString;
9839
+ }, z.core.$strict>>;
9840
+ proposal: z.ZodString;
9841
+ proposedOptionId: z.ZodString;
9842
+ question: z.ZodString;
9843
+ stepLabel: z.ZodString;
9844
+ }, z.core.$strict>;
9845
+ id: PublicIdSchema;
9846
+ path: z.ZodString;
9847
+ revision: z.ZodNumber;
9848
+ }, z.core.$strip>;
9849
+ };
9242
9850
  find: {
9243
9851
  readonly annotationJustifications: {
9244
9852
  readonly destructiveHint: "Does not change promotions, environments or flow code branches.";
@@ -9313,6 +9921,7 @@ export declare const publicContractsV1: {
9313
9921
  needsPerson: z.ZodOptional<z.ZodObject<{
9314
9922
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9315
9923
  path: z.ZodString;
9924
+ questionId: z.ZodOptional<z.ZodString>;
9316
9925
  }, z.core.$strip>>>;
9317
9926
  reason: z.ZodEnum<{
9318
9927
  "undecided-paths": "undecided-paths";
@@ -9409,6 +10018,7 @@ export declare const publicContractsV1: {
9409
10018
  needsPerson: z.ZodOptional<z.ZodObject<{
9410
10019
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9411
10020
  path: z.ZodString;
10021
+ questionId: z.ZodOptional<z.ZodString>;
9412
10022
  }, z.core.$strip>>>;
9413
10023
  reason: z.ZodEnum<{
9414
10024
  "undecided-paths": "undecided-paths";
@@ -9442,6 +10052,57 @@ export declare const publicContractsV1: {
9442
10052
  }, z.core.$strip>>;
9443
10053
  url: z.ZodURL;
9444
10054
  aiTaskSessionId: z.ZodOptional<PublicIdSchema>;
10055
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10056
+ answer: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
10057
+ answeredAt: z.ZodISODateTime;
10058
+ optionId: z.ZodString;
10059
+ type: z.ZodLiteral<"option">;
10060
+ }, z.core.$strip>, z.ZodObject<{
10061
+ answeredAt: z.ZodISODateTime;
10062
+ text: z.ZodString;
10063
+ type: z.ZodLiteral<"own-words">;
10064
+ }, z.core.$strip>], "type">>;
10065
+ content: z.ZodObject<{
10066
+ base: z.ZodObject<{
10067
+ code: z.ZodString;
10068
+ runSummary: z.ZodString;
10069
+ steps: z.ZodArray<z.ZodObject<{
10070
+ mark: z.ZodOptional<z.ZodEnum<{
10071
+ changed: "changed";
10072
+ added: "added";
10073
+ deleted: "deleted";
10074
+ }>>;
10075
+ text: z.ZodString;
10076
+ }, z.core.$strict>>;
10077
+ }, z.core.$strict>;
10078
+ flowName: z.ZodString;
10079
+ head: z.ZodObject<{
10080
+ code: z.ZodString;
10081
+ runSummary: z.ZodString;
10082
+ steps: z.ZodArray<z.ZodObject<{
10083
+ mark: z.ZodOptional<z.ZodEnum<{
10084
+ changed: "changed";
10085
+ added: "added";
10086
+ deleted: "deleted";
10087
+ }>>;
10088
+ text: z.ZodString;
10089
+ }, z.core.$strict>>;
10090
+ }, z.core.$strict>;
10091
+ options: z.ZodArray<z.ZodObject<{
10092
+ bugTitle: z.ZodOptional<z.ZodString>;
10093
+ consequence: z.ZodString;
10094
+ id: z.ZodString;
10095
+ title: z.ZodString;
10096
+ }, z.core.$strict>>;
10097
+ proposal: z.ZodString;
10098
+ proposedOptionId: z.ZodString;
10099
+ question: z.ZodString;
10100
+ stepLabel: z.ZodString;
10101
+ }, z.core.$strict>;
10102
+ id: PublicIdSchema;
10103
+ path: z.ZodString;
10104
+ revision: z.ZodNumber;
10105
+ }, z.core.$strip>>>;
9445
10106
  }, z.core.$strip>;
9446
10107
  };
9447
10108
  reportDecision: {
@@ -9455,7 +10116,7 @@ export declare const publicContractsV1: {
9455
10116
  readonly openWorldHint: false;
9456
10117
  readonly readOnlyHint: false;
9457
10118
  };
9458
- readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. Reporting a path again replaces its decision. Returns the promotion.";
10119
+ readonly description: "Record how one conflicting path of a conflicted promotion was settled by running its versions, or why it is left for a person, with the run of each version. Exactly one passing version is kept (picked-by-run); when every version passed, they are combined or the one with more checks is kept; a person is asked only when every version failed or the runs could not tell them apart. Every run must have been started for this promotion's resolution. When the workspace runs no versions but has promotion questions on, only a needs-person decision with no runs is recorded, so the path can be asked about. Reporting a path again replaces its decision. Returns the promotion.";
9459
10120
  readonly input: z.ZodObject<{
9460
10121
  base: z.ZodOptional<z.ZodObject<{
9461
10122
  outcome: z.ZodEnum<{
@@ -9544,6 +10205,7 @@ export declare const publicContractsV1: {
9544
10205
  needsPerson: z.ZodOptional<z.ZodObject<{
9545
10206
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9546
10207
  path: z.ZodString;
10208
+ questionId: z.ZodOptional<z.ZodString>;
9547
10209
  }, z.core.$strip>>>;
9548
10210
  reason: z.ZodEnum<{
9549
10211
  "undecided-paths": "undecided-paths";
@@ -9643,6 +10305,7 @@ export declare const publicContractsV1: {
9643
10305
  needsPerson: z.ZodOptional<z.ZodObject<{
9644
10306
  paths: z.ZodOptional<z.ZodArray<z.ZodObject<{
9645
10307
  path: z.ZodString;
10308
+ questionId: z.ZodOptional<z.ZodString>;
9646
10309
  }, z.core.$strip>>>;
9647
10310
  reason: z.ZodEnum<{
9648
10311
  "undecided-paths": "undecided-paths";
@@ -10141,8 +10804,8 @@ export declare const publicContractsV1: {
10141
10804
  attemptCompletedAt: z.ZodISODateTime;
10142
10805
  baselineStatus: z.ZodEnum<{
10143
10806
  unknown: "unknown";
10144
- accepted: "accepted";
10145
10807
  deleted: "deleted";
10808
+ accepted: "accepted";
10146
10809
  unchanged: "unchanged";
10147
10810
  "changed-since-run": "changed-since-run";
10148
10811
  }>;