@neurouter/shared 0.0.0-stage → 0.1.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 (161) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +10 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/api/audit.d.ts +776 -0
  5. package/dist/api/audit.d.ts.map +1 -0
  6. package/dist/api/audit.js +106 -0
  7. package/dist/api/audit.js.map +1 -0
  8. package/dist/api/auth.d.ts +345 -0
  9. package/dist/api/auth.d.ts.map +1 -0
  10. package/dist/api/auth.js +94 -0
  11. package/dist/api/auth.js.map +1 -0
  12. package/dist/api/common.d.ts +303 -0
  13. package/dist/api/common.d.ts.map +1 -0
  14. package/dist/api/common.js +153 -0
  15. package/dist/api/common.js.map +1 -0
  16. package/dist/api/endpoint.d.ts +55 -0
  17. package/dist/api/endpoint.d.ts.map +1 -0
  18. package/dist/api/endpoint.js +41 -0
  19. package/dist/api/endpoint.js.map +1 -0
  20. package/dist/api/environments.d.ts +2420 -0
  21. package/dist/api/environments.d.ts.map +1 -0
  22. package/dist/api/environments.js +218 -0
  23. package/dist/api/environments.js.map +1 -0
  24. package/dist/api/evals.d.ts +3582 -0
  25. package/dist/api/evals.d.ts.map +1 -0
  26. package/dist/api/evals.js +296 -0
  27. package/dist/api/evals.js.map +1 -0
  28. package/dist/api/inbox.d.ts +1117 -0
  29. package/dist/api/inbox.d.ts.map +1 -0
  30. package/dist/api/inbox.js +115 -0
  31. package/dist/api/inbox.js.map +1 -0
  32. package/dist/api/index.d.ts +19 -0
  33. package/dist/api/index.d.ts.map +1 -0
  34. package/dist/api/index.js +19 -0
  35. package/dist/api/index.js.map +1 -0
  36. package/dist/api/keys.d.ts +724 -0
  37. package/dist/api/keys.d.ts.map +1 -0
  38. package/dist/api/keys.js +111 -0
  39. package/dist/api/keys.js.map +1 -0
  40. package/dist/api/metrics.d.ts +506 -0
  41. package/dist/api/metrics.d.ts.map +1 -0
  42. package/dist/api/metrics.js +66 -0
  43. package/dist/api/metrics.js.map +1 -0
  44. package/dist/api/overlays.d.ts +966 -0
  45. package/dist/api/overlays.d.ts.map +1 -0
  46. package/dist/api/overlays.js +111 -0
  47. package/dist/api/overlays.js.map +1 -0
  48. package/dist/api/public.d.ts +99 -0
  49. package/dist/api/public.d.ts.map +1 -0
  50. package/dist/api/public.js +29 -0
  51. package/dist/api/public.js.map +1 -0
  52. package/dist/api/readiness.d.ts +129 -0
  53. package/dist/api/readiness.d.ts.map +1 -0
  54. package/dist/api/readiness.js +40 -0
  55. package/dist/api/readiness.js.map +1 -0
  56. package/dist/api/routes.d.ts +10215 -0
  57. package/dist/api/routes.d.ts.map +1 -0
  58. package/dist/api/routes.js +132 -0
  59. package/dist/api/routes.js.map +1 -0
  60. package/dist/api/servers.d.ts +2632 -0
  61. package/dist/api/servers.d.ts.map +1 -0
  62. package/dist/api/servers.js +145 -0
  63. package/dist/api/servers.js.map +1 -0
  64. package/dist/api/settings.d.ts +1329 -0
  65. package/dist/api/settings.d.ts.map +1 -0
  66. package/dist/api/settings.js +220 -0
  67. package/dist/api/settings.js.map +1 -0
  68. package/dist/api/specs.d.ts +1393 -0
  69. package/dist/api/specs.d.ts.map +1 -0
  70. package/dist/api/specs.js +170 -0
  71. package/dist/api/specs.js.map +1 -0
  72. package/dist/api/tasks.d.ts +1006 -0
  73. package/dist/api/tasks.d.ts.map +1 -0
  74. package/dist/api/tasks.js +173 -0
  75. package/dist/api/tasks.js.map +1 -0
  76. package/dist/api/tools.d.ts +555 -0
  77. package/dist/api/tools.d.ts.map +1 -0
  78. package/dist/api/tools.js +109 -0
  79. package/dist/api/tools.js.map +1 -0
  80. package/dist/config/index.d.ts +6 -0
  81. package/dist/config/index.d.ts.map +1 -0
  82. package/dist/config/index.js +6 -0
  83. package/dist/config/index.js.map +1 -0
  84. package/dist/config/limits.d.ts +79 -0
  85. package/dist/config/limits.d.ts.map +1 -0
  86. package/dist/config/limits.js +53 -0
  87. package/dist/config/limits.js.map +1 -0
  88. package/dist/config/llm-models.d.ts +34 -0
  89. package/dist/config/llm-models.d.ts.map +1 -0
  90. package/dist/config/llm-models.js +48 -0
  91. package/dist/config/llm-models.js.map +1 -0
  92. package/dist/config/neurouter-yaml.d.ts +690 -0
  93. package/dist/config/neurouter-yaml.d.ts.map +1 -0
  94. package/dist/config/neurouter-yaml.js +203 -0
  95. package/dist/config/neurouter-yaml.js.map +1 -0
  96. package/dist/config/policy.d.ts +72 -0
  97. package/dist/config/policy.d.ts.map +1 -0
  98. package/dist/config/policy.js +39 -0
  99. package/dist/config/policy.js.map +1 -0
  100. package/dist/config/secret-ref.d.ts +21 -0
  101. package/dist/config/secret-ref.d.ts.map +1 -0
  102. package/dist/config/secret-ref.js +19 -0
  103. package/dist/config/secret-ref.js.map +1 -0
  104. package/dist/domain/assertions.d.ts +63 -0
  105. package/dist/domain/assertions.d.ts.map +1 -0
  106. package/dist/domain/assertions.js +35 -0
  107. package/dist/domain/assertions.js.map +1 -0
  108. package/dist/domain/capabilities.d.ts +29 -0
  109. package/dist/domain/capabilities.d.ts.map +1 -0
  110. package/dist/domain/capabilities.js +31 -0
  111. package/dist/domain/capabilities.js.map +1 -0
  112. package/dist/domain/enums.d.ts +416 -0
  113. package/dist/domain/enums.d.ts.map +1 -0
  114. package/dist/domain/enums.js +104 -0
  115. package/dist/domain/enums.js.map +1 -0
  116. package/dist/domain/error-codes.d.ts +15 -0
  117. package/dist/domain/error-codes.d.ts.map +1 -0
  118. package/dist/domain/error-codes.js +70 -0
  119. package/dist/domain/error-codes.js.map +1 -0
  120. package/dist/domain/index.d.ts +7 -0
  121. package/dist/domain/index.d.ts.map +1 -0
  122. package/dist/domain/index.js +7 -0
  123. package/dist/domain/index.js.map +1 -0
  124. package/dist/domain/roles.d.ts +8 -0
  125. package/dist/domain/roles.d.ts.map +1 -0
  126. package/dist/domain/roles.js +4 -0
  127. package/dist/domain/roles.js.map +1 -0
  128. package/dist/domain/tool-model.d.ts +257 -0
  129. package/dist/domain/tool-model.d.ts.map +1 -0
  130. package/dist/domain/tool-model.js +37 -0
  131. package/dist/domain/tool-model.js.map +1 -0
  132. package/dist/index.d.ts +7 -0
  133. package/dist/index.d.ts.map +1 -0
  134. package/dist/index.js +7 -0
  135. package/dist/index.js.map +1 -0
  136. package/dist/mcp/index.d.ts +3 -0
  137. package/dist/mcp/index.d.ts.map +1 -0
  138. package/dist/mcp/index.js +3 -0
  139. package/dist/mcp/index.js.map +1 -0
  140. package/dist/mcp/meta-keys.d.ts +26 -0
  141. package/dist/mcp/meta-keys.d.ts.map +1 -0
  142. package/dist/mcp/meta-keys.js +29 -0
  143. package/dist/mcp/meta-keys.js.map +1 -0
  144. package/dist/mcp/tool-names.d.ts +20 -0
  145. package/dist/mcp/tool-names.d.ts.map +1 -0
  146. package/dist/mcp/tool-names.js +30 -0
  147. package/dist/mcp/tool-names.js.map +1 -0
  148. package/dist/overlay/index.d.ts +2 -0
  149. package/dist/overlay/index.d.ts.map +1 -0
  150. package/dist/overlay/index.js +2 -0
  151. package/dist/overlay/index.js.map +1 -0
  152. package/dist/overlay/schema.d.ts +243 -0
  153. package/dist/overlay/schema.d.ts.map +1 -0
  154. package/dist/overlay/schema.js +103 -0
  155. package/dist/overlay/schema.js.map +1 -0
  156. package/dist/version.d.ts +9 -0
  157. package/dist/version.d.ts.map +1 -0
  158. package/dist/version.js +8 -0
  159. package/dist/version.js.map +1 -0
  160. package/package.json +72 -4
  161. package/README.md +0 -3
