@cat-factory/contracts 0.34.0 → 0.35.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 (209) hide show
  1. package/dist/api-keys.d.ts +17 -0
  2. package/dist/api-keys.d.ts.map +1 -1
  3. package/dist/api-keys.js +2 -0
  4. package/dist/api-keys.js.map +1 -1
  5. package/dist/github.d.ts +14 -0
  6. package/dist/github.d.ts.map +1 -1
  7. package/dist/github.js +13 -0
  8. package/dist/github.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1 -0
  12. package/dist/index.js.map +1 -1
  13. package/dist/observability.d.ts +63 -0
  14. package/dist/observability.d.ts.map +1 -1
  15. package/dist/observability.js +57 -0
  16. package/dist/observability.js.map +1 -1
  17. package/dist/requests.d.ts +7 -0
  18. package/dist/requests.d.ts.map +1 -1
  19. package/dist/requests.js +2 -0
  20. package/dist/requests.js.map +1 -1
  21. package/dist/routes/_shared.d.ts +49 -0
  22. package/dist/routes/_shared.d.ts.map +1 -0
  23. package/dist/routes/_shared.js +34 -0
  24. package/dist/routes/_shared.js.map +1 -0
  25. package/dist/routes/accounts.d.ts +775 -0
  26. package/dist/routes/accounts.d.ts.map +1 -0
  27. package/dist/routes/accounts.js +145 -0
  28. package/dist/routes/accounts.js.map +1 -0
  29. package/dist/routes/agent-runs.d.ts +659 -0
  30. package/dist/routes/agent-runs.d.ts.map +1 -0
  31. package/dist/routes/agent-runs.js +33 -0
  32. package/dist/routes/agent-runs.js.map +1 -0
  33. package/dist/routes/api-keys.d.ts +245 -0
  34. package/dist/routes/api-keys.d.ts.map +1 -0
  35. package/dist/routes/api-keys.js +49 -0
  36. package/dist/routes/api-keys.js.map +1 -0
  37. package/dist/routes/auth.d.ts +411 -0
  38. package/dist/routes/auth.d.ts.map +1 -0
  39. package/dist/routes/auth.js +129 -0
  40. package/dist/routes/auth.js.map +1 -0
  41. package/dist/routes/board.d.ts +1260 -0
  42. package/dist/routes/board.d.ts.map +1 -0
  43. package/dist/routes/board.js +85 -0
  44. package/dist/routes/board.js.map +1 -0
  45. package/dist/routes/bootstrap.d.ts +395 -0
  46. package/dist/routes/bootstrap.d.ts.map +1 -0
  47. package/dist/routes/bootstrap.js +56 -0
  48. package/dist/routes/bootstrap.js.map +1 -0
  49. package/dist/routes/brainstorm.d.ts +482 -0
  50. package/dist/routes/brainstorm.d.ts.map +1 -0
  51. package/dist/routes/brainstorm.js +69 -0
  52. package/dist/routes/brainstorm.js.map +1 -0
  53. package/dist/routes/clarity.d.ts +462 -0
  54. package/dist/routes/clarity.d.ts.map +1 -0
  55. package/dist/routes/clarity.js +67 -0
  56. package/dist/routes/clarity.js.map +1 -0
  57. package/dist/routes/consensus.d.ts +71 -0
  58. package/dist/routes/consensus.d.ts.map +1 -0
  59. package/dist/routes/consensus.js +23 -0
  60. package/dist/routes/consensus.js.map +1 -0
  61. package/dist/routes/documents.d.ts +449 -0
  62. package/dist/routes/documents.d.ts.map +1 -0
  63. package/dist/routes/documents.js +89 -0
  64. package/dist/routes/documents.js.map +1 -0
  65. package/dist/routes/environments.d.ts +715 -0
  66. package/dist/routes/environments.d.ts.map +1 -0
  67. package/dist/routes/environments.js +82 -0
  68. package/dist/routes/environments.js.map +1 -0
  69. package/dist/routes/execution.d.ts +2768 -0
  70. package/dist/routes/execution.d.ts.map +1 -0
  71. package/dist/routes/execution.js +119 -0
  72. package/dist/routes/execution.js.map +1 -0
  73. package/dist/routes/followUp.d.ts +277 -0
  74. package/dist/routes/followUp.d.ts.map +1 -0
  75. package/dist/routes/followUp.js +47 -0
  76. package/dist/routes/followUp.js.map +1 -0
  77. package/dist/routes/fragment-library.d.ts +594 -0
  78. package/dist/routes/fragment-library.d.ts.map +1 -0
  79. package/dist/routes/fragment-library.js +102 -0
  80. package/dist/routes/fragment-library.js.map +1 -0
  81. package/dist/routes/github.d.ts +807 -0
  82. package/dist/routes/github.d.ts.map +1 -0
  83. package/dist/routes/github.js +157 -0
  84. package/dist/routes/github.js.map +1 -0
  85. package/dist/routes/human-review.d.ts +290 -0
  86. package/dist/routes/human-review.d.ts.map +1 -0
  87. package/dist/routes/human-review.js +20 -0
  88. package/dist/routes/human-review.js.map +1 -0
  89. package/dist/routes/human-test.d.ts +1435 -0
  90. package/dist/routes/human-test.d.ts.map +1 -0
  91. package/dist/routes/human-test.js +48 -0
  92. package/dist/routes/human-test.js.map +1 -0
  93. package/dist/routes/incident-enrichment.d.ts +110 -0
  94. package/dist/routes/incident-enrichment.d.ts.map +1 -0
  95. package/dist/routes/incident-enrichment.js +26 -0
  96. package/dist/routes/incident-enrichment.js.map +1 -0
  97. package/dist/routes/index.d.ts +47 -0
  98. package/dist/routes/index.d.ts.map +1 -0
  99. package/dist/routes/index.js +50 -0
  100. package/dist/routes/index.js.map +1 -0
  101. package/dist/routes/kaizen.d.ts +113 -0
  102. package/dist/routes/kaizen.d.ts.map +1 -0
  103. package/dist/routes/kaizen.js +22 -0
  104. package/dist/routes/kaizen.js.map +1 -0
  105. package/dist/routes/localModels.d.ts +163 -0
  106. package/dist/routes/localModels.d.ts.map +1 -0
  107. package/dist/routes/localModels.js +41 -0
  108. package/dist/routes/localModels.js.map +1 -0
  109. package/dist/routes/localSettings.d.ts +93 -0
  110. package/dist/routes/localSettings.d.ts.map +1 -0
  111. package/dist/routes/localSettings.js +22 -0
  112. package/dist/routes/localSettings.js.map +1 -0
  113. package/dist/routes/merge.d.ts +197 -0
  114. package/dist/routes/merge.d.ts.map +1 -0
  115. package/dist/routes/merge.js +36 -0
  116. package/dist/routes/merge.js.map +1 -0
  117. package/dist/routes/model-presets.d.ts +162 -0
  118. package/dist/routes/model-presets.d.ts.map +1 -0
  119. package/dist/routes/model-presets.js +36 -0
  120. package/dist/routes/model-presets.js.map +1 -0
  121. package/dist/routes/models.d.ts +123 -0
  122. package/dist/routes/models.d.ts.map +1 -0
  123. package/dist/routes/models.js +25 -0
  124. package/dist/routes/models.js.map +1 -0
  125. package/dist/routes/notifications.d.ts +213 -0
  126. package/dist/routes/notifications.d.ts.map +1 -0
  127. package/dist/routes/notifications.js +31 -0
  128. package/dist/routes/notifications.js.map +1 -0
  129. package/dist/routes/openrouter.d.ts +145 -0
  130. package/dist/routes/openrouter.d.ts.map +1 -0
  131. package/dist/routes/openrouter.js +32 -0
  132. package/dist/routes/openrouter.js.map +1 -0
  133. package/dist/routes/personal-subscriptions.d.ts +124 -0
  134. package/dist/routes/personal-subscriptions.d.ts.map +1 -0
  135. package/dist/routes/personal-subscriptions.js +32 -0
  136. package/dist/routes/personal-subscriptions.js.map +1 -0
  137. package/dist/routes/pipelines.d.ts +457 -0
  138. package/dist/routes/pipelines.d.ts.map +1 -0
  139. package/dist/routes/pipelines.js +51 -0
  140. package/dist/routes/pipelines.js.map +1 -0
  141. package/dist/routes/prompt-fragments.d.ts +52 -0
  142. package/dist/routes/prompt-fragments.d.ts.map +1 -0
  143. package/dist/routes/prompt-fragments.js +14 -0
  144. package/dist/routes/prompt-fragments.js.map +1 -0
  145. package/dist/routes/provisioning-logs.d.ts +45 -0
  146. package/dist/routes/provisioning-logs.d.ts.map +1 -0
  147. package/dist/routes/provisioning-logs.js +14 -0
  148. package/dist/routes/provisioning-logs.js.map +1 -0
  149. package/dist/routes/recurring.d.ts +309 -0
  150. package/dist/routes/recurring.d.ts.map +1 -0
  151. package/dist/routes/recurring.js +50 -0
  152. package/dist/routes/recurring.js.map +1 -0
  153. package/dist/routes/release.d.ts +218 -0
  154. package/dist/routes/release.d.ts.map +1 -0
  155. package/dist/routes/release.js +47 -0
  156. package/dist/routes/release.js.map +1 -0
  157. package/dist/routes/requirements.d.ts +901 -0
  158. package/dist/routes/requirements.d.ts.map +1 -0
  159. package/dist/routes/requirements.js +96 -0
  160. package/dist/routes/requirements.js.map +1 -0
  161. package/dist/routes/runners.d.ts +442 -0
  162. package/dist/routes/runners.d.ts.map +1 -0
  163. package/dist/routes/runners.js +47 -0
  164. package/dist/routes/runners.js.map +1 -0
  165. package/dist/routes/sandbox.d.ts +898 -0
  166. package/dist/routes/sandbox.d.ts.map +1 -0
  167. package/dist/routes/sandbox.js +119 -0
  168. package/dist/routes/sandbox.js.map +1 -0
  169. package/dist/routes/service-fragment-defaults.d.ts +66 -0
  170. package/dist/routes/service-fragment-defaults.d.ts.map +1 -0
  171. package/dist/routes/service-fragment-defaults.js +20 -0
  172. package/dist/routes/service-fragment-defaults.js.map +1 -0
  173. package/dist/routes/services.d.ts +224 -0
  174. package/dist/routes/services.d.ts.map +1 -0
  175. package/dist/routes/services.js +44 -0
  176. package/dist/routes/services.js.map +1 -0
  177. package/dist/routes/slack.d.ts +332 -0
  178. package/dist/routes/slack.d.ts.map +1 -0
  179. package/dist/routes/slack.js +72 -0
  180. package/dist/routes/slack.js.map +1 -0
  181. package/dist/routes/spec.d.ts +76 -0
  182. package/dist/routes/spec.d.ts.map +1 -0
  183. package/dist/routes/spec.js +17 -0
  184. package/dist/routes/spec.js.map +1 -0
  185. package/dist/routes/tasks.d.ts +723 -0
  186. package/dist/routes/tasks.d.ts.map +1 -0
  187. package/dist/routes/tasks.js +108 -0
  188. package/dist/routes/tasks.js.map +1 -0
  189. package/dist/routes/tracker.d.ts +77 -0
  190. package/dist/routes/tracker.d.ts.map +1 -0
  191. package/dist/routes/tracker.js +20 -0
  192. package/dist/routes/tracker.js.map +1 -0
  193. package/dist/routes/user-secret.d.ts +231 -0
  194. package/dist/routes/user-secret.d.ts.map +1 -0
  195. package/dist/routes/user-secret.js +49 -0
  196. package/dist/routes/user-secret.js.map +1 -0
  197. package/dist/routes/vendor-credentials.d.ts +120 -0
  198. package/dist/routes/vendor-credentials.d.ts.map +1 -0
  199. package/dist/routes/vendor-credentials.js +33 -0
  200. package/dist/routes/vendor-credentials.js.map +1 -0
  201. package/dist/routes/workspace-settings.d.ts +93 -0
  202. package/dist/routes/workspace-settings.d.ts.map +1 -0
  203. package/dist/routes/workspace-settings.js +20 -0
  204. package/dist/routes/workspace-settings.js.map +1 -0
  205. package/dist/routes/workspaces.d.ts +1309 -0
  206. package/dist/routes/workspaces.d.ts.map +1 -0
  207. package/dist/routes/workspaces.js +45 -0
  208. package/dist/routes/workspaces.js.map +1 -0
  209. package/package.json +3 -1
