@hasna/switcher 0.2.17 → 0.2.19

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.
package/dist/domain.d.ts CHANGED
@@ -1,454 +1,234 @@
1
- import { z } from "zod";
1
+ import { z } from "zod-v4";
2
2
  import { type RoutingEvent } from "./model-policy-schema";
3
3
  export { modelPolicySchema, routingEventSchema, routingEventsSchema } from "./model-policy-schema";
4
4
  export type { ModelPolicy, RoutingEvent } from "./model-policy-schema";
5
5
  export type { AuthStyle } from "./auth";
6
6
  export { VERSION } from "./version";
7
- export declare const harnessSchema: z.ZodEnum<["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "antigravity", "junie", "aider", "kilo"]>;
8
- export declare const protocolSchema: z.ZodEnum<["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]>;
7
+ export declare const harnessSchema: z.ZodEnum<{
8
+ gemini: "gemini";
9
+ claude: "claude";
10
+ codex: "codex";
11
+ grok: "grok";
12
+ opencode: "opencode";
13
+ opencode2: "opencode2";
14
+ pi: "pi";
15
+ omp: "omp";
16
+ dsh: "dsh";
17
+ cline: "cline";
18
+ hermes: "hermes";
19
+ "prime-agent": "prime-agent";
20
+ antigravity: "antigravity";
21
+ junie: "junie";
22
+ aider: "aider";
23
+ kilo: "kilo";
24
+ }>;
25
+ export declare const protocolSchema: z.ZodEnum<{
26
+ "anthropic-messages": "anthropic-messages";
27
+ "openai-responses": "openai-responses";
28
+ "openai-chat": "openai-chat";
29
+ "gemini-generate-content": "gemini-generate-content";
30
+ }>;
9
31
  export declare const idSchema: z.ZodString;
10
32
  export declare function endpoint(value: string): string;
11
33
  export declare const credentialCheckSchema: z.ZodObject<{
12
- method: z.ZodDefault<z.ZodEnum<["GET", "HEAD"]>>;
13
- path: z.ZodEffects<z.ZodString, string, string>;
14
- }, "strict", z.ZodTypeAny, {
15
- path: string;
16
- method: "GET" | "HEAD";
17
- }, {
18
- path: string;
19
- method?: "GET" | "HEAD" | undefined;
20
- }>;
21
- export declare const expiresOnSchema: z.ZodEffects<z.ZodString, string, string>;
34
+ method: z.ZodDefault<z.ZodEnum<{
35
+ GET: "GET";
36
+ HEAD: "HEAD";
37
+ }>>;
38
+ path: z.ZodString;
39
+ }, z.core.$strict>;
40
+ export declare const expiresOnSchema: z.ZodString;
22
41
  export declare const modelSchema: z.ZodObject<{
23
- id: z.ZodEffects<z.ZodString, string, string>;
42
+ id: z.ZodString;
24
43
  name: z.ZodString;
25
44
  description: z.ZodOptional<z.ZodString>;
26
45
  available: z.ZodOptional<z.ZodBoolean>;
27
- expiresOn: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
46
+ expiresOn: z.ZodOptional<z.ZodString>;
28
47
  contextWindow: z.ZodOptional<z.ZodNumber>;
29
48
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
30
- inputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
- outputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
- supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
- reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>, "many">>;
34
- supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
- }, "strict", z.ZodTypeAny, {
36
- id: string;
37
- name: string;
38
- description?: string | undefined;
39
- available?: boolean | undefined;
40
- expiresOn?: string | undefined;
41
- contextWindow?: number | undefined;
42
- maxOutputTokens?: number | undefined;
43
- inputModalities?: string[] | undefined;
44
- outputModalities?: string[] | undefined;
45
- supportedParameters?: string[] | undefined;
46
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
47
- supportedGenerationMethods?: string[] | undefined;
48
- }, {
49
- id: string;
50
- name: string;
51
- description?: string | undefined;
52
- available?: boolean | undefined;
53
- expiresOn?: string | undefined;
54
- contextWindow?: number | undefined;
55
- maxOutputTokens?: number | undefined;
56
- inputModalities?: string[] | undefined;
57
- outputModalities?: string[] | undefined;
58
- supportedParameters?: string[] | undefined;
59
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
60
- supportedGenerationMethods?: string[] | undefined;
61
- }>;
62
- export declare const providerInputSchema: z.ZodEffects<z.ZodObject<{
49
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
+ outputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
51
+ supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
53
+ none: "none";
54
+ minimal: "minimal";
55
+ low: "low";
56
+ medium: "medium";
57
+ high: "high";
58
+ xhigh: "xhigh";
59
+ max: "max";
60
+ ultra: "ultra";
61
+ }>>>;
62
+ supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
63
+ }, z.core.$strict>;
64
+ export declare const providerInputSchema: z.ZodObject<{
63
65
  id: z.ZodString;
64
66
  name: z.ZodString;
65
- baseUrl: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
66
- protocol: z.ZodEnum<["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]>;
67
+ baseUrl: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
68
+ protocol: z.ZodEnum<{
69
+ "anthropic-messages": "anthropic-messages";
70
+ "openai-responses": "openai-responses";
71
+ "openai-chat": "openai-chat";
72
+ "gemini-generate-content": "gemini-generate-content";
73
+ }>;
67
74
  credentialEnv: z.ZodOptional<z.ZodString>;
68
- authStyle: z.ZodDefault<z.ZodEnum<["bearer", "x-api-key", "api-key"]>>;
75
+ authStyle: z.ZodDefault<z.ZodEnum<{
76
+ bearer: "bearer";
77
+ "x-api-key": "x-api-key";
78
+ "api-key": "api-key";
79
+ }>>;
69
80
  credentialCheck: z.ZodOptional<z.ZodObject<{
70
- method: z.ZodDefault<z.ZodEnum<["GET", "HEAD"]>>;
71
- path: z.ZodEffects<z.ZodString, string, string>;
72
- }, "strict", z.ZodTypeAny, {
73
- path: string;
74
- method: "GET" | "HEAD";
75
- }, {
76
- path: string;
77
- method?: "GET" | "HEAD" | undefined;
81
+ method: z.ZodDefault<z.ZodEnum<{
82
+ GET: "GET";
83
+ HEAD: "HEAD";
84
+ }>>;
85
+ path: z.ZodString;
86
+ }, z.core.$strict>>;
87
+ catalogBaseUrl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
88
+ catalogFormat: z.ZodOptional<z.ZodEnum<{
89
+ openai: "openai";
90
+ ollama: "ollama";
91
+ mistral: "mistral";
92
+ together: "together";
93
+ fireworks: "fireworks";
94
+ dashscope: "dashscope";
95
+ gemini: "gemini";
96
+ none: "none";
97
+ }>>;
98
+ catalogAuthStyle: z.ZodOptional<z.ZodEnum<{
99
+ bearer: "bearer";
100
+ "x-api-key": "x-api-key";
101
+ "api-key": "api-key";
102
+ none: "none";
78
103
  }>>;
79
- catalogBaseUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
80
- catalogFormat: z.ZodOptional<z.ZodEnum<["openai", "ollama", "mistral", "together", "fireworks", "dashscope", "gemini", "none"]>>;
81
- catalogAuthStyle: z.ZodOptional<z.ZodEnum<["bearer", "x-api-key", "api-key", "none"]>>;
82
104
  catalogCredentialEnv: z.ZodOptional<z.ZodString>;
83
105
  catalogAccountId: z.ZodOptional<z.ZodString>;
84
106
  modelsPath: z.ZodDefault<z.ZodString>;
85
107
  manualModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
86
- id: z.ZodEffects<z.ZodString, string, string>;
108
+ id: z.ZodString;
87
109
  name: z.ZodString;
88
110
  description: z.ZodOptional<z.ZodString>;
89
111
  available: z.ZodOptional<z.ZodBoolean>;
90
- expiresOn: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
112
+ expiresOn: z.ZodOptional<z.ZodString>;
91
113
  contextWindow: z.ZodOptional<z.ZodNumber>;
92
114
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
93
- inputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
94
- outputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
- supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
96
- reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>, "many">>;
97
- supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
- }, "strict", z.ZodTypeAny, {
99
- id: string;
100
- name: string;
101
- description?: string | undefined;
102
- available?: boolean | undefined;
103
- expiresOn?: string | undefined;
104
- contextWindow?: number | undefined;
105
- maxOutputTokens?: number | undefined;
106
- inputModalities?: string[] | undefined;
107
- outputModalities?: string[] | undefined;
108
- supportedParameters?: string[] | undefined;
109
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
110
- supportedGenerationMethods?: string[] | undefined;
111
- }, {
112
- id: string;
113
- name: string;
114
- description?: string | undefined;
115
- available?: boolean | undefined;
116
- expiresOn?: string | undefined;
117
- contextWindow?: number | undefined;
118
- maxOutputTokens?: number | undefined;
119
- inputModalities?: string[] | undefined;
120
- outputModalities?: string[] | undefined;
121
- supportedParameters?: string[] | undefined;
122
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
123
- supportedGenerationMethods?: string[] | undefined;
124
- }>, "many">>;
115
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
116
+ outputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
118
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
119
+ none: "none";
120
+ minimal: "minimal";
121
+ low: "low";
122
+ medium: "medium";
123
+ high: "high";
124
+ xhigh: "xhigh";
125
+ max: "max";
126
+ ultra: "ultra";
127
+ }>>>;
128
+ supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
129
+ }, z.core.$strict>>>;
125
130
  additionalModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