@@ -0,0 +1,2632 @@
1
+ import * as z from 'zod';
2
+ export declare const ExposureConfig: z.ZodObject<{
3
+ mode: z.ZodEnum<{
4
+ auto: "auto";
5
+ tools: "tools";
6
+ code: "code";
7
+ both: "both";
8
+ }>;
9
+ discovery: z.ZodEnum<{
10
+ auto: "auto";
11
+ full: "full";
12
+ search: "search";
13
+ }>;
14
+ pinned: z.ZodArray<z.ZodString>;
15
+ }, z.core.$strip>;
16
+ export type ExposureConfig = z.infer<typeof ExposureConfig>;
17
+ /** Record of the 8 MVP ops tools → enabled. */
18
+ export declare const OpsToolTogglesSchema: z.ZodObject<{
19
+ begin_task: z.ZodBoolean;
20
+ end_task: z.ZodBoolean;
21
+ log_decision: z.ZodBoolean;
22
+ report_unmet_need: z.ZodBoolean;
23
+ report_issue: z.ZodBoolean;
24
+ explain_error: z.ZodBoolean;
25
+ get_examples: z.ZodBoolean;
26
+ whoami: z.ZodBoolean;
27
+ }, z.core.$strip>;
28
+ /** zod schema for `OpsToolToggles` (the type lives in `mcp/tool-names`). */
29
+ export type OpsToolTogglesApi = z.infer<typeof OpsToolTogglesSchema>;
30
+ export declare const ServerStatusApi: z.ZodEnum<{
31
+ active: "active";
32
+ disabled: "disabled";
33
+ removed_from_config: "removed_from_config";
34
+ }>;
35
+ export declare const ServerEnvironmentSummary: z.ZodObject<{
36
+ id: z.ZodString;
37
+ slug: z.ZodString;
38
+ kind: z.ZodEnum<{
39
+ dev: "dev";
40
+ qa: "qa";
41
+ prod: "prod";
42
+ }>;
43
+ writesEnabled: z.ZodBoolean;
44
+ isMock: z.ZodBoolean;
45
+ health: z.ZodEnum<{
46
+ up: "up";
47
+ down: "down";
48
+ unknown: "unknown";
49
+ }>;
50
+ }, z.core.$strip>;
51
+ export type ServerEnvironmentSummary = z.infer<typeof ServerEnvironmentSummary>;
52
+ export declare const ServerRow: z.ZodObject<{
53
+ id: z.ZodString;
54
+ slug: z.ZodString;
55
+ name: z.ZodString;
56
+ kind: z.ZodEnum<{
57
+ openapi: "openapi";
58
+ graphql: "graphql";
59
+ }>;
60
+ specFormat: z.ZodNullable<z.ZodEnum<{
61
+ "openapi-3.0": "openapi-3.0";
62
+ "openapi-3.1": "openapi-3.1";
63
+ "graphql-sdl": "graphql-sdl";
64
+ "graphql-introspection": "graphql-introspection";
65
+ }>>;
66
+ status: z.ZodEnum<{
67
+ active: "active";
68
+ disabled: "disabled";
69
+ removed_from_config: "removed_from_config";
70
+ }>;
71
+ managedBy: z.ZodEnum<{
72
+ file: "file";
73
+ console: "console";
74
+ }>;
75
+ toolCount: z.ZodNumber;
76
+ visibleToolCount: z.ZodNumber;
77
+ writeToolCount: z.ZodNumber;
78
+ environments: z.ZodArray<z.ZodObject<{
79
+ id: z.ZodString;
80
+ slug: z.ZodString;
81
+ kind: z.ZodEnum<{
82
+ dev: "dev";
83
+ qa: "qa";
84
+ prod: "prod";
85
+ }>;
86
+ writesEnabled: z.ZodBoolean;
87
+ isMock: z.ZodBoolean;
88
+ health: z.ZodEnum<{
89
+ up: "up";
90
+ down: "down";
91
+ unknown: "unknown";
92
+ }>;
93
+ }, z.core.$strip>>;
94
+ readiness: z.ZodNullable<z.ZodObject<{
95
+ score: z.ZodNumber;
96
+ band: z.ZodEnum<{
97
+ not_ready: "not_ready";
98
+ needs_work: "needs_work";
99
+ ready: "ready";
100
+ excellent: "excellent";
101
+ }>;
102
+ confidence: z.ZodEnum<{
103
+ measured: "measured";
104
+ preliminary: "preliminary";
105
+ degraded: "degraded";
106
+ }>;
107
+ runId: z.ZodNullable<z.ZodString>;
108
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
109
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
110
+ code: "code";
111
+ tool: "tool";
112
+ }>>;
113
+ recommendation: z.ZodNullable<z.ZodString>;
114
+ modeScores: z.ZodObject<{
115
+ tool: z.ZodOptional<z.ZodNumber>;
116
+ code: z.ZodOptional<z.ZodNumber>;
117
+ }, z.core.$strip>;
118
+ breakdown: z.ZodArray<z.ZodObject<{
119
+ key: z.ZodEnum<{
120
+ success: "success";
121
+ impossible: "impossible";
122
+ efficiency: "efficiency";
123
+ framing: "framing";
124
+ quality: "quality";
125
+ stability: "stability";
126
+ correctness: "correctness";
127
+ }>;
128
+ label: z.ZodString;
129
+ weight: z.ZodNumber;
130
+ score: z.ZodNumber;
131
+ detail: z.ZodString;
132
+ fixCount: z.ZodNumber;
133
+ }, z.core.$strip>>;
134
+ }, z.core.$strip>>;
135
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
136
+ updatedAt: z.ZodISODateTime;
137
+ }, z.core.$strip>;
138
+ export type ServerRow = z.infer<typeof ServerRow>;
139
+ export declare const ServerDetail: z.ZodObject<{
140
+ id: z.ZodString;
141
+ slug: z.ZodString;
142
+ name: z.ZodString;
143
+ kind: z.ZodEnum<{
144
+ openapi: "openapi";
145
+ graphql: "graphql";
146
+ }>;
147
+ specFormat: z.ZodNullable<z.ZodEnum<{
148
+ "openapi-3.0": "openapi-3.0";
149
+ "openapi-3.1": "openapi-3.1";
150
+ "graphql-sdl": "graphql-sdl";
151
+ "graphql-introspection": "graphql-introspection";
152
+ }>>;
153
+ status: z.ZodEnum<{
154
+ active: "active";
155
+ disabled: "disabled";
156
+ removed_from_config: "removed_from_config";
157
+ }>;
158
+ managedBy: z.ZodEnum<{
159
+ file: "file";
160
+ console: "console";
161
+ }>;
162
+ toolCount: z.ZodNumber;
163
+ visibleToolCount: z.ZodNumber;
164
+ writeToolCount: z.ZodNumber;
165
+ environments: z.ZodArray<z.ZodObject<{
166
+ id: z.ZodString;
167
+ slug: z.ZodString;
168
+ kind: z.ZodEnum<{
169
+ dev: "dev";
170
+ qa: "qa";
171
+ prod: "prod";
172
+ }>;
173
+ writesEnabled: z.ZodBoolean;
174
+ isMock: z.ZodBoolean;
175
+ health: z.ZodEnum<{
176
+ up: "up";
177
+ down: "down";
178
+ unknown: "unknown";
179
+ }>;
180
+ }, z.core.$strip>>;
181
+ readiness: z.ZodNullable<z.ZodObject<{
182
+ score: z.ZodNumber;
183
+ band: z.ZodEnum<{
184
+ not_ready: "not_ready";
185
+ needs_work: "needs_work";
186
+ ready: "ready";
187
+ excellent: "excellent";
188
+ }>;
189
+ confidence: z.ZodEnum<{
190
+ measured: "measured";
191
+ preliminary: "preliminary";
192
+ degraded: "degraded";
193
+ }>;
194
+ runId: z.ZodNullable<z.ZodString>;
195
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
196
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
197
+ code: "code";
198
+ tool: "tool";
199
+ }>>;
200
+ recommendation: z.ZodNullable<z.ZodString>;
201
+ modeScores: z.ZodObject<{
202
+ tool: z.ZodOptional<z.ZodNumber>;
203
+ code: z.ZodOptional<z.ZodNumber>;
204
+ }, z.core.$strip>;
205
+ breakdown: z.ZodArray<z.ZodObject<{
206
+ key: z.ZodEnum<{
207
+ success: "success";
208
+ impossible: "impossible";
209
+ efficiency: "efficiency";
210
+ framing: "framing";
211
+ quality: "quality";
212
+ stability: "stability";
213
+ correctness: "correctness";
214
+ }>;
215
+ label: z.ZodString;
216
+ weight: z.ZodNumber;
217
+ score: z.ZodNumber;
218
+ detail: z.ZodString;
219
+ fixCount: z.ZodNumber;
220
+ }, z.core.$strip>>;
221
+ }, z.core.$strip>>;
222
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
223
+ updatedAt: z.ZodISODateTime;
224
+ description: z.ZodString;
225
+ exposure: z.ZodObject<{
226
+ mode: z.ZodEnum<{
227
+ auto: "auto";
228
+ tools: "tools";
229
+ code: "code";
230
+ both: "both";
231
+ }>;
232
+ discovery: z.ZodEnum<{
233
+ auto: "auto";
234
+ full: "full";
235
+ search: "search";
236
+ }>;
237
+ pinned: z.ZodArray<z.ZodString>;
238
+ }, z.core.$strip>;
239
+ opsTools: z.ZodObject<{
240
+ begin_task: z.ZodBoolean;
241
+ end_task: z.ZodBoolean;
242
+ log_decision: z.ZodBoolean;
243
+ report_unmet_need: z.ZodBoolean;
244
+ report_issue: z.ZodBoolean;
245
+ explain_error: z.ZodBoolean;
246
+ get_examples: z.ZodBoolean;
247
+ whoami: z.ZodBoolean;
248
+ }, z.core.$strip>;
249
+ publicReport: z.ZodBoolean;
250
+ publicReportUrl: z.ZodNullable<z.ZodString>;
251
+ specSource: z.ZodObject<{
252
+ url: z.ZodNullable<z.ZodString>;
253
+ path: z.ZodNullable<z.ZodString>;
254
+ upload: z.ZodBoolean;
255
+ }, z.core.$strip>;
256
+ currentSpec: z.ZodNullable<z.ZodObject<{
257
+ id: z.ZodString;
258
+ rev: z.ZodNumber;
259
+ format: z.ZodEnum<{
260
+ "openapi-3.0": "openapi-3.0";
261
+ "openapi-3.1": "openapi-3.1";
262
+ "graphql-sdl": "graphql-sdl";
263
+ "graphql-introspection": "graphql-introspection";
264
+ }>;
265
+ title: z.ZodString;
266
+ apiVersion: z.ZodNullable<z.ZodString>;
267
+ operationCount: z.ZodNumber;
268
+ contentHash: z.ZodString;
269
+ contentBytes: z.ZodNumber;
270
+ sourceUrl: z.ZodNullable<z.ZodString>;
271
+ createdAt: z.ZodISODateTime;
272
+ createdBy: z.ZodNullable<z.ZodObject<{
273
+ id: z.ZodString;
274
+ name: z.ZodString;
275
+ }, z.core.$strip>>;
276
+ }, z.core.$strip>>;
277
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
278
+ id: z.ZodString;
279
+ rev: z.ZodNumber;
280
+ hash: z.ZodString;
281
+ message: z.ZodString;
282
+ source: z.ZodEnum<{
283
+ file: "file";
284
+ console: "console";
285
+ suggestion: "suggestion";
286
+ revert: "revert";
287
+ }>;
288
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
289
+ createdBy: z.ZodNullable<z.ZodObject<{
290
+ id: z.ZodString;
291
+ name: z.ZodString;
292
+ }, z.core.$strip>>;
293
+ createdAt: z.ZodISODateTime;
294
+ toolChanges: z.ZodNumber;
295
+ }, z.core.$strip>>;
296
+ draft: z.ZodNullable<z.ZodObject<{
297
+ changeCount: z.ZodNumber;
298
+ updatedAt: z.ZodISODateTime;
299
+ }, z.core.$strip>>;
300
+ latestBuild: z.ZodNullable<z.ZodObject<{
301
+ id: z.ZodString;
302
+ hash: z.ZodString;
303
+ status: z.ZodEnum<{
304
+ ok: "ok";
305
+ error: "error";
306
+ }>;
307
+ specRev: z.ZodNumber;
308
+ overlayRev: z.ZodNullable<z.ZodNumber>;
309
+ compilerVersion: z.ZodString;
310
+ toolCount: z.ZodNumber;
311
+ visibleCount: z.ZodNumber;
312
+ writeCount: z.ZodNumber;
313
+ hiddenCount: z.ZodNumber;
314
+ lintScore: z.ZodNumber;
315
+ diagnosticsCount: z.ZodObject<{
316
+ error: z.ZodNumber;
317
+ warning: z.ZodNumber;
318
+ info: z.ZodNumber;
319
+ }, z.core.$strip>;
320
+ environments: z.ZodArray<z.ZodString>;
321
+ createdAt: z.ZodISODateTime;
322
+ }, z.core.$strip>>;
323
+ config: z.ZodNullable<z.ZodObject<{
324
+ path: z.ZodString;
325
+ line: z.ZodNullable<z.ZodNumber>;
326
+ }, z.core.$strip>>;
327
+ fileManagedFields: z.ZodArray<z.ZodString>;
328
+ }, z.core.$strip>;
329
+ export type ServerDetail = z.infer<typeof ServerDetail>;
330
+ export declare const ServerListQuery: z.ZodObject<{
331
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
332
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
333
+ q: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
334
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
335
+ active: "active";
336
+ disabled: "disabled";
337
+ removed_from_config: "removed_from_config";
338
+ }>>>, unknown>;
339
+ kind: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
340
+ openapi: "openapi";
341
+ graphql: "graphql";
342
+ }>>, unknown>;
343
+ }, z.core.$strip>;
344
+ export type ServerListQuery = z.infer<typeof ServerListQuery>;
345
+ /** Create from a source (202 + fetch/compile job). */
346
+ export declare const ServerCreateFromSource: z.ZodObject<{
347
+ slug: z.ZodString;
348
+ name: z.ZodString;
349
+ description: z.ZodOptional<z.ZodString>;
350
+ source: z.ZodUnion<readonly [z.ZodObject<{
351
+ url: z.ZodURL;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ content: z.ZodString;
354
+ filename: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strip>]>;
356
+ format: z.ZodOptional<z.ZodEnum<{
357
+ openapi: "openapi";
358
+ "graphql-sdl": "graphql-sdl";
359
+ "graphql-introspection": "graphql-introspection";
360
+ }>>;
361
+ graphql: z.ZodOptional<z.ZodObject<{
362
+ endpointPath: z.ZodOptional<z.ZodString>;
363
+ selectionDepth: z.ZodOptional<z.ZodNumber>;
364
+ }, z.core.$strip>>;
365
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ slug: z.ZodString;
367
+ name: z.ZodOptional<z.ZodString>;
368
+ kind: z.ZodEnum<{
369
+ dev: "dev";
370
+ qa: "qa";
371
+ prod: "prod";
372
+ }>;
373
+ baseUrl: z.ZodUnion<readonly [z.ZodLiteral<"mock:">, z.ZodURL]>;
374
+ auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
375
+ type: z.ZodLiteral<"none">;
376
+ }, z.core.$strip>, z.ZodObject<{
377
+ type: z.ZodLiteral<"bearer">;
378
+ secretRef: z.ZodString;
379
+ }, z.core.$strip>, z.ZodObject<{
380
+ type: z.ZodLiteral<"header">;
381
+ headerName: z.ZodString;
382
+ secretRef: z.ZodString;
383
+ }, z.core.$strip>, z.ZodObject<{
384
+ type: z.ZodLiteral<"query">;
385
+ paramName: z.ZodString;
386
+ secretRef: z.ZodString;
387
+ }, z.core.$strip>, z.ZodObject<{
388
+ type: z.ZodLiteral<"basic">;
389
+ username: z.ZodString;
390
+ secretRef: z.ZodString;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ type: z.ZodLiteral<"oauth_client_credentials">;
393
+ tokenUrl: z.ZodURL;
394
+ clientId: z.ZodString;
395
+ clientSecretRef: z.ZodString;
396
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
397
+ audience: z.ZodOptional<z.ZodString>;
398
+ }, z.core.$strip>, z.ZodObject<{
399
+ type: z.ZodLiteral<"oauth_passthrough">;
400
+ mode: z.ZodDefault<z.ZodEnum<{
401
+ broker: "broker";
402
+ forward_inbound: "forward_inbound";
403
+ }>>;
404
+ authorizationUrl: z.ZodOptional<z.ZodURL>;
405
+ tokenUrl: z.ZodOptional<z.ZodURL>;
406
+ clientId: z.ZodOptional<z.ZodString>;
407
+ clientSecretRef: z.ZodOptional<z.ZodString>;
408
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
409
+ upstreamAudience: z.ZodOptional<z.ZodString>;
410
+ }, z.core.$strip>], "type">>;
411
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
412
+ codeMode: z.ZodOptional<z.ZodBoolean>;
413
+ limits: z.ZodOptional<z.ZodObject<{
414
+ rateLimit: z.ZodOptional<z.ZodObject<{
415
+ perMinute: z.ZodNumber;
416
+ burst: z.ZodNumber;
417
+ }, z.core.$strip>>;
418
+ toolRateLimit: z.ZodOptional<z.ZodObject<{
419
+ perMinute: z.ZodNumber;
420
+ burst: z.ZodNumber;
421
+ }, z.core.$strip>>;
422
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
423
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
424
+ code: z.ZodOptional<z.ZodObject<{
425
+ maxToolCalls: z.ZodOptional<z.ZodNumber>;
426
+ wallTimeSec: z.ZodOptional<z.ZodNumber>;
427
+ cpuTimeSec: z.ZodOptional<z.ZodNumber>;
428
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
429
+ maxConcurrentCalls: z.ZodOptional<z.ZodNumber>;
430
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
431
+ }, z.core.$strip>>;
432
+ }, z.core.$strip>>;
433
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
434
+ allowHttp: z.ZodOptional<z.ZodBoolean>;
435
+ autoPromote: z.ZodOptional<z.ZodBoolean>;
436
+ }, z.core.$strip>>>;
437
+ }, z.core.$strip>;
438
+ /** Create from a spec preview (201 ServerDetail; publishes the preview's overlay draft as v1). */
439
+ export declare const ServerCreateFromPreview: z.ZodObject<{
440
+ previewId: z.ZodString;
441
+ slug: z.ZodString;
442
+ name: z.ZodString;
443
+ description: z.ZodOptional<z.ZodString>;
444
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
445
+ slug: z.ZodString;
446
+ name: z.ZodOptional<z.ZodString>;
447
+ kind: z.ZodEnum<{
448
+ dev: "dev";
449
+ qa: "qa";
450
+ prod: "prod";
451
+ }>;
452
+ baseUrl: z.ZodUnion<readonly [z.ZodLiteral<"mock:">, z.ZodURL]>;
453
+ auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
454
+ type: z.ZodLiteral<"none">;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ type: z.ZodLiteral<"bearer">;
457
+ secretRef: z.ZodString;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ type: z.ZodLiteral<"header">;
460
+ headerName: z.ZodString;
461
+ secretRef: z.ZodString;
462
+ }, z.core.$strip>, z.ZodObject<{
463
+ type: z.ZodLiteral<"query">;
464
+ paramName: z.ZodString;
465
+ secretRef: z.ZodString;
466
+ }, z.core.$strip>, z.ZodObject<{
467
+ type: z.ZodLiteral<"basic">;
468
+ username: z.ZodString;
469
+ secretRef: z.ZodString;
470
+ }, z.core.$strip>, z.ZodObject<{
471
+ type: z.ZodLiteral<"oauth_client_credentials">;
472
+ tokenUrl: z.ZodURL;
473
+ clientId: z.ZodString;
474
+ clientSecretRef: z.ZodString;
475
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
476
+ audience: z.ZodOptional<z.ZodString>;
477
+ }, z.core.$strip>, z.ZodObject<{
478
+ type: z.ZodLiteral<"oauth_passthrough">;
479
+ mode: z.ZodDefault<z.ZodEnum<{
480
+ broker: "broker";
481
+ forward_inbound: "forward_inbound";
482
+ }>>;
483
+ authorizationUrl: z.ZodOptional<z.ZodURL>;
484
+ tokenUrl: z.ZodOptional<z.ZodURL>;
485
+ clientId: z.ZodOptional<z.ZodString>;
486
+ clientSecretRef: z.ZodOptional<z.ZodString>;
487
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
488
+ upstreamAudience: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>], "type">>;
490
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
491
+ codeMode: z.ZodOptional<z.ZodBoolean>;
492
+ limits: z.ZodOptional<z.ZodObject<{
493
+ rateLimit: z.ZodOptional<z.ZodObject<{
494
+ perMinute: z.ZodNumber;
495
+ burst: z.ZodNumber;
496
+ }, z.core.$strip>>;
497
+ toolRateLimit: z.ZodOptional<z.ZodObject<{
498
+ perMinute: z.ZodNumber;
499
+ burst: z.ZodNumber;
500
+ }, z.core.$strip>>;
501
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
502
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
503
+ code: z.ZodOptional<z.ZodObject<{
504
+ maxToolCalls: z.ZodOptional<z.ZodNumber>;
505
+ wallTimeSec: z.ZodOptional<z.ZodNumber>;
506
+ cpuTimeSec: z.ZodOptional<z.ZodNumber>;
507
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
508
+ maxConcurrentCalls: z.ZodOptional<z.ZodNumber>;
509
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
510
+ }, z.core.$strip>>;
511
+ }, z.core.$strip>>;
512
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
513
+ allowHttp: z.ZodOptional<z.ZodBoolean>;
514
+ autoPromote: z.ZodOptional<z.ZodBoolean>;
515
+ }, z.core.$strip>>>;
516
+ }, z.core.$strip>;
517
+ export declare const ServerCreate: z.ZodUnion<readonly [z.ZodObject<{
518
+ previewId: z.ZodString;
519
+ slug: z.ZodString;
520
+ name: z.ZodString;
521
+ description: z.ZodOptional<z.ZodString>;
522
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
523
+ slug: z.ZodString;
524
+ name: z.ZodOptional<z.ZodString>;
525
+ kind: z.ZodEnum<{
526
+ dev: "dev";
527
+ qa: "qa";
528
+ prod: "prod";
529
+ }>;
530
+ baseUrl: z.ZodUnion<readonly [z.ZodLiteral<"mock:">, z.ZodURL]>;
531
+ auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
532
+ type: z.ZodLiteral<"none">;
533
+ }, z.core.$strip>, z.ZodObject<{
534
+ type: z.ZodLiteral<"bearer">;
535
+ secretRef: z.ZodString;
536
+ }, z.core.$strip>, z.ZodObject<{
537
+ type: z.ZodLiteral<"header">;
538
+ headerName: z.ZodString;
539
+ secretRef: z.ZodString;
540
+ }, z.core.$strip>, z.ZodObject<{
541
+ type: z.ZodLiteral<"query">;
542
+ paramName: z.ZodString;
543
+ secretRef: z.ZodString;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ type: z.ZodLiteral<"basic">;
546
+ username: z.ZodString;
547
+ secretRef: z.ZodString;
548
+ }, z.core.$strip>, z.ZodObject<{
549
+ type: z.ZodLiteral<"oauth_client_credentials">;
550
+ tokenUrl: z.ZodURL;
551
+ clientId: z.ZodString;
552
+ clientSecretRef: z.ZodString;
553
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
554
+ audience: z.ZodOptional<z.ZodString>;
555
+ }, z.core.$strip>, z.ZodObject<{
556
+ type: z.ZodLiteral<"oauth_passthrough">;
557
+ mode: z.ZodDefault<z.ZodEnum<{
558
+ broker: "broker";
559
+ forward_inbound: "forward_inbound";
560
+ }>>;
561
+ authorizationUrl: z.ZodOptional<z.ZodURL>;
562
+ tokenUrl: z.ZodOptional<z.ZodURL>;
563
+ clientId: z.ZodOptional<z.ZodString>;
564
+ clientSecretRef: z.ZodOptional<z.ZodString>;
565
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
566
+ upstreamAudience: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strip>], "type">>;
568
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
569
+ codeMode: z.ZodOptional<z.ZodBoolean>;
570
+ limits: z.ZodOptional<z.ZodObject<{
571
+ rateLimit: z.ZodOptional<z.ZodObject<{
572
+ perMinute: z.ZodNumber;
573
+ burst: z.ZodNumber;
574
+ }, z.core.$strip>>;
575
+ toolRateLimit: z.ZodOptional<z.ZodObject<{
576
+ perMinute: z.ZodNumber;
577
+ burst: z.ZodNumber;
578
+ }, z.core.$strip>>;
579
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
580
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
581
+ code: z.ZodOptional<z.ZodObject<{
582
+ maxToolCalls: z.ZodOptional<z.ZodNumber>;
583
+ wallTimeSec: z.ZodOptional<z.ZodNumber>;
584
+ cpuTimeSec: z.ZodOptional<z.ZodNumber>;
585
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
586
+ maxConcurrentCalls: z.ZodOptional<z.ZodNumber>;
587
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
588
+ }, z.core.$strip>>;
589
+ }, z.core.$strip>>;
590
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
591
+ allowHttp: z.ZodOptional<z.ZodBoolean>;
592
+ autoPromote: z.ZodOptional<z.ZodBoolean>;
593
+ }, z.core.$strip>>>;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ slug: z.ZodString;
596
+ name: z.ZodString;
597
+ description: z.ZodOptional<z.ZodString>;
598
+ source: z.ZodUnion<readonly [z.ZodObject<{
599
+ url: z.ZodURL;
600
+ }, z.core.$strip>, z.ZodObject<{
601
+ content: z.ZodString;
602
+ filename: z.ZodOptional<z.ZodString>;
603
+ }, z.core.$strip>]>;
604
+ format: z.ZodOptional<z.ZodEnum<{
605
+ openapi: "openapi";
606
+ "graphql-sdl": "graphql-sdl";
607
+ "graphql-introspection": "graphql-introspection";
608
+ }>>;
609
+ graphql: z.ZodOptional<z.ZodObject<{
610
+ endpointPath: z.ZodOptional<z.ZodString>;
611
+ selectionDepth: z.ZodOptional<z.ZodNumber>;
612
+ }, z.core.$strip>>;
613
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
614
+ slug: z.ZodString;
615
+ name: z.ZodOptional<z.ZodString>;
616
+ kind: z.ZodEnum<{
617
+ dev: "dev";
618
+ qa: "qa";
619
+ prod: "prod";
620
+ }>;
621
+ baseUrl: z.ZodUnion<readonly [z.ZodLiteral<"mock:">, z.ZodURL]>;
622
+ auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
623
+ type: z.ZodLiteral<"none">;
624
+ }, z.core.$strip>, z.ZodObject<{
625
+ type: z.ZodLiteral<"bearer">;
626
+ secretRef: z.ZodString;
627
+ }, z.core.$strip>, z.ZodObject<{
628
+ type: z.ZodLiteral<"header">;
629
+ headerName: z.ZodString;
630
+ secretRef: z.ZodString;
631
+ }, z.core.$strip>, z.ZodObject<{
632
+ type: z.ZodLiteral<"query">;
633
+ paramName: z.ZodString;
634
+ secretRef: z.ZodString;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ type: z.ZodLiteral<"basic">;
637
+ username: z.ZodString;
638
+ secretRef: z.ZodString;
639
+ }, z.core.$strip>, z.ZodObject<{
640
+ type: z.ZodLiteral<"oauth_client_credentials">;
641
+ tokenUrl: z.ZodURL;
642
+ clientId: z.ZodString;
643
+ clientSecretRef: z.ZodString;
644
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
645
+ audience: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strip>, z.ZodObject<{
647
+ type: z.ZodLiteral<"oauth_passthrough">;
648
+ mode: z.ZodDefault<z.ZodEnum<{
649
+ broker: "broker";
650
+ forward_inbound: "forward_inbound";
651
+ }>>;
652
+ authorizationUrl: z.ZodOptional<z.ZodURL>;
653
+ tokenUrl: z.ZodOptional<z.ZodURL>;
654
+ clientId: z.ZodOptional<z.ZodString>;
655
+ clientSecretRef: z.ZodOptional<z.ZodString>;
656
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
657
+ upstreamAudience: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strip>], "type">>;
659
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
660
+ codeMode: z.ZodOptional<z.ZodBoolean>;
661
+ limits: z.ZodOptional<z.ZodObject<{
662
+ rateLimit: z.ZodOptional<z.ZodObject<{
663
+ perMinute: z.ZodNumber;
664
+ burst: z.ZodNumber;
665
+ }, z.core.$strip>>;
666
+ toolRateLimit: z.ZodOptional<z.ZodObject<{
667
+ perMinute: z.ZodNumber;
668
+ burst: z.ZodNumber;
669
+ }, z.core.$strip>>;
670
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
671
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
672
+ code: z.ZodOptional<z.ZodObject<{
673
+ maxToolCalls: z.ZodOptional<z.ZodNumber>;
674
+ wallTimeSec: z.ZodOptional<z.ZodNumber>;
675
+ cpuTimeSec: z.ZodOptional<z.ZodNumber>;
676
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
677
+ maxConcurrentCalls: z.ZodOptional<z.ZodNumber>;
678
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
679
+ }, z.core.$strip>>;
680
+ }, z.core.$strip>>;
681
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
682
+ allowHttp: z.ZodOptional<z.ZodBoolean>;
683
+ autoPromote: z.ZodOptional<z.ZodBoolean>;
684
+ }, z.core.$strip>>>;
685
+ }, z.core.$strip>]>;
686
+ export type ServerCreate = z.infer<typeof ServerCreate>;
687
+ export declare const ServerCreateAccepted: z.ZodObject<{
688
+ server: z.ZodObject<{
689
+ id: z.ZodString;
690
+ slug: z.ZodString;
691
+ name: z.ZodString;
692
+ kind: z.ZodEnum<{
693
+ openapi: "openapi";
694
+ graphql: "graphql";
695
+ }>;
696
+ specFormat: z.ZodNullable<z.ZodEnum<{
697
+ "openapi-3.0": "openapi-3.0";
698
+ "openapi-3.1": "openapi-3.1";
699
+ "graphql-sdl": "graphql-sdl";
700
+ "graphql-introspection": "graphql-introspection";
701
+ }>>;
702
+ status: z.ZodEnum<{
703
+ active: "active";
704
+ disabled: "disabled";
705
+ removed_from_config: "removed_from_config";
706
+ }>;
707
+ managedBy: z.ZodEnum<{
708
+ file: "file";
709
+ console: "console";
710
+ }>;
711
+ toolCount: z.ZodNumber;
712
+ visibleToolCount: z.ZodNumber;
713
+ writeToolCount: z.ZodNumber;
714
+ environments: z.ZodArray<z.ZodObject<{
715
+ id: z.ZodString;
716
+ slug: z.ZodString;
717
+ kind: z.ZodEnum<{
718
+ dev: "dev";
719
+ qa: "qa";
720
+ prod: "prod";
721
+ }>;
722
+ writesEnabled: z.ZodBoolean;
723
+ isMock: z.ZodBoolean;
724
+ health: z.ZodEnum<{
725
+ up: "up";
726
+ down: "down";
727
+ unknown: "unknown";
728
+ }>;
729
+ }, z.core.$strip>>;
730
+ readiness: z.ZodNullable<z.ZodObject<{
731
+ score: z.ZodNumber;
732
+ band: z.ZodEnum<{
733
+ not_ready: "not_ready";
734
+ needs_work: "needs_work";
735
+ ready: "ready";
736
+ excellent: "excellent";
737
+ }>;
738
+ confidence: z.ZodEnum<{
739
+ measured: "measured";
740
+ preliminary: "preliminary";
741
+ degraded: "degraded";
742
+ }>;
743
+ runId: z.ZodNullable<z.ZodString>;
744
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
745
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
746
+ code: "code";
747
+ tool: "tool";
748
+ }>>;
749
+ recommendation: z.ZodNullable<z.ZodString>;
750
+ modeScores: z.ZodObject<{
751
+ tool: z.ZodOptional<z.ZodNumber>;
752
+ code: z.ZodOptional<z.ZodNumber>;
753
+ }, z.core.$strip>;
754
+ breakdown: z.ZodArray<z.ZodObject<{
755
+ key: z.ZodEnum<{
756
+ success: "success";
757
+ impossible: "impossible";
758
+ efficiency: "efficiency";
759
+ framing: "framing";
760
+ quality: "quality";
761
+ stability: "stability";
762
+ correctness: "correctness";
763
+ }>;
764
+ label: z.ZodString;
765
+ weight: z.ZodNumber;
766
+ score: z.ZodNumber;
767
+ detail: z.ZodString;
768
+ fixCount: z.ZodNumber;
769
+ }, z.core.$strip>>;
770
+ }, z.core.$strip>>;
771
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
772
+ updatedAt: z.ZodISODateTime;
773
+ description: z.ZodString;
774
+ exposure: z.ZodObject<{
775
+ mode: z.ZodEnum<{
776
+ auto: "auto";
777
+ tools: "tools";
778
+ code: "code";
779
+ both: "both";
780
+ }>;
781
+ discovery: z.ZodEnum<{
782
+ auto: "auto";
783
+ full: "full";
784
+ search: "search";
785
+ }>;
786
+ pinned: z.ZodArray<z.ZodString>;
787
+ }, z.core.$strip>;
788
+ opsTools: z.ZodObject<{
789
+ begin_task: z.ZodBoolean;
790
+ end_task: z.ZodBoolean;
791
+ log_decision: z.ZodBoolean;
792
+ report_unmet_need: z.ZodBoolean;
793
+ report_issue: z.ZodBoolean;
794
+ explain_error: z.ZodBoolean;
795
+ get_examples: z.ZodBoolean;
796
+ whoami: z.ZodBoolean;
797
+ }, z.core.$strip>;
798
+ publicReport: z.ZodBoolean;
799
+ publicReportUrl: z.ZodNullable<z.ZodString>;
800
+ specSource: z.ZodObject<{
801
+ url: z.ZodNullable<z.ZodString>;
802
+ path: z.ZodNullable<z.ZodString>;
803
+ upload: z.ZodBoolean;
804
+ }, z.core.$strip>;
805
+ currentSpec: z.ZodNullable<z.ZodObject<{
806
+ id: z.ZodString;
807
+ rev: z.ZodNumber;
808
+ format: z.ZodEnum<{
809
+ "openapi-3.0": "openapi-3.0";
810
+ "openapi-3.1": "openapi-3.1";
811
+ "graphql-sdl": "graphql-sdl";
812
+ "graphql-introspection": "graphql-introspection";
813
+ }>;
814
+ title: z.ZodString;
815
+ apiVersion: z.ZodNullable<z.ZodString>;
816
+ operationCount: z.ZodNumber;
817
+ contentHash: z.ZodString;
818
+ contentBytes: z.ZodNumber;
819
+ sourceUrl: z.ZodNullable<z.ZodString>;
820
+ createdAt: z.ZodISODateTime;
821
+ createdBy: z.ZodNullable<z.ZodObject<{
822
+ id: z.ZodString;
823
+ name: z.ZodString;
824
+ }, z.core.$strip>>;
825
+ }, z.core.$strip>>;
826
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
827
+ id: z.ZodString;
828
+ rev: z.ZodNumber;
829
+ hash: z.ZodString;
830
+ message: z.ZodString;
831
+ source: z.ZodEnum<{
832
+ file: "file";
833
+ console: "console";
834
+ suggestion: "suggestion";
835
+ revert: "revert";
836
+ }>;
837
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
838
+ createdBy: z.ZodNullable<z.ZodObject<{
839
+ id: z.ZodString;
840
+ name: z.ZodString;
841
+ }, z.core.$strip>>;
842
+ createdAt: z.ZodISODateTime;
843
+ toolChanges: z.ZodNumber;
844
+ }, z.core.$strip>>;
845
+ draft: z.ZodNullable<z.ZodObject<{
846
+ changeCount: z.ZodNumber;
847
+ updatedAt: z.ZodISODateTime;
848
+ }, z.core.$strip>>;
849
+ latestBuild: z.ZodNullable<z.ZodObject<{
850
+ id: z.ZodString;
851
+ hash: z.ZodString;
852
+ status: z.ZodEnum<{
853
+ ok: "ok";
854
+ error: "error";
855
+ }>;
856
+ specRev: z.ZodNumber;
857
+ overlayRev: z.ZodNullable<z.ZodNumber>;
858
+ compilerVersion: z.ZodString;
859
+ toolCount: z.ZodNumber;
860
+ visibleCount: z.ZodNumber;
861
+ writeCount: z.ZodNumber;
862
+ hiddenCount: z.ZodNumber;
863
+ lintScore: z.ZodNumber;
864
+ diagnosticsCount: z.ZodObject<{
865
+ error: z.ZodNumber;
866
+ warning: z.ZodNumber;
867
+ info: z.ZodNumber;
868
+ }, z.core.$strip>;
869
+ environments: z.ZodArray<z.ZodString>;
870
+ createdAt: z.ZodISODateTime;
871
+ }, z.core.$strip>>;
872
+ config: z.ZodNullable<z.ZodObject<{
873
+ path: z.ZodString;
874
+ line: z.ZodNullable<z.ZodNumber>;
875
+ }, z.core.$strip>>;
876
+ fileManagedFields: z.ZodArray<z.ZodString>;
877
+ }, z.core.$strip>;
878
+ jobId: z.ZodString;
879
+ }, z.core.$strip>;
880
+ export type ServerCreateAccepted = z.infer<typeof ServerCreateAccepted>;
881
+ /** `servers.create` answers 202 ServerCreateAccepted (source) or 201 ServerDetail (previewId). */
882
+ export declare const ServerCreateResult: z.ZodUnion<readonly [z.ZodObject<{
883
+ server: z.ZodObject<{
884
+ id: z.ZodString;
885
+ slug: z.ZodString;
886
+ name: z.ZodString;
887
+ kind: z.ZodEnum<{
888
+ openapi: "openapi";
889
+ graphql: "graphql";
890
+ }>;
891
+ specFormat: z.ZodNullable<z.ZodEnum<{
892
+ "openapi-3.0": "openapi-3.0";
893
+ "openapi-3.1": "openapi-3.1";
894
+ "graphql-sdl": "graphql-sdl";
895
+ "graphql-introspection": "graphql-introspection";
896
+ }>>;
897
+ status: z.ZodEnum<{
898
+ active: "active";
899
+ disabled: "disabled";
900
+ removed_from_config: "removed_from_config";
901
+ }>;
902
+ managedBy: z.ZodEnum<{
903
+ file: "file";
904
+ console: "console";
905
+ }>;
906
+ toolCount: z.ZodNumber;
907
+ visibleToolCount: z.ZodNumber;
908
+ writeToolCount: z.ZodNumber;
909
+ environments: z.ZodArray<z.ZodObject<{
910
+ id: z.ZodString;
911
+ slug: z.ZodString;
912
+ kind: z.ZodEnum<{
913
+ dev: "dev";
914
+ qa: "qa";
915
+ prod: "prod";
916
+ }>;
917
+ writesEnabled: z.ZodBoolean;
918
+ isMock: z.ZodBoolean;
919
+ health: z.ZodEnum<{
920
+ up: "up";
921
+ down: "down";
922
+ unknown: "unknown";
923
+ }>;
924
+ }, z.core.$strip>>;
925
+ readiness: z.ZodNullable<z.ZodObject<{
926
+ score: z.ZodNumber;
927
+ band: z.ZodEnum<{
928
+ not_ready: "not_ready";
929
+ needs_work: "needs_work";
930
+ ready: "ready";
931
+ excellent: "excellent";
932
+ }>;
933
+ confidence: z.ZodEnum<{
934
+ measured: "measured";
935
+ preliminary: "preliminary";
936
+ degraded: "degraded";
937
+ }>;
938
+ runId: z.ZodNullable<z.ZodString>;
939
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
940
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
941
+ code: "code";
942
+ tool: "tool";
943
+ }>>;
944
+ recommendation: z.ZodNullable<z.ZodString>;
945
+ modeScores: z.ZodObject<{
946
+ tool: z.ZodOptional<z.ZodNumber>;
947
+ code: z.ZodOptional<z.ZodNumber>;
948
+ }, z.core.$strip>;
949
+ breakdown: z.ZodArray<z.ZodObject<{
950
+ key: z.ZodEnum<{
951
+ success: "success";
952
+ impossible: "impossible";
953
+ efficiency: "efficiency";
954
+ framing: "framing";
955
+ quality: "quality";
956
+ stability: "stability";
957
+ correctness: "correctness";
958
+ }>;
959
+ label: z.ZodString;
960
+ weight: z.ZodNumber;
961
+ score: z.ZodNumber;
962
+ detail: z.ZodString;
963
+ fixCount: z.ZodNumber;
964
+ }, z.core.$strip>>;
965
+ }, z.core.$strip>>;
966
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
967
+ updatedAt: z.ZodISODateTime;
968
+ description: z.ZodString;
969
+ exposure: z.ZodObject<{
970
+ mode: z.ZodEnum<{
971
+ auto: "auto";
972
+ tools: "tools";
973
+ code: "code";
974
+ both: "both";
975
+ }>;
976
+ discovery: z.ZodEnum<{
977
+ auto: "auto";
978
+ full: "full";
979
+ search: "search";
980
+ }>;
981
+ pinned: z.ZodArray<z.ZodString>;
982
+ }, z.core.$strip>;
983
+ opsTools: z.ZodObject<{
984
+ begin_task: z.ZodBoolean;
985
+ end_task: z.ZodBoolean;
986
+ log_decision: z.ZodBoolean;
987
+ report_unmet_need: z.ZodBoolean;
988
+ report_issue: z.ZodBoolean;
989
+ explain_error: z.ZodBoolean;
990
+ get_examples: z.ZodBoolean;
991
+ whoami: z.ZodBoolean;
992
+ }, z.core.$strip>;
993
+ publicReport: z.ZodBoolean;
994
+ publicReportUrl: z.ZodNullable<z.ZodString>;
995
+ specSource: z.ZodObject<{
996
+ url: z.ZodNullable<z.ZodString>;
997
+ path: z.ZodNullable<z.ZodString>;
998
+ upload: z.ZodBoolean;
999
+ }, z.core.$strip>;
1000
+ currentSpec: z.ZodNullable<z.ZodObject<{
1001
+ id: z.ZodString;
1002
+ rev: z.ZodNumber;
1003
+ format: z.ZodEnum<{
1004
+ "openapi-3.0": "openapi-3.0";
1005
+ "openapi-3.1": "openapi-3.1";
1006
+ "graphql-sdl": "graphql-sdl";
1007
+ "graphql-introspection": "graphql-introspection";
1008
+ }>;
1009
+ title: z.ZodString;
1010
+ apiVersion: z.ZodNullable<z.ZodString>;
1011
+ operationCount: z.ZodNumber;
1012
+ contentHash: z.ZodString;
1013
+ contentBytes: z.ZodNumber;
1014
+ sourceUrl: z.ZodNullable<z.ZodString>;
1015
+ createdAt: z.ZodISODateTime;
1016
+ createdBy: z.ZodNullable<z.ZodObject<{
1017
+ id: z.ZodString;
1018
+ name: z.ZodString;
1019
+ }, z.core.$strip>>;
1020
+ }, z.core.$strip>>;
1021
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
1022
+ id: z.ZodString;
1023
+ rev: z.ZodNumber;
1024
+ hash: z.ZodString;
1025
+ message: z.ZodString;
1026
+ source: z.ZodEnum<{
1027
+ file: "file";
1028
+ console: "console";
1029
+ suggestion: "suggestion";
1030
+ revert: "revert";
1031
+ }>;
1032
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
1033
+ createdBy: z.ZodNullable<z.ZodObject<{
1034
+ id: z.ZodString;
1035
+ name: z.ZodString;
1036
+ }, z.core.$strip>>;
1037
+ createdAt: z.ZodISODateTime;
1038
+ toolChanges: z.ZodNumber;
1039
+ }, z.core.$strip>>;
1040
+ draft: z.ZodNullable<z.ZodObject<{
1041
+ changeCount: z.ZodNumber;
1042
+ updatedAt: z.ZodISODateTime;
1043
+ }, z.core.$strip>>;
1044
+ latestBuild: z.ZodNullable<z.ZodObject<{
1045
+ id: z.ZodString;
1046
+ hash: z.ZodString;
1047
+ status: z.ZodEnum<{
1048
+ ok: "ok";
1049
+ error: "error";
1050
+ }>;
1051
+ specRev: z.ZodNumber;
1052
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1053
+ compilerVersion: z.ZodString;
1054
+ toolCount: z.ZodNumber;
1055
+ visibleCount: z.ZodNumber;
1056
+ writeCount: z.ZodNumber;
1057
+ hiddenCount: z.ZodNumber;
1058
+ lintScore: z.ZodNumber;
1059
+ diagnosticsCount: z.ZodObject<{
1060
+ error: z.ZodNumber;
1061
+ warning: z.ZodNumber;
1062
+ info: z.ZodNumber;
1063
+ }, z.core.$strip>;
1064
+ environments: z.ZodArray<z.ZodString>;
1065
+ createdAt: z.ZodISODateTime;
1066
+ }, z.core.$strip>>;
1067
+ config: z.ZodNullable<z.ZodObject<{
1068
+ path: z.ZodString;
1069
+ line: z.ZodNullable<z.ZodNumber>;
1070
+ }, z.core.$strip>>;
1071
+ fileManagedFields: z.ZodArray<z.ZodString>;
1072
+ }, z.core.$strip>;
1073
+ jobId: z.ZodString;
1074
+ }, z.core.$strip>, z.ZodObject<{
1075
+ id: z.ZodString;
1076
+ slug: z.ZodString;
1077
+ name: z.ZodString;
1078
+ kind: z.ZodEnum<{
1079
+ openapi: "openapi";
1080
+ graphql: "graphql";
1081
+ }>;
1082
+ specFormat: z.ZodNullable<z.ZodEnum<{
1083
+ "openapi-3.0": "openapi-3.0";
1084
+ "openapi-3.1": "openapi-3.1";
1085
+ "graphql-sdl": "graphql-sdl";
1086
+ "graphql-introspection": "graphql-introspection";
1087
+ }>>;
1088
+ status: z.ZodEnum<{
1089
+ active: "active";
1090
+ disabled: "disabled";
1091
+ removed_from_config: "removed_from_config";
1092
+ }>;
1093
+ managedBy: z.ZodEnum<{
1094
+ file: "file";
1095
+ console: "console";
1096
+ }>;
1097
+ toolCount: z.ZodNumber;
1098
+ visibleToolCount: z.ZodNumber;
1099
+ writeToolCount: z.ZodNumber;
1100
+ environments: z.ZodArray<z.ZodObject<{
1101
+ id: z.ZodString;
1102
+ slug: z.ZodString;
1103
+ kind: z.ZodEnum<{
1104
+ dev: "dev";
1105
+ qa: "qa";
1106
+ prod: "prod";
1107
+ }>;
1108
+ writesEnabled: z.ZodBoolean;
1109
+ isMock: z.ZodBoolean;
1110
+ health: z.ZodEnum<{
1111
+ up: "up";
1112
+ down: "down";
1113
+ unknown: "unknown";
1114
+ }>;
1115
+ }, z.core.$strip>>;
1116
+ readiness: z.ZodNullable<z.ZodObject<{
1117
+ score: z.ZodNumber;
1118
+ band: z.ZodEnum<{
1119
+ not_ready: "not_ready";
1120
+ needs_work: "needs_work";
1121
+ ready: "ready";
1122
+ excellent: "excellent";
1123
+ }>;
1124
+ confidence: z.ZodEnum<{
1125
+ measured: "measured";
1126
+ preliminary: "preliminary";
1127
+ degraded: "degraded";
1128
+ }>;
1129
+ runId: z.ZodNullable<z.ZodString>;
1130
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
1131
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1132
+ code: "code";
1133
+ tool: "tool";
1134
+ }>>;
1135
+ recommendation: z.ZodNullable<z.ZodString>;
1136
+ modeScores: z.ZodObject<{
1137
+ tool: z.ZodOptional<z.ZodNumber>;
1138
+ code: z.ZodOptional<z.ZodNumber>;
1139
+ }, z.core.$strip>;
1140
+ breakdown: z.ZodArray<z.ZodObject<{
1141
+ key: z.ZodEnum<{
1142
+ success: "success";
1143
+ impossible: "impossible";
1144
+ efficiency: "efficiency";
1145
+ framing: "framing";
1146
+ quality: "quality";
1147
+ stability: "stability";
1148
+ correctness: "correctness";
1149
+ }>;
1150
+ label: z.ZodString;
1151
+ weight: z.ZodNumber;
1152
+ score: z.ZodNumber;
1153
+ detail: z.ZodString;
1154
+ fixCount: z.ZodNumber;
1155
+ }, z.core.$strip>>;
1156
+ }, z.core.$strip>>;
1157
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
1158
+ updatedAt: z.ZodISODateTime;
1159
+ description: z.ZodString;
1160
+ exposure: z.ZodObject<{
1161
+ mode: z.ZodEnum<{
1162
+ auto: "auto";
1163
+ tools: "tools";
1164
+ code: "code";
1165
+ both: "both";
1166
+ }>;
1167
+ discovery: z.ZodEnum<{
1168
+ auto: "auto";
1169
+ full: "full";
1170
+ search: "search";
1171
+ }>;
1172
+ pinned: z.ZodArray<z.ZodString>;
1173
+ }, z.core.$strip>;
1174
+ opsTools: z.ZodObject<{
1175
+ begin_task: z.ZodBoolean;
1176
+ end_task: z.ZodBoolean;
1177
+ log_decision: z.ZodBoolean;
1178
+ report_unmet_need: z.ZodBoolean;
1179
+ report_issue: z.ZodBoolean;
1180
+ explain_error: z.ZodBoolean;
1181
+ get_examples: z.ZodBoolean;
1182
+ whoami: z.ZodBoolean;
1183
+ }, z.core.$strip>;
1184
+ publicReport: z.ZodBoolean;
1185
+ publicReportUrl: z.ZodNullable<z.ZodString>;
1186
+ specSource: z.ZodObject<{
1187
+ url: z.ZodNullable<z.ZodString>;
1188
+ path: z.ZodNullable<z.ZodString>;
1189
+ upload: z.ZodBoolean;
1190
+ }, z.core.$strip>;
1191
+ currentSpec: z.ZodNullable<z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ rev: z.ZodNumber;
1194
+ format: z.ZodEnum<{
1195
+ "openapi-3.0": "openapi-3.0";
1196
+ "openapi-3.1": "openapi-3.1";
1197
+ "graphql-sdl": "graphql-sdl";
1198
+ "graphql-introspection": "graphql-introspection";
1199
+ }>;
1200
+ title: z.ZodString;
1201
+ apiVersion: z.ZodNullable<z.ZodString>;
1202
+ operationCount: z.ZodNumber;
1203
+ contentHash: z.ZodString;
1204
+ contentBytes: z.ZodNumber;
1205
+ sourceUrl: z.ZodNullable<z.ZodString>;
1206
+ createdAt: z.ZodISODateTime;
1207
+ createdBy: z.ZodNullable<z.ZodObject<{
1208
+ id: z.ZodString;
1209
+ name: z.ZodString;
1210
+ }, z.core.$strip>>;
1211
+ }, z.core.$strip>>;
1212
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
1213
+ id: z.ZodString;
1214
+ rev: z.ZodNumber;
1215
+ hash: z.ZodString;
1216
+ message: z.ZodString;
1217
+ source: z.ZodEnum<{
1218
+ file: "file";
1219
+ console: "console";
1220
+ suggestion: "suggestion";
1221
+ revert: "revert";
1222
+ }>;
1223
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
1224
+ createdBy: z.ZodNullable<z.ZodObject<{
1225
+ id: z.ZodString;
1226
+ name: z.ZodString;
1227
+ }, z.core.$strip>>;
1228
+ createdAt: z.ZodISODateTime;
1229
+ toolChanges: z.ZodNumber;
1230
+ }, z.core.$strip>>;
1231
+ draft: z.ZodNullable<z.ZodObject<{
1232
+ changeCount: z.ZodNumber;
1233
+ updatedAt: z.ZodISODateTime;
1234
+ }, z.core.$strip>>;
1235
+ latestBuild: z.ZodNullable<z.ZodObject<{
1236
+ id: z.ZodString;
1237
+ hash: z.ZodString;
1238
+ status: z.ZodEnum<{
1239
+ ok: "ok";
1240
+ error: "error";
1241
+ }>;
1242
+ specRev: z.ZodNumber;
1243
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1244
+ compilerVersion: z.ZodString;
1245
+ toolCount: z.ZodNumber;
1246
+ visibleCount: z.ZodNumber;
1247
+ writeCount: z.ZodNumber;
1248
+ hiddenCount: z.ZodNumber;
1249
+ lintScore: z.ZodNumber;
1250
+ diagnosticsCount: z.ZodObject<{
1251
+ error: z.ZodNumber;
1252
+ warning: z.ZodNumber;
1253
+ info: z.ZodNumber;
1254
+ }, z.core.$strip>;
1255
+ environments: z.ZodArray<z.ZodString>;
1256
+ createdAt: z.ZodISODateTime;
1257
+ }, z.core.$strip>>;
1258
+ config: z.ZodNullable<z.ZodObject<{
1259
+ path: z.ZodString;
1260
+ line: z.ZodNullable<z.ZodNumber>;
1261
+ }, z.core.$strip>>;
1262
+ fileManagedFields: z.ZodArray<z.ZodString>;
1263
+ }, z.core.$strip>]>;
1264
+ export type ServerCreateResult = z.infer<typeof ServerCreateResult>;
1265
+ export declare const ServerPatch: z.ZodObject<{
1266
+ name: z.ZodOptional<z.ZodString>;
1267
+ description: z.ZodOptional<z.ZodString>;
1268
+ exposure: z.ZodOptional<z.ZodObject<{
1269
+ mode: z.ZodOptional<z.ZodEnum<{
1270
+ auto: "auto";
1271
+ tools: "tools";
1272
+ code: "code";
1273
+ both: "both";
1274
+ }>>;
1275
+ discovery: z.ZodOptional<z.ZodEnum<{
1276
+ auto: "auto";
1277
+ full: "full";
1278
+ search: "search";
1279
+ }>>;
1280
+ pinned: z.ZodOptional<z.ZodArray<z.ZodString>>;
1281
+ }, z.core.$strip>>;
1282
+ opsTools: z.ZodOptional<z.ZodObject<{
1283
+ begin_task: z.ZodOptional<z.ZodBoolean>;
1284
+ end_task: z.ZodOptional<z.ZodBoolean>;
1285
+ log_decision: z.ZodOptional<z.ZodBoolean>;
1286
+ report_unmet_need: z.ZodOptional<z.ZodBoolean>;
1287
+ report_issue: z.ZodOptional<z.ZodBoolean>;
1288
+ explain_error: z.ZodOptional<z.ZodBoolean>;
1289
+ get_examples: z.ZodOptional<z.ZodBoolean>;
1290
+ whoami: z.ZodOptional<z.ZodBoolean>;
1291
+ }, z.core.$strip>>;
1292
+ publicReport: z.ZodOptional<z.ZodBoolean>;
1293
+ status: z.ZodOptional<z.ZodEnum<{
1294
+ active: "active";
1295
+ disabled: "disabled";
1296
+ }>>;
1297
+ }, z.core.$strip>;
1298
+ export type ServerPatch = z.infer<typeof ServerPatch>;
1299
+ export declare const ServerDeleteQuery: z.ZodObject<{
1300
+ confirm: z.ZodString;
1301
+ }, z.core.$strip>;
1302
+ export declare const ConnectClientId: z.ZodEnum<{
1303
+ http: "http";
1304
+ cursor: "cursor";
1305
+ "claude-code": "claude-code";
1306
+ vscode: "vscode";
1307
+ }>;
1308
+ export declare const ConnectConfig: z.ZodObject<{
1309
+ mcpUrl: z.ZodString;
1310
+ resourceMetadataUrl: z.ZodString;
1311
+ environment: z.ZodObject<{
1312
+ id: z.ZodString;
1313
+ slug: z.ZodString;
1314
+ kind: z.ZodEnum<{
1315
+ dev: "dev";
1316
+ qa: "qa";
1317
+ prod: "prod";
1318
+ }>;
1319
+ }, z.core.$strip>;
1320
+ auth: z.ZodObject<{
1321
+ apiKey: z.ZodBoolean;
1322
+ oauth: z.ZodBoolean;
1323
+ externalAs: z.ZodNullable<z.ZodObject<{
1324
+ issuer: z.ZodString;
1325
+ }, z.core.$strip>>;
1326
+ }, z.core.$strip>;
1327
+ summary: z.ZodObject<{
1328
+ exposure: z.ZodEnum<{
1329
+ auto: "auto";
1330
+ tools: "tools";
1331
+ code: "code";
1332
+ both: "both";
1333
+ }>;
1334
+ discovery: z.ZodEnum<{
1335
+ auto: "auto";
1336
+ full: "full";
1337
+ search: "search";
1338
+ }>;
1339
+ listedTools: z.ZodNumber;
1340
+ codeMode: z.ZodBoolean;
1341
+ writesEnabled: z.ZodBoolean;
1342
+ }, z.core.$strip>;
1343
+ clients: z.ZodArray<z.ZodObject<{
1344
+ id: z.ZodEnum<{
1345
+ http: "http";
1346
+ cursor: "cursor";
1347
+ "claude-code": "claude-code";
1348
+ vscode: "vscode";
1349
+ }>;
1350
+ name: z.ZodString;
1351
+ snippet: z.ZodString;
1352
+ codeModeOnlySnippet: z.ZodString;
1353
+ }, z.core.$strip>>;
1354
+ }, z.core.$strip>;
1355
+ export type ConnectConfig = z.infer<typeof ConnectConfig>;
1356
+ export declare const ConnectQuery: z.ZodObject<{
1357
+ environmentId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1358
+ }, z.core.$strip>;
1359
+ export declare const serverEndpoints: {
1360
+ readonly list: {
1361
+ readonly method: "GET";
1362
+ readonly path: "/api/servers";
1363
+ readonly kind: "json";
1364
+ readonly access: readonly ["servers:read"];
1365
+ readonly summary: "Servers with environments and readiness";
1366
+ readonly query: z.ZodObject<{
1367
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1368
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
1369
+ q: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1370
+ status: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodEnum<{
1371
+ active: "active";
1372
+ disabled: "disabled";
1373
+ removed_from_config: "removed_from_config";
1374
+ }>>>, unknown>;
1375
+ kind: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
1376
+ openapi: "openapi";
1377
+ graphql: "graphql";
1378
+ }>>, unknown>;
1379
+ }, z.core.$strip>;
1380
+ readonly response: z.ZodObject<{
1381
+ items: z.ZodArray<z.ZodObject<{
1382
+ id: z.ZodString;
1383
+ slug: z.ZodString;
1384
+ name: z.ZodString;
1385
+ kind: z.ZodEnum<{
1386
+ openapi: "openapi";
1387
+ graphql: "graphql";
1388
+ }>;
1389
+ specFormat: z.ZodNullable<z.ZodEnum<{
1390
+ "openapi-3.0": "openapi-3.0";
1391
+ "openapi-3.1": "openapi-3.1";
1392
+ "graphql-sdl": "graphql-sdl";
1393
+ "graphql-introspection": "graphql-introspection";
1394
+ }>>;
1395
+ status: z.ZodEnum<{
1396
+ active: "active";
1397
+ disabled: "disabled";
1398
+ removed_from_config: "removed_from_config";
1399
+ }>;
1400
+ managedBy: z.ZodEnum<{
1401
+ file: "file";
1402
+ console: "console";
1403
+ }>;
1404
+ toolCount: z.ZodNumber;
1405
+ visibleToolCount: z.ZodNumber;
1406
+ writeToolCount: z.ZodNumber;
1407
+ environments: z.ZodArray<z.ZodObject<{
1408
+ id: z.ZodString;
1409
+ slug: z.ZodString;
1410
+ kind: z.ZodEnum<{
1411
+ dev: "dev";
1412
+ qa: "qa";
1413
+ prod: "prod";
1414
+ }>;
1415
+ writesEnabled: z.ZodBoolean;
1416
+ isMock: z.ZodBoolean;
1417
+ health: z.ZodEnum<{
1418
+ up: "up";
1419
+ down: "down";
1420
+ unknown: "unknown";
1421
+ }>;
1422
+ }, z.core.$strip>>;
1423
+ readiness: z.ZodNullable<z.ZodObject<{
1424
+ score: z.ZodNumber;
1425
+ band: z.ZodEnum<{
1426
+ not_ready: "not_ready";
1427
+ needs_work: "needs_work";
1428
+ ready: "ready";
1429
+ excellent: "excellent";
1430
+ }>;
1431
+ confidence: z.ZodEnum<{
1432
+ measured: "measured";
1433
+ preliminary: "preliminary";
1434
+ degraded: "degraded";
1435
+ }>;
1436
+ runId: z.ZodNullable<z.ZodString>;
1437
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
1438
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1439
+ code: "code";
1440
+ tool: "tool";
1441
+ }>>;
1442
+ recommendation: z.ZodNullable<z.ZodString>;
1443
+ modeScores: z.ZodObject<{
1444
+ tool: z.ZodOptional<z.ZodNumber>;
1445
+ code: z.ZodOptional<z.ZodNumber>;
1446
+ }, z.core.$strip>;
1447
+ breakdown: z.ZodArray<z.ZodObject<{
1448
+ key: z.ZodEnum<{
1449
+ success: "success";
1450
+ impossible: "impossible";
1451
+ efficiency: "efficiency";
1452
+ framing: "framing";
1453
+ quality: "quality";
1454
+ stability: "stability";
1455
+ correctness: "correctness";
1456
+ }>;
1457
+ label: z.ZodString;
1458
+ weight: z.ZodNumber;
1459
+ score: z.ZodNumber;
1460
+ detail: z.ZodString;
1461
+ fixCount: z.ZodNumber;
1462
+ }, z.core.$strip>>;
1463
+ }, z.core.$strip>>;
1464
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
1465
+ updatedAt: z.ZodISODateTime;
1466
+ }, z.core.$strip>>;
1467
+ nextCursor: z.ZodNullable<z.ZodString>;
1468
+ totalEstimate: z.ZodOptional<z.ZodNumber>;
1469
+ }, z.core.$strip>;
1470
+ } & {
1471
+ status: number;
1472
+ };
1473
+ readonly create: {
1474
+ readonly method: "POST";
1475
+ readonly path: "/api/servers";
1476
+ readonly kind: "json";
1477
+ readonly status: 202;
1478
+ readonly access: readonly ["servers:write"];
1479
+ readonly summary: "Import a spec as a new server (202 + job; 201 ServerDetail when created from a preview). 409 slug; 422 spec_invalid; 502 spec_fetch_failed";
1480
+ readonly body: z.ZodUnion<readonly [z.ZodObject<{
1481
+ previewId: z.ZodString;
1482
+ slug: z.ZodString;
1483
+ name: z.ZodString;
1484
+ description: z.ZodOptional<z.ZodString>;
1485
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1486
+ slug: z.ZodString;
1487
+ name: z.ZodOptional<z.ZodString>;
1488
+ kind: z.ZodEnum<{
1489
+ dev: "dev";
1490
+ qa: "qa";
1491
+ prod: "prod";
1492
+ }>;
1493
+ baseUrl: z.ZodUnion<readonly [z.ZodLiteral<"mock:">, z.ZodURL]>;
1494
+ auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1495
+ type: z.ZodLiteral<"none">;
1496
+ }, z.core.$strip>, z.ZodObject<{
1497
+ type: z.ZodLiteral<"bearer">;
1498
+ secretRef: z.ZodString;
1499
+ }, z.core.$strip>, z.ZodObject<{
1500
+ type: z.ZodLiteral<"header">;
1501
+ headerName: z.ZodString;
1502
+ secretRef: z.ZodString;
1503
+ }, z.core.$strip>, z.ZodObject<{
1504
+ type: z.ZodLiteral<"query">;
1505
+ paramName: z.ZodString;
1506
+ secretRef: z.ZodString;
1507
+ }, z.core.$strip>, z.ZodObject<{
1508
+ type: z.ZodLiteral<"basic">;
1509
+ username: z.ZodString;
1510
+ secretRef: z.ZodString;
1511
+ }, z.core.$strip>, z.ZodObject<{
1512
+ type: z.ZodLiteral<"oauth_client_credentials">;
1513
+ tokenUrl: z.ZodURL;
1514
+ clientId: z.ZodString;
1515
+ clientSecretRef: z.ZodString;
1516
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1517
+ audience: z.ZodOptional<z.ZodString>;
1518
+ }, z.core.$strip>, z.ZodObject<{
1519
+ type: z.ZodLiteral<"oauth_passthrough">;
1520
+ mode: z.ZodDefault<z.ZodEnum<{
1521
+ broker: "broker";
1522
+ forward_inbound: "forward_inbound";
1523
+ }>>;
1524
+ authorizationUrl: z.ZodOptional<z.ZodURL>;
1525
+ tokenUrl: z.ZodOptional<z.ZodURL>;
1526
+ clientId: z.ZodOptional<z.ZodString>;
1527
+ clientSecretRef: z.ZodOptional<z.ZodString>;
1528
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1529
+ upstreamAudience: z.ZodOptional<z.ZodString>;
1530
+ }, z.core.$strip>], "type">>;
1531
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1532
+ codeMode: z.ZodOptional<z.ZodBoolean>;
1533
+ limits: z.ZodOptional<z.ZodObject<{
1534
+ rateLimit: z.ZodOptional<z.ZodObject<{
1535
+ perMinute: z.ZodNumber;
1536
+ burst: z.ZodNumber;
1537
+ }, z.core.$strip>>;
1538
+ toolRateLimit: z.ZodOptional<z.ZodObject<{
1539
+ perMinute: z.ZodNumber;
1540
+ burst: z.ZodNumber;
1541
+ }, z.core.$strip>>;
1542
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1543
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
1544
+ code: z.ZodOptional<z.ZodObject<{
1545
+ maxToolCalls: z.ZodOptional<z.ZodNumber>;
1546
+ wallTimeSec: z.ZodOptional<z.ZodNumber>;
1547
+ cpuTimeSec: z.ZodOptional<z.ZodNumber>;
1548
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
1549
+ maxConcurrentCalls: z.ZodOptional<z.ZodNumber>;
1550
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
1551
+ }, z.core.$strip>>;
1552
+ }, z.core.$strip>>;
1553
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1554
+ allowHttp: z.ZodOptional<z.ZodBoolean>;
1555
+ autoPromote: z.ZodOptional<z.ZodBoolean>;
1556
+ }, z.core.$strip>>>;
1557
+ }, z.core.$strip>, z.ZodObject<{
1558
+ slug: z.ZodString;
1559
+ name: z.ZodString;
1560
+ description: z.ZodOptional<z.ZodString>;
1561
+ source: z.ZodUnion<readonly [z.ZodObject<{
1562
+ url: z.ZodURL;
1563
+ }, z.core.$strip>, z.ZodObject<{
1564
+ content: z.ZodString;
1565
+ filename: z.ZodOptional<z.ZodString>;
1566
+ }, z.core.$strip>]>;
1567
+ format: z.ZodOptional<z.ZodEnum<{
1568
+ openapi: "openapi";
1569
+ "graphql-sdl": "graphql-sdl";
1570
+ "graphql-introspection": "graphql-introspection";
1571
+ }>>;
1572
+ graphql: z.ZodOptional<z.ZodObject<{
1573
+ endpointPath: z.ZodOptional<z.ZodString>;
1574
+ selectionDepth: z.ZodOptional<z.ZodNumber>;
1575
+ }, z.core.$strip>>;
1576
+ environments: z.ZodOptional<z.ZodArray<z.ZodObject<{
1577
+ slug: z.ZodString;
1578
+ name: z.ZodOptional<z.ZodString>;
1579
+ kind: z.ZodEnum<{
1580
+ dev: "dev";
1581
+ qa: "qa";
1582
+ prod: "prod";
1583
+ }>;
1584
+ baseUrl: z.ZodUnion<readonly [z.ZodLiteral<"mock:">, z.ZodURL]>;
1585
+ auth: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
1586
+ type: z.ZodLiteral<"none">;
1587
+ }, z.core.$strip>, z.ZodObject<{
1588
+ type: z.ZodLiteral<"bearer">;
1589
+ secretRef: z.ZodString;
1590
+ }, z.core.$strip>, z.ZodObject<{
1591
+ type: z.ZodLiteral<"header">;
1592
+ headerName: z.ZodString;
1593
+ secretRef: z.ZodString;
1594
+ }, z.core.$strip>, z.ZodObject<{
1595
+ type: z.ZodLiteral<"query">;
1596
+ paramName: z.ZodString;
1597
+ secretRef: z.ZodString;
1598
+ }, z.core.$strip>, z.ZodObject<{
1599
+ type: z.ZodLiteral<"basic">;
1600
+ username: z.ZodString;
1601
+ secretRef: z.ZodString;
1602
+ }, z.core.$strip>, z.ZodObject<{
1603
+ type: z.ZodLiteral<"oauth_client_credentials">;
1604
+ tokenUrl: z.ZodURL;
1605
+ clientId: z.ZodString;
1606
+ clientSecretRef: z.ZodString;
1607
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1608
+ audience: z.ZodOptional<z.ZodString>;
1609
+ }, z.core.$strip>, z.ZodObject<{
1610
+ type: z.ZodLiteral<"oauth_passthrough">;
1611
+ mode: z.ZodDefault<z.ZodEnum<{
1612
+ broker: "broker";
1613
+ forward_inbound: "forward_inbound";
1614
+ }>>;
1615
+ authorizationUrl: z.ZodOptional<z.ZodURL>;
1616
+ tokenUrl: z.ZodOptional<z.ZodURL>;
1617
+ clientId: z.ZodOptional<z.ZodString>;
1618
+ clientSecretRef: z.ZodOptional<z.ZodString>;
1619
+ scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
1620
+ upstreamAudience: z.ZodOptional<z.ZodString>;
1621
+ }, z.core.$strip>], "type">>;
1622
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1623
+ codeMode: z.ZodOptional<z.ZodBoolean>;
1624
+ limits: z.ZodOptional<z.ZodObject<{
1625
+ rateLimit: z.ZodOptional<z.ZodObject<{
1626
+ perMinute: z.ZodNumber;
1627
+ burst: z.ZodNumber;
1628
+ }, z.core.$strip>>;
1629
+ toolRateLimit: z.ZodOptional<z.ZodObject<{
1630
+ perMinute: z.ZodNumber;
1631
+ burst: z.ZodNumber;
1632
+ }, z.core.$strip>>;
1633
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1634
+ maxResponseBytes: z.ZodOptional<z.ZodNumber>;
1635
+ code: z.ZodOptional<z.ZodObject<{
1636
+ maxToolCalls: z.ZodOptional<z.ZodNumber>;
1637
+ wallTimeSec: z.ZodOptional<z.ZodNumber>;
1638
+ cpuTimeSec: z.ZodOptional<z.ZodNumber>;
1639
+ maxMemoryMb: z.ZodOptional<z.ZodNumber>;
1640
+ maxConcurrentCalls: z.ZodOptional<z.ZodNumber>;
1641
+ maxResultBytes: z.ZodOptional<z.ZodNumber>;
1642
+ }, z.core.$strip>>;
1643
+ }, z.core.$strip>>;
1644
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
1645
+ allowHttp: z.ZodOptional<z.ZodBoolean>;
1646
+ autoPromote: z.ZodOptional<z.ZodBoolean>;
1647
+ }, z.core.$strip>>>;
1648
+ }, z.core.$strip>]>;
1649
+ readonly response: z.ZodUnion<readonly [z.ZodObject<{
1650
+ server: z.ZodObject<{
1651
+ id: z.ZodString;
1652
+ slug: z.ZodString;
1653
+ name: z.ZodString;
1654
+ kind: z.ZodEnum<{
1655
+ openapi: "openapi";
1656
+ graphql: "graphql";
1657
+ }>;
1658
+ specFormat: z.ZodNullable<z.ZodEnum<{
1659
+ "openapi-3.0": "openapi-3.0";
1660
+ "openapi-3.1": "openapi-3.1";
1661
+ "graphql-sdl": "graphql-sdl";
1662
+ "graphql-introspection": "graphql-introspection";
1663
+ }>>;
1664
+ status: z.ZodEnum<{
1665
+ active: "active";
1666
+ disabled: "disabled";
1667
+ removed_from_config: "removed_from_config";
1668
+ }>;
1669
+ managedBy: z.ZodEnum<{
1670
+ file: "file";
1671
+ console: "console";
1672
+ }>;
1673
+ toolCount: z.ZodNumber;
1674
+ visibleToolCount: z.ZodNumber;
1675
+ writeToolCount: z.ZodNumber;
1676
+ environments: z.ZodArray<z.ZodObject<{
1677
+ id: z.ZodString;
1678
+ slug: z.ZodString;
1679
+ kind: z.ZodEnum<{
1680
+ dev: "dev";
1681
+ qa: "qa";
1682
+ prod: "prod";
1683
+ }>;
1684
+ writesEnabled: z.ZodBoolean;
1685
+ isMock: z.ZodBoolean;
1686
+ health: z.ZodEnum<{
1687
+ up: "up";
1688
+ down: "down";
1689
+ unknown: "unknown";
1690
+ }>;
1691
+ }, z.core.$strip>>;
1692
+ readiness: z.ZodNullable<z.ZodObject<{
1693
+ score: z.ZodNumber;
1694
+ band: z.ZodEnum<{
1695
+ not_ready: "not_ready";
1696
+ needs_work: "needs_work";
1697
+ ready: "ready";
1698
+ excellent: "excellent";
1699
+ }>;
1700
+ confidence: z.ZodEnum<{
1701
+ measured: "measured";
1702
+ preliminary: "preliminary";
1703
+ degraded: "degraded";
1704
+ }>;
1705
+ runId: z.ZodNullable<z.ZodString>;
1706
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
1707
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1708
+ code: "code";
1709
+ tool: "tool";
1710
+ }>>;
1711
+ recommendation: z.ZodNullable<z.ZodString>;
1712
+ modeScores: z.ZodObject<{
1713
+ tool: z.ZodOptional<z.ZodNumber>;
1714
+ code: z.ZodOptional<z.ZodNumber>;
1715
+ }, z.core.$strip>;
1716
+ breakdown: z.ZodArray<z.ZodObject<{
1717
+ key: z.ZodEnum<{
1718
+ success: "success";
1719
+ impossible: "impossible";
1720
+ efficiency: "efficiency";
1721
+ framing: "framing";
1722
+ quality: "quality";
1723
+ stability: "stability";
1724
+ correctness: "correctness";
1725
+ }>;
1726
+ label: z.ZodString;
1727
+ weight: z.ZodNumber;
1728
+ score: z.ZodNumber;
1729
+ detail: z.ZodString;
1730
+ fixCount: z.ZodNumber;
1731
+ }, z.core.$strip>>;
1732
+ }, z.core.$strip>>;
1733
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
1734
+ updatedAt: z.ZodISODateTime;
1735
+ description: z.ZodString;
1736
+ exposure: z.ZodObject<{
1737
+ mode: z.ZodEnum<{
1738
+ auto: "auto";
1739
+ tools: "tools";
1740
+ code: "code";
1741
+ both: "both";
1742
+ }>;
1743
+ discovery: z.ZodEnum<{
1744
+ auto: "auto";
1745
+ full: "full";
1746
+ search: "search";
1747
+ }>;
1748
+ pinned: z.ZodArray<z.ZodString>;
1749
+ }, z.core.$strip>;
1750
+ opsTools: z.ZodObject<{
1751
+ begin_task: z.ZodBoolean;
1752
+ end_task: z.ZodBoolean;
1753
+ log_decision: z.ZodBoolean;
1754
+ report_unmet_need: z.ZodBoolean;
1755
+ report_issue: z.ZodBoolean;
1756
+ explain_error: z.ZodBoolean;
1757
+ get_examples: z.ZodBoolean;
1758
+ whoami: z.ZodBoolean;
1759
+ }, z.core.$strip>;
1760
+ publicReport: z.ZodBoolean;
1761
+ publicReportUrl: z.ZodNullable<z.ZodString>;
1762
+ specSource: z.ZodObject<{
1763
+ url: z.ZodNullable<z.ZodString>;
1764
+ path: z.ZodNullable<z.ZodString>;
1765
+ upload: z.ZodBoolean;
1766
+ }, z.core.$strip>;
1767
+ currentSpec: z.ZodNullable<z.ZodObject<{
1768
+ id: z.ZodString;
1769
+ rev: z.ZodNumber;
1770
+ format: z.ZodEnum<{
1771
+ "openapi-3.0": "openapi-3.0";
1772
+ "openapi-3.1": "openapi-3.1";
1773
+ "graphql-sdl": "graphql-sdl";
1774
+ "graphql-introspection": "graphql-introspection";
1775
+ }>;
1776
+ title: z.ZodString;
1777
+ apiVersion: z.ZodNullable<z.ZodString>;
1778
+ operationCount: z.ZodNumber;
1779
+ contentHash: z.ZodString;
1780
+ contentBytes: z.ZodNumber;
1781
+ sourceUrl: z.ZodNullable<z.ZodString>;
1782
+ createdAt: z.ZodISODateTime;
1783
+ createdBy: z.ZodNullable<z.ZodObject<{
1784
+ id: z.ZodString;
1785
+ name: z.ZodString;
1786
+ }, z.core.$strip>>;
1787
+ }, z.core.$strip>>;
1788
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
1789
+ id: z.ZodString;
1790
+ rev: z.ZodNumber;
1791
+ hash: z.ZodString;
1792
+ message: z.ZodString;
1793
+ source: z.ZodEnum<{
1794
+ file: "file";
1795
+ console: "console";
1796
+ suggestion: "suggestion";
1797
+ revert: "revert";
1798
+ }>;
1799
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
1800
+ createdBy: z.ZodNullable<z.ZodObject<{
1801
+ id: z.ZodString;
1802
+ name: z.ZodString;
1803
+ }, z.core.$strip>>;
1804
+ createdAt: z.ZodISODateTime;
1805
+ toolChanges: z.ZodNumber;
1806
+ }, z.core.$strip>>;
1807
+ draft: z.ZodNullable<z.ZodObject<{
1808
+ changeCount: z.ZodNumber;
1809
+ updatedAt: z.ZodISODateTime;
1810
+ }, z.core.$strip>>;
1811
+ latestBuild: z.ZodNullable<z.ZodObject<{
1812
+ id: z.ZodString;
1813
+ hash: z.ZodString;
1814
+ status: z.ZodEnum<{
1815
+ ok: "ok";
1816
+ error: "error";
1817
+ }>;
1818
+ specRev: z.ZodNumber;
1819
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1820
+ compilerVersion: z.ZodString;
1821
+ toolCount: z.ZodNumber;
1822
+ visibleCount: z.ZodNumber;
1823
+ writeCount: z.ZodNumber;
1824
+ hiddenCount: z.ZodNumber;
1825
+ lintScore: z.ZodNumber;
1826
+ diagnosticsCount: z.ZodObject<{
1827
+ error: z.ZodNumber;
1828
+ warning: z.ZodNumber;
1829
+ info: z.ZodNumber;
1830
+ }, z.core.$strip>;
1831
+ environments: z.ZodArray<z.ZodString>;
1832
+ createdAt: z.ZodISODateTime;
1833
+ }, z.core.$strip>>;
1834
+ config: z.ZodNullable<z.ZodObject<{
1835
+ path: z.ZodString;
1836
+ line: z.ZodNullable<z.ZodNumber>;
1837
+ }, z.core.$strip>>;
1838
+ fileManagedFields: z.ZodArray<z.ZodString>;
1839
+ }, z.core.$strip>;
1840
+ jobId: z.ZodString;
1841
+ }, z.core.$strip>, z.ZodObject<{
1842
+ id: z.ZodString;
1843
+ slug: z.ZodString;
1844
+ name: z.ZodString;
1845
+ kind: z.ZodEnum<{
1846
+ openapi: "openapi";
1847
+ graphql: "graphql";
1848
+ }>;
1849
+ specFormat: z.ZodNullable<z.ZodEnum<{
1850
+ "openapi-3.0": "openapi-3.0";
1851
+ "openapi-3.1": "openapi-3.1";
1852
+ "graphql-sdl": "graphql-sdl";
1853
+ "graphql-introspection": "graphql-introspection";
1854
+ }>>;
1855
+ status: z.ZodEnum<{
1856
+ active: "active";
1857
+ disabled: "disabled";
1858
+ removed_from_config: "removed_from_config";
1859
+ }>;
1860
+ managedBy: z.ZodEnum<{
1861
+ file: "file";
1862
+ console: "console";
1863
+ }>;
1864
+ toolCount: z.ZodNumber;
1865
+ visibleToolCount: z.ZodNumber;
1866
+ writeToolCount: z.ZodNumber;
1867
+ environments: z.ZodArray<z.ZodObject<{
1868
+ id: z.ZodString;
1869
+ slug: z.ZodString;
1870
+ kind: z.ZodEnum<{
1871
+ dev: "dev";
1872
+ qa: "qa";
1873
+ prod: "prod";
1874
+ }>;
1875
+ writesEnabled: z.ZodBoolean;
1876
+ isMock: z.ZodBoolean;
1877
+ health: z.ZodEnum<{
1878
+ up: "up";
1879
+ down: "down";
1880
+ unknown: "unknown";
1881
+ }>;
1882
+ }, z.core.$strip>>;
1883
+ readiness: z.ZodNullable<z.ZodObject<{
1884
+ score: z.ZodNumber;
1885
+ band: z.ZodEnum<{
1886
+ not_ready: "not_ready";
1887
+ needs_work: "needs_work";
1888
+ ready: "ready";
1889
+ excellent: "excellent";
1890
+ }>;
1891
+ confidence: z.ZodEnum<{
1892
+ measured: "measured";
1893
+ preliminary: "preliminary";
1894
+ degraded: "degraded";
1895
+ }>;
1896
+ runId: z.ZodNullable<z.ZodString>;
1897
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
1898
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
1899
+ code: "code";
1900
+ tool: "tool";
1901
+ }>>;
1902
+ recommendation: z.ZodNullable<z.ZodString>;
1903
+ modeScores: z.ZodObject<{
1904
+ tool: z.ZodOptional<z.ZodNumber>;
1905
+ code: z.ZodOptional<z.ZodNumber>;
1906
+ }, z.core.$strip>;
1907
+ breakdown: z.ZodArray<z.ZodObject<{
1908
+ key: z.ZodEnum<{
1909
+ success: "success";
1910
+ impossible: "impossible";
1911
+ efficiency: "efficiency";
1912
+ framing: "framing";
1913
+ quality: "quality";
1914
+ stability: "stability";
1915
+ correctness: "correctness";
1916
+ }>;
1917
+ label: z.ZodString;
1918
+ weight: z.ZodNumber;
1919
+ score: z.ZodNumber;
1920
+ detail: z.ZodString;
1921
+ fixCount: z.ZodNumber;
1922
+ }, z.core.$strip>>;
1923
+ }, z.core.$strip>>;
1924
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
1925
+ updatedAt: z.ZodISODateTime;
1926
+ description: z.ZodString;
1927
+ exposure: z.ZodObject<{
1928
+ mode: z.ZodEnum<{
1929
+ auto: "auto";
1930
+ tools: "tools";
1931
+ code: "code";
1932
+ both: "both";
1933
+ }>;
1934
+ discovery: z.ZodEnum<{
1935
+ auto: "auto";
1936
+ full: "full";
1937
+ search: "search";
1938
+ }>;
1939
+ pinned: z.ZodArray<z.ZodString>;
1940
+ }, z.core.$strip>;
1941
+ opsTools: z.ZodObject<{
1942
+ begin_task: z.ZodBoolean;
1943
+ end_task: z.ZodBoolean;
1944
+ log_decision: z.ZodBoolean;
1945
+ report_unmet_need: z.ZodBoolean;
1946
+ report_issue: z.ZodBoolean;
1947
+ explain_error: z.ZodBoolean;
1948
+ get_examples: z.ZodBoolean;
1949
+ whoami: z.ZodBoolean;
1950
+ }, z.core.$strip>;
1951
+ publicReport: z.ZodBoolean;
1952
+ publicReportUrl: z.ZodNullable<z.ZodString>;
1953
+ specSource: z.ZodObject<{
1954
+ url: z.ZodNullable<z.ZodString>;
1955
+ path: z.ZodNullable<z.ZodString>;
1956
+ upload: z.ZodBoolean;
1957
+ }, z.core.$strip>;
1958
+ currentSpec: z.ZodNullable<z.ZodObject<{
1959
+ id: z.ZodString;
1960
+ rev: z.ZodNumber;
1961
+ format: z.ZodEnum<{
1962
+ "openapi-3.0": "openapi-3.0";
1963
+ "openapi-3.1": "openapi-3.1";
1964
+ "graphql-sdl": "graphql-sdl";
1965
+ "graphql-introspection": "graphql-introspection";
1966
+ }>;
1967
+ title: z.ZodString;
1968
+ apiVersion: z.ZodNullable<z.ZodString>;
1969
+ operationCount: z.ZodNumber;
1970
+ contentHash: z.ZodString;
1971
+ contentBytes: z.ZodNumber;
1972
+ sourceUrl: z.ZodNullable<z.ZodString>;
1973
+ createdAt: z.ZodISODateTime;
1974
+ createdBy: z.ZodNullable<z.ZodObject<{
1975
+ id: z.ZodString;
1976
+ name: z.ZodString;
1977
+ }, z.core.$strip>>;
1978
+ }, z.core.$strip>>;
1979
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
1980
+ id: z.ZodString;
1981
+ rev: z.ZodNumber;
1982
+ hash: z.ZodString;
1983
+ message: z.ZodString;
1984
+ source: z.ZodEnum<{
1985
+ file: "file";
1986
+ console: "console";
1987
+ suggestion: "suggestion";
1988
+ revert: "revert";
1989
+ }>;
1990
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
1991
+ createdBy: z.ZodNullable<z.ZodObject<{
1992
+ id: z.ZodString;
1993
+ name: z.ZodString;
1994
+ }, z.core.$strip>>;
1995
+ createdAt: z.ZodISODateTime;
1996
+ toolChanges: z.ZodNumber;
1997
+ }, z.core.$strip>>;
1998
+ draft: z.ZodNullable<z.ZodObject<{
1999
+ changeCount: z.ZodNumber;
2000
+ updatedAt: z.ZodISODateTime;
2001
+ }, z.core.$strip>>;
2002
+ latestBuild: z.ZodNullable<z.ZodObject<{
2003
+ id: z.ZodString;
2004
+ hash: z.ZodString;
2005
+ status: z.ZodEnum<{
2006
+ ok: "ok";
2007
+ error: "error";
2008
+ }>;
2009
+ specRev: z.ZodNumber;
2010
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2011
+ compilerVersion: z.ZodString;
2012
+ toolCount: z.ZodNumber;
2013
+ visibleCount: z.ZodNumber;
2014
+ writeCount: z.ZodNumber;
2015
+ hiddenCount: z.ZodNumber;
2016
+ lintScore: z.ZodNumber;
2017
+ diagnosticsCount: z.ZodObject<{
2018
+ error: z.ZodNumber;
2019
+ warning: z.ZodNumber;
2020
+ info: z.ZodNumber;
2021
+ }, z.core.$strip>;
2022
+ environments: z.ZodArray<z.ZodString>;
2023
+ createdAt: z.ZodISODateTime;
2024
+ }, z.core.$strip>>;
2025
+ config: z.ZodNullable<z.ZodObject<{
2026
+ path: z.ZodString;
2027
+ line: z.ZodNullable<z.ZodNumber>;
2028
+ }, z.core.$strip>>;
2029
+ fileManagedFields: z.ZodArray<z.ZodString>;
2030
+ }, z.core.$strip>]>;
2031
+ } & {
2032
+ status: number;
2033
+ };
2034
+ readonly get: {
2035
+ readonly method: "GET";
2036
+ readonly path: "/api/servers/:id";
2037
+ readonly kind: "json";
2038
+ readonly access: readonly ["servers:read"];
2039
+ readonly summary: "Server detail";
2040
+ readonly params: z.ZodObject<{
2041
+ id: z.ZodString;
2042
+ }, z.core.$strip>;
2043
+ readonly response: z.ZodObject<{
2044
+ id: z.ZodString;
2045
+ slug: z.ZodString;
2046
+ name: z.ZodString;
2047
+ kind: z.ZodEnum<{
2048
+ openapi: "openapi";
2049
+ graphql: "graphql";
2050
+ }>;
2051
+ specFormat: z.ZodNullable<z.ZodEnum<{
2052
+ "openapi-3.0": "openapi-3.0";
2053
+ "openapi-3.1": "openapi-3.1";
2054
+ "graphql-sdl": "graphql-sdl";
2055
+ "graphql-introspection": "graphql-introspection";
2056
+ }>>;
2057
+ status: z.ZodEnum<{
2058
+ active: "active";
2059
+ disabled: "disabled";
2060
+ removed_from_config: "removed_from_config";
2061
+ }>;
2062
+ managedBy: z.ZodEnum<{
2063
+ file: "file";
2064
+ console: "console";
2065
+ }>;
2066
+ toolCount: z.ZodNumber;
2067
+ visibleToolCount: z.ZodNumber;
2068
+ writeToolCount: z.ZodNumber;
2069
+ environments: z.ZodArray<z.ZodObject<{
2070
+ id: z.ZodString;
2071
+ slug: z.ZodString;
2072
+ kind: z.ZodEnum<{
2073
+ dev: "dev";
2074
+ qa: "qa";
2075
+ prod: "prod";
2076
+ }>;
2077
+ writesEnabled: z.ZodBoolean;
2078
+ isMock: z.ZodBoolean;
2079
+ health: z.ZodEnum<{
2080
+ up: "up";
2081
+ down: "down";
2082
+ unknown: "unknown";
2083
+ }>;
2084
+ }, z.core.$strip>>;
2085
+ readiness: z.ZodNullable<z.ZodObject<{
2086
+ score: z.ZodNumber;
2087
+ band: z.ZodEnum<{
2088
+ not_ready: "not_ready";
2089
+ needs_work: "needs_work";
2090
+ ready: "ready";
2091
+ excellent: "excellent";
2092
+ }>;
2093
+ confidence: z.ZodEnum<{
2094
+ measured: "measured";
2095
+ preliminary: "preliminary";
2096
+ degraded: "degraded";
2097
+ }>;
2098
+ runId: z.ZodNullable<z.ZodString>;
2099
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
2100
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2101
+ code: "code";
2102
+ tool: "tool";
2103
+ }>>;
2104
+ recommendation: z.ZodNullable<z.ZodString>;
2105
+ modeScores: z.ZodObject<{
2106
+ tool: z.ZodOptional<z.ZodNumber>;
2107
+ code: z.ZodOptional<z.ZodNumber>;
2108
+ }, z.core.$strip>;
2109
+ breakdown: z.ZodArray<z.ZodObject<{
2110
+ key: z.ZodEnum<{
2111
+ success: "success";
2112
+ impossible: "impossible";
2113
+ efficiency: "efficiency";
2114
+ framing: "framing";
2115
+ quality: "quality";
2116
+ stability: "stability";
2117
+ correctness: "correctness";
2118
+ }>;
2119
+ label: z.ZodString;
2120
+ weight: z.ZodNumber;
2121
+ score: z.ZodNumber;
2122
+ detail: z.ZodString;
2123
+ fixCount: z.ZodNumber;
2124
+ }, z.core.$strip>>;
2125
+ }, z.core.$strip>>;
2126
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
2127
+ updatedAt: z.ZodISODateTime;
2128
+ description: z.ZodString;
2129
+ exposure: z.ZodObject<{
2130
+ mode: z.ZodEnum<{
2131
+ auto: "auto";
2132
+ tools: "tools";
2133
+ code: "code";
2134
+ both: "both";
2135
+ }>;
2136
+ discovery: z.ZodEnum<{
2137
+ auto: "auto";
2138
+ full: "full";
2139
+ search: "search";
2140
+ }>;
2141
+ pinned: z.ZodArray<z.ZodString>;
2142
+ }, z.core.$strip>;
2143
+ opsTools: z.ZodObject<{
2144
+ begin_task: z.ZodBoolean;
2145
+ end_task: z.ZodBoolean;
2146
+ log_decision: z.ZodBoolean;
2147
+ report_unmet_need: z.ZodBoolean;
2148
+ report_issue: z.ZodBoolean;
2149
+ explain_error: z.ZodBoolean;
2150
+ get_examples: z.ZodBoolean;
2151
+ whoami: z.ZodBoolean;
2152
+ }, z.core.$strip>;
2153
+ publicReport: z.ZodBoolean;
2154
+ publicReportUrl: z.ZodNullable<z.ZodString>;
2155
+ specSource: z.ZodObject<{
2156
+ url: z.ZodNullable<z.ZodString>;
2157
+ path: z.ZodNullable<z.ZodString>;
2158
+ upload: z.ZodBoolean;
2159
+ }, z.core.$strip>;
2160
+ currentSpec: z.ZodNullable<z.ZodObject<{
2161
+ id: z.ZodString;
2162
+ rev: z.ZodNumber;
2163
+ format: z.ZodEnum<{
2164
+ "openapi-3.0": "openapi-3.0";
2165
+ "openapi-3.1": "openapi-3.1";
2166
+ "graphql-sdl": "graphql-sdl";
2167
+ "graphql-introspection": "graphql-introspection";
2168
+ }>;
2169
+ title: z.ZodString;
2170
+ apiVersion: z.ZodNullable<z.ZodString>;
2171
+ operationCount: z.ZodNumber;
2172
+ contentHash: z.ZodString;
2173
+ contentBytes: z.ZodNumber;
2174
+ sourceUrl: z.ZodNullable<z.ZodString>;
2175
+ createdAt: z.ZodISODateTime;
2176
+ createdBy: z.ZodNullable<z.ZodObject<{
2177
+ id: z.ZodString;
2178
+ name: z.ZodString;
2179
+ }, z.core.$strip>>;
2180
+ }, z.core.$strip>>;
2181
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
2182
+ id: z.ZodString;
2183
+ rev: z.ZodNumber;
2184
+ hash: z.ZodString;
2185
+ message: z.ZodString;
2186
+ source: z.ZodEnum<{
2187
+ file: "file";
2188
+ console: "console";
2189
+ suggestion: "suggestion";
2190
+ revert: "revert";
2191
+ }>;
2192
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
2193
+ createdBy: z.ZodNullable<z.ZodObject<{
2194
+ id: z.ZodString;
2195
+ name: z.ZodString;
2196
+ }, z.core.$strip>>;
2197
+ createdAt: z.ZodISODateTime;
2198
+ toolChanges: z.ZodNumber;
2199
+ }, z.core.$strip>>;
2200
+ draft: z.ZodNullable<z.ZodObject<{
2201
+ changeCount: z.ZodNumber;
2202
+ updatedAt: z.ZodISODateTime;
2203
+ }, z.core.$strip>>;
2204
+ latestBuild: z.ZodNullable<z.ZodObject<{
2205
+ id: z.ZodString;
2206
+ hash: z.ZodString;
2207
+ status: z.ZodEnum<{
2208
+ ok: "ok";
2209
+ error: "error";
2210
+ }>;
2211
+ specRev: z.ZodNumber;
2212
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2213
+ compilerVersion: z.ZodString;
2214
+ toolCount: z.ZodNumber;
2215
+ visibleCount: z.ZodNumber;
2216
+ writeCount: z.ZodNumber;
2217
+ hiddenCount: z.ZodNumber;
2218
+ lintScore: z.ZodNumber;
2219
+ diagnosticsCount: z.ZodObject<{
2220
+ error: z.ZodNumber;
2221
+ warning: z.ZodNumber;
2222
+ info: z.ZodNumber;
2223
+ }, z.core.$strip>;
2224
+ environments: z.ZodArray<z.ZodString>;
2225
+ createdAt: z.ZodISODateTime;
2226
+ }, z.core.$strip>>;
2227
+ config: z.ZodNullable<z.ZodObject<{
2228
+ path: z.ZodString;
2229
+ line: z.ZodNullable<z.ZodNumber>;
2230
+ }, z.core.$strip>>;
2231
+ fileManagedFields: z.ZodArray<z.ZodString>;
2232
+ }, z.core.$strip>;
2233
+ } & {
2234
+ status: number;
2235
+ };
2236
+ readonly update: {
2237
+ readonly method: "PATCH";
2238
+ readonly path: "/api/servers/:id";
2239
+ readonly kind: "json";
2240
+ readonly access: readonly ["servers:write"];
2241
+ readonly summary: "Update exposure, ops tools, public report, status (409 config_managed)";
2242
+ readonly params: z.ZodObject<{
2243
+ id: z.ZodString;
2244
+ }, z.core.$strip>;
2245
+ readonly body: z.ZodObject<{
2246
+ name: z.ZodOptional<z.ZodString>;
2247
+ description: z.ZodOptional<z.ZodString>;
2248
+ exposure: z.ZodOptional<z.ZodObject<{
2249
+ mode: z.ZodOptional<z.ZodEnum<{
2250
+ auto: "auto";
2251
+ tools: "tools";
2252
+ code: "code";
2253
+ both: "both";
2254
+ }>>;
2255
+ discovery: z.ZodOptional<z.ZodEnum<{
2256
+ auto: "auto";
2257
+ full: "full";
2258
+ search: "search";
2259
+ }>>;
2260
+ pinned: z.ZodOptional<z.ZodArray<z.ZodString>>;
2261
+ }, z.core.$strip>>;
2262
+ opsTools: z.ZodOptional<z.ZodObject<{
2263
+ begin_task: z.ZodOptional<z.ZodBoolean>;
2264
+ end_task: z.ZodOptional<z.ZodBoolean>;
2265
+ log_decision: z.ZodOptional<z.ZodBoolean>;
2266
+ report_unmet_need: z.ZodOptional<z.ZodBoolean>;
2267
+ report_issue: z.ZodOptional<z.ZodBoolean>;
2268
+ explain_error: z.ZodOptional<z.ZodBoolean>;
2269
+ get_examples: z.ZodOptional<z.ZodBoolean>;
2270
+ whoami: z.ZodOptional<z.ZodBoolean>;
2271
+ }, z.core.$strip>>;
2272
+ publicReport: z.ZodOptional<z.ZodBoolean>;
2273
+ status: z.ZodOptional<z.ZodEnum<{
2274
+ active: "active";
2275
+ disabled: "disabled";
2276
+ }>>;
2277
+ }, z.core.$strip>;
2278
+ readonly response: z.ZodObject<{
2279
+ id: z.ZodString;
2280
+ slug: z.ZodString;
2281
+ name: z.ZodString;
2282
+ kind: z.ZodEnum<{
2283
+ openapi: "openapi";
2284
+ graphql: "graphql";
2285
+ }>;
2286
+ specFormat: z.ZodNullable<z.ZodEnum<{
2287
+ "openapi-3.0": "openapi-3.0";
2288
+ "openapi-3.1": "openapi-3.1";
2289
+ "graphql-sdl": "graphql-sdl";
2290
+ "graphql-introspection": "graphql-introspection";
2291
+ }>>;
2292
+ status: z.ZodEnum<{
2293
+ active: "active";
2294
+ disabled: "disabled";
2295
+ removed_from_config: "removed_from_config";
2296
+ }>;
2297
+ managedBy: z.ZodEnum<{
2298
+ file: "file";
2299
+ console: "console";
2300
+ }>;
2301
+ toolCount: z.ZodNumber;
2302
+ visibleToolCount: z.ZodNumber;
2303
+ writeToolCount: z.ZodNumber;
2304
+ environments: z.ZodArray<z.ZodObject<{
2305
+ id: z.ZodString;
2306
+ slug: z.ZodString;
2307
+ kind: z.ZodEnum<{
2308
+ dev: "dev";
2309
+ qa: "qa";
2310
+ prod: "prod";
2311
+ }>;
2312
+ writesEnabled: z.ZodBoolean;
2313
+ isMock: z.ZodBoolean;
2314
+ health: z.ZodEnum<{
2315
+ up: "up";
2316
+ down: "down";
2317
+ unknown: "unknown";
2318
+ }>;
2319
+ }, z.core.$strip>>;
2320
+ readiness: z.ZodNullable<z.ZodObject<{
2321
+ score: z.ZodNumber;
2322
+ band: z.ZodEnum<{
2323
+ not_ready: "not_ready";
2324
+ needs_work: "needs_work";
2325
+ ready: "ready";
2326
+ excellent: "excellent";
2327
+ }>;
2328
+ confidence: z.ZodEnum<{
2329
+ measured: "measured";
2330
+ preliminary: "preliminary";
2331
+ degraded: "degraded";
2332
+ }>;
2333
+ runId: z.ZodNullable<z.ZodString>;
2334
+ measuredAt: z.ZodNullable<z.ZodISODateTime>;
2335
+ recommendedMode: z.ZodNullable<z.ZodEnum<{
2336
+ code: "code";
2337
+ tool: "tool";
2338
+ }>>;
2339
+ recommendation: z.ZodNullable<z.ZodString>;
2340
+ modeScores: z.ZodObject<{
2341
+ tool: z.ZodOptional<z.ZodNumber>;
2342
+ code: z.ZodOptional<z.ZodNumber>;
2343
+ }, z.core.$strip>;
2344
+ breakdown: z.ZodArray<z.ZodObject<{
2345
+ key: z.ZodEnum<{
2346
+ success: "success";
2347
+ impossible: "impossible";
2348
+ efficiency: "efficiency";
2349
+ framing: "framing";
2350
+ quality: "quality";
2351
+ stability: "stability";
2352
+ correctness: "correctness";
2353
+ }>;
2354
+ label: z.ZodString;
2355
+ weight: z.ZodNumber;
2356
+ score: z.ZodNumber;
2357
+ detail: z.ZodString;
2358
+ fixCount: z.ZodNumber;
2359
+ }, z.core.$strip>>;
2360
+ }, z.core.$strip>>;
2361
+ lastSpecAt: z.ZodNullable<z.ZodISODateTime>;
2362
+ updatedAt: z.ZodISODateTime;
2363
+ description: z.ZodString;
2364
+ exposure: z.ZodObject<{
2365
+ mode: z.ZodEnum<{
2366
+ auto: "auto";
2367
+ tools: "tools";
2368
+ code: "code";
2369
+ both: "both";
2370
+ }>;
2371
+ discovery: z.ZodEnum<{
2372
+ auto: "auto";
2373
+ full: "full";
2374
+ search: "search";
2375
+ }>;
2376
+ pinned: z.ZodArray<z.ZodString>;
2377
+ }, z.core.$strip>;
2378
+ opsTools: z.ZodObject<{
2379
+ begin_task: z.ZodBoolean;
2380
+ end_task: z.ZodBoolean;
2381
+ log_decision: z.ZodBoolean;
2382
+ report_unmet_need: z.ZodBoolean;
2383
+ report_issue: z.ZodBoolean;
2384
+ explain_error: z.ZodBoolean;
2385
+ get_examples: z.ZodBoolean;
2386
+ whoami: z.ZodBoolean;
2387
+ }, z.core.$strip>;
2388
+ publicReport: z.ZodBoolean;
2389
+ publicReportUrl: z.ZodNullable<z.ZodString>;
2390
+ specSource: z.ZodObject<{
2391
+ url: z.ZodNullable<z.ZodString>;
2392
+ path: z.ZodNullable<z.ZodString>;
2393
+ upload: z.ZodBoolean;
2394
+ }, z.core.$strip>;
2395
+ currentSpec: z.ZodNullable<z.ZodObject<{
2396
+ id: z.ZodString;
2397
+ rev: z.ZodNumber;
2398
+ format: z.ZodEnum<{
2399
+ "openapi-3.0": "openapi-3.0";
2400
+ "openapi-3.1": "openapi-3.1";
2401
+ "graphql-sdl": "graphql-sdl";
2402
+ "graphql-introspection": "graphql-introspection";
2403
+ }>;
2404
+ title: z.ZodString;
2405
+ apiVersion: z.ZodNullable<z.ZodString>;
2406
+ operationCount: z.ZodNumber;
2407
+ contentHash: z.ZodString;
2408
+ contentBytes: z.ZodNumber;
2409
+ sourceUrl: z.ZodNullable<z.ZodString>;
2410
+ createdAt: z.ZodISODateTime;
2411
+ createdBy: z.ZodNullable<z.ZodObject<{
2412
+ id: z.ZodString;
2413
+ name: z.ZodString;
2414
+ }, z.core.$strip>>;
2415
+ }, z.core.$strip>>;
2416
+ publishedOverlay: z.ZodNullable<z.ZodObject<{
2417
+ id: z.ZodString;
2418
+ rev: z.ZodNumber;
2419
+ hash: z.ZodString;
2420
+ message: z.ZodString;
2421
+ source: z.ZodEnum<{
2422
+ file: "file";
2423
+ console: "console";
2424
+ suggestion: "suggestion";
2425
+ revert: "revert";
2426
+ }>;
2427
+ basedOnRev: z.ZodNullable<z.ZodNumber>;
2428
+ createdBy: z.ZodNullable<z.ZodObject<{
2429
+ id: z.ZodString;
2430
+ name: z.ZodString;
2431
+ }, z.core.$strip>>;
2432
+ createdAt: z.ZodISODateTime;
2433
+ toolChanges: z.ZodNumber;
2434
+ }, z.core.$strip>>;
2435
+ draft: z.ZodNullable<z.ZodObject<{
2436
+ changeCount: z.ZodNumber;
2437
+ updatedAt: z.ZodISODateTime;
2438
+ }, z.core.$strip>>;
2439
+ latestBuild: z.ZodNullable<z.ZodObject<{
2440
+ id: z.ZodString;
2441
+ hash: z.ZodString;
2442
+ status: z.ZodEnum<{
2443
+ ok: "ok";
2444
+ error: "error";
2445
+ }>;
2446
+ specRev: z.ZodNumber;
2447
+ overlayRev: z.ZodNullable<z.ZodNumber>;
2448
+ compilerVersion: z.ZodString;
2449
+ toolCount: z.ZodNumber;
2450
+ visibleCount: z.ZodNumber;
2451
+ writeCount: z.ZodNumber;
2452
+ hiddenCount: z.ZodNumber;
2453
+ lintScore: z.ZodNumber;
2454
+ diagnosticsCount: z.ZodObject<{
2455
+ error: z.ZodNumber;
2456
+ warning: z.ZodNumber;
2457
+ info: z.ZodNumber;
2458
+ }, z.core.$strip>;
2459
+ environments: z.ZodArray<z.ZodString>;
2460
+ createdAt: z.ZodISODateTime;
2461
+ }, z.core.$strip>>;
2462
+ config: z.ZodNullable<z.ZodObject<{
2463
+ path: z.ZodString;
2464
+ line: z.ZodNullable<z.ZodNumber>;
2465
+ }, z.core.$strip>>;
2466
+ fileManagedFields: z.ZodArray<z.ZodString>;
2467
+ }, z.core.$strip>;
2468
+ } & {
2469
+ status: number;
2470
+ };
2471
+ readonly delete: {
2472
+ readonly method: "DELETE";
2473
+ readonly path: "/api/servers/:id";
2474
+ readonly kind: "empty";
2475
+ readonly access: readonly ["servers:write"];
2476
+ readonly summary: "Delete a server (?confirm=<slug>; 409 config_managed; 422 confirm mismatch)";
2477
+ readonly params: z.ZodObject<{
2478
+ id: z.ZodString;
2479
+ }, z.core.$strip>;
2480
+ readonly query: z.ZodObject<{
2481
+ confirm: z.ZodString;
2482
+ }, z.core.$strip>;
2483
+ } & {
2484
+ status: number;
2485
+ };
2486
+ readonly connect: {
2487
+ readonly method: "GET";
2488
+ readonly path: "/api/servers/:id/connect";
2489
+ readonly kind: "json";
2490
+ readonly access: readonly ["keys:read"];
2491
+ readonly summary: "MCP URL, auth modes and client snippets for one environment";
2492
+ readonly params: z.ZodObject<{
2493
+ id: z.ZodString;
2494
+ }, z.core.$strip>;
2495
+ readonly query: z.ZodObject<{
2496
+ environmentId: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
2497
+ }, z.core.$strip>;
2498
+ readonly response: z.ZodObject<{
2499
+ mcpUrl: z.ZodString;
2500
+ resourceMetadataUrl: z.ZodString;
2501
+ environment: z.ZodObject<{
2502
+ id: z.ZodString;
2503
+ slug: z.ZodString;
2504
+ kind: z.ZodEnum<{
2505
+ dev: "dev";
2506
+ qa: "qa";
2507
+ prod: "prod";
2508
+ }>;
2509
+ }, z.core.$strip>;
2510
+ auth: z.ZodObject<{
2511
+ apiKey: z.ZodBoolean;
2512
+ oauth: z.ZodBoolean;
2513
+ externalAs: z.ZodNullable<z.ZodObject<{
2514
+ issuer: z.ZodString;
2515
+ }, z.core.$strip>>;
2516
+ }, z.core.$strip>;
2517
+ summary: z.ZodObject<{
2518
+ exposure: z.ZodEnum<{
2519
+ auto: "auto";
2520
+ tools: "tools";
2521
+ code: "code";
2522
+ both: "both";
2523
+ }>;
2524
+ discovery: z.ZodEnum<{
2525
+ auto: "auto";
2526
+ full: "full";
2527
+ search: "search";
2528
+ }>;
2529
+ listedTools: z.ZodNumber;
2530
+ codeMode: z.ZodBoolean;
2531
+ writesEnabled: z.ZodBoolean;
2532
+ }, z.core.$strip>;
2533
+ clients: z.ZodArray<z.ZodObject<{
2534
+ id: z.ZodEnum<{
2535
+ http: "http";
2536
+ cursor: "cursor";
2537
+ "claude-code": "claude-code";
2538
+ vscode: "vscode";
2539
+ }>;
2540
+ name: z.ZodString;
2541
+ snippet: z.ZodString;
2542
+ codeModeOnlySnippet: z.ZodString;
2543
+ }, z.core.$strip>>;
2544
+ }, z.core.$strip>;
2545
+ } & {
2546
+ status: number;
2547
+ };
2548
+ };
2549
+ export declare const OpsToolRow: z.ZodObject<{
2550
+ name: z.ZodString;
2551
+ pyName: z.ZodNullable<z.ZodString>;
2552
+ title: z.ZodString;
2553
+ description: z.ZodString;
2554
+ enabled: z.ZodBoolean;
2555
+ toggleable: z.ZodBoolean;
2556
+ visibility: z.ZodEnum<{
2557
+ search: "search";
2558
+ pinned: "pinned";
2559
+ hint: "hint";
2560
+ }>;
2561
+ calls7d: z.ZodNumber;
2562
+ }, z.core.$strip>;
2563
+ export type OpsToolRow = z.infer<typeof OpsToolRow>;
2564
+ export declare const opsToolEndpoints: {
2565
+ readonly list: {
2566
+ readonly method: "GET";
2567
+ readonly path: "/api/servers/:id/ops-tools";
2568
+ readonly kind: "json";
2569
+ readonly access: readonly ["servers:read"];
2570
+ readonly summary: "Ops tools of a server with toggles and 7-day usage";
2571
+ readonly params: z.ZodObject<{
2572
+ id: z.ZodString;
2573
+ }, z.core.$strip>;
2574
+ readonly response: z.ZodObject<{
2575
+ items: z.ZodArray<z.ZodObject<{
2576
+ name: z.ZodString;
2577
+ pyName: z.ZodNullable<z.ZodString>;
2578
+ title: z.ZodString;
2579
+ description: z.ZodString;
2580
+ enabled: z.ZodBoolean;
2581
+ toggleable: z.ZodBoolean;
2582
+ visibility: z.ZodEnum<{
2583
+ search: "search";
2584
+ pinned: "pinned";
2585
+ hint: "hint";
2586
+ }>;
2587
+ calls7d: z.ZodNumber;
2588
+ }, z.core.$strip>>;
2589
+ }, z.core.$strip>;
2590
+ } & {
2591
+ status: number;
2592
+ };
2593
+ readonly set: {
2594
+ readonly method: "PUT";
2595
+ readonly path: "/api/servers/:id/ops-tools";
2596
+ readonly kind: "json";
2597
+ readonly access: readonly ["servers:write"];
2598
+ readonly summary: "Toggle ops tools (409 config_managed)";
2599
+ readonly params: z.ZodObject<{
2600
+ id: z.ZodString;
2601
+ }, z.core.$strip>;
2602
+ readonly body: z.ZodObject<{
2603
+ begin_task: z.ZodOptional<z.ZodBoolean>;
2604
+ end_task: z.ZodOptional<z.ZodBoolean>;
2605
+ log_decision: z.ZodOptional<z.ZodBoolean>;
2606
+ report_unmet_need: z.ZodOptional<z.ZodBoolean>;
2607
+ report_issue: z.ZodOptional<z.ZodBoolean>;
2608
+ explain_error: z.ZodOptional<z.ZodBoolean>;
2609
+ get_examples: z.ZodOptional<z.ZodBoolean>;
2610
+ whoami: z.ZodOptional<z.ZodBoolean>;
2611
+ }, z.core.$strip>;
2612
+ readonly response: z.ZodObject<{
2613
+ items: z.ZodArray<z.ZodObject<{
2614
+ name: z.ZodString;
2615
+ pyName: z.ZodNullable<z.ZodString>;
2616
+ title: z.ZodString;
2617
+ description: z.ZodString;
2618
+ enabled: z.ZodBoolean;
2619
+ toggleable: z.ZodBoolean;
2620
+ visibility: z.ZodEnum<{
2621
+ search: "search";
2622
+ pinned: "pinned";
2623
+ hint: "hint";
2624
+ }>;
2625
+ calls7d: z.ZodNumber;
2626
+ }, z.core.$strip>>;
2627
+ }, z.core.$strip>;
2628
+ } & {
2629
+ status: number;
2630
+ };
2631
+ };
2632
+ //# sourceMappingURL=servers.d.ts.map