@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,1393 @@
1
+ import * as z from 'zod';
2
+ export declare const SpecRevisionRow: z.ZodObject<{
3
+ id: z.ZodString;
4
+ rev: z.ZodNumber;
5
+ format: z.ZodEnum<{
6
+ "openapi-3.0": "openapi-3.0";
7
+ "openapi-3.1": "openapi-3.1";
8
+ "graphql-sdl": "graphql-sdl";
9
+ "graphql-introspection": "graphql-introspection";
10
+ }>;
11
+ title: z.ZodString;
12
+ apiVersion: z.ZodNullable<z.ZodString>;
13
+ operationCount: z.ZodNumber;
14
+ contentHash: z.ZodString;
15
+ contentBytes: z.ZodNumber;
16
+ sourceUrl: z.ZodNullable<z.ZodString>;
17
+ createdAt: z.ZodISODateTime;
18
+ createdBy: z.ZodNullable<z.ZodObject<{
19
+ id: z.ZodString;
20
+ name: z.ZodString;
21
+ }, z.core.$strip>>;
22
+ }, z.core.$strip>;
23
+ export type SpecRevisionRow = z.infer<typeof SpecRevisionRow>;
24
+ /** A spec operation reference (`key` = overlay selector: `operationId:x`, `"GET /p"`, `graphql:Query.f`). */
25
+ export declare const OpRef: z.ZodObject<{
26
+ key: z.ZodString;
27
+ method: z.ZodOptional<z.ZodString>;
28
+ path: z.ZodOptional<z.ZodString>;
29
+ operationId: z.ZodOptional<z.ZodString>;
30
+ toolName: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strip>;
32
+ export type OpRef = z.infer<typeof OpRef>;
33
+ export declare const SpecChangeSummary: z.ZodObject<{
34
+ added: z.ZodArray<z.ZodObject<{
35
+ key: z.ZodString;
36
+ method: z.ZodOptional<z.ZodString>;
37
+ path: z.ZodOptional<z.ZodString>;
38
+ operationId: z.ZodOptional<z.ZodString>;
39
+ toolName: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>>;
41
+ removed: z.ZodArray<z.ZodObject<{
42
+ key: z.ZodString;
43
+ method: z.ZodOptional<z.ZodString>;
44
+ path: z.ZodOptional<z.ZodString>;
45
+ operationId: z.ZodOptional<z.ZodString>;
46
+ toolName: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strip>>;
48
+ changed: z.ZodArray<z.ZodObject<{
49
+ op: z.ZodObject<{
50
+ key: z.ZodString;
51
+ method: z.ZodOptional<z.ZodString>;
52
+ path: z.ZodOptional<z.ZodString>;
53
+ operationId: z.ZodOptional<z.ZodString>;
54
+ toolName: z.ZodOptional<z.ZodString>;
55
+ }, z.core.$strip>;
56
+ fields: z.ZodArray<z.ZodString>;
57
+ }, z.core.$strip>>;
58
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ export type SpecChangeSummary = z.infer<typeof SpecChangeSummary>;
61
+ export declare const SpecRevisionDetail: z.ZodObject<{
62
+ id: z.ZodString;
63
+ rev: z.ZodNumber;
64
+ format: z.ZodEnum<{
65
+ "openapi-3.0": "openapi-3.0";
66
+ "openapi-3.1": "openapi-3.1";
67
+ "graphql-sdl": "graphql-sdl";
68
+ "graphql-introspection": "graphql-introspection";
69
+ }>;
70
+ title: z.ZodString;
71
+ apiVersion: z.ZodNullable<z.ZodString>;
72
+ operationCount: z.ZodNumber;
73
+ contentHash: z.ZodString;
74
+ contentBytes: z.ZodNumber;
75
+ sourceUrl: z.ZodNullable<z.ZodString>;
76
+ createdAt: z.ZodISODateTime;
77
+ createdBy: z.ZodNullable<z.ZodObject<{
78
+ id: z.ZodString;
79
+ name: z.ZodString;
80
+ }, z.core.$strip>>;
81
+ summary: z.ZodObject<{
82
+ added: z.ZodArray<z.ZodObject<{
83
+ key: z.ZodString;
84
+ method: z.ZodOptional<z.ZodString>;
85
+ path: z.ZodOptional<z.ZodString>;
86
+ operationId: z.ZodOptional<z.ZodString>;
87
+ toolName: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>>;
89
+ removed: z.ZodArray<z.ZodObject<{
90
+ key: z.ZodString;
91
+ method: z.ZodOptional<z.ZodString>;
92
+ path: z.ZodOptional<z.ZodString>;
93
+ operationId: z.ZodOptional<z.ZodString>;
94
+ toolName: z.ZodOptional<z.ZodString>;
95
+ }, z.core.$strip>>;
96
+ changed: z.ZodArray<z.ZodObject<{
97
+ op: z.ZodObject<{
98
+ key: z.ZodString;
99
+ method: z.ZodOptional<z.ZodString>;
100
+ path: z.ZodOptional<z.ZodString>;
101
+ operationId: z.ZodOptional<z.ZodString>;
102
+ toolName: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strip>;
104
+ fields: z.ZodArray<z.ZodString>;
105
+ }, z.core.$strip>>;
106
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
107
+ }, z.core.$strip>;
108
+ }, z.core.$strip>;
109
+ export type SpecRevisionDetail = z.infer<typeof SpecRevisionDetail>;
110
+ /** Spec source: a URL to fetch, or pasted / uploaded content (≤ 10 MiB). */
111
+ export declare const SpecSourceIn: z.ZodUnion<readonly [z.ZodObject<{
112
+ url: z.ZodURL;
113
+ }, z.core.$strip>, z.ZodObject<{
114
+ content: z.ZodString;
115
+ filename: z.ZodOptional<z.ZodString>;
116
+ }, z.core.$strip>]>;
117
+ export type SpecSourceIn = z.infer<typeof SpecSourceIn>;
118
+ export declare const SpecReimport: z.ZodUnion<readonly [z.ZodObject<{
119
+ previewId: z.ZodString;
120
+ }, z.core.$strip>, z.ZodObject<{
121
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
122
+ url: z.ZodURL;
123
+ }, z.core.$strip>, z.ZodObject<{
124
+ content: z.ZodString;
125
+ filename: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>]>>;
127
+ }, z.core.$strip>]>;
128
+ export type SpecReimport = z.infer<typeof SpecReimport>;
129
+ export declare const DiagnosticsCount: z.ZodObject<{
130
+ error: z.ZodNumber;
131
+ warning: z.ZodNumber;
132
+ info: z.ZodNumber;
133
+ }, z.core.$strip>;
134
+ export declare const BuildRow: z.ZodObject<{
135
+ id: z.ZodString;
136
+ hash: z.ZodString;
137
+ status: z.ZodEnum<{
138
+ ok: "ok";
139
+ error: "error";
140
+ }>;
141
+ specRev: z.ZodNumber;
142
+ overlayRev: z.ZodNullable<z.ZodNumber>;
143
+ compilerVersion: z.ZodString;
144
+ toolCount: z.ZodNumber;
145
+ visibleCount: z.ZodNumber;
146
+ writeCount: z.ZodNumber;
147
+ hiddenCount: z.ZodNumber;
148
+ lintScore: z.ZodNumber;
149
+ diagnosticsCount: z.ZodObject<{
150
+ error: z.ZodNumber;
151
+ warning: z.ZodNumber;
152
+ info: z.ZodNumber;
153
+ }, z.core.$strip>;
154
+ environments: z.ZodArray<z.ZodString>;
155
+ createdAt: z.ZodISODateTime;
156
+ }, z.core.$strip>;
157
+ export type BuildRow = z.infer<typeof BuildRow>;
158
+ export declare const BuildDetail: z.ZodObject<{
159
+ id: z.ZodString;
160
+ hash: z.ZodString;
161
+ status: z.ZodEnum<{
162
+ ok: "ok";
163
+ error: "error";
164
+ }>;
165
+ specRev: z.ZodNumber;
166
+ overlayRev: z.ZodNullable<z.ZodNumber>;
167
+ compilerVersion: z.ZodString;
168
+ toolCount: z.ZodNumber;
169
+ visibleCount: z.ZodNumber;
170
+ writeCount: z.ZodNumber;
171
+ hiddenCount: z.ZodNumber;
172
+ lintScore: z.ZodNumber;
173
+ diagnosticsCount: z.ZodObject<{
174
+ error: z.ZodNumber;
175
+ warning: z.ZodNumber;
176
+ info: z.ZodNumber;
177
+ }, z.core.$strip>;
178
+ environments: z.ZodArray<z.ZodString>;
179
+ createdAt: z.ZodISODateTime;
180
+ diagnostics: z.ZodArray<z.ZodObject<{
181
+ severity: z.ZodEnum<{
182
+ error: "error";
183
+ warning: "warning";
184
+ info: "info";
185
+ }>;
186
+ code: z.ZodString;
187
+ message: z.ZodString;
188
+ pointer: z.ZodOptional<z.ZodString>;
189
+ overlayPath: z.ZodOptional<z.ZodString>;
190
+ line: z.ZodOptional<z.ZodNumber>;
191
+ col: z.ZodOptional<z.ZodNumber>;
192
+ excerpt: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>>;
194
+ lint: z.ZodObject<{
195
+ score: z.ZodNumber;
196
+ rules: z.ZodArray<z.ZodObject<{
197
+ rule: z.ZodEnum<{
198
+ description_present: "description_present";
199
+ description_actionable: "description_actionable";
200
+ params_described: "params_described";
201
+ params_typed: "params_typed";
202
+ names_clear: "names_clear";
203
+ toolset_size: "toolset_size";
204
+ output_shaped: "output_shaped";
205
+ examples_present: "examples_present";
206
+ writes_marked: "writes_marked";
207
+ schema_depth: "schema_depth";
208
+ }>;
209
+ weight: z.ZodNumber;
210
+ score: z.ZodNumber;
211
+ passed: z.ZodBoolean;
212
+ detail: z.ZodString;
213
+ }, z.core.$strip>>;
214
+ findings: z.ZodArray<z.ZodObject<{
215
+ rule: z.ZodEnum<{
216
+ description_present: "description_present";
217
+ description_actionable: "description_actionable";
218
+ params_described: "params_described";
219
+ params_typed: "params_typed";
220
+ names_clear: "names_clear";
221
+ toolset_size: "toolset_size";
222
+ output_shaped: "output_shaped";
223
+ examples_present: "examples_present";
224
+ writes_marked: "writes_marked";
225
+ schema_depth: "schema_depth";
226
+ }>;
227
+ severity: z.ZodEnum<{
228
+ error: "error";
229
+ warning: "warning";
230
+ info: "info";
231
+ }>;
232
+ tool: z.ZodOptional<z.ZodString>;
233
+ message: z.ZodString;
234
+ fix: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
235
+ }, z.core.$strip>>;
236
+ }, z.core.$strip>;
237
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
238
+ }, z.core.$strip>;
239
+ export type BuildDetail = z.infer<typeof BuildDetail>;
240
+ export declare const PythonStubs: z.ZodObject<{
241
+ namespaces: z.ZodArray<z.ZodObject<{
242
+ name: z.ZodString;
243
+ pyi: z.ZodString;
244
+ }, z.core.$strip>>;
245
+ }, z.core.$strip>;
246
+ export type PythonStubs = z.infer<typeof PythonStubs>;
247
+ export declare const SpecReimportResult: z.ZodObject<{
248
+ revision: z.ZodObject<{
249
+ id: z.ZodString;
250
+ rev: z.ZodNumber;
251
+ format: z.ZodEnum<{
252
+ "openapi-3.0": "openapi-3.0";
253
+ "openapi-3.1": "openapi-3.1";
254
+ "graphql-sdl": "graphql-sdl";
255
+ "graphql-introspection": "graphql-introspection";
256
+ }>;
257
+ title: z.ZodString;
258
+ apiVersion: z.ZodNullable<z.ZodString>;
259
+ operationCount: z.ZodNumber;
260
+ contentHash: z.ZodString;
261
+ contentBytes: z.ZodNumber;
262
+ sourceUrl: z.ZodNullable<z.ZodString>;
263
+ createdAt: z.ZodISODateTime;
264
+ createdBy: z.ZodNullable<z.ZodObject<{
265
+ id: z.ZodString;
266
+ name: z.ZodString;
267
+ }, z.core.$strip>>;
268
+ }, z.core.$strip>;
269
+ build: z.ZodObject<{
270
+ id: z.ZodString;
271
+ hash: z.ZodString;
272
+ status: z.ZodEnum<{
273
+ ok: "ok";
274
+ error: "error";
275
+ }>;
276
+ specRev: z.ZodNumber;
277
+ overlayRev: z.ZodNullable<z.ZodNumber>;
278
+ compilerVersion: z.ZodString;
279
+ toolCount: z.ZodNumber;
280
+ visibleCount: z.ZodNumber;
281
+ writeCount: z.ZodNumber;
282
+ hiddenCount: z.ZodNumber;
283
+ lintScore: z.ZodNumber;
284
+ diagnosticsCount: z.ZodObject<{
285
+ error: z.ZodNumber;
286
+ warning: z.ZodNumber;
287
+ info: z.ZodNumber;
288
+ }, z.core.$strip>;
289
+ environments: z.ZodArray<z.ZodString>;
290
+ createdAt: z.ZodISODateTime;
291
+ }, z.core.$strip>;
292
+ summary: z.ZodObject<{
293
+ added: z.ZodArray<z.ZodObject<{
294
+ key: z.ZodString;
295
+ method: z.ZodOptional<z.ZodString>;
296
+ path: z.ZodOptional<z.ZodString>;
297
+ operationId: z.ZodOptional<z.ZodString>;
298
+ toolName: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strip>>;
300
+ removed: z.ZodArray<z.ZodObject<{
301
+ key: z.ZodString;
302
+ method: z.ZodOptional<z.ZodString>;
303
+ path: z.ZodOptional<z.ZodString>;
304
+ operationId: z.ZodOptional<z.ZodString>;
305
+ toolName: z.ZodOptional<z.ZodString>;
306
+ }, z.core.$strip>>;
307
+ changed: z.ZodArray<z.ZodObject<{
308
+ op: z.ZodObject<{
309
+ key: z.ZodString;
310
+ method: z.ZodOptional<z.ZodString>;
311
+ path: z.ZodOptional<z.ZodString>;
312
+ operationId: z.ZodOptional<z.ZodString>;
313
+ toolName: z.ZodOptional<z.ZodString>;
314
+ }, z.core.$strip>;
315
+ fields: z.ZodArray<z.ZodString>;
316
+ }, z.core.$strip>>;
317
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
318
+ }, z.core.$strip>;
319
+ unchanged: z.ZodBoolean;
320
+ }, z.core.$strip>;
321
+ export type SpecReimportResult = z.infer<typeof SpecReimportResult>;
322
+ export declare const SpecPreviewSource: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
323
+ url: z.ZodURL;
324
+ }, z.core.$strip>, z.ZodObject<{
325
+ content: z.ZodString;
326
+ filename: z.ZodOptional<z.ZodString>;
327
+ }, z.core.$strip>]>, z.ZodObject<{
328
+ graphqlEndpoint: z.ZodURL;
329
+ headerRef: z.ZodOptional<z.ZodObject<{
330
+ name: z.ZodString;
331
+ secretRef: z.ZodString;
332
+ }, z.core.$strip>>;
333
+ }, z.core.$strip>]>;
334
+ export type SpecPreviewSource = z.infer<typeof SpecPreviewSource>;
335
+ export declare const SpecPreviewCreate: z.ZodObject<{
336
+ source: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
337
+ url: z.ZodURL;
338
+ }, z.core.$strip>, z.ZodObject<{
339
+ content: z.ZodString;
340
+ filename: z.ZodOptional<z.ZodString>;
341
+ }, z.core.$strip>]>, z.ZodObject<{
342
+ graphqlEndpoint: z.ZodURL;
343
+ headerRef: z.ZodOptional<z.ZodObject<{
344
+ name: z.ZodString;
345
+ secretRef: z.ZodString;
346
+ }, z.core.$strip>>;
347
+ }, z.core.$strip>]>;
348
+ serverId: z.ZodOptional<z.ZodString>;
349
+ format: z.ZodOptional<z.ZodEnum<{
350
+ openapi: "openapi";
351
+ "graphql-sdl": "graphql-sdl";
352
+ "graphql-introspection": "graphql-introspection";
353
+ }>>;
354
+ graphql: z.ZodOptional<z.ZodObject<{
355
+ endpointPath: z.ZodOptional<z.ZodString>;
356
+ selectionDepth: z.ZodOptional<z.ZodNumber>;
357
+ }, z.core.$strip>>;
358
+ }, z.core.$strip>;
359
+ export type SpecPreviewCreate = z.infer<typeof SpecPreviewCreate>;
360
+ export declare const PreviewStageName: z.ZodEnum<{
361
+ normalize: "normalize";
362
+ validate: "validate";
363
+ fetch: "fetch";
364
+ parse: "parse";
365
+ generate: "generate";
366
+ }>;
367
+ export declare const PreviewStage: z.ZodObject<{
368
+ name: z.ZodEnum<{
369
+ normalize: "normalize";
370
+ validate: "validate";
371
+ fetch: "fetch";
372
+ parse: "parse";
373
+ generate: "generate";
374
+ }>;
375
+ status: z.ZodEnum<{
376
+ ok: "ok";
377
+ running: "running";
378
+ failed: "failed";
379
+ skipped: "skipped";
380
+ pending: "pending";
381
+ }>;
382
+ durationMs: z.ZodNullable<z.ZodNumber>;
383
+ }, z.core.$strip>;
384
+ export type PreviewStage = z.infer<typeof PreviewStage>;
385
+ export declare const PreviewToolRow: z.ZodObject<{
386
+ name: z.ZodString;
387
+ title: z.ZodString;
388
+ method: z.ZodNullable<z.ZodString>;
389
+ path: z.ZodNullable<z.ZodString>;
390
+ field: z.ZodNullable<z.ZodString>;
391
+ write: z.ZodBoolean;
392
+ hidden: z.ZodBoolean;
393
+ descriptionQuality: z.ZodEnum<{
394
+ none: "none";
395
+ ok: "ok";
396
+ short: "short";
397
+ }>;
398
+ suggestedHide: z.ZodArray<z.ZodString>;
399
+ }, z.core.$strip>;
400
+ export type PreviewToolRow = z.infer<typeof PreviewToolRow>;
401
+ export declare const SpecPreview: z.ZodObject<{
402
+ id: z.ZodString;
403
+ status: z.ZodEnum<{
404
+ failed: "failed";
405
+ ready: "ready";
406
+ compiling: "compiling";
407
+ }>;
408
+ stages: z.ZodArray<z.ZodObject<{
409
+ name: z.ZodEnum<{
410
+ normalize: "normalize";
411
+ validate: "validate";
412
+ fetch: "fetch";
413
+ parse: "parse";
414
+ generate: "generate";
415
+ }>;
416
+ status: z.ZodEnum<{
417
+ ok: "ok";
418
+ running: "running";
419
+ failed: "failed";
420
+ skipped: "skipped";
421
+ pending: "pending";
422
+ }>;
423
+ durationMs: z.ZodNullable<z.ZodNumber>;
424
+ }, z.core.$strip>>;
425
+ kind: z.ZodNullable<z.ZodEnum<{
426
+ openapi: "openapi";
427
+ graphql: "graphql";
428
+ }>>;
429
+ format: z.ZodNullable<z.ZodEnum<{
430
+ "openapi-3.0": "openapi-3.0";
431
+ "openapi-3.1": "openapi-3.1";
432
+ "graphql-sdl": "graphql-sdl";
433
+ "graphql-introspection": "graphql-introspection";
434
+ }>>;
435
+ title: z.ZodNullable<z.ZodString>;
436
+ suggestedSlug: z.ZodNullable<z.ZodString>;
437
+ name: z.ZodNullable<z.ZodString>;
438
+ slug: z.ZodNullable<z.ZodString>;
439
+ operationCount: z.ZodNumber;
440
+ counts: z.ZodObject<{
441
+ tools: z.ZodNumber;
442
+ writeTools: z.ZodNumber;
443
+ hiddenByDefault: z.ZodNumber;
444
+ }, z.core.$strip>;
445
+ diagnostics: z.ZodArray<z.ZodObject<{
446
+ severity: z.ZodEnum<{
447
+ error: "error";
448
+ warning: "warning";
449
+ info: "info";
450
+ }>;
451
+ code: z.ZodString;
452
+ message: z.ZodString;
453
+ pointer: z.ZodOptional<z.ZodString>;
454
+ overlayPath: z.ZodOptional<z.ZodString>;
455
+ line: z.ZodOptional<z.ZodNumber>;
456
+ col: z.ZodOptional<z.ZodNumber>;
457
+ excerpt: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$strip>>;
459
+ tools: z.ZodArray<z.ZodObject<{
460
+ name: z.ZodString;
461
+ title: z.ZodString;
462
+ method: z.ZodNullable<z.ZodString>;
463
+ path: z.ZodNullable<z.ZodString>;
464
+ field: z.ZodNullable<z.ZodString>;
465
+ write: z.ZodBoolean;
466
+ hidden: z.ZodBoolean;
467
+ descriptionQuality: z.ZodEnum<{
468
+ none: "none";
469
+ ok: "ok";
470
+ short: "short";
471
+ }>;
472
+ suggestedHide: z.ZodArray<z.ZodString>;
473
+ }, z.core.$strip>>;
474
+ lint: z.ZodNullable<z.ZodObject<{
475
+ score: z.ZodNumber;
476
+ rules: z.ZodArray<z.ZodObject<{
477
+ rule: z.ZodEnum<{
478
+ description_present: "description_present";
479
+ description_actionable: "description_actionable";
480
+ params_described: "params_described";
481
+ params_typed: "params_typed";
482
+ names_clear: "names_clear";
483
+ toolset_size: "toolset_size";
484
+ output_shaped: "output_shaped";
485
+ examples_present: "examples_present";
486
+ writes_marked: "writes_marked";
487
+ schema_depth: "schema_depth";
488
+ }>;
489
+ weight: z.ZodNumber;
490
+ score: z.ZodNumber;
491
+ passed: z.ZodBoolean;
492
+ detail: z.ZodString;
493
+ }, z.core.$strip>>;
494
+ findings: z.ZodArray<z.ZodObject<{
495
+ rule: z.ZodEnum<{
496
+ description_present: "description_present";
497
+ description_actionable: "description_actionable";
498
+ params_described: "params_described";
499
+ params_typed: "params_typed";
500
+ names_clear: "names_clear";
501
+ toolset_size: "toolset_size";
502
+ output_shaped: "output_shaped";
503
+ examples_present: "examples_present";
504
+ writes_marked: "writes_marked";
505
+ schema_depth: "schema_depth";
506
+ }>;
507
+ severity: z.ZodEnum<{
508
+ error: "error";
509
+ warning: "warning";
510
+ info: "info";
511
+ }>;
512
+ tool: z.ZodOptional<z.ZodString>;
513
+ message: z.ZodString;
514
+ fix: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
515
+ }, z.core.$strip>>;
516
+ }, z.core.$strip>>;
517
+ preliminaryScore: z.ZodNullable<z.ZodNumber>;
518
+ overlayDraftYaml: z.ZodString;
519
+ diff: z.ZodNullable<z.ZodObject<{
520
+ added: z.ZodArray<z.ZodObject<{
521
+ key: z.ZodString;
522
+ method: z.ZodOptional<z.ZodString>;
523
+ path: z.ZodOptional<z.ZodString>;
524
+ operationId: z.ZodOptional<z.ZodString>;
525
+ toolName: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strip>>;
527
+ removed: z.ZodArray<z.ZodObject<{
528
+ key: z.ZodString;
529
+ method: z.ZodOptional<z.ZodString>;
530
+ path: z.ZodOptional<z.ZodString>;
531
+ operationId: z.ZodOptional<z.ZodString>;
532
+ toolName: z.ZodOptional<z.ZodString>;
533
+ }, z.core.$strip>>;
534
+ changed: z.ZodArray<z.ZodObject<{
535
+ op: z.ZodObject<{
536
+ key: z.ZodString;
537
+ method: z.ZodOptional<z.ZodString>;
538
+ path: z.ZodOptional<z.ZodString>;
539
+ operationId: z.ZodOptional<z.ZodString>;
540
+ toolName: z.ZodOptional<z.ZodString>;
541
+ }, z.core.$strip>;
542
+ fields: z.ZodArray<z.ZodString>;
543
+ }, z.core.$strip>>;
544
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
545
+ }, z.core.$strip>>;
546
+ expiresAt: z.ZodISODateTime;
547
+ }, z.core.$strip>;
548
+ export type SpecPreview = z.infer<typeof SpecPreview>;
549
+ export declare const SpecPreviewUpdate: z.ZodObject<{
550
+ name: z.ZodOptional<z.ZodString>;
551
+ slug: z.ZodOptional<z.ZodString>;
552
+ overlayOps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
553
+ op: z.ZodLiteral<"set">;
554
+ selector: z.ZodString;
555
+ field: z.ZodEnum<{
556
+ response: "response";
557
+ args: "args";
558
+ pinned: "pinned";
559
+ name: "name";
560
+ title: "title";
561
+ description: "description";
562
+ risk: "risk";
563
+ hidden: "hidden";
564
+ tags: "tags";
565
+ examples: "examples";
566
+ }>;
567
+ value: z.ZodUnknown;
568
+ }, z.core.$strip>, z.ZodObject<{
569
+ op: z.ZodLiteral<"unset">;
570
+ selector: z.ZodString;
571
+ field: z.ZodEnum<{
572
+ response: "response";
573
+ args: "args";
574
+ pinned: "pinned";
575
+ name: "name";
576
+ title: "title";
577
+ description: "description";
578
+ risk: "risk";
579
+ hidden: "hidden";
580
+ tags: "tags";
581
+ examples: "examples";
582
+ }>;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ op: z.ZodLiteral<"set_default">;
585
+ field: z.ZodLiteral<"hidden">;
586
+ value: z.ZodBoolean;
587
+ }, z.core.$strip>, z.ZodObject<{
588
+ op: z.ZodLiteral<"set_composite">;
589
+ name: z.ZodString;
590
+ value: z.ZodObject<{
591
+ title: z.ZodOptional<z.ZodString>;
592
+ description: z.ZodString;
593
+ inputSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
594
+ write: z.ZodDefault<z.ZodBoolean>;
595
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
596
+ pinned: z.ZodOptional<z.ZodBoolean>;
597
+ script: z.ZodString;
598
+ }, z.core.$strict>;
599
+ }, z.core.$strip>, z.ZodObject<{
600
+ op: z.ZodLiteral<"remove_composite">;
601
+ name: z.ZodString;
602
+ }, z.core.$strip>, z.ZodObject<{
603
+ op: z.ZodLiteral<"set_profile">;
604
+ name: z.ZodString;
605
+ tools: z.ZodArray<z.ZodString>;
606
+ }, z.core.$strip>], "op">>>;
607
+ graphql: z.ZodOptional<z.ZodObject<{
608
+ selectionDepth: z.ZodNumber;
609
+ }, z.core.$strip>>;
610
+ }, z.core.$strip>;
611
+ export type SpecPreviewUpdate = z.infer<typeof SpecPreviewUpdate>;
612
+ export declare const specEndpoints: {
613
+ readonly list: {
614
+ readonly method: "GET";
615
+ readonly path: "/api/servers/:id/specs";
616
+ readonly kind: "json";
617
+ readonly access: readonly ["servers:read"];
618
+ readonly summary: "Spec revisions of a server (newest first)";
619
+ readonly params: z.ZodObject<{
620
+ id: z.ZodString;
621
+ }, z.core.$strip>;
622
+ readonly query: z.ZodObject<{
623
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
624
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
625
+ }, z.core.$strip>;
626
+ readonly response: z.ZodObject<{
627
+ items: z.ZodArray<z.ZodObject<{
628
+ id: z.ZodString;
629
+ rev: z.ZodNumber;
630
+ format: z.ZodEnum<{
631
+ "openapi-3.0": "openapi-3.0";
632
+ "openapi-3.1": "openapi-3.1";
633
+ "graphql-sdl": "graphql-sdl";
634
+ "graphql-introspection": "graphql-introspection";
635
+ }>;
636
+ title: z.ZodString;
637
+ apiVersion: z.ZodNullable<z.ZodString>;
638
+ operationCount: z.ZodNumber;
639
+ contentHash: z.ZodString;
640
+ contentBytes: z.ZodNumber;
641
+ sourceUrl: z.ZodNullable<z.ZodString>;
642
+ createdAt: z.ZodISODateTime;
643
+ createdBy: z.ZodNullable<z.ZodObject<{
644
+ id: z.ZodString;
645
+ name: z.ZodString;
646
+ }, z.core.$strip>>;
647
+ }, z.core.$strip>>;
648
+ nextCursor: z.ZodNullable<z.ZodString>;
649
+ totalEstimate: z.ZodOptional<z.ZodNumber>;
650
+ }, z.core.$strip>;
651
+ } & {
652
+ status: number;
653
+ };
654
+ readonly reimport: {
655
+ readonly method: "POST";
656
+ readonly path: "/api/servers/:id/specs";
657
+ readonly kind: "json";
658
+ readonly status: 202;
659
+ readonly access: readonly ["servers:write"];
660
+ readonly summary: "Re-import the spec (job result: SpecReimportResult; 409 config_managed for file sources)";
661
+ readonly params: z.ZodObject<{
662
+ id: z.ZodString;
663
+ }, z.core.$strip>;
664
+ readonly body: z.ZodUnion<readonly [z.ZodObject<{
665
+ previewId: z.ZodString;
666
+ }, z.core.$strip>, z.ZodObject<{
667
+ source: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
668
+ url: z.ZodURL;
669
+ }, z.core.$strip>, z.ZodObject<{
670
+ content: z.ZodString;
671
+ filename: z.ZodOptional<z.ZodString>;
672
+ }, z.core.$strip>]>>;
673
+ }, z.core.$strip>]>;
674
+ readonly response: z.ZodObject<{
675
+ jobId: z.ZodString;
676
+ status: z.ZodEnum<{
677
+ running: "running";
678
+ queued: "queued";
679
+ succeeded: "succeeded";
680
+ failed: "failed";
681
+ }>;
682
+ }, z.core.$strip>;
683
+ } & {
684
+ status: number;
685
+ };
686
+ readonly get: {
687
+ readonly method: "GET";
688
+ readonly path: "/api/specs/:id";
689
+ readonly kind: "json";
690
+ readonly access: readonly ["servers:read"];
691
+ readonly summary: "Spec revision with its change summary";
692
+ readonly params: z.ZodObject<{
693
+ id: z.ZodString;
694
+ }, z.core.$strip>;
695
+ readonly response: z.ZodObject<{
696
+ id: z.ZodString;
697
+ rev: z.ZodNumber;
698
+ format: z.ZodEnum<{
699
+ "openapi-3.0": "openapi-3.0";
700
+ "openapi-3.1": "openapi-3.1";
701
+ "graphql-sdl": "graphql-sdl";
702
+ "graphql-introspection": "graphql-introspection";
703
+ }>;
704
+ title: z.ZodString;
705
+ apiVersion: z.ZodNullable<z.ZodString>;
706
+ operationCount: z.ZodNumber;
707
+ contentHash: z.ZodString;
708
+ contentBytes: z.ZodNumber;
709
+ sourceUrl: z.ZodNullable<z.ZodString>;
710
+ createdAt: z.ZodISODateTime;
711
+ createdBy: z.ZodNullable<z.ZodObject<{
712
+ id: z.ZodString;
713
+ name: z.ZodString;
714
+ }, z.core.$strip>>;
715
+ summary: z.ZodObject<{
716
+ added: z.ZodArray<z.ZodObject<{
717
+ key: z.ZodString;
718
+ method: z.ZodOptional<z.ZodString>;
719
+ path: z.ZodOptional<z.ZodString>;
720
+ operationId: z.ZodOptional<z.ZodString>;
721
+ toolName: z.ZodOptional<z.ZodString>;
722
+ }, z.core.$strip>>;
723
+ removed: z.ZodArray<z.ZodObject<{
724
+ key: z.ZodString;
725
+ method: z.ZodOptional<z.ZodString>;
726
+ path: z.ZodOptional<z.ZodString>;
727
+ operationId: z.ZodOptional<z.ZodString>;
728
+ toolName: z.ZodOptional<z.ZodString>;
729
+ }, z.core.$strip>>;
730
+ changed: z.ZodArray<z.ZodObject<{
731
+ op: z.ZodObject<{
732
+ key: z.ZodString;
733
+ method: z.ZodOptional<z.ZodString>;
734
+ path: z.ZodOptional<z.ZodString>;
735
+ operationId: z.ZodOptional<z.ZodString>;
736
+ toolName: z.ZodOptional<z.ZodString>;
737
+ }, z.core.$strip>;
738
+ fields: z.ZodArray<z.ZodString>;
739
+ }, z.core.$strip>>;
740
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
741
+ }, z.core.$strip>;
742
+ }, z.core.$strip>;
743
+ } & {
744
+ status: number;
745
+ };
746
+ readonly download: {
747
+ readonly method: "GET";
748
+ readonly path: "/api/specs/:id/content";
749
+ readonly kind: "download";
750
+ readonly access: readonly ["servers:read"];
751
+ readonly summary: "Original spec bytes (original content type)";
752
+ readonly params: z.ZodObject<{
753
+ id: z.ZodString;
754
+ }, z.core.$strip>;
755
+ } & {
756
+ status: number;
757
+ };
758
+ readonly diff: {
759
+ readonly method: "GET";
760
+ readonly path: "/api/specs/:id/diff";
761
+ readonly kind: "json";
762
+ readonly access: readonly ["servers:read"];
763
+ readonly summary: "Operation-level diff against another revision";
764
+ readonly params: z.ZodObject<{
765
+ id: z.ZodString;
766
+ }, z.core.$strip>;
767
+ readonly query: z.ZodObject<{
768
+ against: z.ZodString;
769
+ }, z.core.$strip>;
770
+ readonly response: z.ZodObject<{
771
+ added: z.ZodArray<z.ZodObject<{
772
+ key: z.ZodString;
773
+ method: z.ZodOptional<z.ZodString>;
774
+ path: z.ZodOptional<z.ZodString>;
775
+ operationId: z.ZodOptional<z.ZodString>;
776
+ toolName: z.ZodOptional<z.ZodString>;
777
+ }, z.core.$strip>>;
778
+ removed: z.ZodArray<z.ZodObject<{
779
+ key: z.ZodString;
780
+ method: z.ZodOptional<z.ZodString>;
781
+ path: z.ZodOptional<z.ZodString>;
782
+ operationId: z.ZodOptional<z.ZodString>;
783
+ toolName: z.ZodOptional<z.ZodString>;
784
+ }, z.core.$strip>>;
785
+ changed: z.ZodArray<z.ZodObject<{
786
+ op: z.ZodObject<{
787
+ key: z.ZodString;
788
+ method: z.ZodOptional<z.ZodString>;
789
+ path: z.ZodOptional<z.ZodString>;
790
+ operationId: z.ZodOptional<z.ZodString>;
791
+ toolName: z.ZodOptional<z.ZodString>;
792
+ }, z.core.$strip>;
793
+ fields: z.ZodArray<z.ZodString>;
794
+ }, z.core.$strip>>;
795
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
796
+ }, z.core.$strip>;
797
+ } & {
798
+ status: number;
799
+ };
800
+ readonly preview: {
801
+ readonly method: "POST";
802
+ readonly path: "/api/spec-previews";
803
+ readonly kind: "json";
804
+ readonly status: 202;
805
+ readonly access: readonly ["servers:write"];
806
+ readonly summary: "Compile a spec without creating a server (kept 24 h); job result: SpecPreview";
807
+ readonly body: z.ZodObject<{
808
+ source: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
809
+ url: z.ZodURL;
810
+ }, z.core.$strip>, z.ZodObject<{
811
+ content: z.ZodString;
812
+ filename: z.ZodOptional<z.ZodString>;
813
+ }, z.core.$strip>]>, z.ZodObject<{
814
+ graphqlEndpoint: z.ZodURL;
815
+ headerRef: z.ZodOptional<z.ZodObject<{
816
+ name: z.ZodString;
817
+ secretRef: z.ZodString;
818
+ }, z.core.$strip>>;
819
+ }, z.core.$strip>]>;
820
+ serverId: z.ZodOptional<z.ZodString>;
821
+ format: z.ZodOptional<z.ZodEnum<{
822
+ openapi: "openapi";
823
+ "graphql-sdl": "graphql-sdl";
824
+ "graphql-introspection": "graphql-introspection";
825
+ }>>;
826
+ graphql: z.ZodOptional<z.ZodObject<{
827
+ endpointPath: z.ZodOptional<z.ZodString>;
828
+ selectionDepth: z.ZodOptional<z.ZodNumber>;
829
+ }, z.core.$strip>>;
830
+ }, z.core.$strip>;
831
+ readonly response: z.ZodObject<{
832
+ jobId: z.ZodString;
833
+ status: z.ZodEnum<{
834
+ running: "running";
835
+ queued: "queued";
836
+ succeeded: "succeeded";
837
+ failed: "failed";
838
+ }>;
839
+ previewId: z.ZodString;
840
+ }, z.core.$strip>;
841
+ } & {
842
+ status: number;
843
+ };
844
+ readonly draft: {
845
+ readonly method: "GET";
846
+ readonly path: "/api/spec-previews/:id";
847
+ readonly kind: "json";
848
+ readonly access: readonly ["servers:write"];
849
+ readonly summary: "A spec preview (404 when expired)";
850
+ readonly params: z.ZodObject<{
851
+ id: z.ZodString;
852
+ }, z.core.$strip>;
853
+ readonly response: z.ZodObject<{
854
+ id: z.ZodString;
855
+ status: z.ZodEnum<{
856
+ failed: "failed";
857
+ ready: "ready";
858
+ compiling: "compiling";
859
+ }>;
860
+ stages: z.ZodArray<z.ZodObject<{
861
+ name: z.ZodEnum<{
862
+ normalize: "normalize";
863
+ validate: "validate";
864
+ fetch: "fetch";
865
+ parse: "parse";
866
+ generate: "generate";
867
+ }>;
868
+ status: z.ZodEnum<{
869
+ ok: "ok";
870
+ running: "running";
871
+ failed: "failed";
872
+ skipped: "skipped";
873
+ pending: "pending";
874
+ }>;
875
+ durationMs: z.ZodNullable<z.ZodNumber>;
876
+ }, z.core.$strip>>;
877
+ kind: z.ZodNullable<z.ZodEnum<{
878
+ openapi: "openapi";
879
+ graphql: "graphql";
880
+ }>>;
881
+ format: z.ZodNullable<z.ZodEnum<{
882
+ "openapi-3.0": "openapi-3.0";
883
+ "openapi-3.1": "openapi-3.1";
884
+ "graphql-sdl": "graphql-sdl";
885
+ "graphql-introspection": "graphql-introspection";
886
+ }>>;
887
+ title: z.ZodNullable<z.ZodString>;
888
+ suggestedSlug: z.ZodNullable<z.ZodString>;
889
+ name: z.ZodNullable<z.ZodString>;
890
+ slug: z.ZodNullable<z.ZodString>;
891
+ operationCount: z.ZodNumber;
892
+ counts: z.ZodObject<{
893
+ tools: z.ZodNumber;
894
+ writeTools: z.ZodNumber;
895
+ hiddenByDefault: z.ZodNumber;
896
+ }, z.core.$strip>;
897
+ diagnostics: z.ZodArray<z.ZodObject<{
898
+ severity: z.ZodEnum<{
899
+ error: "error";
900
+ warning: "warning";
901
+ info: "info";
902
+ }>;
903
+ code: z.ZodString;
904
+ message: z.ZodString;
905
+ pointer: z.ZodOptional<z.ZodString>;
906
+ overlayPath: z.ZodOptional<z.ZodString>;
907
+ line: z.ZodOptional<z.ZodNumber>;
908
+ col: z.ZodOptional<z.ZodNumber>;
909
+ excerpt: z.ZodOptional<z.ZodString>;
910
+ }, z.core.$strip>>;
911
+ tools: z.ZodArray<z.ZodObject<{
912
+ name: z.ZodString;
913
+ title: z.ZodString;
914
+ method: z.ZodNullable<z.ZodString>;
915
+ path: z.ZodNullable<z.ZodString>;
916
+ field: z.ZodNullable<z.ZodString>;
917
+ write: z.ZodBoolean;
918
+ hidden: z.ZodBoolean;
919
+ descriptionQuality: z.ZodEnum<{
920
+ none: "none";
921
+ ok: "ok";
922
+ short: "short";
923
+ }>;
924
+ suggestedHide: z.ZodArray<z.ZodString>;
925
+ }, z.core.$strip>>;
926
+ lint: z.ZodNullable<z.ZodObject<{
927
+ score: z.ZodNumber;
928
+ rules: z.ZodArray<z.ZodObject<{
929
+ rule: z.ZodEnum<{
930
+ description_present: "description_present";
931
+ description_actionable: "description_actionable";
932
+ params_described: "params_described";
933
+ params_typed: "params_typed";
934
+ names_clear: "names_clear";
935
+ toolset_size: "toolset_size";
936
+ output_shaped: "output_shaped";
937
+ examples_present: "examples_present";
938
+ writes_marked: "writes_marked";
939
+ schema_depth: "schema_depth";
940
+ }>;
941
+ weight: z.ZodNumber;
942
+ score: z.ZodNumber;
943
+ passed: z.ZodBoolean;
944
+ detail: z.ZodString;
945
+ }, z.core.$strip>>;
946
+ findings: z.ZodArray<z.ZodObject<{
947
+ rule: z.ZodEnum<{
948
+ description_present: "description_present";
949
+ description_actionable: "description_actionable";
950
+ params_described: "params_described";
951
+ params_typed: "params_typed";
952
+ names_clear: "names_clear";
953
+ toolset_size: "toolset_size";
954
+ output_shaped: "output_shaped";
955
+ examples_present: "examples_present";
956
+ writes_marked: "writes_marked";
957
+ schema_depth: "schema_depth";
958
+ }>;
959
+ severity: z.ZodEnum<{
960
+ error: "error";
961
+ warning: "warning";
962
+ info: "info";
963
+ }>;
964
+ tool: z.ZodOptional<z.ZodString>;
965
+ message: z.ZodString;
966
+ fix: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
967
+ }, z.core.$strip>>;
968
+ }, z.core.$strip>>;
969
+ preliminaryScore: z.ZodNullable<z.ZodNumber>;
970
+ overlayDraftYaml: z.ZodString;
971
+ diff: z.ZodNullable<z.ZodObject<{
972
+ added: z.ZodArray<z.ZodObject<{
973
+ key: z.ZodString;
974
+ method: z.ZodOptional<z.ZodString>;
975
+ path: z.ZodOptional<z.ZodString>;
976
+ operationId: z.ZodOptional<z.ZodString>;
977
+ toolName: z.ZodOptional<z.ZodString>;
978
+ }, z.core.$strip>>;
979
+ removed: z.ZodArray<z.ZodObject<{
980
+ key: z.ZodString;
981
+ method: z.ZodOptional<z.ZodString>;
982
+ path: z.ZodOptional<z.ZodString>;
983
+ operationId: z.ZodOptional<z.ZodString>;
984
+ toolName: z.ZodOptional<z.ZodString>;
985
+ }, z.core.$strip>>;
986
+ changed: z.ZodArray<z.ZodObject<{
987
+ op: z.ZodObject<{
988
+ key: z.ZodString;
989
+ method: z.ZodOptional<z.ZodString>;
990
+ path: z.ZodOptional<z.ZodString>;
991
+ operationId: z.ZodOptional<z.ZodString>;
992
+ toolName: z.ZodOptional<z.ZodString>;
993
+ }, z.core.$strip>;
994
+ fields: z.ZodArray<z.ZodString>;
995
+ }, z.core.$strip>>;
996
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
997
+ }, z.core.$strip>>;
998
+ expiresAt: z.ZodISODateTime;
999
+ }, z.core.$strip>;
1000
+ } & {
1001
+ status: number;
1002
+ };
1003
+ readonly draftUpdate: {
1004
+ readonly method: "PATCH";
1005
+ readonly path: "/api/spec-previews/:id";
1006
+ readonly kind: "json";
1007
+ readonly access: readonly ["servers:write"];
1008
+ readonly summary: "Rename, re-slug or re-apply overlay ops to a preview";
1009
+ readonly params: z.ZodObject<{
1010
+ id: z.ZodString;
1011
+ }, z.core.$strip>;
1012
+ readonly body: z.ZodObject<{
1013
+ name: z.ZodOptional<z.ZodString>;
1014
+ slug: z.ZodOptional<z.ZodString>;
1015
+ overlayOps: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1016
+ op: z.ZodLiteral<"set">;
1017
+ selector: z.ZodString;
1018
+ field: z.ZodEnum<{
1019
+ response: "response";
1020
+ args: "args";
1021
+ pinned: "pinned";
1022
+ name: "name";
1023
+ title: "title";
1024
+ description: "description";
1025
+ risk: "risk";
1026
+ hidden: "hidden";
1027
+ tags: "tags";
1028
+ examples: "examples";
1029
+ }>;
1030
+ value: z.ZodUnknown;
1031
+ }, z.core.$strip>, z.ZodObject<{
1032
+ op: z.ZodLiteral<"unset">;
1033
+ selector: z.ZodString;
1034
+ field: z.ZodEnum<{
1035
+ response: "response";
1036
+ args: "args";
1037
+ pinned: "pinned";
1038
+ name: "name";
1039
+ title: "title";
1040
+ description: "description";
1041
+ risk: "risk";
1042
+ hidden: "hidden";
1043
+ tags: "tags";
1044
+ examples: "examples";
1045
+ }>;
1046
+ }, z.core.$strip>, z.ZodObject<{
1047
+ op: z.ZodLiteral<"set_default">;
1048
+ field: z.ZodLiteral<"hidden">;
1049
+ value: z.ZodBoolean;
1050
+ }, z.core.$strip>, z.ZodObject<{
1051
+ op: z.ZodLiteral<"set_composite">;
1052
+ name: z.ZodString;
1053
+ value: z.ZodObject<{
1054
+ title: z.ZodOptional<z.ZodString>;
1055
+ description: z.ZodString;
1056
+ inputSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1057
+ write: z.ZodDefault<z.ZodBoolean>;
1058
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1059
+ pinned: z.ZodOptional<z.ZodBoolean>;
1060
+ script: z.ZodString;
1061
+ }, z.core.$strict>;
1062
+ }, z.core.$strip>, z.ZodObject<{
1063
+ op: z.ZodLiteral<"remove_composite">;
1064
+ name: z.ZodString;
1065
+ }, z.core.$strip>, z.ZodObject<{
1066
+ op: z.ZodLiteral<"set_profile">;
1067
+ name: z.ZodString;
1068
+ tools: z.ZodArray<z.ZodString>;
1069
+ }, z.core.$strip>], "op">>>;
1070
+ graphql: z.ZodOptional<z.ZodObject<{
1071
+ selectionDepth: z.ZodNumber;
1072
+ }, z.core.$strip>>;
1073
+ }, z.core.$strip>;
1074
+ readonly response: z.ZodObject<{
1075
+ id: z.ZodString;
1076
+ status: z.ZodEnum<{
1077
+ failed: "failed";
1078
+ ready: "ready";
1079
+ compiling: "compiling";
1080
+ }>;
1081
+ stages: z.ZodArray<z.ZodObject<{
1082
+ name: z.ZodEnum<{
1083
+ normalize: "normalize";
1084
+ validate: "validate";
1085
+ fetch: "fetch";
1086
+ parse: "parse";
1087
+ generate: "generate";
1088
+ }>;
1089
+ status: z.ZodEnum<{
1090
+ ok: "ok";
1091
+ running: "running";
1092
+ failed: "failed";
1093
+ skipped: "skipped";
1094
+ pending: "pending";
1095
+ }>;
1096
+ durationMs: z.ZodNullable<z.ZodNumber>;
1097
+ }, z.core.$strip>>;
1098
+ kind: z.ZodNullable<z.ZodEnum<{
1099
+ openapi: "openapi";
1100
+ graphql: "graphql";
1101
+ }>>;
1102
+ format: z.ZodNullable<z.ZodEnum<{
1103
+ "openapi-3.0": "openapi-3.0";
1104
+ "openapi-3.1": "openapi-3.1";
1105
+ "graphql-sdl": "graphql-sdl";
1106
+ "graphql-introspection": "graphql-introspection";
1107
+ }>>;
1108
+ title: z.ZodNullable<z.ZodString>;
1109
+ suggestedSlug: z.ZodNullable<z.ZodString>;
1110
+ name: z.ZodNullable<z.ZodString>;
1111
+ slug: z.ZodNullable<z.ZodString>;
1112
+ operationCount: z.ZodNumber;
1113
+ counts: z.ZodObject<{
1114
+ tools: z.ZodNumber;
1115
+ writeTools: z.ZodNumber;
1116
+ hiddenByDefault: z.ZodNumber;
1117
+ }, z.core.$strip>;
1118
+ diagnostics: z.ZodArray<z.ZodObject<{
1119
+ severity: z.ZodEnum<{
1120
+ error: "error";
1121
+ warning: "warning";
1122
+ info: "info";
1123
+ }>;
1124
+ code: z.ZodString;
1125
+ message: z.ZodString;
1126
+ pointer: z.ZodOptional<z.ZodString>;
1127
+ overlayPath: z.ZodOptional<z.ZodString>;
1128
+ line: z.ZodOptional<z.ZodNumber>;
1129
+ col: z.ZodOptional<z.ZodNumber>;
1130
+ excerpt: z.ZodOptional<z.ZodString>;
1131
+ }, z.core.$strip>>;
1132
+ tools: z.ZodArray<z.ZodObject<{
1133
+ name: z.ZodString;
1134
+ title: z.ZodString;
1135
+ method: z.ZodNullable<z.ZodString>;
1136
+ path: z.ZodNullable<z.ZodString>;
1137
+ field: z.ZodNullable<z.ZodString>;
1138
+ write: z.ZodBoolean;
1139
+ hidden: z.ZodBoolean;
1140
+ descriptionQuality: z.ZodEnum<{
1141
+ none: "none";
1142
+ ok: "ok";
1143
+ short: "short";
1144
+ }>;
1145
+ suggestedHide: z.ZodArray<z.ZodString>;
1146
+ }, z.core.$strip>>;
1147
+ lint: z.ZodNullable<z.ZodObject<{
1148
+ score: z.ZodNumber;
1149
+ rules: z.ZodArray<z.ZodObject<{
1150
+ rule: z.ZodEnum<{
1151
+ description_present: "description_present";
1152
+ description_actionable: "description_actionable";
1153
+ params_described: "params_described";
1154
+ params_typed: "params_typed";
1155
+ names_clear: "names_clear";
1156
+ toolset_size: "toolset_size";
1157
+ output_shaped: "output_shaped";
1158
+ examples_present: "examples_present";
1159
+ writes_marked: "writes_marked";
1160
+ schema_depth: "schema_depth";
1161
+ }>;
1162
+ weight: z.ZodNumber;
1163
+ score: z.ZodNumber;
1164
+ passed: z.ZodBoolean;
1165
+ detail: z.ZodString;
1166
+ }, z.core.$strip>>;
1167
+ findings: z.ZodArray<z.ZodObject<{
1168
+ rule: z.ZodEnum<{
1169
+ description_present: "description_present";
1170
+ description_actionable: "description_actionable";
1171
+ params_described: "params_described";
1172
+ params_typed: "params_typed";
1173
+ names_clear: "names_clear";
1174
+ toolset_size: "toolset_size";
1175
+ output_shaped: "output_shaped";
1176
+ examples_present: "examples_present";
1177
+ writes_marked: "writes_marked";
1178
+ schema_depth: "schema_depth";
1179
+ }>;
1180
+ severity: z.ZodEnum<{
1181
+ error: "error";
1182
+ warning: "warning";
1183
+ info: "info";
1184
+ }>;
1185
+ tool: z.ZodOptional<z.ZodString>;
1186
+ message: z.ZodString;
1187
+ fix: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1188
+ }, z.core.$strip>>;
1189
+ }, z.core.$strip>>;
1190
+ preliminaryScore: z.ZodNullable<z.ZodNumber>;
1191
+ overlayDraftYaml: z.ZodString;
1192
+ diff: z.ZodNullable<z.ZodObject<{
1193
+ added: z.ZodArray<z.ZodObject<{
1194
+ key: z.ZodString;
1195
+ method: z.ZodOptional<z.ZodString>;
1196
+ path: z.ZodOptional<z.ZodString>;
1197
+ operationId: z.ZodOptional<z.ZodString>;
1198
+ toolName: z.ZodOptional<z.ZodString>;
1199
+ }, z.core.$strip>>;
1200
+ removed: z.ZodArray<z.ZodObject<{
1201
+ key: z.ZodString;
1202
+ method: z.ZodOptional<z.ZodString>;
1203
+ path: z.ZodOptional<z.ZodString>;
1204
+ operationId: z.ZodOptional<z.ZodString>;
1205
+ toolName: z.ZodOptional<z.ZodString>;
1206
+ }, z.core.$strip>>;
1207
+ changed: z.ZodArray<z.ZodObject<{
1208
+ op: z.ZodObject<{
1209
+ key: z.ZodString;
1210
+ method: z.ZodOptional<z.ZodString>;
1211
+ path: z.ZodOptional<z.ZodString>;
1212
+ operationId: z.ZodOptional<z.ZodString>;
1213
+ toolName: z.ZodOptional<z.ZodString>;
1214
+ }, z.core.$strip>;
1215
+ fields: z.ZodArray<z.ZodString>;
1216
+ }, z.core.$strip>>;
1217
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
1218
+ }, z.core.$strip>>;
1219
+ expiresAt: z.ZodISODateTime;
1220
+ }, z.core.$strip>;
1221
+ } & {
1222
+ status: number;
1223
+ };
1224
+ readonly cancelPreview: {
1225
+ readonly method: "DELETE";
1226
+ readonly path: "/api/spec-previews/:id";
1227
+ readonly kind: "empty";
1228
+ readonly access: readonly ["servers:write"];
1229
+ readonly summary: "Discard a spec preview";
1230
+ readonly params: z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ }, z.core.$strip>;
1233
+ } & {
1234
+ status: number;
1235
+ };
1236
+ };
1237
+ export declare const buildEndpoints: {
1238
+ readonly list: {
1239
+ readonly method: "GET";
1240
+ readonly path: "/api/servers/:id/builds";
1241
+ readonly kind: "json";
1242
+ readonly access: readonly ["servers:read"];
1243
+ readonly summary: "Builds of a server (newest first)";
1244
+ readonly params: z.ZodObject<{
1245
+ id: z.ZodString;
1246
+ }, z.core.$strip>;
1247
+ readonly query: z.ZodObject<{
1248
+ cursor: z.ZodPreprocess<z.ZodOptional<z.ZodString>, unknown>;
1249
+ limit: z.ZodPreprocess<z.ZodOptional<z.ZodCoercedNumber<unknown>>, unknown>;
1250
+ }, z.core.$strip>;
1251
+ readonly response: z.ZodObject<{
1252
+ items: z.ZodArray<z.ZodObject<{
1253
+ id: z.ZodString;
1254
+ hash: z.ZodString;
1255
+ status: z.ZodEnum<{
1256
+ ok: "ok";
1257
+ error: "error";
1258
+ }>;
1259
+ specRev: z.ZodNumber;
1260
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1261
+ compilerVersion: z.ZodString;
1262
+ toolCount: z.ZodNumber;
1263
+ visibleCount: z.ZodNumber;
1264
+ writeCount: z.ZodNumber;
1265
+ hiddenCount: z.ZodNumber;
1266
+ lintScore: z.ZodNumber;
1267
+ diagnosticsCount: z.ZodObject<{
1268
+ error: z.ZodNumber;
1269
+ warning: z.ZodNumber;
1270
+ info: z.ZodNumber;
1271
+ }, z.core.$strip>;
1272
+ environments: z.ZodArray<z.ZodString>;
1273
+ createdAt: z.ZodISODateTime;
1274
+ }, z.core.$strip>>;
1275
+ nextCursor: z.ZodNullable<z.ZodString>;
1276
+ totalEstimate: z.ZodOptional<z.ZodNumber>;
1277
+ }, z.core.$strip>;
1278
+ } & {
1279
+ status: number;
1280
+ };
1281
+ readonly get: {
1282
+ readonly method: "GET";
1283
+ readonly path: "/api/builds/:id";
1284
+ readonly kind: "json";
1285
+ readonly access: readonly ["servers:read"];
1286
+ readonly summary: "Build with diagnostics, lint report and orphaned overlay keys";
1287
+ readonly params: z.ZodObject<{
1288
+ id: z.ZodString;
1289
+ }, z.core.$strip>;
1290
+ readonly response: z.ZodObject<{
1291
+ id: z.ZodString;
1292
+ hash: z.ZodString;
1293
+ status: z.ZodEnum<{
1294
+ ok: "ok";
1295
+ error: "error";
1296
+ }>;
1297
+ specRev: z.ZodNumber;
1298
+ overlayRev: z.ZodNullable<z.ZodNumber>;
1299
+ compilerVersion: z.ZodString;
1300
+ toolCount: z.ZodNumber;
1301
+ visibleCount: z.ZodNumber;
1302
+ writeCount: z.ZodNumber;
1303
+ hiddenCount: z.ZodNumber;
1304
+ lintScore: z.ZodNumber;
1305
+ diagnosticsCount: z.ZodObject<{
1306
+ error: z.ZodNumber;
1307
+ warning: z.ZodNumber;
1308
+ info: z.ZodNumber;
1309
+ }, z.core.$strip>;
1310
+ environments: z.ZodArray<z.ZodString>;
1311
+ createdAt: z.ZodISODateTime;
1312
+ diagnostics: z.ZodArray<z.ZodObject<{
1313
+ severity: z.ZodEnum<{
1314
+ error: "error";
1315
+ warning: "warning";
1316
+ info: "info";
1317
+ }>;
1318
+ code: z.ZodString;
1319
+ message: z.ZodString;
1320
+ pointer: z.ZodOptional<z.ZodString>;
1321
+ overlayPath: z.ZodOptional<z.ZodString>;
1322
+ line: z.ZodOptional<z.ZodNumber>;
1323
+ col: z.ZodOptional<z.ZodNumber>;
1324
+ excerpt: z.ZodOptional<z.ZodString>;
1325
+ }, z.core.$strip>>;
1326
+ lint: z.ZodObject<{
1327
+ score: z.ZodNumber;
1328
+ rules: z.ZodArray<z.ZodObject<{
1329
+ rule: z.ZodEnum<{
1330
+ description_present: "description_present";
1331
+ description_actionable: "description_actionable";
1332
+ params_described: "params_described";
1333
+ params_typed: "params_typed";
1334
+ names_clear: "names_clear";
1335
+ toolset_size: "toolset_size";
1336
+ output_shaped: "output_shaped";
1337
+ examples_present: "examples_present";
1338
+ writes_marked: "writes_marked";
1339
+ schema_depth: "schema_depth";
1340
+ }>;
1341
+ weight: z.ZodNumber;
1342
+ score: z.ZodNumber;
1343
+ passed: z.ZodBoolean;
1344
+ detail: z.ZodString;
1345
+ }, z.core.$strip>>;
1346
+ findings: z.ZodArray<z.ZodObject<{
1347
+ rule: z.ZodEnum<{
1348
+ description_present: "description_present";
1349
+ description_actionable: "description_actionable";
1350
+ params_described: "params_described";
1351
+ params_typed: "params_typed";
1352
+ names_clear: "names_clear";
1353
+ toolset_size: "toolset_size";
1354
+ output_shaped: "output_shaped";
1355
+ examples_present: "examples_present";
1356
+ writes_marked: "writes_marked";
1357
+ schema_depth: "schema_depth";
1358
+ }>;
1359
+ severity: z.ZodEnum<{
1360
+ error: "error";
1361
+ warning: "warning";
1362
+ info: "info";
1363
+ }>;
1364
+ tool: z.ZodOptional<z.ZodString>;
1365
+ message: z.ZodString;
1366
+ fix: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1367
+ }, z.core.$strip>>;
1368
+ }, z.core.$strip>;
1369
+ orphanedOverlayKeys: z.ZodArray<z.ZodString>;
1370
+ }, z.core.$strip>;
1371
+ } & {
1372
+ status: number;
1373
+ };
1374
+ readonly stubs: {
1375
+ readonly method: "GET";
1376
+ readonly path: "/api/builds/:id/stubs";
1377
+ readonly kind: "json";
1378
+ readonly access: readonly ["tools:read"];
1379
+ readonly summary: "Python stubs (.pyi per namespace)";
1380
+ readonly params: z.ZodObject<{
1381
+ id: z.ZodString;
1382
+ }, z.core.$strip>;
1383
+ readonly response: z.ZodObject<{
1384
+ namespaces: z.ZodArray<z.ZodObject<{
1385
+ name: z.ZodString;
1386
+ pyi: z.ZodString;
1387
+ }, z.core.$strip>>;
1388
+ }, z.core.$strip>;
1389
+ } & {
1390
+ status: number;
1391
+ };
1392
+ };
1393
+ //# sourceMappingURL=specs.d.ts.map