- id: z.ZodEffects<z.ZodString, string, string>;
131
+ id: z.ZodString;
127
132
  name: z.ZodString;
128
133
  description: z.ZodOptional<z.ZodString>;
129
134
  available: z.ZodOptional<z.ZodBoolean>;
130
- expiresOn: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
135
+ expiresOn: z.ZodOptional<z.ZodString>;
131
136
  contextWindow: z.ZodOptional<z.ZodNumber>;
132
137
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
133
- inputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
134
- outputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
- supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
136
- reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>, "many">>;
137
- supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
- }, "strict", z.ZodTypeAny, {
139
- id: string;
140
- name: string;
141
- description?: string | undefined;
142
- available?: boolean | undefined;
143
- expiresOn?: string | undefined;
144
- contextWindow?: number | undefined;
145
- maxOutputTokens?: number | undefined;
146
- inputModalities?: string[] | undefined;
147
- outputModalities?: string[] | undefined;
148
- supportedParameters?: string[] | undefined;
149
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
150
- supportedGenerationMethods?: string[] | undefined;
151
- }, {
152
- id: string;
153
- name: string;
154
- description?: string | undefined;
155
- available?: boolean | undefined;
156
- expiresOn?: string | undefined;
157
- contextWindow?: number | undefined;
158
- maxOutputTokens?: number | undefined;
159
- inputModalities?: string[] | undefined;
160
- outputModalities?: string[] | undefined;
161
- supportedParameters?: string[] | undefined;
162
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
163
- supportedGenerationMethods?: string[] | undefined;
164
- }>, "many">>;
165
- }, "strict", z.ZodTypeAny, {
166
- id: string;
167
- name: string;
168
- baseUrl: string;
169
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
170
- authStyle: "bearer" | "x-api-key" | "api-key";
171
- modelsPath: string;
172
- manualModels: {
173
- id: string;
174
- name: string;
175
- description?: string | undefined;
176
- available?: boolean | undefined;
177
- expiresOn?: string | undefined;
178
- contextWindow?: number | undefined;
179
- maxOutputTokens?: number | undefined;
180
- inputModalities?: string[] | undefined;
181
- outputModalities?: string[] | undefined;
182
- supportedParameters?: string[] | undefined;
183
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
184
- supportedGenerationMethods?: string[] | undefined;
185
- }[];
186
- credentialEnv?: string | undefined;
187
- credentialCheck?: {
188
- path: string;
189
- method: "GET" | "HEAD";
190
- } | undefined;
191
- catalogBaseUrl?: string | undefined;
192
- catalogFormat?: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none" | undefined;
193
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
194
- catalogCredentialEnv?: string | undefined;
195
- catalogAccountId?: string | undefined;
196
- additionalModels?: {
197
- id: string;
198
- name: string;
199
- description?: string | undefined;
200
- available?: boolean | undefined;
201
- expiresOn?: string | undefined;
202
- contextWindow?: number | undefined;
203
- maxOutputTokens?: number | undefined;
204
- inputModalities?: string[] | undefined;
205
- outputModalities?: string[] | undefined;
206
- supportedParameters?: string[] | undefined;
207
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
208
- supportedGenerationMethods?: string[] | undefined;
209
- }[] | undefined;
210
- }, {
211
- id: string;
212
- name: string;
213
- baseUrl: string;
214
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
215
- credentialEnv?: string | undefined;
216
- authStyle?: "bearer" | "x-api-key" | "api-key" | undefined;
217
- credentialCheck?: {
218
- path: string;
219
- method?: "GET" | "HEAD" | undefined;
220
- } | undefined;
221
- catalogBaseUrl?: string | undefined;
222
- catalogFormat?: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none" | undefined;
223
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
224
- catalogCredentialEnv?: string | undefined;
225
- catalogAccountId?: string | undefined;
226
- modelsPath?: string | undefined;
227
- manualModels?: {
228
- id: string;
229
- name: string;
230
- description?: string | undefined;
231
- available?: boolean | undefined;
232
- expiresOn?: string | undefined;
233
- contextWindow?: number | undefined;
234
- maxOutputTokens?: number | undefined;
235
- inputModalities?: string[] | undefined;
236
- outputModalities?: string[] | undefined;
237
- supportedParameters?: string[] | undefined;
238
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
239
- supportedGenerationMethods?: string[] | undefined;
240
- }[] | undefined;
241
- additionalModels?: {
242
- id: string;
243
- name: string;
244
- description?: string | undefined;
245
- available?: boolean | undefined;
246
- expiresOn?: string | undefined;
247
- contextWindow?: number | undefined;
248
- maxOutputTokens?: number | undefined;
249
- inputModalities?: string[] | undefined;
250
- outputModalities?: string[] | undefined;
251
- supportedParameters?: string[] | undefined;
252
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
253
- supportedGenerationMethods?: string[] | undefined;
254
- }[] | undefined;
255
- }>, {
256
- id: string;
257
- name: string;
258
- baseUrl: string;
259
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
260
- authStyle: "bearer" | "x-api-key" | "api-key";
261
- modelsPath: string;
262
- manualModels: {
263
- id: string;
264
- name: string;
265
- description?: string | undefined;
266
- available?: boolean | undefined;
267
- expiresOn?: string | undefined;
268
- contextWindow?: number | undefined;
269
- maxOutputTokens?: number | undefined;
270
- inputModalities?: string[] | undefined;
271
- outputModalities?: string[] | undefined;
272
- supportedParameters?: string[] | undefined;
273
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
274
- supportedGenerationMethods?: string[] | undefined;
275
- }[];
276
- credentialEnv?: string | undefined;
277
- credentialCheck?: {
278
- path: string;
279
- method: "GET" | "HEAD";
280
- } | undefined;
281
- catalogBaseUrl?: string | undefined;
282
- catalogFormat?: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none" | undefined;
283
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
284
- catalogCredentialEnv?: string | undefined;
285
- catalogAccountId?: string | undefined;
286
- additionalModels?: {
287
- id: string;
288
- name: string;
289
- description?: string | undefined;
290
- available?: boolean | undefined;
291
- expiresOn?: string | undefined;
292
- contextWindow?: number | undefined;
293
- maxOutputTokens?: number | undefined;
294
- inputModalities?: string[] | undefined;
295
- outputModalities?: string[] | undefined;
296
- supportedParameters?: string[] | undefined;
297
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
298
- supportedGenerationMethods?: string[] | undefined;
299
- }[] | undefined;
300
- }, {
301
- id: string;
302
- name: string;
303
- baseUrl: string;
304
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
305
- credentialEnv?: string | undefined;
306
- authStyle?: "bearer" | "x-api-key" | "api-key" | undefined;
307
- credentialCheck?: {
308
- path: string;
309
- method?: "GET" | "HEAD" | undefined;
310
- } | undefined;
311
- catalogBaseUrl?: string | undefined;
312
- catalogFormat?: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none" | undefined;
313
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
314
- catalogCredentialEnv?: string | undefined;
315
- catalogAccountId?: string | undefined;
316
- modelsPath?: string | undefined;
317
- manualModels?: {
318
- id: string;
319
- name: string;
320
- description?: string | undefined;
321
- available?: boolean | undefined;
322
- expiresOn?: string | undefined;
323
- contextWindow?: number | undefined;
324
- maxOutputTokens?: number | undefined;
325
- inputModalities?: string[] | undefined;
326
- outputModalities?: string[] | undefined;
327
- supportedParameters?: string[] | undefined;
328
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
329
- supportedGenerationMethods?: string[] | undefined;
330
- }[] | undefined;
331
- additionalModels?: {
332
- id: string;
333
- name: string;
334
- description?: string | undefined;
335
- available?: boolean | undefined;
336
- expiresOn?: string | undefined;
337
- contextWindow?: number | undefined;
338
- maxOutputTokens?: number | undefined;
339
- inputModalities?: string[] | undefined;
340
- outputModalities?: string[] | undefined;
341
- supportedParameters?: string[] | undefined;
342
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
343
- supportedGenerationMethods?: string[] | undefined;
344
- }[] | undefined;
345
- }>;
138
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ outputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
140
+ supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
142
+ none: "none";
143
+ minimal: "minimal";
144
+ low: "low";
145
+ medium: "medium";
146
+ high: "high";
147
+ xhigh: "xhigh";
148
+ max: "max";
149
+ ultra: "ultra";
150
+ }>>>;
151
+ supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
152
+ }, z.core.$strict>>>;
153
+ }, z.core.$strict>;
346
154
  export declare const providerPresetSchema: z.ZodObject<{
347
155
  id: z.ZodString;
348
156
  name: z.ZodString;
349
157
  credentialEnv: z.ZodOptional<z.ZodString>;
350
- credentialAliases: z.ZodArray<z.ZodString, "many">;
158
+ credentialAliases: z.ZodArray<z.ZodString>;
351
159
  protocols: z.ZodArray<z.ZodObject<{
352
- protocol: z.ZodEnum<["anthropic-messages", "openai-responses", "openai-chat", "gemini-generate-content"]>;
353
- baseUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
354
- authStyle: z.ZodEnum<["bearer", "x-api-key", "api-key"]>;
160
+ protocol: z.ZodEnum<{
161
+ "anthropic-messages": "anthropic-messages";
162
+ "openai-responses": "openai-responses";
163
+ "openai-chat": "openai-chat";
164
+ "gemini-generate-content": "gemini-generate-content";
165
+ }>;
166
+ baseUrl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
167
+ authStyle: z.ZodEnum<{
168
+ bearer: "bearer";
169
+ "x-api-key": "x-api-key";
170
+ "api-key": "api-key";
171
+ }>;
355
172
  credentialCheck: z.ZodOptional<z.ZodObject<{
356
- method: z.ZodDefault<z.ZodEnum<["GET", "HEAD"]>>;
357
- path: z.ZodEffects<z.ZodString, string, string>;
358
- }, "strict", z.ZodTypeAny, {
359
- path: string;
360
- method: "GET" | "HEAD";
361
- }, {
362
- path: string;
363
- method?: "GET" | "HEAD" | undefined;
173
+ method: z.ZodDefault<z.ZodEnum<{
174
+ GET: "GET";
175
+ HEAD: "HEAD";
176
+ }>>;
177
+ path: z.ZodString;
178
+ }, z.core.$strict>>;
179
+ catalogBaseUrl: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
180
+ catalogFormat: z.ZodEnum<{
181
+ openai: "openai";
182
+ ollama: "ollama";
183
+ mistral: "mistral";
184
+ together: "together";
185
+ fireworks: "fireworks";
186
+ dashscope: "dashscope";
187
+ gemini: "gemini";
188
+ none: "none";
189
+ }>;
190
+ catalogAuthStyle: z.ZodOptional<z.ZodEnum<{
191
+ bearer: "bearer";
192
+ "x-api-key": "x-api-key";
193
+ "api-key": "api-key";
194
+ none: "none";
364
195
  }>>;
365
- catalogBaseUrl: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
366
- catalogFormat: z.ZodEnum<["openai", "ollama", "mistral", "together", "fireworks", "dashscope", "gemini", "none"]>;
367
- catalogAuthStyle: z.ZodOptional<z.ZodEnum<["bearer", "x-api-key", "api-key", "none"]>>;
368
196
  modelsPath: z.ZodString;
369
- notes: z.ZodArray<z.ZodString, "many">;
370
- }, "strict", z.ZodTypeAny, {
371
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
372
- authStyle: "bearer" | "x-api-key" | "api-key";
373
- catalogFormat: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none";
374
- modelsPath: string;
375
- notes: string[];
376
- baseUrl?: string | undefined;
377
- credentialCheck?: {
378
- path: string;
379
- method: "GET" | "HEAD";
380
- } | undefined;
381
- catalogBaseUrl?: string | undefined;
382
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
383
- }, {
384
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
385
- authStyle: "bearer" | "x-api-key" | "api-key";
386
- catalogFormat: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none";
387
- modelsPath: string;
388
- notes: string[];
389
- baseUrl?: string | undefined;
390
- credentialCheck?: {
391
- path: string;
392
- method?: "GET" | "HEAD" | undefined;
393
- } | undefined;
394
- catalogBaseUrl?: string | undefined;
395
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
396
- }>, "many">;
397
- sources: z.ZodArray<z.ZodString, "many">;
197
+ notes: z.ZodArray<z.ZodString>;
198
+ }, z.core.$strict>>;
199
+ sources: z.ZodArray<z.ZodString>;
398
200
  verification: z.ZodLiteral<"documented">;
