@cat-factory/contracts 0.86.0 → 0.87.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 (48) hide show
  1. package/dist/agent-presentation.d.ts +2 -2
  2. package/dist/entities.d.ts +9 -1
  3. package/dist/entities.d.ts.map +1 -1
  4. package/dist/entities.js +8 -0
  5. package/dist/entities.js.map +1 -1
  6. package/dist/events.d.ts +11 -0
  7. package/dist/events.d.ts.map +1 -1
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +1 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/initiative.d.ts +408 -0
  13. package/dist/initiative.d.ts.map +1 -0
  14. package/dist/initiative.js +325 -0
  15. package/dist/initiative.js.map +1 -0
  16. package/dist/primitives.d.ts +5 -2
  17. package/dist/primitives.d.ts.map +1 -1
  18. package/dist/primitives.js +5 -2
  19. package/dist/primitives.js.map +1 -1
  20. package/dist/result-views.d.ts +1 -1
  21. package/dist/result-views.d.ts.map +1 -1
  22. package/dist/result-views.js +1 -0
  23. package/dist/result-views.js.map +1 -1
  24. package/dist/routes/board.d.ts +20 -10
  25. package/dist/routes/board.d.ts.map +1 -1
  26. package/dist/routes/execution.d.ts +4 -2
  27. package/dist/routes/execution.d.ts.map +1 -1
  28. package/dist/routes/index.d.ts +1 -0
  29. package/dist/routes/index.d.ts.map +1 -1
  30. package/dist/routes/index.js +1 -0
  31. package/dist/routes/index.js.map +1 -1
  32. package/dist/routes/initiative.d.ts +662 -0
  33. package/dist/routes/initiative.d.ts.map +1 -0
  34. package/dist/routes/initiative.js +45 -0
  35. package/dist/routes/initiative.js.map +1 -0
  36. package/dist/routes/tasks.d.ts +6 -3
  37. package/dist/routes/tasks.d.ts.map +1 -1
  38. package/dist/routes/workspaces.d.ts +176 -4
  39. package/dist/routes/workspaces.d.ts.map +1 -1
  40. package/dist/snapshot.d.ts +94 -2
  41. package/dist/snapshot.d.ts.map +1 -1
  42. package/dist/snapshot.js +8 -0
  43. package/dist/snapshot.js.map +1 -1
  44. package/dist/visual-pipeline.d.ts +12 -6
  45. package/dist/visual-pipeline.d.ts.map +1 -1
  46. package/dist/visual-pipeline.js +12 -6
  47. package/dist/visual-pipeline.js.map +1 -1
  48. package/package.json +1 -1