@@ -0,0 +1,457 @@
1
+ import { ContractNoBody } from '@toad-contracts/valibot';
2
+ import * as v from 'valibot';
3
+ export declare const listPipelinesContract: {
4
+ readonly method: "get";
5
+ readonly pathResolver: () => string;
6
+ readonly responsesByStatusCode: {
7
+ readonly '4xx': v.ObjectSchema<{
8
+ readonly error: v.ObjectSchema<{
9
+ readonly code: v.StringSchema<undefined>;
10
+ readonly message: v.StringSchema<undefined>;
11
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
12
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
13
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
14
+ readonly message: v.StringSchema<undefined>;
15
+ }, undefined>, undefined>, undefined>;
16
+ }, undefined>;
17
+ }, undefined>;
18
+ readonly '5xx': v.ObjectSchema<{
19
+ readonly error: v.ObjectSchema<{
20
+ readonly code: v.StringSchema<undefined>;
21
+ readonly message: v.StringSchema<undefined>;
22
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
23
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
24
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly message: v.StringSchema<undefined>;
26
+ }, undefined>, undefined>, undefined>;
27
+ }, undefined>;
28
+ }, undefined>;
29
+ readonly 200: v.ArraySchema<v.ObjectSchema<{
30
+ readonly id: v.StringSchema<undefined>;
31
+ readonly name: v.StringSchema<undefined>;
32
+ readonly agentKinds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
33
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
34
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
35
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
36
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
37
+ readonly enabled: v.BooleanSchema<undefined>;
38
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
39
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
40
+ readonly id: v.StringSchema<undefined>;
41
+ readonly role: v.StringSchema<undefined>;
42
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
43
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
44
+ }, undefined>, undefined>;
45
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
46
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
47
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
48
+ readonly enabled: v.BooleanSchema<undefined>;
49
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
50
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
51
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
52
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
53
+ }, undefined>, undefined>;
54
+ }, undefined>, undefined>, undefined>, undefined>;
55
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
56
+ readonly enabled: v.BooleanSchema<undefined>;
57
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
58
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
59
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
60
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
61
+ }, undefined>, undefined>, undefined>, undefined>;
62
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>, undefined>;
63
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
64
+ readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
65
+ readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
66
+ }, undefined>, undefined>;
67
+ };
68
+ };
69
+ export declare const createPipelineContract: {
70
+ readonly method: "post";
71
+ readonly pathResolver: () => string;
72
+ readonly requestBodySchema: v.ObjectSchema<{
73
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
74
+ readonly agentKinds: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
75
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
76
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
77
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
78
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
79
+ readonly enabled: v.BooleanSchema<undefined>;
80
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
81
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
82
+ readonly id: v.StringSchema<undefined>;
83
+ readonly role: v.StringSchema<undefined>;
84
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
85
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
86
+ }, undefined>, undefined>;
87
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
88
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
89
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
90
+ readonly enabled: v.BooleanSchema<undefined>;
91
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
92
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
93
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
94
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
95
+ }, undefined>, undefined>;
96
+ }, undefined>, undefined>, undefined>, undefined>;
97
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
98
+ readonly enabled: v.BooleanSchema<undefined>;
99
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
100
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
101
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
102
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
103
+ }, undefined>, undefined>, undefined>, undefined>;
104
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
105
+ }, undefined>;
106
+ readonly responsesByStatusCode: {
107
+ readonly '4xx': v.ObjectSchema<{
108
+ readonly error: v.ObjectSchema<{
109
+ readonly code: v.StringSchema<undefined>;
110
+ readonly message: v.StringSchema<undefined>;
111
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
112
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
113
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
114
+ readonly message: v.StringSchema<undefined>;
115
+ }, undefined>, undefined>, undefined>;
116
+ }, undefined>;
117
+ }, undefined>;
118
+ readonly '5xx': v.ObjectSchema<{
119
+ readonly error: v.ObjectSchema<{
120
+ readonly code: v.StringSchema<undefined>;
121
+ readonly message: v.StringSchema<undefined>;
122
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
123
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
124
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
125
+ readonly message: v.StringSchema<undefined>;
126
+ }, undefined>, undefined>, undefined>;
127
+ }, undefined>;
128
+ }, undefined>;
129
+ readonly 201: v.ObjectSchema<{
130
+ readonly id: v.StringSchema<undefined>;
131
+ readonly name: v.StringSchema<undefined>;
132
+ readonly agentKinds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
133
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
134
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
135
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
136
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
137
+ readonly enabled: v.BooleanSchema<undefined>;
138
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
139
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
140
+ readonly id: v.StringSchema<undefined>;
141
+ readonly role: v.StringSchema<undefined>;
142
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
143
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
144
+ }, undefined>, undefined>;
145
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
146
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
147
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
148
+ readonly enabled: v.BooleanSchema<undefined>;
149
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
150
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
151
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
152
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
153
+ }, undefined>, undefined>;
154
+ }, undefined>, undefined>, undefined>, undefined>;
155
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
156
+ readonly enabled: v.BooleanSchema<undefined>;
157
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
158
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
159
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
160
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
161
+ }, undefined>, undefined>, undefined>, undefined>;
162
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>, undefined>;
163
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
164
+ readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
165
+ readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
166
+ }, undefined>;
167
+ };
168
+ };
169
+ export declare const clonePipelineContract: {
170
+ readonly method: "post";
171
+ readonly requestPathParamsSchema: v.ObjectSchema<{
172
+ readonly pipelineId: v.StringSchema<undefined>;
173
+ }, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
174
+ readonly pathResolver: ({ pipelineId }: {
175
+ pipelineId: string;
176
+ }) => string;
177
+ readonly requestBodySchema: v.ObjectSchema<{
178
+ readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
179
+ }, undefined>;
180
+ readonly responsesByStatusCode: {
181
+ readonly '4xx': v.ObjectSchema<{
182
+ readonly error: v.ObjectSchema<{
183
+ readonly code: v.StringSchema<undefined>;
184
+ readonly message: v.StringSchema<undefined>;
185
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
186
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
187
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
188
+ readonly message: v.StringSchema<undefined>;
189
+ }, undefined>, undefined>, undefined>;
190
+ }, undefined>;
191
+ }, undefined>;
192
+ readonly '5xx': v.ObjectSchema<{
193
+ readonly error: v.ObjectSchema<{
194
+ readonly code: v.StringSchema<undefined>;
195
+ readonly message: v.StringSchema<undefined>;
196
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
197
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
198
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
199
+ readonly message: v.StringSchema<undefined>;
200
+ }, undefined>, undefined>, undefined>;
201
+ }, undefined>;
202
+ }, undefined>;
203
+ readonly 201: v.ObjectSchema<{
204
+ readonly id: v.StringSchema<undefined>;
205
+ readonly name: v.StringSchema<undefined>;
206
+ readonly agentKinds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
207
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
208
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
209
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
210
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
211
+ readonly enabled: v.BooleanSchema<undefined>;
212
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
213
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
214
+ readonly id: v.StringSchema<undefined>;
215
+ readonly role: v.StringSchema<undefined>;
216
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
217
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
218
+ }, undefined>, undefined>;
219
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
220
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
221
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
222
+ readonly enabled: v.BooleanSchema<undefined>;
223
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
224
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
225
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
226
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
227
+ }, undefined>, undefined>;
228
+ }, undefined>, undefined>, undefined>, undefined>;
229
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
230
+ readonly enabled: v.BooleanSchema<undefined>;
231
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
232
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
233
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
234
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
235
+ }, undefined>, undefined>, undefined>, undefined>;
236
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>, undefined>;
237
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
238
+ readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
239
+ readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
240
+ }, undefined>;
241
+ };
242
+ };
243
+ export declare const updatePipelineContract: {
244
+ readonly method: "patch";
245
+ readonly requestPathParamsSchema: v.ObjectSchema<{
246
+ readonly pipelineId: v.StringSchema<undefined>;
247
+ }, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
248
+ readonly pathResolver: ({ pipelineId }: {
249
+ pipelineId: string;
250
+ }) => string;
251
+ readonly requestBodySchema: v.ObjectSchema<{
252
+ readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
253
+ readonly agentKinds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>]>, undefined>;
254
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
255
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
256
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
257
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
258
+ readonly enabled: v.BooleanSchema<undefined>;
259
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
260
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
261
+ readonly id: v.StringSchema<undefined>;
262
+ readonly role: v.StringSchema<undefined>;
263
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
264
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
265
+ }, undefined>, undefined>;
266
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
267
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
268
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
269
+ readonly enabled: v.BooleanSchema<undefined>;
270
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
271
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
272
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
273
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
274
+ }, undefined>, undefined>;
275
+ }, undefined>, undefined>, undefined>, undefined>;
276
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
277
+ readonly enabled: v.BooleanSchema<undefined>;
278
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
279
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
280
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
281
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
282
+ }, undefined>, undefined>, undefined>, undefined>;
283
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
284
+ }, undefined>;
285
+ readonly responsesByStatusCode: {
286
+ readonly '4xx': v.ObjectSchema<{
287
+ readonly error: v.ObjectSchema<{
288
+ readonly code: v.StringSchema<undefined>;
289
+ readonly message: v.StringSchema<undefined>;
290
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
291
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
292
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
293
+ readonly message: v.StringSchema<undefined>;
294
+ }, undefined>, undefined>, undefined>;
295
+ }, undefined>;
296
+ }, undefined>;
297
+ readonly '5xx': v.ObjectSchema<{
298
+ readonly error: v.ObjectSchema<{
299
+ readonly code: v.StringSchema<undefined>;
300
+ readonly message: v.StringSchema<undefined>;
301
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
302
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
303
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
304
+ readonly message: v.StringSchema<undefined>;
305
+ }, undefined>, undefined>, undefined>;
306
+ }, undefined>;
307
+ }, undefined>;
308
+ readonly 200: v.ObjectSchema<{
309
+ readonly id: v.StringSchema<undefined>;
310
+ readonly name: v.StringSchema<undefined>;
311
+ readonly agentKinds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
312
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
313
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
314
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
315
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
316
+ readonly enabled: v.BooleanSchema<undefined>;
317
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
318
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
319
+ readonly id: v.StringSchema<undefined>;
320
+ readonly role: v.StringSchema<undefined>;
321
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
322
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
323
+ }, undefined>, undefined>;
324
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
325
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
326
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
327
+ readonly enabled: v.BooleanSchema<undefined>;
328
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
329
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
330
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
331
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
332
+ }, undefined>, undefined>;
333
+ }, undefined>, undefined>, undefined>, undefined>;
334
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
335
+ readonly enabled: v.BooleanSchema<undefined>;
336
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
337
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
338
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
339
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
340
+ }, undefined>, undefined>, undefined>, undefined>;
341
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>, undefined>;
342
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
343
+ readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
344
+ readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
345
+ }, undefined>;
346
+ };
347
+ };
348
+ export declare const organizePipelineContract: {
349
+ readonly method: "patch";
350
+ readonly requestPathParamsSchema: v.ObjectSchema<{
351
+ readonly pipelineId: v.StringSchema<undefined>;
352
+ }, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
353
+ readonly pathResolver: ({ pipelineId }: {
354
+ pipelineId: string;
355
+ }) => string;
356
+ readonly requestBodySchema: v.ObjectSchema<{
357
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>, undefined>, undefined>;
358
+ readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
359
+ }, undefined>;
360
+ readonly responsesByStatusCode: {
361
+ readonly '4xx': v.ObjectSchema<{
362
+ readonly error: v.ObjectSchema<{
363
+ readonly code: v.StringSchema<undefined>;
364
+ readonly message: v.StringSchema<undefined>;
365
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
366
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
367
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
368
+ readonly message: v.StringSchema<undefined>;
369
+ }, undefined>, undefined>, undefined>;
370
+ }, undefined>;
371
+ }, undefined>;
372
+ readonly '5xx': v.ObjectSchema<{
373
+ readonly error: v.ObjectSchema<{
374
+ readonly code: v.StringSchema<undefined>;
375
+ readonly message: v.StringSchema<undefined>;
376
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
377
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
378
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
379
+ readonly message: v.StringSchema<undefined>;
380
+ }, undefined>, undefined>, undefined>;
381
+ }, undefined>;
382
+ }, undefined>;
383
+ readonly 200: v.ObjectSchema<{
384
+ readonly id: v.StringSchema<undefined>;
385
+ readonly name: v.StringSchema<undefined>;
386
+ readonly agentKinds: v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
387
+ readonly gates: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
388
+ readonly thresholds: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>, undefined>, undefined>;
389
+ readonly enabled: v.OptionalSchema<v.ArraySchema<v.BooleanSchema<undefined>, undefined>, undefined>;
390
+ readonly consensus: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
391
+ readonly enabled: v.BooleanSchema<undefined>;
392
+ readonly strategy: v.PicklistSchema<["specialist-panel", "debate", "ranked-voting"], undefined>;
393
+ readonly participants: v.ArraySchema<v.ObjectSchema<{
394
+ readonly id: v.StringSchema<undefined>;
395
+ readonly role: v.StringSchema<undefined>;
396
+ readonly systemFraming: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
397
+ readonly modelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
398
+ }, undefined>, undefined>;
399
+ readonly synthesizerModelId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
400
+ readonly rounds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 5, undefined>]>, undefined>;
401
+ readonly gating: v.OptionalSchema<v.ObjectSchema<{
402
+ readonly enabled: v.BooleanSchema<undefined>;
403
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
404
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
405
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
406
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["consensus", "standard"], undefined>, "consensus">;
407
+ }, undefined>, undefined>;
408
+ }, undefined>, undefined>, undefined>, undefined>;
409
+ readonly gating: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.ObjectSchema<{
410
+ readonly enabled: v.BooleanSchema<undefined>;
411
+ readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
412
+ readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
413
+ readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
414
+ readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
415
+ }, undefined>, undefined>, undefined>, undefined>;
416
+ readonly followUps: v.OptionalSchema<v.ArraySchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>, undefined>;
417
+ readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
418
+ readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
419
+ readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
420
+ }, undefined>;
421
+ };
422
+ };
423
+ export declare const deletePipelineContract: {
424
+ readonly method: "delete";
425
+ readonly requestPathParamsSchema: v.ObjectSchema<{
426
+ readonly pipelineId: v.StringSchema<undefined>;
427
+ }, undefined> & import("@toad-contracts/core").ObjectKeysCarrier;
428
+ readonly pathResolver: ({ pipelineId }: {
429
+ pipelineId: string;
430
+ }) => string;
431
+ readonly responsesByStatusCode: {
432
+ readonly '4xx': v.ObjectSchema<{
433
+ readonly error: v.ObjectSchema<{
434
+ readonly code: v.StringSchema<undefined>;
435
+ readonly message: v.StringSchema<undefined>;
436
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
437
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
438
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
439
+ readonly message: v.StringSchema<undefined>;
440
+ }, undefined>, undefined>, undefined>;
441
+ }, undefined>;
442
+ }, undefined>;
443
+ readonly '5xx': v.ObjectSchema<{
444
+ readonly error: v.ObjectSchema<{
445
+ readonly code: v.StringSchema<undefined>;
446
+ readonly message: v.StringSchema<undefined>;
447
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
448
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
449
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
450
+ readonly message: v.StringSchema<undefined>;
451
+ }, undefined>, undefined>, undefined>;
452
+ }, undefined>;
453
+ }, undefined>;
454
+ readonly 204: typeof ContractNoBody;
455
+ };
456
+ };
457
+ //# sourceMappingURL=pipelines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAmB5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMjC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA"}
@@ -0,0 +1,51 @@
1
+ import { ContractNoBody, defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
2
+ import * as v from 'valibot';
3
+ import { pipelineSchema } from '../entities.js';
4
+ import { clonePipelineSchema, createPipelineSchema, organizePipelineSchema, updatePipelineSchema, } from '../requests.js';
5
+ import { errorResponses } from './_shared.js';
6
+ // ---------------------------------------------------------------------------
7
+ // Pipeline palette CRUD route contracts. Mounted under `/workspaces/:workspaceId`,
8
+ // so the paths here are relative to that prefix. See PipelineController in
9
+ // @cat-factory/server.
10
+ // ---------------------------------------------------------------------------
11
+ const pipelineListSchema = v.array(pipelineSchema);
12
+ const pipelineIdParams = withObjectKeys(v.object({ pipelineId: v.string() }));
13
+ export const listPipelinesContract = defineApiContract({
14
+ method: 'get',
15
+ pathResolver: () => '/pipelines',
16
+ responsesByStatusCode: { 200: pipelineListSchema, ...errorResponses },
17
+ });
18
+ export const createPipelineContract = defineApiContract({
19
+ method: 'post',
20
+ pathResolver: () => '/pipelines',
21
+ requestBodySchema: createPipelineSchema,
22
+ responsesByStatusCode: { 201: pipelineSchema, ...errorResponses },
23
+ });
24
+ export const clonePipelineContract = defineApiContract({
25
+ method: 'post',
26
+ requestPathParamsSchema: pipelineIdParams,
27
+ pathResolver: ({ pipelineId }) => `/pipelines/${pipelineId}/clone`,
28
+ requestBodySchema: clonePipelineSchema,
29
+ responsesByStatusCode: { 201: pipelineSchema, ...errorResponses },
30
+ });
31
+ export const updatePipelineContract = defineApiContract({
32
+ method: 'patch',
33
+ requestPathParamsSchema: pipelineIdParams,
34
+ pathResolver: ({ pipelineId }) => `/pipelines/${pipelineId}`,
35
+ requestBodySchema: updatePipelineSchema,
36
+ responsesByStatusCode: { 200: pipelineSchema, ...errorResponses },
37
+ });
38
+ export const organizePipelineContract = defineApiContract({
39
+ method: 'patch',
40
+ requestPathParamsSchema: pipelineIdParams,
41
+ pathResolver: ({ pipelineId }) => `/pipelines/${pipelineId}/organize`,
42
+ requestBodySchema: organizePipelineSchema,
43
+ responsesByStatusCode: { 200: pipelineSchema, ...errorResponses },
44
+ });
45
+ export const deletePipelineContract = defineApiContract({
46
+ method: 'delete',
47
+ requestPathParamsSchema: pipelineIdParams,
48
+ pathResolver: ({ pipelineId }) => `/pipelines/${pipelineId}`,
49
+ responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
50
+ });
51
+ //# sourceMappingURL=pipelines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipelines.js","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,mFAAmF;AACnF,2EAA2E;AAC3E,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;AAClD,MAAM,gBAAgB,GAAG,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAA;AAE7E,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY;IAChC,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACtD,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,YAAY;IAChC,iBAAiB,EAAE,oBAAoB;IACvC,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACrD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,gBAAgB;IACzC,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,cAAc,UAAU,QAAQ;IAClE,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACtD,MAAM,EAAE,OAAO;IACf,uBAAuB,EAAE,gBAAgB;IACzC,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,cAAc,UAAU,EAAE;IAC5D,iBAAiB,EAAE,oBAAoB;IACvC,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,OAAO;IACf,uBAAuB,EAAE,gBAAgB;IACzC,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,cAAc,UAAU,WAAW;IACrE,iBAAiB,EAAE,sBAAsB;IACzC,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;IACtD,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,gBAAgB;IACzC,YAAY,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,cAAc,UAAU,EAAE;IAC5D,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA"}
@@ -0,0 +1,52 @@
1
+ export declare const listFragmentCatalogContract: {
2
+ readonly method: "get";
3
+ readonly pathResolver: () => string;
4
+ readonly responsesByStatusCode: {
5
+ readonly '4xx': import("valibot").ObjectSchema<{
6
+ readonly error: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").StringSchema<undefined>;
8
+ readonly message: import("valibot").StringSchema<undefined>;
9
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
10
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
11
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
12
+ readonly message: import("valibot").StringSchema<undefined>;
13
+ }, undefined>, undefined>, undefined>;
14
+ }, undefined>;
15
+ }, undefined>;
16
+ readonly '5xx': import("valibot").ObjectSchema<{
17
+ readonly error: import("valibot").ObjectSchema<{
18
+ readonly code: import("valibot").StringSchema<undefined>;
19
+ readonly message: import("valibot").StringSchema<undefined>;
20
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
21
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
22
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
23
+ readonly message: import("valibot").StringSchema<undefined>;
24
+ }, undefined>, undefined>, undefined>;
25
+ }, undefined>;
26
+ }, undefined>;
27
+ readonly 200: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
28
+ readonly id: import("valibot").StringSchema<undefined>;
29
+ readonly version: import("valibot").StringSchema<undefined>;
30
+ readonly title: import("valibot").StringSchema<undefined>;
31
+ readonly category: import("valibot").StringSchema<undefined>;
32
+ readonly summary: import("valibot").StringSchema<undefined>;
33
+ readonly body: import("valibot").StringSchema<undefined>;
34
+ readonly appliesTo: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
35
+ readonly blockTypes: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").PicklistSchema<["frontend", "service", "api", "database", "queue", "integration", "external", "environment"], undefined>, undefined>, undefined>;
36
+ readonly agentKinds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>, undefined>;
37
+ }, undefined>, undefined>;
38
+ readonly tags: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
39
+ readonly source: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
40
+ readonly sourceId: import("valibot").StringSchema<undefined>;
41
+ readonly path: import("valibot").StringSchema<undefined>;
42
+ readonly sha: import("valibot").StringSchema<undefined>;
43
+ }, undefined>, undefined>;
44
+ readonly documentRef: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
45
+ readonly source: import("valibot").PicklistSchema<["confluence", "notion", "github"], undefined>;
46
+ readonly externalId: import("valibot").StringSchema<undefined>;
47
+ }, undefined>, undefined>;
48
+ readonly resolvedAt: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
49
+ }, undefined>, undefined>;
50
+ };
51
+ };
52
+ //# sourceMappingURL=prompt-fragments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-fragments.d.ts","sourceRoot":"","sources":["../../src/routes/prompt-fragments.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItC,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { defineApiContract } from '@toad-contracts/valibot';
2
+ import { promptFragmentCatalogSchema } from '../entities.js';
3
+ import { errorResponses } from './_shared.js';
4
+ // ---------------------------------------------------------------------------
5
+ // Universal prompt-fragment catalog route contract. Workspace-independent and
6
+ // cacheable, served read-only at the root. See PromptFragmentController in
7
+ // @cat-factory/server.
8
+ // ---------------------------------------------------------------------------
9
+ export const listFragmentCatalogContract = defineApiContract({
10
+ method: 'get',
11
+ pathResolver: () => '/prompt-fragments',
12
+ responsesByStatusCode: { 200: promptFragmentCatalogSchema, ...errorResponses },
13
+ });
14
+ //# sourceMappingURL=prompt-fragments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-fragments.js","sourceRoot":"","sources":["../../src/routes/prompt-fragments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,8EAA8E;AAC9E,8EAA8E;AAC9E,2EAA2E;AAC3E,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAG,iBAAiB,CAAC;IAC3D,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,mBAAmB;IACvC,qBAAqB,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE,GAAG,cAAc,EAAE;CAC/E,CAAC,CAAA"}