399
- }, "strict", z.ZodTypeAny, {
400
- id: string;
401
- name: string;
402
- credentialAliases: string[];
403
- protocols: {
404
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
405
- authStyle: "bearer" | "x-api-key" | "api-key";
406
- catalogFormat: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none";
407
- modelsPath: string;
408
- notes: string[];
409
- baseUrl?: string | undefined;
410
- credentialCheck?: {
411
- path: string;
412
- method: "GET" | "HEAD";
413
- } | undefined;
414
- catalogBaseUrl?: string | undefined;
415
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
416
- }[];
417
- sources: string[];
418
- verification: "documented";
419
- credentialEnv?: string | undefined;
420
- }, {
421
- id: string;
422
- name: string;
423
- credentialAliases: string[];
424
- protocols: {
425
- protocol: "anthropic-messages" | "openai-responses" | "openai-chat" | "gemini-generate-content";
426
- authStyle: "bearer" | "x-api-key" | "api-key";
427
- catalogFormat: "openai" | "ollama" | "mistral" | "together" | "fireworks" | "dashscope" | "gemini" | "none";
428
- modelsPath: string;
429
- notes: string[];
430
- baseUrl?: string | undefined;
431
- credentialCheck?: {
432
- path: string;
433
- method?: "GET" | "HEAD" | undefined;
434
- } | undefined;
435
- catalogBaseUrl?: string | undefined;
436
- catalogAuthStyle?: "bearer" | "x-api-key" | "api-key" | "none" | undefined;
437
- }[];
438
- sources: string[];
439
- verification: "documented";
440
- credentialEnv?: string | undefined;
441
- }>;
201
+ }, z.core.$strict>;
442
202
  export type ProviderPreset = z.infer<typeof providerPresetSchema>;
