@qawolf/api-contracts 0.109.0 → 0.114.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 (61) hide show
  1. package/dist/v1/activity/wait.d.ts +72 -0
  2. package/dist/v1/activity/wait.d.ts.map +1 -0
  3. package/dist/v1/activity/wait.js +89 -0
  4. package/dist/v1/activity/wait.js.map +1 -0
  5. package/dist/v1/index.d.ts +308 -50
  6. package/dist/v1/index.d.ts.map +1 -1
  7. package/dist/v1/index.js +4 -0
  8. package/dist/v1/index.js.map +1 -1
  9. package/dist/v1/investigation/get.d.ts +1 -1
  10. package/dist/v1/investigation/index.d.ts +31 -1
  11. package/dist/v1/investigation/index.d.ts.map +1 -1
  12. package/dist/v1/investigation/question/answer.d.ts +36 -0
  13. package/dist/v1/investigation/question/answer.d.ts.map +1 -0
  14. package/dist/v1/investigation/question/answer.js +65 -0
  15. package/dist/v1/investigation/question/answer.js.map +1 -0
  16. package/dist/v1/investigation/question/find.js +2 -2
  17. package/dist/v1/investigation/question/find.js.map +1 -1
  18. package/dist/v1/investigation/question/index.d.ts +30 -0
  19. package/dist/v1/investigation/question/index.d.ts.map +1 -1
  20. package/dist/v1/investigation/question/index.js +2 -0
  21. package/dist/v1/investigation/question/index.js.map +1 -1
  22. package/dist/v1/issue/create.js +1 -1
  23. package/dist/v1/issue/create.js.map +1 -1
  24. package/dist/v1/issue/index.d.ts.map +1 -1
  25. package/dist/v1/issue/index.js +3 -7
  26. package/dist/v1/issue/index.js.map +1 -1
  27. package/dist/v1/sharedSchemas.d.ts +1 -0
  28. package/dist/v1/sharedSchemas.d.ts.map +1 -1
  29. package/dist/v1/sharedSchemas.js +1 -0
  30. package/dist/v1/sharedSchemas.js.map +1 -1
  31. package/dist/v1/trigger/configuration.d.ts +8 -3
  32. package/dist/v1/trigger/configuration.d.ts.map +1 -1
  33. package/dist/v1/trigger/configuration.js +4 -2
  34. package/dist/v1/trigger/configuration.js.map +1 -1
  35. package/dist/v1/trigger/configurationRules.d.ts +4 -1
  36. package/dist/v1/trigger/configurationRules.d.ts.map +1 -1
  37. package/dist/v1/trigger/configurationRules.js +17 -6
  38. package/dist/v1/trigger/configurationRules.js.map +1 -1
  39. package/dist/v1/trigger/create.d.ts +14 -6
  40. package/dist/v1/trigger/create.d.ts.map +1 -1
  41. package/dist/v1/trigger/find.d.ts +7 -3
  42. package/dist/v1/trigger/find.d.ts.map +1 -1
  43. package/dist/v1/trigger/get.d.ts +7 -3
  44. package/dist/v1/trigger/get.d.ts.map +1 -1
  45. package/dist/v1/trigger/index.d.ts +56 -24
  46. package/dist/v1/trigger/index.d.ts.map +1 -1
  47. package/dist/v1/trigger/lifecycle.d.ts +14 -6
  48. package/dist/v1/trigger/lifecycle.d.ts.map +1 -1
  49. package/dist/v1/trigger/resource.d.ts +7 -3
  50. package/dist/v1/trigger/resource.d.ts.map +1 -1
  51. package/dist/v1/trigger/scheduleRepeatFields.d.ts +12 -0
  52. package/dist/v1/trigger/scheduleRepeatFields.d.ts.map +1 -0
  53. package/dist/v1/trigger/scheduleRepeatFields.js +27 -0
  54. package/dist/v1/trigger/scheduleRepeatFields.js.map +1 -0
  55. package/dist/v1/trigger/scheduleRepeatRules.d.ts +17 -0
  56. package/dist/v1/trigger/scheduleRepeatRules.d.ts.map +1 -0
  57. package/dist/v1/trigger/scheduleRepeatRules.js +78 -0
  58. package/dist/v1/trigger/scheduleRepeatRules.js.map +1 -0
  59. package/dist/v1/trigger/update.d.ts +14 -6
  60. package/dist/v1/trigger/update.d.ts.map +1 -1
  61. package/package.json +1 -1