@@ -0,0 +1,662 @@
1
+ import * as v from 'valibot';
2
+ /**
3
+ * Create an initiative: materialises the initiative-level board block AND its
4
+ * empty entity in one call, returning both so the client patches its board and
5
+ * initiative caches without a refetch.
6
+ */
7
+ export declare const createInitiativeContract: {
8
+ readonly method: "post";
9
+ readonly pathResolver: () => string;
10
+ readonly requestBodySchema: v.ObjectSchema<{
11
+ readonly frameId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
12
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
13
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
14
+ }, undefined>;
15
+ readonly responsesByStatusCode: {
16
+ readonly '4xx': v.ObjectSchema<{
17
+ readonly error: v.ObjectSchema<{
18
+ readonly code: v.StringSchema<undefined>;
19
+ readonly message: v.StringSchema<undefined>;
20
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
21
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
22
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
23
+ readonly message: v.StringSchema<undefined>;
24
+ }, undefined>, undefined>, undefined>;
25
+ }, undefined>;
26
+ }, undefined>;
27
+ readonly '5xx': v.ObjectSchema<{
28
+ readonly error: v.ObjectSchema<{
29
+ readonly code: v.StringSchema<undefined>;
30
+ readonly message: v.StringSchema<undefined>;
31
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
32
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
33
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
34
+ readonly message: v.StringSchema<undefined>;
35
+ }, undefined>, undefined>, undefined>;
36
+ }, undefined>;
37
+ }, undefined>;
38
+ readonly 201: v.ObjectSchema<{
39
+ readonly initiative: v.ObjectSchema<{
40
+ readonly id: v.StringSchema<undefined>;
41
+ readonly blockId: v.StringSchema<undefined>;
42
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
43
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
44
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
45
+ readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
46
+ readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
47
+ readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
48
+ readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
49
+ readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
50
+ }, undefined>, undefined>, readonly []>;
51
+ readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
52
+ readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
53
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
54
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
55
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
56
+ readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
57
+ }, undefined>, undefined>, readonly []>;
58
+ readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
59
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
60
+ readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
61
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
62
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
63
+ readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
64
+ readonly estimate: v.OptionalSchema<v.ObjectSchema<{
65
+ readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
66
+ readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
67
+ readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
68
+ readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
69
+ }, undefined>, undefined>;
70
+ readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
71
+ readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
72
+ readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
73
+ readonly pr: v.OptionalSchema<v.ObjectSchema<{
74
+ readonly url: v.StringSchema<undefined>;
75
+ readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
76
+ }, undefined>, undefined>;
77
+ readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
78
+ }, undefined>, undefined>, readonly []>;
79
+ readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
80
+ readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
81
+ readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
82
+ readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
83
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
84
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
85
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
86
+ }, undefined>, undefined>, readonly []>;
87
+ readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
88
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
89
+ }, undefined>, undefined>, undefined>;
90
+ readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
91
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
92
+ readonly at: v.NumberSchema<undefined>;
93
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
94
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
95
+ readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
96
+ }, undefined>, undefined>, readonly []>;
97
+ readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
98
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
99
+ readonly at: v.NumberSchema<undefined>;
100
+ readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
101
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
102
+ readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
103
+ }, undefined>, undefined>, readonly []>;
104
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
105
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
106
+ readonly at: v.NumberSchema<undefined>;
107
+ readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
108
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
109
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
110
+ readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
111
+ readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
112
+ }, undefined>, undefined>, readonly []>;
113
+ readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
114
+ readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
115
+ readonly doc: v.OptionalSchema<v.ObjectSchema<{
116
+ readonly version: v.NumberSchema<undefined>;
117
+ readonly hash: v.StringSchema<undefined>;
118
+ readonly committedAt: v.NumberSchema<undefined>;
119
+ }, undefined>, undefined>;
120
+ readonly rev: v.NumberSchema<undefined>;
121
+ readonly createdAt: v.NumberSchema<undefined>;
122
+ readonly updatedAt: v.NumberSchema<undefined>;
123
+ }, undefined>;
124
+ readonly block: v.ObjectSchema<{
125
+ readonly id: v.StringSchema<undefined>;
126
+ readonly title: v.StringSchema<undefined>;
127
+ readonly type: v.PicklistSchema<["frontend", "service", "library", "document", "api", "database", "queue", "integration", "external", "environment"], undefined>;
128
+ readonly description: v.StringSchema<undefined>;
129
+ readonly position: v.ObjectSchema<{
130
+ readonly x: v.NumberSchema<undefined>;
131
+ readonly y: v.NumberSchema<undefined>;
132
+ }, undefined>;
133
+ readonly size: v.OptionalSchema<v.ObjectSchema<{
134
+ readonly w: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
135
+ readonly h: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>;
136
+ }, undefined>, undefined>;
137
+ readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
138
+ readonly progress: v.NumberSchema<undefined>;
139
+ readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
140
+ readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
141
+ readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
142
+ readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
143
+ readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
144
+ readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
145
+ readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
146
+ readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
147
+ readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
148
+ readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
149
+ readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
150
+ readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
151
+ readonly rationale: v.StringSchema<undefined>;
152
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
153
+ readonly createdAt: v.NumberSchema<undefined>;
154
+ }, undefined>, undefined>, undefined>;
155
+ readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
156
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "recurring"], undefined>, undefined>;
157
+ readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
158
+ readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
159
+ readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
160
+ readonly timeboxHours: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
161
+ readonly docKind: v.OptionalSchema<v.PicklistSchema<readonly ["prd", "rfc", "adr", "design", "technical", "api", "runbook", "research", "reference", "other"], undefined>, undefined>;
162
+ readonly audience: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
163
+ readonly targetPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 300, undefined>, v.CheckAction<string, "targetPath must be a relative path inside the repo, ending in .md, with no \"..\", absolute, or backslash segments.">]>, undefined>;
164
+ readonly outlineHints: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
165
+ }, undefined>, undefined>, undefined>;
166
+ readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
167
+ readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
168
+ readonly serviceFragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
169
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
170
+ readonly agentConfig: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 400, undefined>]>, undefined>, undefined>;
171
+ readonly provisioning: v.OptionalSchema<v.ObjectSchema<{
172
+ readonly type: v.PicklistSchema<["kubernetes", "docker-compose", "custom", "infraless"], undefined>;
173
+ readonly manifestSource: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
174
+ readonly type: v.LiteralSchema<"colocated", undefined>;
175
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
176
+ readonly renderer: v.OptionalSchema<v.PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
177
+ }, undefined>, v.ObjectSchema<{
178
+ readonly type: v.LiteralSchema<"separate", undefined>;
179
+ readonly repo: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "must be \"owner/repo\"">]>;
180
+ readonly ref: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
181
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
182
+ readonly renderer: v.OptionalSchema<v.PicklistSchema<["raw", "kustomize"], undefined>, undefined>;
183
+ }, undefined>], undefined>, undefined>;
184
+ readonly composePath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
185
+ readonly localDevOnly: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
186
+ readonly manifestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>, undefined>;
187
+ readonly manifestPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
188
+ readonly images: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
189
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
190
+ readonly newNameTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
191
+ readonly newTagTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
192
+ readonly digestTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
193
+ }, undefined>, v.CheckAction<{
194
+ name: string;
195
+ newNameTemplate?: string | undefined;
196
+ newTagTemplate?: string | undefined;
197
+ digestTemplate?: string | undefined;
198
+ }, "an image override must set at least one of newNameTemplate, newTagTemplate, or digestTemplate.">, v.CheckAction<{
199
+ name: string;
200
+ newNameTemplate?: string | undefined;
201
+ newTagTemplate?: string | undefined;
202
+ digestTemplate?: string | undefined;
203
+ }, "newTagTemplate and digestTemplate are mutually exclusive on an image override.">]>, undefined>, undefined>;
204
+ readonly helmReleases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
205
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
206
+ readonly chart: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
207
+ readonly repo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
208
+ readonly version: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.RegexAction<string, "version must be a pinned semver (e.g. 1.2.3), not a floating tag like latest or ^1.0.">]>;
209
+ readonly namespaceTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
210
+ readonly values: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
211
+ readonly set: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
212
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
213
+ readonly valueTemplate: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>;
214
+ }, undefined>, undefined>, undefined>;
215
+ readonly valuesSecretRefs: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
216
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
217
+ readonly secretRef: v.ObjectSchema<{
218
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
219
+ }, undefined>;
220
+ }, undefined>, undefined>, undefined>;
221
+ readonly scope: v.OptionalSchema<v.PicklistSchema<["per-environment", "shared"], undefined>, undefined>;
222
+ }, undefined>, undefined>, undefined>;
223
+ readonly secretInjections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"mode", [v.ObjectSchema<{
224
+ readonly mode: v.LiteralSchema<"secret", undefined>;
225
+ readonly secretName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
226
+ readonly secretType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
227
+ readonly entries: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
228
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 256, undefined>]>;
229
+ readonly secretRef: v.OptionalSchema<v.ObjectSchema<{
230
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
231
+ }, undefined>, undefined>;
232
+ readonly valueTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
233
+ }, undefined>, v.CheckAction<{
234
+ key: string;
235
+ secretRef?: {
236
+ key: string;
237
+ } | undefined;
238
+ valueTemplate?: string | undefined;
239
+ }, "a secret entry must set exactly one of secretRef or valueTemplate.">]>, undefined>;
240
+ }, undefined>, v.ObjectSchema<{
241
+ readonly mode: v.LiteralSchema<"generatorEnvFile", undefined>;
242
+ readonly envFilePath: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
243
+ readonly entries: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
244
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 256, undefined>]>;
245
+ readonly secretRef: v.OptionalSchema<v.ObjectSchema<{
246
+ readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>]>;
247
+ }, undefined>, undefined>;
248
+ readonly valueTemplate: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
249
+ }, undefined>, v.CheckAction<{
250
+ key: string;
251
+ secretRef?: {
252
+ key: string;
253
+ } | undefined;
254
+ valueTemplate?: string | undefined;
255
+ }, "a secret entry must set exactly one of secretRef or valueTemplate.">]>, undefined>;
256
+ }, undefined>], undefined>, undefined>, undefined>;
257
+ }, undefined>, undefined>;
258
+ readonly cloudProvider: v.OptionalSchema<v.PicklistSchema<["cloudflare", "docker", "aws", "gcp", "azure", "custom"], undefined>, undefined>;
259
+ readonly instanceSize: v.OptionalSchema<v.PicklistSchema<["small", "medium", "large", "xlarge"], undefined>, undefined>;
260
+ readonly frontendConfig: v.OptionalSchema<v.ObjectSchema<{
261
+ readonly packageManager: v.OptionalSchema<v.PicklistSchema<["pnpm", "npm", "yarn"], undefined>, undefined>;
262
+ readonly installCommand: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
263
+ readonly buildScript: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
264
+ readonly outputDir: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
265
+ readonly directory: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
266
+ readonly serveMode: v.OptionalSchema<v.PicklistSchema<["static", "command"], undefined>, undefined>;
267
+ readonly serveScript: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
268
+ readonly servePort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 65535, undefined>]>, undefined>;
269
+ readonly envInjection: v.OptionalSchema<v.PicklistSchema<["build", "runtime"], undefined>, undefined>;
270
+ readonly branch: v.OptionalSchema<v.VariantSchema<"kind", [v.ObjectSchema<{
271
+ readonly kind: v.LiteralSchema<"default", undefined>;
272
+ }, undefined>, v.ObjectSchema<{
273
+ readonly kind: v.LiteralSchema<"task", undefined>;
274
+ readonly fromTaskBlockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
275
+ }, undefined>], undefined>, undefined>;
276
+ readonly mockMappingsPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
277
+ readonly previewEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
278
+ readonly backendBindings: v.ArraySchema<v.ObjectSchema<{
279
+ readonly envVar: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
280
+ readonly source: v.VariantSchema<"kind", [v.ObjectSchema<{
281
+ readonly kind: v.LiteralSchema<"service", undefined>;
282
+ readonly serviceBlockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
283
+ }, undefined>, v.ObjectSchema<{
284
+ readonly kind: v.LiteralSchema<"mock", undefined>;
285
+ }, undefined>], undefined>;
286
+ }, undefined>, undefined>;
287
+ }, undefined>, undefined>;
288
+ readonly serviceConnections: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
289
+ readonly serviceBlockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
290
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
291
+ }, undefined>, undefined>, v.MaxLengthAction<{
292
+ serviceBlockId: string;
293
+ description?: string | undefined;
294
+ }[], 50, undefined>]>, undefined>;
295
+ readonly involvedServiceIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
296
+ readonly pullRequest: v.OptionalSchema<v.ObjectSchema<{
297
+ readonly url: v.StringSchema<undefined>;
298
+ readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
299
+ readonly branch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
300
+ }, undefined>, undefined>;
301
+ readonly mergePresetId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
302
+ readonly modelPresetId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
303
+ readonly pipelineId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
304
+ readonly createdBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
305
+ readonly responsibleProductUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
306
+ readonly trackerCommentOnPrOpen: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
307
+ readonly trackerResolveOnMerge: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
308
+ }, undefined>;
309
+ }, undefined>;
310
+ };
311
+ };
312
+ export declare const listInitiativesContract: {
313
+ readonly method: "get";
314
+ readonly pathResolver: () => string;
315
+ readonly responsesByStatusCode: {
316
+ readonly '4xx': v.ObjectSchema<{
317
+ readonly error: v.ObjectSchema<{
318
+ readonly code: v.StringSchema<undefined>;
319
+ readonly message: v.StringSchema<undefined>;
320
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
321
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
322
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
323
+ readonly message: v.StringSchema<undefined>;
324
+ }, undefined>, undefined>, undefined>;
325
+ }, undefined>;
326
+ }, undefined>;
327
+ readonly '5xx': v.ObjectSchema<{
328
+ readonly error: v.ObjectSchema<{
329
+ readonly code: v.StringSchema<undefined>;
330
+ readonly message: v.StringSchema<undefined>;
331
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
332
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
333
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
334
+ readonly message: v.StringSchema<undefined>;
335
+ }, undefined>, undefined>, undefined>;
336
+ }, undefined>;
337
+ }, undefined>;
338
+ readonly 200: v.ArraySchema<v.ObjectSchema<{
339
+ readonly id: v.StringSchema<undefined>;
340
+ readonly blockId: v.StringSchema<undefined>;
341
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
342
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
343
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
344
+ readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
345
+ readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
346
+ readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
347
+ readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
348
+ readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
349
+ }, undefined>, undefined>, readonly []>;
350
+ readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
351
+ readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
352
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
353
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
354
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
355
+ readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
356
+ }, undefined>, undefined>, readonly []>;
357
+ readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
358
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
359
+ readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
360
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
361
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
362
+ readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
363
+ readonly estimate: v.OptionalSchema<v.ObjectSchema<{
364
+ readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
365
+ readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
366
+ readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
367
+ readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
368
+ }, undefined>, undefined>;
369
+ readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
370
+ readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
371
+ readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
372
+ readonly pr: v.OptionalSchema<v.ObjectSchema<{
373
+ readonly url: v.StringSchema<undefined>;
374
+ readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
375
+ }, undefined>, undefined>;
376
+ readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
377
+ }, undefined>, undefined>, readonly []>;
378
+ readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
379
+ readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
380
+ readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
381
+ readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
382
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
383
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
384
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
385
+ }, undefined>, undefined>, readonly []>;
386
+ readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
387
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
388
+ }, undefined>, undefined>, undefined>;
389
+ readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
390
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
391
+ readonly at: v.NumberSchema<undefined>;
392
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
393
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
394
+ readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
395
+ }, undefined>, undefined>, readonly []>;
396
+ readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
397
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
398
+ readonly at: v.NumberSchema<undefined>;
399
+ readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
400
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
401
+ readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
402
+ }, undefined>, undefined>, readonly []>;
403
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
404
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
405
+ readonly at: v.NumberSchema<undefined>;
406
+ readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
407
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
408
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
409
+ readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
410
+ readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
411
+ }, undefined>, undefined>, readonly []>;
412
+ readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
413
+ readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
414
+ readonly doc: v.OptionalSchema<v.ObjectSchema<{
415
+ readonly version: v.NumberSchema<undefined>;
416
+ readonly hash: v.StringSchema<undefined>;
417
+ readonly committedAt: v.NumberSchema<undefined>;
418
+ }, undefined>, undefined>;
419
+ readonly rev: v.NumberSchema<undefined>;
420
+ readonly createdAt: v.NumberSchema<undefined>;
421
+ readonly updatedAt: v.NumberSchema<undefined>;
422
+ }, undefined>, undefined>;
423
+ };
424
+ };
425
+ export declare const getInitiativeContract: {
426
+ readonly method: "get";
427
+ readonly requestPathParamsSchema: v.ObjectSchema<{
428
+ initiativeId: v.StringSchema<undefined>;
429
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
430
+ readonly pathResolver: ({ initiativeId }: {
431
+ initiativeId: string;
432
+ }) => string;
433
+ readonly responsesByStatusCode: {
434
+ readonly '4xx': v.ObjectSchema<{
435
+ readonly error: v.ObjectSchema<{
436
+ readonly code: v.StringSchema<undefined>;
437
+ readonly message: v.StringSchema<undefined>;
438
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
439
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
440
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
441
+ readonly message: v.StringSchema<undefined>;
442
+ }, undefined>, undefined>, undefined>;
443
+ }, undefined>;
444
+ }, undefined>;
445
+ readonly '5xx': v.ObjectSchema<{
446
+ readonly error: v.ObjectSchema<{
447
+ readonly code: v.StringSchema<undefined>;
448
+ readonly message: v.StringSchema<undefined>;
449
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
450
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
451
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
452
+ readonly message: v.StringSchema<undefined>;
453
+ }, undefined>, undefined>, undefined>;
454
+ }, undefined>;
455
+ }, undefined>;
456
+ readonly 200: v.ObjectSchema<{
457
+ readonly id: v.StringSchema<undefined>;
458
+ readonly blockId: v.StringSchema<undefined>;
459
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
460
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
461
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
462
+ readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
463
+ readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
464
+ readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
465
+ readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
466
+ readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
467
+ }, undefined>, undefined>, readonly []>;
468
+ readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
469
+ readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
470
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
471
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
472
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
473
+ readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
474
+ }, undefined>, undefined>, readonly []>;
475
+ readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
476
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
477
+ readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
478
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
479
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
480
+ readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
481
+ readonly estimate: v.OptionalSchema<v.ObjectSchema<{
482
+ readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
483
+ readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
484
+ readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
485
+ readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
486
+ }, undefined>, undefined>;
487
+ readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
488
+ readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
489
+ readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
490
+ readonly pr: v.OptionalSchema<v.ObjectSchema<{
491
+ readonly url: v.StringSchema<undefined>;
492
+ readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
493
+ }, undefined>, undefined>;
494
+ readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
495
+ }, undefined>, undefined>, readonly []>;
496
+ readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
497
+ readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
498
+ readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
499
+ readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
500
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
501
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
502
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
503
+ }, undefined>, undefined>, readonly []>;
504
+ readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
505
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
506
+ }, undefined>, undefined>, undefined>;
507
+ readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
508
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
509
+ readonly at: v.NumberSchema<undefined>;
510
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
511
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
512
+ readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
513
+ }, undefined>, undefined>, readonly []>;
514
+ readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
515
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
516
+ readonly at: v.NumberSchema<undefined>;
517
+ readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
518
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
519
+ readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
520
+ }, undefined>, undefined>, readonly []>;
521
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
522
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
523
+ readonly at: v.NumberSchema<undefined>;
524
+ readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
525
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
526
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
527
+ readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
528
+ readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
529
+ }, undefined>, undefined>, readonly []>;
530
+ readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
531
+ readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
532
+ readonly doc: v.OptionalSchema<v.ObjectSchema<{
533
+ readonly version: v.NumberSchema<undefined>;
534
+ readonly hash: v.StringSchema<undefined>;
535
+ readonly committedAt: v.NumberSchema<undefined>;
536
+ }, undefined>, undefined>;
537
+ readonly rev: v.NumberSchema<undefined>;
538
+ readonly createdAt: v.NumberSchema<undefined>;
539
+ readonly updatedAt: v.NumberSchema<undefined>;
540
+ }, undefined>;
541
+ };
542
+ };
543
+ /** Fetch the initiative anchored to a board block (the tracker window's load path). */
544
+ export declare const getInitiativeByBlockContract: {
545
+ readonly method: "get";
546
+ readonly requestPathParamsSchema: v.ObjectSchema<{
547
+ blockId: v.StringSchema<undefined>;
548
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
549
+ readonly pathResolver: ({ blockId }: {
550
+ blockId: string;
551
+ }) => string;
552
+ readonly responsesByStatusCode: {
553
+ readonly '4xx': v.ObjectSchema<{
554
+ readonly error: v.ObjectSchema<{
555
+ readonly code: v.StringSchema<undefined>;
556
+ readonly message: v.StringSchema<undefined>;
557
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
558
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
559
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
560
+ readonly message: v.StringSchema<undefined>;
561
+ }, undefined>, undefined>, undefined>;
562
+ }, undefined>;
563
+ }, undefined>;
564
+ readonly '5xx': v.ObjectSchema<{
565
+ readonly error: v.ObjectSchema<{
566
+ readonly code: v.StringSchema<undefined>;
567
+ readonly message: v.StringSchema<undefined>;
568
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
569
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
570
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
571
+ readonly message: v.StringSchema<undefined>;
572
+ }, undefined>, undefined>, undefined>;
573
+ }, undefined>;
574
+ }, undefined>;
575
+ readonly 200: v.NullableSchema<v.ObjectSchema<{
576
+ readonly id: v.StringSchema<undefined>;
577
+ readonly blockId: v.StringSchema<undefined>;
578
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
579
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
580
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
581
+ readonly constraints: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
582
+ readonly nonGoals: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
583
+ readonly qa: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
584
+ readonly question: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
585
+ readonly answer: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
586
+ }, undefined>, undefined>, readonly []>;
587
+ readonly analysisSummary: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>, "">;
588
+ readonly phases: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
589
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
590
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
591
+ readonly goal: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
592
+ readonly maxConcurrent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>, undefined>;
593
+ }, undefined>, undefined>, readonly []>;
594
+ readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
595
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
596
+ readonly phaseId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
597
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
598
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 8000, undefined>]>;
599
+ readonly dependsOn: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, readonly []>;
600
+ readonly estimate: v.OptionalSchema<v.ObjectSchema<{
601
+ readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
602
+ readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
603
+ readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
604
+ readonly rationale: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
605
+ }, undefined>, undefined>;
606
+ readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
607
+ readonly status: v.PicklistSchema<["pending", "in_progress", "pr_open", "done", "blocked", "skipped"], undefined>;
608
+ readonly blockId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
609
+ readonly pr: v.OptionalSchema<v.ObjectSchema<{
610
+ readonly url: v.StringSchema<undefined>;
611
+ readonly number: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
612
+ }, undefined>, undefined>;
613
+ readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
614
+ }, undefined>, undefined>, readonly []>;
615
+ readonly policy: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
616
+ readonly maxConcurrent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 20, undefined>]>;
617
+ readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
618
+ readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
619
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
620
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
621
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
622
+ }, undefined>, undefined>, readonly []>;
623
+ readonly defaultPipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
624
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["default", "strongest"], undefined>, "default">;
625
+ }, undefined>, undefined>, undefined>;
626
+ readonly decisions: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
627
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
628
+ readonly at: v.NumberSchema<undefined>;
629
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
630
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
631
+ readonly source: v.PicklistSchema<["planning", "human", "agent"], undefined>;
632
+ }, undefined>, undefined>, readonly []>;
633
+ readonly deviations: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
634
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
635
+ readonly at: v.NumberSchema<undefined>;
636
+ readonly itemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
637
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>;
638
+ readonly resolution: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
639
+ }, undefined>, undefined>, readonly []>;
640
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
641
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>;
642
+ readonly at: v.NumberSchema<undefined>;
643
+ readonly sourceItemId: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>, undefined>;
644
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
645
+ readonly detail: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, "">;
646
+ readonly status: v.PicklistSchema<["open", "promoted", "dismissed"], undefined>;
647
+ readonly promotedItemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
648
+ }, undefined>, undefined>, readonly []>;
649
+ readonly caveats: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, readonly []>;
650
+ readonly status: v.PicklistSchema<["planning", "awaiting_approval", "executing", "paused", "done", "cancelled"], undefined>;
651
+ readonly doc: v.OptionalSchema<v.ObjectSchema<{
652
+ readonly version: v.NumberSchema<undefined>;
653
+ readonly hash: v.StringSchema<undefined>;
654
+ readonly committedAt: v.NumberSchema<undefined>;
655
+ }, undefined>, undefined>;
656
+ readonly rev: v.NumberSchema<undefined>;
657
+ readonly createdAt: v.NumberSchema<undefined>;
658
+ readonly updatedAt: v.NumberSchema<undefined>;
659
+ }, undefined>, undefined>;
660
+ };
661
+ };
662
+ //# sourceMappingURL=initiative.d.ts.map