443
203
  export declare const profileInputSchema: z.ZodObject<{
444
204
  id: z.ZodString;
445
205
  name: z.ZodString;
446
206
  providerId: z.ZodString;
447
- harness: z.ZodEnum<["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "antigravity", "junie", "aider", "kilo"]>;
207
+ harness: z.ZodEnum<{
208
+ gemini: "gemini";
209
+ claude: "claude";
210
+ codex: "codex";
211
+ grok: "grok";
212
+ opencode: "opencode";
213
+ opencode2: "opencode2";
214
+ pi: "pi";
215
+ omp: "omp";
216
+ dsh: "dsh";
217
+ cline: "cline";
218
+ hermes: "hermes";
219
+ "prime-agent": "prime-agent";
220
+ antigravity: "antigravity";
221
+ junie: "junie";
222
+ aider: "aider";
223
+ kilo: "kilo";
224
+ }>;
448
225
  model: z.ZodString;
449
226
  modelPolicy: z.ZodOptional<z.ZodObject<{
450
227
  version: z.ZodDefault<z.ZodLiteral<1>>;
451
- selection: z.ZodOptional<z.ZodEnum<["restricted", "catalog"]>>;
228
+ selection: z.ZodOptional<z.ZodEnum<{
229
+ restricted: "restricted";
230
+ catalog: "catalog";
231
+ }>>;
452
232
  roles: z.ZodOptional<z.ZodObject<{
453
233
  subagent: z.ZodOptional<z.ZodString>;
454
234
  fast: z.ZodOptional<z.ZodString>;
@@ -458,116 +238,40 @@ export declare const profileInputSchema: z.ZodObject<{
458
238
  compaction: z.ZodOptional<z.ZodString>;
459
239
  weak: z.ZodOptional<z.ZodString>;
460
240
  editor: z.ZodOptional<z.ZodString>;
461
- }, "strict", z.ZodTypeAny, {
462
- subagent?: string | undefined;
463
- fast?: string | undefined;
464
- planning?: string | undefined;
465
- review?: string | undefined;
466
- summary?: string | undefined;
467
- compaction?: string | undefined;
468
- weak?: string | undefined;
469
- editor?: string | undefined;
470
- }, {
471
- subagent?: string | undefined;
472
- fast?: string | undefined;
473
- planning?: string | undefined;
474
- review?: string | undefined;
475
- summary?: string | undefined;
476
- compaction?: string | undefined;
477
- weak?: string | undefined;
478
- editor?: string | undefined;
479
- }>>;
480
- allowedModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
481
- aliases: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, Record<string, string>, Record<string, string>>>;
482
- fallbacks: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, Record<string, string[]>, Record<string, string[]>>>;
483
- }, "strict", z.ZodTypeAny, {
484
- version: 1;
485
- selection?: "restricted" | "catalog" | undefined;
486
- roles?: {
487
- subagent?: string | undefined;
488
- fast?: string | undefined;
489
- planning?: string | undefined;
490
- review?: string | undefined;
491
- summary?: string | undefined;
492
- compaction?: string | undefined;
493
- weak?: string | undefined;
494
- editor?: string | undefined;
495
- } | undefined;
496
- allowedModels?: string[] | undefined;
497
- aliases?: Record<string, string> | undefined;
498
- fallbacks?: Record<string, string[]> | undefined;
499
- }, {
500
- version?: 1 | undefined;
501
- selection?: "restricted" | "catalog" | undefined;
502
- roles?: {
503
- subagent?: string | undefined;
504
- fast?: string | undefined;
505
- planning?: string | undefined;
506
- review?: string | undefined;
507
- summary?: string | undefined;
508
- compaction?: string | undefined;
509
- weak?: string | undefined;
510
- editor?: string | undefined;
511
- } | undefined;
512
- allowedModels?: string[] | undefined;
513
- aliases?: Record<string, string> | undefined;
514
- fallbacks?: Record<string, string[]> | undefined;
515
- }>>;
516
- }, "strict", z.ZodTypeAny, {
517
- id: string;
518
- name: string;
519
- providerId: string;
520
- harness: "gemini" | "claude" | "codex" | "grok" | "opencode" | "opencode2" | "pi" | "omp" | "dsh" | "cline" | "hermes" | "prime-agent" | "antigravity" | "junie" | "aider" | "kilo";
521
- model: string;
522
- modelPolicy?: {
523
- version: 1;
524
- selection?: "restricted" | "catalog" | undefined;
525
- roles?: {
526
- subagent?: string | undefined;
527
- fast?: string | undefined;
528
- planning?: string | undefined;
529
- review?: string | undefined;
530
- summary?: string | undefined;
531
- compaction?: string | undefined;
532
- weak?: string | undefined;
533
- editor?: string | undefined;
534
- } | undefined;
535
- allowedModels?: string[] | undefined;
536
- aliases?: Record<string, string> | undefined;
537
- fallbacks?: Record<string, string[]> | undefined;
538
- } | undefined;
539
- }, {
540
- id: string;
541
- name: string;
542
- providerId: string;
543
- harness: "gemini" | "claude" | "codex" | "grok" | "opencode" | "opencode2" | "pi" | "omp" | "dsh" | "cline" | "hermes" | "prime-agent" | "antigravity" | "junie" | "aider" | "kilo";
544
- model: string;
545
- modelPolicy?: {
546
- version?: 1 | undefined;
547
- selection?: "restricted" | "catalog" | undefined;
548
- roles?: {
549
- subagent?: string | undefined;
550
- fast?: string | undefined;
551
- planning?: string | undefined;
552
- review?: string | undefined;
553
- summary?: string | undefined;
554
- compaction?: string | undefined;
555
- weak?: string | undefined;
556
- editor?: string | undefined;
557
- } | undefined;
558
- allowedModels?: string[] | undefined;
559
- aliases?: Record<string, string> | undefined;
560
- fallbacks?: Record<string, string[]> | undefined;
561
- } | undefined;
562
- }>;
241
+ }, z.core.$strict>>;
242
+ allowedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
243
+ aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
244
+ fallbacks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
245
+ }, z.core.$strict>>;
246
+ }, z.core.$strict>;
563
247
  export declare const runInputSchema: z.ZodObject<{
564
248
  modelPolicyVersion: z.ZodLiteral<1>;
565
249
  profileId: z.ZodString;
566
- harness: z.ZodEnum<["claude", "codex", "grok", "opencode", "opencode2", "pi", "omp", "dsh", "cline", "hermes", "prime-agent", "gemini", "antigravity", "junie", "aider", "kilo"]>;
250
+ harness: z.ZodEnum<{
251
+ gemini: "gemini";
252
+ claude: "claude";
253
+ codex: "codex";
254
+ grok: "grok";
255
+ opencode: "opencode";
256
+ opencode2: "opencode2";
257
+ pi: "pi";
258
+ omp: "omp";
259
+ dsh: "dsh";
260
+ cline: "cline";
261
+ hermes: "hermes";
262
+ "prime-agent": "prime-agent";
263
+ antigravity: "antigravity";
264
+ junie: "junie";
265
+ aider: "aider";
266
+ kilo: "kilo";
267
+ }>;
567
268
  model: z.ZodString;
568
269
  modelPolicy: z.ZodOptional<z.ZodObject<{
569
270
  version: z.ZodDefault<z.ZodLiteral<1>>;
570
- selection: z.ZodOptional<z.ZodEnum<["restricted", "catalog"]>>;
271
+ selection: z.ZodOptional<z.ZodEnum<{
272
+ restricted: "restricted";
273
+ catalog: "catalog";
274
+ }>>;
571
275
  roles: z.ZodOptional<z.ZodObject<{
572
276
  subagent: z.ZodOptional<z.ZodString>;
573
277
  fast: z.ZodOptional<z.ZodString>;
@@ -577,111 +281,19 @@ export declare const runInputSchema: z.ZodObject<{
577
281
  compaction: z.ZodOptional<z.ZodString>;
578
282
  weak: z.ZodOptional<z.ZodString>;
579
283
  editor: z.ZodOptional<z.ZodString>;
580
- }, "strict", z.ZodTypeAny, {
581
- subagent?: string | undefined;
582
- fast?: string | undefined;
583
- planning?: string | undefined;
584
- review?: string | undefined;
585
- summary?: string | undefined;
586
- compaction?: string | undefined;
587
- weak?: string | undefined;
588
- editor?: string | undefined;
589
- }, {
590
- subagent?: string | undefined;
591
- fast?: string | undefined;
592
- planning?: string | undefined;
593
- review?: string | undefined;
594
- summary?: string | undefined;
595
- compaction?: string | undefined;
596
- weak?: string | undefined;
597
- editor?: string | undefined;
598
- }>>;
599
- allowedModels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
600
- aliases: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>, Record<string, string>, Record<string, string>>>;
601
- fallbacks: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>, Record<string, string[]>, Record<string, string[]>>>;
602
- }, "strict", z.ZodTypeAny, {
603
- version: 1;
604
- selection?: "restricted" | "catalog" | undefined;
605
- roles?: {
606
- subagent?: string | undefined;
607
- fast?: string | undefined;
608
- planning?: string | undefined;
609
- review?: string | undefined;
610
- summary?: string | undefined;
611
- compaction?: string | undefined;
612
- weak?: string | undefined;
613
- editor?: string | undefined;
614
- } | undefined;
615
- allowedModels?: string[] | undefined;
616
- aliases?: Record<string, string> | undefined;
617
- fallbacks?: Record<string, string[]> | undefined;
618
- }, {
619
- version?: 1 | undefined;
620
- selection?: "restricted" | "catalog" | undefined;
621
- roles?: {
622
- subagent?: string | undefined;
623
- fast?: string | undefined;
624
- planning?: string | undefined;
625
- review?: string | undefined;
626
- summary?: string | undefined;
627
- compaction?: string | undefined;
628
- weak?: string | undefined;
629
- editor?: string | undefined;
630
- } | undefined;
631
- allowedModels?: string[] | undefined;
632
- aliases?: Record<string, string> | undefined;
633
- fallbacks?: Record<string, string[]> | undefined;
634
- }>>;
284
+ }, z.core.$strict>>;
285
+ allowedModels: z.ZodOptional<z.ZodArray<z.ZodString>>;
286
+ aliases: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
287
+ fallbacks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
288
+ }, z.core.$strict>>;
635
289
  planToken: z.ZodString;