@@ -15,6 +15,73 @@ export type PublicApiOutput<Api extends AnyPublicApiContract> = z.infer<Api["out
15
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"> & {
16
16
  runAttempt?: RunAttemptId;
17
17
  }) => {
18
+ activity: {
19
+ wait: {
20
+ readonly annotationJustifications: {
21
+ readonly destructiveHint: "Does not cancel work, stop runs or edit tests.";
22
+ readonly openWorldHint: "Reads QA Wolf sessions and runs without posting to external services.";
23
+ readonly readOnlyHint: "Retrieves session replies and statuses and run statuses without sending work.";
24
+ };
25
+ readonly annotations: {
26
+ readonly destructiveHint: false;
27
+ readonly openWorldHint: false;
28
+ readonly readOnlyHint: true;
29
+ };
30
+ readonly description: "Wait on many QA Wolf AI (Tester) sessions and runs in one call. Pass every Tester session and run you are waiting on. The call returns as soon as any session replies or changes status or any run finishes, and reports every item with news. Send back open as the next call's input, and call again as soon as it returns. Pass waitSeconds above 45 only when your instructions say your client keeps the call open while progress arrives.";
31
+ readonly input: z.ZodObject<{
32
+ cursors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
33
+ runIds: z.ZodOptional<z.ZodArray<RunId>>;
34
+ sessionIds: z.ZodOptional<z.ZodArray<ChatSessionId>>;
35
+ waitSeconds: z.ZodOptional<z.ZodNumber>;
36
+ }, z.core.$strip>;
37
+ readonly kind: "read";
38
+ readonly name: "activity.wait";
39
+ readonly output: z.ZodObject<{
40
+ open: z.ZodObject<{
41
+ cursors: z.ZodRecord<z.ZodString, z.ZodString>;
42
+ runIds: z.ZodArray<RunId>;
43
+ sessionIds: z.ZodArray<ChatSessionId>;
44
+ }, z.core.$strip>;
45
+ runs: z.ZodArray<z.ZodObject<{
46
+ finished: z.ZodBoolean;
47
+ runId: RunId;
48
+ status: z.ZodEnum<{
49
+ failed: "failed";
50
+ queued: "queued";
51
+ running: "running";
52
+ passed: "passed";
53
+ canceled: "canceled";
54
+ superseded: "superseded";
55
+ "not-found": "not-found";
56
+ }>;
57
+ url: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strip>>;
59
+ sessions: z.ZodArray<z.ZodObject<{
60
+ nextCursor: z.ZodString;
61
+ replies: z.ZodArray<z.ZodObject<{
62
+ askedAt: z.ZodISODateTime;
63
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
64
+ id: z.ZodString;
65
+ text: z.ZodString;
66
+ }, z.core.$strip>>;
67
+ sessionId: ChatSessionId;
68
+ status: z.ZodEnum<{
69
+ working: "working";
70
+ "waiting-for-you": "waiting-for-you";
71
+ completed: "completed";
72
+ failed: "failed";
73
+ cancelled: "cancelled";
74
+ "not-found": "not-found";
75
+ }>;
76
+ }, z.core.$strip>>;
77
+ waitSeconds: z.ZodNumber;
78
+ wokeOn: z.ZodEnum<{
79
+ timeout: "timeout";
80
+ activity: "activity";
81
+ }>;
82
+ }, z.core.$strip>;
83
+ };
84
+ };
18
85
  agent: {
19
86
  get: {
20
87
  readonly annotationJustifications: {
@@ -1802,8 +1869,8 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1802
1869
  runId: RunId;
1803
1870
  sessionId: z.ZodOptional<ChatSessionId>;
1804
1871
  status: z.ZodEnum<{
1805
- investigating: "investigating";
1806
1872
  finished: "finished";
1873
+ investigating: "investigating";
1807
1874
  "not-investigated": "not-investigated";
1808
1875
  "not-enabled": "not-enabled";
1809
1876
  }>;
@@ -1821,6 +1888,36 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
1821
1888
  }, z.core.$strip>;
1822
1889
  };
1823
1890
  question: {
1891
+ answer: {
1892
+ readonly annotationJustifications: {
1893
+ readonly destructiveHint: "Records a person's answer that cannot be changed, and the investigation acts on it, for example by filing a bug or publishing a test fix.";
1894
+ readonly openWorldHint: "A bug report the investigation files from an answer can reach the workspace's configured integrations.";
1895
+ readonly readOnlyHint: "Records answers to the questions of a run's investigation.";
1896
+ };
1897
+ readonly annotations: {
1898
+ readonly destructiveHint: true;
1899
+ readonly openWorldHint: true;
1900
+ readonly readOnlyHint: false;
1901
+ };
1902
+ readonly description: string;
1903
+ readonly input: z.ZodObject<{
1904
+ answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1905
+ replies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1906
+ runId: RunId;
1907
+ }, z.core.$strip>;
1908
+ readonly kind: "write";
1909
+ readonly name: "investigation.question.answer";
1910
+ readonly output: z.ZodObject<{
1911
+ answeredFindingIds: z.ZodArray<z.ZodString>;
1912
+ refused: z.ZodArray<z.ZodObject<{
1913
+ findingId: z.ZodString;
1914
+ message: z.ZodString;
1915
+ reason: z.ZodString;
1916
+ }, z.core.$strip>>;
1917
+ runId: RunId;
1918
+ url: z.ZodURL;
1919
+ }, z.core.$strip>;
1920
+ };
1824
1921
  find: {
1825
1922
  readonly annotationJustifications: {
1826
1923
  readonly destructiveHint: "Does not answer, dismiss or change any question.";
@@ -4727,6 +4824,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4727
4824
  readonly description: string;
4728
4825
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
4729
4826
  kind: z.ZodLiteral<"schedule">;
4827
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
4828
+ timeOfDay: z.ZodOptional<z.ZodString>;
4829
+ timezoneId: z.ZodOptional<z.ZodString>;
4830
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
4831
+ every: z.ZodOptional<z.ZodNumber>;
4832
+ startDate: z.ZodOptional<z.ZodString>;
4730
4833
  action: z.ZodObject<{
4731
4834
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
4732
4835
  instructions: z.ZodOptional<z.ZodString>;
@@ -4743,6 +4846,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4743
4846
  hourly: "hourly";
4744
4847
  daily: "daily";
4745
4848
  weekly: "weekly";
4849
+ monthly: "monthly";
4746
4850
  }>;
4747
4851
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
4748
4852
  monday: "monday";
@@ -4763,9 +4867,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4763
4867
  sunday: "sunday";
4764
4868
  }>>>;
4765
4869
  environmentId: PublicIdSchema;
4766
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
4767
- timeOfDay: z.ZodOptional<z.ZodString>;
4768
- timezoneId: z.ZodOptional<z.ZodString>;
4769
4870
  name: z.ZodString;
4770
4871
  workspaceId: z.ZodOptional<WorkspaceId>;
4771
4872
  }, z.core.$strip>, z.ZodObject<{
@@ -4797,6 +4898,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4797
4898
  trigger: z.ZodObject<{
4798
4899
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
4799
4900
  kind: z.ZodLiteral<"schedule">;
4901
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
4902
+ timeOfDay: z.ZodOptional<z.ZodString>;
4903
+ timezoneId: z.ZodOptional<z.ZodString>;
4904
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
4905
+ every: z.ZodOptional<z.ZodNumber>;
4906
+ startDate: z.ZodOptional<z.ZodString>;
4800
4907
  action: z.ZodObject<{
4801
4908
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
4802
4909
  instructions: z.ZodOptional<z.ZodString>;
@@ -4813,6 +4920,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4813
4920
  hourly: "hourly";
4814
4921
  daily: "daily";
4815
4922
  weekly: "weekly";
4923
+ monthly: "monthly";
4816
4924
  }>;
4817
4925
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
4818
4926
  monday: "monday";
@@ -4833,9 +4941,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4833
4941
  sunday: "sunday";
4834
4942
  }>>>;
4835
4943
  environmentId: EnvironmentId;
4836
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
4837
- timeOfDay: z.ZodOptional<z.ZodString>;
4838
- timezoneId: z.ZodOptional<z.ZodString>;
4839
4944
  }, z.core.$strip>, z.ZodObject<{
4840
4945
  kind: z.ZodLiteral<"deployment">;
4841
4946
  action: z.ZodObject<{
@@ -4915,6 +5020,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4915
5020
  triggers: z.ZodArray<z.ZodObject<{
4916
5021
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
4917
5022
  kind: z.ZodLiteral<"schedule">;
5023
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
5024
+ timeOfDay: z.ZodOptional<z.ZodString>;
5025
+ timezoneId: z.ZodOptional<z.ZodString>;
5026
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
5027
+ every: z.ZodOptional<z.ZodNumber>;
5028
+ startDate: z.ZodOptional<z.ZodString>;
4918
5029
  action: z.ZodObject<{
4919
5030
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
4920
5031
  instructions: z.ZodOptional<z.ZodString>;
@@ -4931,6 +5042,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4931
5042
  hourly: "hourly";
4932
5043
  daily: "daily";
4933
5044
  weekly: "weekly";
5045
+ monthly: "monthly";
4934
5046
  }>;
4935
5047
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
4936
5048
  monday: "monday";
@@ -4951,9 +5063,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
4951
5063
  sunday: "sunday";
4952
5064
  }>>>;
4953
5065
  environmentId: EnvironmentId;
4954
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
4955
- timeOfDay: z.ZodOptional<z.ZodString>;
4956
- timezoneId: z.ZodOptional<z.ZodString>;
4957
5066
  }, z.core.$strip>, z.ZodObject<{
4958
5067
  kind: z.ZodLiteral<"deployment">;
4959
5068
  action: z.ZodObject<{
@@ -5011,6 +5120,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5011
5120
  trigger: z.ZodObject<{
5012
5121
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
5013
5122
  kind: z.ZodLiteral<"schedule">;
5123
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
5124
+ timeOfDay: z.ZodOptional<z.ZodString>;
5125
+ timezoneId: z.ZodOptional<z.ZodString>;
5126
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
5127
+ every: z.ZodOptional<z.ZodNumber>;
5128
+ startDate: z.ZodOptional<z.ZodString>;
5014
5129
  action: z.ZodObject<{
5015
5130
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
5016
5131
  instructions: z.ZodOptional<z.ZodString>;
@@ -5027,6 +5142,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5027
5142
  hourly: "hourly";
5028
5143
  daily: "daily";
5029
5144
  weekly: "weekly";
5145
+ monthly: "monthly";
5030
5146
  }>;
5031
5147
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
5032
5148
  monday: "monday";
@@ -5047,9 +5163,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5047
5163
  sunday: "sunday";
5048
5164
  }>>>;
5049
5165
  environmentId: EnvironmentId;
5050
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
5051
- timeOfDay: z.ZodOptional<z.ZodString>;
5052
- timezoneId: z.ZodOptional<z.ZodString>;
5053
5166
  }, z.core.$strip>, z.ZodObject<{
5054
5167
  kind: z.ZodLiteral<"deployment">;
5055
5168
  action: z.ZodObject<{
@@ -5107,6 +5220,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5107
5220
  trigger: z.ZodObject<{
5108
5221
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
5109
5222
  kind: z.ZodLiteral<"schedule">;
5223
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
5224
+ timeOfDay: z.ZodOptional<z.ZodString>;
5225
+ timezoneId: z.ZodOptional<z.ZodString>;
5226
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
5227
+ every: z.ZodOptional<z.ZodNumber>;
5228
+ startDate: z.ZodOptional<z.ZodString>;
5110
5229
  action: z.ZodObject<{
5111
5230
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
5112
5231
  instructions: z.ZodOptional<z.ZodString>;
@@ -5123,6 +5242,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5123
5242
  hourly: "hourly";
5124
5243
  daily: "daily";
5125
5244
  weekly: "weekly";
5245
+ monthly: "monthly";
5126
5246
  }>;
5127
5247
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
5128
5248
  monday: "monday";
@@ -5143,9 +5263,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5143
5263
  sunday: "sunday";
5144
5264
  }>>>;
5145
5265
  environmentId: EnvironmentId;
5146
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
5147
- timeOfDay: z.ZodOptional<z.ZodString>;
5148
- timezoneId: z.ZodOptional<z.ZodString>;
5149
5266
  }, z.core.$strip>, z.ZodObject<{
5150
5267
  kind: z.ZodLiteral<"deployment">;
5151
5268
  action: z.ZodObject<{
@@ -5203,6 +5320,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5203
5320
  trigger: z.ZodObject<{
5204
5321
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
5205
5322
  kind: z.ZodLiteral<"schedule">;
5323
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
5324
+ timeOfDay: z.ZodOptional<z.ZodString>;
5325
+ timezoneId: z.ZodOptional<z.ZodString>;
5326
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
5327
+ every: z.ZodOptional<z.ZodNumber>;
5328
+ startDate: z.ZodOptional<z.ZodString>;
5206
5329
  action: z.ZodObject<{
5207
5330
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
5208
5331
  instructions: z.ZodOptional<z.ZodString>;
@@ -5219,6 +5342,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5219
5342
  hourly: "hourly";
5220
5343
  daily: "daily";
5221
5344
  weekly: "weekly";
5345
+ monthly: "monthly";
5222
5346
  }>;
5223
5347
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
5224
5348
  monday: "monday";
@@ -5239,9 +5363,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5239
5363
  sunday: "sunday";
5240
5364
  }>>>;
5241
5365
  environmentId: EnvironmentId;
5242
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
5243
- timeOfDay: z.ZodOptional<z.ZodString>;
5244
- timezoneId: z.ZodOptional<z.ZodString>;
5245
5366
  }, z.core.$strip>, z.ZodObject<{
5246
5367
  kind: z.ZodLiteral<"deployment">;
5247
5368
  action: z.ZodObject<{
@@ -5292,6 +5413,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5292
5413
  readonly description: string;
5293
5414
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
5294
5415
  kind: z.ZodLiteral<"schedule">;
5416
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
5417
+ timeOfDay: z.ZodOptional<z.ZodString>;
5418
+ timezoneId: z.ZodOptional<z.ZodString>;
5419
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
5420
+ every: z.ZodOptional<z.ZodNumber>;
5421
+ startDate: z.ZodOptional<z.ZodString>;
5295
5422
  action: z.ZodObject<{
5296
5423
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
5297
5424
  instructions: z.ZodOptional<z.ZodString>;
@@ -5308,6 +5435,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5308
5435
  hourly: "hourly";
5309
5436
  daily: "daily";
5310
5437
  weekly: "weekly";
5438
+ monthly: "monthly";
5311
5439
  }>;
5312
5440
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
5313
5441
  monday: "monday";
@@ -5328,9 +5456,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5328
5456
  sunday: "sunday";
5329
5457
  }>>>;
5330
5458
  environmentId: PublicIdSchema;
5331
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
5332
- timeOfDay: z.ZodOptional<z.ZodString>;
5333
- timezoneId: z.ZodOptional<z.ZodString>;
5334
5459
  name: z.ZodString;
5335
5460
  triggerId: TriggerId;
5336
5461
  }, z.core.$strip>, z.ZodObject<{
@@ -5362,6 +5487,12 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5362
5487
  trigger: z.ZodObject<{
5363
5488
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
5364
5489
  kind: z.ZodLiteral<"schedule">;
5490
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
5491
+ timeOfDay: z.ZodOptional<z.ZodString>;
5492
+ timezoneId: z.ZodOptional<z.ZodString>;
5493
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
5494
+ every: z.ZodOptional<z.ZodNumber>;
5495
+ startDate: z.ZodOptional<z.ZodString>;
5365
5496
  action: z.ZodObject<{
5366
5497
  flowIds: z.ZodDefault<z.ZodArray<FlowId>>;
5367
5498
  instructions: z.ZodOptional<z.ZodString>;
@@ -5378,6 +5509,7 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5378
5509
  hourly: "hourly";
5379
5510
  daily: "daily";
5380
5511
  weekly: "weekly";
5512
+ monthly: "monthly";
5381
5513
  }>;
5382
5514
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
5383
5515
  monday: "monday";
@@ -5398,9 +5530,6 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5398
5530
  sunday: "sunday";
5399
5531
  }>>>;
5400
5532
  environmentId: EnvironmentId;
5401
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
5402
- timeOfDay: z.ZodOptional<z.ZodString>;
5403
- timezoneId: z.ZodOptional<z.ZodString>;
5404
5533
  }, z.core.$strip>, z.ZodObject<{
5405
5534
  kind: z.ZodLiteral<"deployment">;
5406
5535
  action: z.ZodObject<{
@@ -5440,6 +5569,73 @@ export declare const makeContractsV1: <EnvironmentId extends PublicIdSchema, Flo
5440
5569
  };
5441
5570
  };
5442
5571
  export declare const publicContractsV1: {
5572
+ activity: {
5573
+ wait: {
5574
+ readonly annotationJustifications: {
5575
+ readonly destructiveHint: "Does not cancel work, stop runs or edit tests.";
5576
+ readonly openWorldHint: "Reads QA Wolf sessions and runs without posting to external services.";
5577
+ readonly readOnlyHint: "Retrieves session replies and statuses and run statuses without sending work.";
5578
+ };
5579
+ readonly annotations: {
5580
+ readonly destructiveHint: false;
5581
+ readonly openWorldHint: false;
5582
+ readonly readOnlyHint: true;
5583
+ };
5584
+ readonly description: "Wait on many QA Wolf AI (Tester) sessions and runs in one call. Pass every Tester session and run you are waiting on. The call returns as soon as any session replies or changes status or any run finishes, and reports every item with news. Send back open as the next call's input, and call again as soon as it returns. Pass waitSeconds above 45 only when your instructions say your client keeps the call open while progress arrives.";
5585
+ readonly input: z.ZodObject<{
5586
+ cursors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5587
+ runIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
5588
+ sessionIds: z.ZodOptional<z.ZodArray<PublicIdSchema>>;
5589
+ waitSeconds: z.ZodOptional<z.ZodNumber>;
5590
+ }, z.core.$strip>;
5591
+ readonly kind: "read";
5592
+ readonly name: "activity.wait";
5593
+ readonly output: z.ZodObject<{
5594
+ open: z.ZodObject<{
5595
+ cursors: z.ZodRecord<z.ZodString, z.ZodString>;
5596
+ runIds: z.ZodArray<PublicIdSchema>;
5597
+ sessionIds: z.ZodArray<PublicIdSchema>;
5598
+ }, z.core.$strip>;
5599
+ runs: z.ZodArray<z.ZodObject<{
5600
+ finished: z.ZodBoolean;
5601
+ runId: PublicIdSchema;
5602
+ status: z.ZodEnum<{
5603
+ failed: "failed";
5604
+ queued: "queued";
5605
+ running: "running";
5606
+ passed: "passed";
5607
+ canceled: "canceled";
5608
+ superseded: "superseded";
5609
+ "not-found": "not-found";
5610
+ }>;
5611
+ url: z.ZodOptional<z.ZodString>;
5612
+ }, z.core.$strip>>;
5613
+ sessions: z.ZodArray<z.ZodObject<{
5614
+ nextCursor: z.ZodString;
5615
+ replies: z.ZodArray<z.ZodObject<{
5616
+ askedAt: z.ZodISODateTime;
5617
+ choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
5618
+ id: z.ZodString;
5619
+ text: z.ZodString;
5620
+ }, z.core.$strip>>;
5621
+ sessionId: PublicIdSchema;
5622
+ status: z.ZodEnum<{
5623
+ working: "working";
5624
+ "waiting-for-you": "waiting-for-you";
5625
+ completed: "completed";
5626
+ failed: "failed";
5627
+ cancelled: "cancelled";
5628
+ "not-found": "not-found";
5629
+ }>;
5630
+ }, z.core.$strip>>;
5631
+ waitSeconds: z.ZodNumber;
5632
+ wokeOn: z.ZodEnum<{
5633
+ timeout: "timeout";
5634
+ activity: "activity";
5635
+ }>;
5636
+ }, z.core.$strip>;
5637
+ };
5638
+ };
5443
5639
  agent: {
5444
5640
  get: {
5445
5641
  readonly annotationJustifications: {
@@ -7227,8 +7423,8 @@ export declare const publicContractsV1: {
7227
7423
  runId: PublicIdSchema;
7228
7424
  sessionId: z.ZodOptional<PublicIdSchema>;
7229
7425
  status: z.ZodEnum<{
7230
- investigating: "investigating";
7231
7426
  finished: "finished";
7427
+ investigating: "investigating";
7232
7428
  "not-investigated": "not-investigated";
7233
7429
  "not-enabled": "not-enabled";
7234
7430
  }>;
@@ -7246,6 +7442,36 @@ export declare const publicContractsV1: {
7246
7442
  }, z.core.$strip>;
7247
7443
  };
7248
7444
  question: {
7445
+ answer: {
7446
+ readonly annotationJustifications: {
7447
+ readonly destructiveHint: "Records a person's answer that cannot be changed, and the investigation acts on it, for example by filing a bug or publishing a test fix.";
7448
+ readonly openWorldHint: "A bug report the investigation files from an answer can reach the workspace's configured integrations.";
7449
+ readonly readOnlyHint: "Records answers to the questions of a run's investigation.";
7450
+ };
7451
+ readonly annotations: {
7452
+ readonly destructiveHint: true;
7453
+ readonly openWorldHint: true;
7454
+ readonly readOnlyHint: false;
7455
+ };
7456
+ readonly description: string;
7457
+ readonly input: z.ZodObject<{
7458
+ answers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7459
+ replies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7460
+ runId: PublicIdSchema;
7461
+ }, z.core.$strip>;
7462
+ readonly kind: "write";
7463
+ readonly name: "investigation.question.answer";
7464
+ readonly output: z.ZodObject<{
7465
+ answeredFindingIds: z.ZodArray<z.ZodString>;
7466
+ refused: z.ZodArray<z.ZodObject<{
7467
+ findingId: z.ZodString;
7468
+ message: z.ZodString;
7469
+ reason: z.ZodString;
7470
+ }, z.core.$strip>>;
7471
+ runId: PublicIdSchema;
7472
+ url: z.ZodURL;
7473
+ }, z.core.$strip>;
7474
+ };
7249
7475
  find: {
7250
7476
  readonly annotationJustifications: {
7251
7477
  readonly destructiveHint: "Does not answer, dismiss or change any question.";
@@ -10152,6 +10378,12 @@ export declare const publicContractsV1: {
10152
10378
  readonly description: string;
10153
10379
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
10154
10380
  kind: z.ZodLiteral<"schedule">;
10381
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10382
+ timeOfDay: z.ZodOptional<z.ZodString>;
10383
+ timezoneId: z.ZodOptional<z.ZodString>;
10384
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10385
+ every: z.ZodOptional<z.ZodNumber>;
10386
+ startDate: z.ZodOptional<z.ZodString>;
10155
10387
  action: z.ZodObject<{
10156
10388
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10157
10389
  instructions: z.ZodOptional<z.ZodString>;
@@ -10168,6 +10400,7 @@ export declare const publicContractsV1: {
10168
10400
  hourly: "hourly";
10169
10401
  daily: "daily";
10170
10402
  weekly: "weekly";
10403
+ monthly: "monthly";
10171
10404
  }>;
10172
10405
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10173
10406
  monday: "monday";
@@ -10188,9 +10421,6 @@ export declare const publicContractsV1: {
10188
10421
  sunday: "sunday";
10189
10422
  }>>>;
10190
10423
  environmentId: PublicIdSchema;
10191
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10192
- timeOfDay: z.ZodOptional<z.ZodString>;
10193
- timezoneId: z.ZodOptional<z.ZodString>;
10194
10424
  name: z.ZodString;
10195
10425
  workspaceId: z.ZodOptional<PublicIdSchema>;
10196
10426
  }, z.core.$strip>, z.ZodObject<{
@@ -10222,6 +10452,12 @@ export declare const publicContractsV1: {
10222
10452
  trigger: z.ZodObject<{
10223
10453
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10224
10454
  kind: z.ZodLiteral<"schedule">;
10455
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10456
+ timeOfDay: z.ZodOptional<z.ZodString>;
10457
+ timezoneId: z.ZodOptional<z.ZodString>;
10458
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10459
+ every: z.ZodOptional<z.ZodNumber>;
10460
+ startDate: z.ZodOptional<z.ZodString>;
10225
10461
  action: z.ZodObject<{
10226
10462
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10227
10463
  instructions: z.ZodOptional<z.ZodString>;
@@ -10238,6 +10474,7 @@ export declare const publicContractsV1: {
10238
10474
  hourly: "hourly";
10239
10475
  daily: "daily";
10240
10476
  weekly: "weekly";
10477
+ monthly: "monthly";
10241
10478
  }>;
10242
10479
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10243
10480
  monday: "monday";
@@ -10258,9 +10495,6 @@ export declare const publicContractsV1: {
10258
10495
  sunday: "sunday";
10259
10496
  }>>>;
10260
10497
  environmentId: PublicIdSchema;
10261
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10262
- timeOfDay: z.ZodOptional<z.ZodString>;
10263
- timezoneId: z.ZodOptional<z.ZodString>;
10264
10498
  }, z.core.$strip>, z.ZodObject<{
10265
10499
  kind: z.ZodLiteral<"deployment">;
10266
10500
  action: z.ZodObject<{
@@ -10340,6 +10574,12 @@ export declare const publicContractsV1: {
10340
10574
  triggers: z.ZodArray<z.ZodObject<{
10341
10575
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10342
10576
  kind: z.ZodLiteral<"schedule">;
10577
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10578
+ timeOfDay: z.ZodOptional<z.ZodString>;
10579
+ timezoneId: z.ZodOptional<z.ZodString>;
10580
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10581
+ every: z.ZodOptional<z.ZodNumber>;
10582
+ startDate: z.ZodOptional<z.ZodString>;
10343
10583
  action: z.ZodObject<{
10344
10584
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10345
10585
  instructions: z.ZodOptional<z.ZodString>;
@@ -10356,6 +10596,7 @@ export declare const publicContractsV1: {
10356
10596
  hourly: "hourly";
10357
10597
  daily: "daily";
10358
10598
  weekly: "weekly";
10599
+ monthly: "monthly";
10359
10600
  }>;
10360
10601
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10361
10602
  monday: "monday";
@@ -10376,9 +10617,6 @@ export declare const publicContractsV1: {
10376
10617
  sunday: "sunday";
10377
10618
  }>>>;
10378
10619
  environmentId: PublicIdSchema;
10379
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10380
- timeOfDay: z.ZodOptional<z.ZodString>;
10381
- timezoneId: z.ZodOptional<z.ZodString>;
10382
10620
  }, z.core.$strip>, z.ZodObject<{
10383
10621
  kind: z.ZodLiteral<"deployment">;
10384
10622
  action: z.ZodObject<{
@@ -10436,6 +10674,12 @@ export declare const publicContractsV1: {
10436
10674
  trigger: z.ZodObject<{
10437
10675
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10438
10676
  kind: z.ZodLiteral<"schedule">;
10677
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10678
+ timeOfDay: z.ZodOptional<z.ZodString>;
10679
+ timezoneId: z.ZodOptional<z.ZodString>;
10680
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10681
+ every: z.ZodOptional<z.ZodNumber>;
10682
+ startDate: z.ZodOptional<z.ZodString>;
10439
10683
  action: z.ZodObject<{
10440
10684
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10441
10685
  instructions: z.ZodOptional<z.ZodString>;
@@ -10452,6 +10696,7 @@ export declare const publicContractsV1: {
10452
10696
  hourly: "hourly";
10453
10697
  daily: "daily";
10454
10698
  weekly: "weekly";
10699
+ monthly: "monthly";
10455
10700
  }>;
10456
10701
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10457
10702
  monday: "monday";
@@ -10472,9 +10717,6 @@ export declare const publicContractsV1: {
10472
10717
  sunday: "sunday";
10473
10718
  }>>>;
10474
10719
  environmentId: PublicIdSchema;
10475
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10476
- timeOfDay: z.ZodOptional<z.ZodString>;
10477
- timezoneId: z.ZodOptional<z.ZodString>;
10478
10720
  }, z.core.$strip>, z.ZodObject<{
10479
10721
  kind: z.ZodLiteral<"deployment">;
10480
10722
  action: z.ZodObject<{
@@ -10532,6 +10774,12 @@ export declare const publicContractsV1: {
10532
10774
  trigger: z.ZodObject<{
10533
10775
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10534
10776
  kind: z.ZodLiteral<"schedule">;
10777
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10778
+ timeOfDay: z.ZodOptional<z.ZodString>;
10779
+ timezoneId: z.ZodOptional<z.ZodString>;
10780
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10781
+ every: z.ZodOptional<z.ZodNumber>;
10782
+ startDate: z.ZodOptional<z.ZodString>;
10535
10783
  action: z.ZodObject<{
10536
10784
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10537
10785
  instructions: z.ZodOptional<z.ZodString>;
@@ -10548,6 +10796,7 @@ export declare const publicContractsV1: {
10548
10796
  hourly: "hourly";
10549
10797
  daily: "daily";
10550
10798
  weekly: "weekly";
10799
+ monthly: "monthly";
10551
10800
  }>;
10552
10801
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10553
10802
  monday: "monday";
@@ -10568,9 +10817,6 @@ export declare const publicContractsV1: {
10568
10817
  sunday: "sunday";
10569
10818
  }>>>;
10570
10819
  environmentId: PublicIdSchema;
10571
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10572
- timeOfDay: z.ZodOptional<z.ZodString>;
10573
- timezoneId: z.ZodOptional<z.ZodString>;
10574
10820
  }, z.core.$strip>, z.ZodObject<{
10575
10821
  kind: z.ZodLiteral<"deployment">;
10576
10822
  action: z.ZodObject<{
@@ -10628,6 +10874,12 @@ export declare const publicContractsV1: {
10628
10874
  trigger: z.ZodObject<{
10629
10875
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10630
10876
  kind: z.ZodLiteral<"schedule">;
10877
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10878
+ timeOfDay: z.ZodOptional<z.ZodString>;
10879
+ timezoneId: z.ZodOptional<z.ZodString>;
10880
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10881
+ every: z.ZodOptional<z.ZodNumber>;
10882
+ startDate: z.ZodOptional<z.ZodString>;
10631
10883
  action: z.ZodObject<{
10632
10884
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10633
10885
  instructions: z.ZodOptional<z.ZodString>;
@@ -10644,6 +10896,7 @@ export declare const publicContractsV1: {
10644
10896
  hourly: "hourly";
10645
10897
  daily: "daily";
10646
10898
  weekly: "weekly";
10899
+ monthly: "monthly";
10647
10900
  }>;
10648
10901
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10649
10902
  monday: "monday";
@@ -10664,9 +10917,6 @@ export declare const publicContractsV1: {
10664
10917
  sunday: "sunday";
10665
10918
  }>>>;
10666
10919
  environmentId: PublicIdSchema;
10667
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10668
- timeOfDay: z.ZodOptional<z.ZodString>;
10669
- timezoneId: z.ZodOptional<z.ZodString>;
10670
10920
  }, z.core.$strip>, z.ZodObject<{
10671
10921
  kind: z.ZodLiteral<"deployment">;
10672
10922
  action: z.ZodObject<{
@@ -10717,6 +10967,12 @@ export declare const publicContractsV1: {
10717
10967
  readonly description: string;
10718
10968
  readonly input: z.ZodDiscriminatedUnion<[z.ZodObject<{
10719
10969
  kind: z.ZodLiteral<"schedule">;
10970
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
10971
+ timeOfDay: z.ZodOptional<z.ZodString>;
10972
+ timezoneId: z.ZodOptional<z.ZodString>;
10973
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
10974
+ every: z.ZodOptional<z.ZodNumber>;
10975
+ startDate: z.ZodOptional<z.ZodString>;
10720
10976
  action: z.ZodObject<{
10721
10977
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10722
10978
  instructions: z.ZodOptional<z.ZodString>;
@@ -10733,6 +10989,7 @@ export declare const publicContractsV1: {
10733
10989
  hourly: "hourly";
10734
10990
  daily: "daily";
10735
10991
  weekly: "weekly";
10992
+ monthly: "monthly";
10736
10993
  }>;
10737
10994
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10738
10995
  monday: "monday";
@@ -10753,9 +11010,6 @@ export declare const publicContractsV1: {
10753
11010
  sunday: "sunday";
10754
11011
  }>>>;
10755
11012
  environmentId: PublicIdSchema;
10756
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10757
- timeOfDay: z.ZodOptional<z.ZodString>;
10758
- timezoneId: z.ZodOptional<z.ZodString>;
10759
11013
  name: z.ZodString;
10760
11014
  triggerId: PublicIdSchema;
10761
11015
  }, z.core.$strip>, z.ZodObject<{
@@ -10787,6 +11041,12 @@ export declare const publicContractsV1: {
10787
11041
  trigger: z.ZodObject<{
10788
11042
  configuration: z.ZodDiscriminatedUnion<[z.ZodObject<{
10789
11043
  kind: z.ZodLiteral<"schedule">;
11044
+ minuteOfHour: z.ZodOptional<z.ZodNumber>;
11045
+ timeOfDay: z.ZodOptional<z.ZodString>;
11046
+ timezoneId: z.ZodOptional<z.ZodString>;
11047
+ dayOfMonth: z.ZodOptional<z.ZodNumber>;
11048
+ every: z.ZodOptional<z.ZodNumber>;
11049
+ startDate: z.ZodOptional<z.ZodString>;
10790
11050
  action: z.ZodObject<{
10791
11051
  flowIds: z.ZodDefault<z.ZodArray<PublicIdSchema>>;
10792
11052
  instructions: z.ZodOptional<z.ZodString>;
@@ -10803,6 +11063,7 @@ export declare const publicContractsV1: {
10803
11063
  hourly: "hourly";
10804
11064
  daily: "daily";
10805
11065
  weekly: "weekly";
11066
+ monthly: "monthly";
10806
11067
  }>;
10807
11068
  dayOfWeek: z.ZodOptional<z.ZodEnum<{
10808
11069
  monday: "monday";
@@ -10823,9 +11084,6 @@ export declare const publicContractsV1: {
10823
11084
  sunday: "sunday";
10824
11085
  }>>>;
10825
11086
  environmentId: PublicIdSchema;
10826
- minuteOfHour: z.ZodOptional<z.ZodNumber>;
10827
- timeOfDay: z.ZodOptional<z.ZodString>;
10828
- timezoneId: z.ZodOptional<z.ZodString>;
10829
11087
  }, z.core.$strip>, z.ZodObject<{
10830
11088
  kind: z.ZodLiteral<"deployment">;
10831
11089
  action: z.ZodObject<{