636
- }, "strict", z.ZodTypeAny, {
637
- harness: "gemini" | "claude" | "codex" | "grok" | "opencode" | "opencode2" | "pi" | "omp" | "dsh" | "cline" | "hermes" | "prime-agent" | "antigravity" | "junie" | "aider" | "kilo";
638
- model: string;
639
- modelPolicyVersion: 1;
640
- profileId: string;
641
- planToken: string;
642
- modelPolicy?: {
643
- version: 1;
644
- selection?: "restricted" | "catalog" | undefined;
645
- roles?: {
646
- subagent?: string | undefined;
647
- fast?: string | undefined;
648
- planning?: string | undefined;
649
- review?: string | undefined;
650
- summary?: string | undefined;
651
- compaction?: string | undefined;
652
- weak?: string | undefined;
653
- editor?: string | undefined;
654
- } | undefined;
655
- allowedModels?: string[] | undefined;
656
- aliases?: Record<string, string> | undefined;
657
- fallbacks?: Record<string, string[]> | undefined;
658
- } | undefined;
659
- }, {
660
- harness: "gemini" | "claude" | "codex" | "grok" | "opencode" | "opencode2" | "pi" | "omp" | "dsh" | "cline" | "hermes" | "prime-agent" | "antigravity" | "junie" | "aider" | "kilo";
661
- model: string;
662
- modelPolicyVersion: 1;
663
- profileId: string;
664
- planToken: string;
665
- modelPolicy?: {
666
- version?: 1 | undefined;
667
- selection?: "restricted" | "catalog" | undefined;
668
- roles?: {
669
- subagent?: string | undefined;
670
- fast?: string | undefined;
671
- planning?: string | undefined;
672
- review?: string | undefined;
673
- summary?: string | undefined;
674
- compaction?: string | undefined;
675
- weak?: string | undefined;
676
- editor?: string | undefined;
677
- } | undefined;
678
- allowedModels?: string[] | undefined;
679
- aliases?: Record<string, string> | undefined;
680
- fallbacks?: Record<string, string[]> | undefined;
681
- } | undefined;
682
- }>;
290
+ }, z.core.$strict>;
683
291
  export declare const runUpdateSchema: z.ZodObject<{
684
- status: z.ZodEnum<["exited", "failed", "interrupted"]>;
292
+ status: z.ZodEnum<{
293
+ exited: "exited";
294
+ failed: "failed";
295
+ interrupted: "interrupted";
296
+ }>;
685
297
  exitCode: z.ZodNumber;
686
298
  routingEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
687
299
  at: z.ZodString;
@@ -689,68 +301,38 @@ export declare const runUpdateSchema: z.ZodObject<{
689
301
  requestedModel: z.ZodString;
690
302
  resolvedModel: z.ZodOptional<z.ZodString>;
691
303
  reportedModel: z.ZodOptional<z.ZodString>;
692
- reasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>>;
693
- decision: z.ZodEnum<["allow", "alias", "reject", "fallback"]>;
694
- role: z.ZodOptional<z.ZodEnum<["main", "subagent", "fast", "planning", "review", "summary", "compaction", "weak", "editor"]>>;
304
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
305
+ none: "none";
306
+ minimal: "minimal";
307
+ low: "low";
308
+ medium: "medium";
309
+ high: "high";
310
+ xhigh: "xhigh";
311
+ max: "max";
312
+ ultra: "ultra";
313
+ }>>;
314
+ decision: z.ZodEnum<{
315
+ allow: "allow";
316
+ alias: "alias";
317
+ reject: "reject";
318
+ fallback: "fallback";
319
+ }>;
320
+ role: z.ZodOptional<z.ZodEnum<{
321
+ main: "main";
322
+ subagent: "subagent";
323
+ fast: "fast";
324
+ planning: "planning";
325
+ review: "review";
326
+ summary: "summary";
327
+ compaction: "compaction";
328
+ weak: "weak";
329
+ editor: "editor";
330
+ }>>;
695
331
  reason: z.ZodOptional<z.ZodString>;
696
332
  upstreamStatus: z.ZodOptional<z.ZodNumber>;
697
- }, "strict", z.ZodTypeAny, {
698
- at: string;
699
- requestId: string;
700
- requestedModel: string;
701
- decision: "allow" | "alias" | "reject" | "fallback";
702
- resolvedModel?: string | undefined;
703
- reportedModel?: string | undefined;
704
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
705
- role?: "main" | "subagent" | "fast" | "planning" | "review" | "summary" | "compaction" | "weak" | "editor" | undefined;
706
- reason?: string | undefined;
707
- upstreamStatus?: number | undefined;
708
- }, {
709
- at: string;
710
- requestId: string;
711
- requestedModel: string;
712
- decision: "allow" | "alias" | "reject" | "fallback";
713
- resolvedModel?: string | undefined;
714
- reportedModel?: string | undefined;
715
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
716
- role?: "main" | "subagent" | "fast" | "planning" | "review" | "summary" | "compaction" | "weak" | "editor" | undefined;
717
- reason?: string | undefined;
718
- upstreamStatus?: number | undefined;
719
- }>, "many">>;
333
+ }, z.core.$strict>>>;
720
334
  routingEventsDropped: z.ZodOptional<z.ZodNumber>;
721
- }, "strict", z.ZodTypeAny, {
722
- status: "exited" | "failed" | "interrupted";
723
- exitCode: number;
724
- routingEvents?: {
725
- at: string;
726
- requestId: string;
727
- requestedModel: string;
728
- decision: "allow" | "alias" | "reject" | "fallback";
729
- resolvedModel?: string | undefined;
730
- reportedModel?: string | undefined;
731
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
732
- role?: "main" | "subagent" | "fast" | "planning" | "review" | "summary" | "compaction" | "weak" | "editor" | undefined;
733
- reason?: string | undefined;
734
- upstreamStatus?: number | undefined;
735
- }[] | undefined;
736
- routingEventsDropped?: number | undefined;
737
- }, {
738
- status: "exited" | "failed" | "interrupted";
739
- exitCode: number;
740
- routingEvents?: {
741
- at: string;
742
- requestId: string;
743
- requestedModel: string;
744
- decision: "allow" | "alias" | "reject" | "fallback";
745
- resolvedModel?: string | undefined;
746
- reportedModel?: string | undefined;
747
- reasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra" | undefined;
748
- role?: "main" | "subagent" | "fast" | "planning" | "review" | "summary" | "compaction" | "weak" | "editor" | undefined;
749
- reason?: string | undefined;
750
- upstreamStatus?: number | undefined;
751
- }[] | undefined;
752
- routingEventsDropped?: number | undefined;
753
- }>;
335
+ }, z.core.$strict>;
754
336
  export type ProviderInput = z.input<typeof providerInputSchema>;
755
337
  export type Provider = z.output<typeof providerInputSchema> & {
756
338
  version: number;
@@ -779,82 +361,34 @@ export type Run = Omit<z.infer<typeof runInputSchema>, "modelPolicyVersion"> & {
779
361
  };
780
362
  export declare const catalogSchema: z.ZodObject<{
781
363
  models: z.ZodArray<z.ZodObject<{
782
- id: z.ZodEffects<z.ZodString, string, string>;
364
+ id: z.ZodString;
783
365
  name: z.ZodString;
784
366
  description: z.ZodOptional<z.ZodString>;
785
367
  available: z.ZodOptional<z.ZodBoolean>;
786
- expiresOn: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
368
+ expiresOn: z.ZodOptional<z.ZodString>;
787
369
  contextWindow: z.ZodOptional<z.ZodNumber>;
788
370
  maxOutputTokens: z.ZodOptional<z.ZodNumber>;
789
- inputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
790
- outputModalities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
- supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
792
- reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max", "ultra"]>, "many">>;
793
- supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
794
- }, "strict", z.ZodTypeAny, {
795
- id: string;
796
- name: string;
797
- description?: string | undefined;
798
- available?: boolean | undefined;
799
- expiresOn?: string | undefined;
800
- contextWindow?: number | undefined;
801
- maxOutputTokens?: number | undefined;
802
- inputModalities?: string[] | undefined;
803
- outputModalities?: string[] | undefined;
804
- supportedParameters?: string[] | undefined;
805
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
806
- supportedGenerationMethods?: string[] | undefined;
807
- }, {
808
- id: string;
809
- name: string;
810
- description?: string | undefined;
811
- available?: boolean | undefined;
812
- expiresOn?: string | undefined;
813
- contextWindow?: number | undefined;
814
- maxOutputTokens?: number | undefined;
815
- inputModalities?: string[] | undefined;
816
- outputModalities?: string[] | undefined;
817
- supportedParameters?: string[] | undefined;
818
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
819
- supportedGenerationMethods?: string[] | undefined;
820
- }>, "many">;
371
+ inputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
372
+ outputModalities: z.ZodOptional<z.ZodArray<z.ZodString>>;
373
+ supportedParameters: z.ZodOptional<z.ZodArray<z.ZodString>>;
374
+ reasoningEfforts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
375
+ none: "none";
376
+ minimal: "minimal";
377
+ low: "low";
378
+ medium: "medium";
379
+ high: "high";
380
+ xhigh: "xhigh";
381
+ max: "max";
382
+ ultra: "ultra";
383
+ }>>>;
384
+ supportedGenerationMethods: z.ZodOptional<z.ZodArray<z.ZodString>>;
385
+ }, z.core.$strict>>;
821
386
  refreshedAt: z.ZodString;
822
- source: z.ZodEnum<["remote", "manual"]>;
823
- }, "strict", z.ZodTypeAny, {
824
- models: {
825
- id: string;
826
- name: string;
827
- description?: string | undefined;
828
- available?: boolean | undefined;
829
- expiresOn?: string | undefined;
830
- contextWindow?: number | undefined;
831
- maxOutputTokens?: number | undefined;
832
- inputModalities?: string[] | undefined;
833
- outputModalities?: string[] | undefined;
834
- supportedParameters?: string[] | undefined;
835
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
836
- supportedGenerationMethods?: string[] | undefined;
837
- }[];
838
- refreshedAt: string;
839
- source: "remote" | "manual";
840
- }, {
841
- models: {
842
- id: string;
843
- name: string;
844
- description?: string | undefined;
845
- available?: boolean | undefined;
846
- expiresOn?: string | undefined;
847
- contextWindow?: number | undefined;
848
- maxOutputTokens?: number | undefined;
849
- inputModalities?: string[] | undefined;
850
- outputModalities?: string[] | undefined;
851
- supportedParameters?: string[] | undefined;
852
- reasoningEfforts?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | "ultra")[] | undefined;
853
- supportedGenerationMethods?: string[] | undefined;
854
- }[];
855
- refreshedAt: string;
856
- source: "remote" | "manual";
857
- }>;
387
+ source: z.ZodEnum<{
388
+ remote: "remote";
389
+ manual: "manual";
390
+ }>;
391
+ }, z.core.$strict>;
858
392
  export type Catalog = z.infer<typeof catalogSchema>;
859
393
  export type LaunchPlan = {
860
394
  planToken: string;
@@ -872,7 +406,7 @@ export declare class CommandInterrupted extends Fault {
872
406
  readonly exitCode: number;
873
407
  constructor(exitCode: number, message: string);
874
408
  }
875
- export declare function parse<T>(schema: z.ZodType<T, any, any>, value: unknown): T;
409
+ export declare function parse<S extends z.ZodType>(schema: S, value: unknown): z.output<S>;
876
410
  export declare function compatible(harness: Profile["harness"], protocol: Provider["protocol"]): boolean;
877
411
  export declare function validateHarnessProvider(harness: Profile["harness"], provider: Pick<Provider, "protocol" | "authStyle">): void;
878
412
  /** Operator expiry dates are inclusive in UTC; they do not promise provider uptime. */