@infimind-next/ai-hive-mcp 0.4.2 → 0.5.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.
@@ -0,0 +1,831 @@
1
+ import { z } from "zod";
2
+ export declare const modelSectionSchema: z.ZodEnum<["parameters", "pricing", "examples"]>;
3
+ export type ModelSection = z.infer<typeof modelSectionSchema>;
4
+ export declare const listModelsReadShape: {
5
+ schemaVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
6
+ modelType: z.ZodOptional<z.ZodEnum<["TEXT", "IMAGE", "VIDEO"]>>;
7
+ detail: z.ZodOptional<z.ZodEnum<["lite", "full"]>>;
8
+ query: z.ZodOptional<z.ZodString>;
9
+ routingMode: z.ZodOptional<z.ZodEnum<["COST_FIRST", "SPEED_FIRST", "SUCCESS_FIRST"]>>;
10
+ cursor: z.ZodOptional<z.ZodString>;
11
+ limit: z.ZodOptional<z.ZodNumber>;
12
+ };
13
+ export declare const getModelReadShape: {
14
+ schemaVersion: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>]>>;
15
+ publicModelId: z.ZodEffects<z.ZodString, string, string>;
16
+ routingMode: z.ZodOptional<z.ZodEnum<["COST_FIRST", "SPEED_FIRST", "SUCCESS_FIRST"]>>;
17
+ sections: z.ZodOptional<z.ZodArray<z.ZodEnum<["parameters", "pricing", "examples"]>, "many">>;
18
+ };
19
+ export declare function parseModelListInput(raw: unknown, defaultVersion?: 1 | 2): {
20
+ schemaVersion?: 1 | 2 | undefined;
21
+ routingMode?: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST" | undefined;
22
+ modelType?: "TEXT" | "IMAGE" | "VIDEO" | undefined;
23
+ detail?: "lite" | "full" | undefined;
24
+ query?: string | undefined;
25
+ cursor?: string | undefined;
26
+ limit?: number | undefined;
27
+ };
28
+ export declare function parseModelDetailInput(raw: unknown, defaultVersion?: 1 | 2): {
29
+ publicModelId: string;
30
+ schemaVersion?: 1 | 2 | undefined;
31
+ routingMode?: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST" | undefined;
32
+ sections?: ("parameters" | "pricing" | "examples")[] | undefined;
33
+ };
34
+ declare const listResponse: z.ZodObject<{
35
+ schemaVersion: z.ZodLiteral<2>;
36
+ models: z.ZodArray<z.ZodObject<{
37
+ publicModelId: z.ZodEffects<z.ZodString, string, string>;
38
+ displayName: z.ZodString;
39
+ modelType: z.ZodEnum<["TEXT", "IMAGE", "VIDEO"]>;
40
+ materialMode: z.ZodEnum<["standard", "certified"]>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
43
+ publicModelId: string;
44
+ displayName: string;
45
+ materialMode: "standard" | "certified";
46
+ }, {
47
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
48
+ publicModelId: string;
49
+ displayName: string;
50
+ materialMode: "standard" | "certified";
51
+ }>, "many">;
52
+ nextCursor: z.ZodNullable<z.ZodString>;
53
+ notices: z.ZodArray<z.ZodObject<{
54
+ id: z.ZodString;
55
+ revision: z.ZodString;
56
+ kind: z.ZodEnum<["RECHARGE_PROMOTION", "ANNOUNCEMENT"]>;
57
+ title: z.ZodString;
58
+ message: z.ZodString;
59
+ details: z.ZodString;
60
+ expiresAt: z.ZodNullable<z.ZodString>;
61
+ action: z.ZodOptional<z.ZodObject<{
62
+ label: z.ZodString;
63
+ url: z.ZodEffects<z.ZodString, string, string>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ label: string;
66
+ url: string;
67
+ }, {
68
+ label: string;
69
+ url: string;
70
+ }>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ id: string;
73
+ revision: string;
74
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
75
+ message: string;
76
+ title: string;
77
+ details: string;
78
+ expiresAt: string | null;
79
+ action?: {
80
+ label: string;
81
+ url: string;
82
+ } | undefined;
83
+ }, {
84
+ id: string;
85
+ revision: string;
86
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
87
+ message: string;
88
+ title: string;
89
+ details: string;
90
+ expiresAt: string | null;
91
+ action?: {
92
+ label: string;
93
+ url: string;
94
+ } | undefined;
95
+ }>, "many">;
96
+ }, "strict", z.ZodTypeAny, {
97
+ schemaVersion: 2;
98
+ notices: {
99
+ id: string;
100
+ revision: string;
101
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
102
+ message: string;
103
+ title: string;
104
+ details: string;
105
+ expiresAt: string | null;
106
+ action?: {
107
+ label: string;
108
+ url: string;
109
+ } | undefined;
110
+ }[];
111
+ models: {
112
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
113
+ publicModelId: string;
114
+ displayName: string;
115
+ materialMode: "standard" | "certified";
116
+ }[];
117
+ nextCursor: string | null;
118
+ }, {
119
+ schemaVersion: 2;
120
+ notices: {
121
+ id: string;
122
+ revision: string;
123
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
124
+ message: string;
125
+ title: string;
126
+ details: string;
127
+ expiresAt: string | null;
128
+ action?: {
129
+ label: string;
130
+ url: string;
131
+ } | undefined;
132
+ }[];
133
+ models: {
134
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
135
+ publicModelId: string;
136
+ displayName: string;
137
+ materialMode: "standard" | "certified";
138
+ }[];
139
+ nextCursor: string | null;
140
+ }>;
141
+ declare const detailResponse: z.ZodEffects<z.ZodObject<{
142
+ schemaVersion: z.ZodLiteral<2>;
143
+ model: z.ZodObject<{
144
+ pricingSnapshot: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
+ publicModelId: z.ZodString;
146
+ routingMode: z.ZodEnum<["COST_FIRST", "SPEED_FIRST", "SUCCESS_FIRST"]>;
147
+ billingRuleSnapshot: z.ZodEffects<z.ZodObject<{
148
+ version: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
149
+ kind: z.ZodEnum<["TEXT_TOKEN", "IMAGE_GENERATION", "VIDEO_GENERATION"]>;
150
+ rules: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
151
+ tiers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
152
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
153
+ version: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
154
+ kind: z.ZodEnum<["TEXT_TOKEN", "IMAGE_GENERATION", "VIDEO_GENERATION"]>;
155
+ rules: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
156
+ tiers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
157
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
158
+ version: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
159
+ kind: z.ZodEnum<["TEXT_TOKEN", "IMAGE_GENERATION", "VIDEO_GENERATION"]>;
160
+ rules: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
161
+ tiers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
162
+ }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
163
+ version: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
164
+ kind: z.ZodEnum<["TEXT_TOKEN", "IMAGE_GENERATION", "VIDEO_GENERATION"]>;
165
+ rules: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
166
+ tiers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
167
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
168
+ version: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
169
+ kind: z.ZodEnum<["TEXT_TOKEN", "IMAGE_GENERATION", "VIDEO_GENERATION"]>;
170
+ rules: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
171
+ tiers: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
172
+ }, z.ZodTypeAny, "passthrough">>;
173
+ }, "strict", z.ZodTypeAny, {
174
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
175
+ publicModelId: string;
176
+ billingRuleSnapshot: {
177
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
178
+ version: 1 | 2 | 3;
179
+ rules?: Record<string, unknown>[] | undefined;
180
+ tiers?: Record<string, unknown>[] | undefined;
181
+ } & {
182
+ [k: string]: unknown;
183
+ };
184
+ }, {
185
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
186
+ publicModelId: string;
187
+ billingRuleSnapshot: {
188
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
189
+ version: 1 | 2 | 3;
190
+ rules?: Record<string, unknown>[] | undefined;
191
+ tiers?: Record<string, unknown>[] | undefined;
192
+ } & {
193
+ [k: string]: unknown;
194
+ };
195
+ }>, "many">>;
196
+ promptSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197
+ paramsSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
198
+ mediaRequirements: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
199
+ examples: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
+ kind: z.ZodString;
201
+ label: z.ZodString;
202
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
203
+ }, "strict", z.ZodTypeAny, {
204
+ kind: string;
205
+ label: string;
206
+ input: Record<string, unknown>;
207
+ }, {
208
+ kind: string;
209
+ label: string;
210
+ input: Record<string, unknown>;
211
+ }>, "many">>;
212
+ publicModelId: z.ZodEffects<z.ZodString, string, string>;
213
+ displayName: z.ZodString;
214
+ description: z.ZodString;
215
+ modelType: z.ZodEnum<["TEXT", "IMAGE", "VIDEO"]>;
216
+ materialMode: z.ZodEnum<["standard", "certified"]>;
217
+ routingModes: z.ZodArray<z.ZodEnum<["COST_FIRST", "SPEED_FIRST", "SUCCESS_FIRST"]>, "many">;
218
+ textConfig: z.ZodOptional<z.ZodObject<{
219
+ outputsThinking: z.ZodBoolean;
220
+ showsThinkingToggle: z.ZodBoolean;
221
+ attachments: z.ZodObject<{
222
+ textExtraction: z.ZodObject<{
223
+ maxFilesPerMessage: z.ZodNumber;
224
+ enabled: z.ZodBoolean;
225
+ maxFileSizeBytes: z.ZodNumber;
226
+ supportedMimeTypes: z.ZodArray<z.ZodString, "many">;
227
+ }, "strict", z.ZodTypeAny, {
228
+ maxFilesPerMessage: number;
229
+ enabled: boolean;
230
+ maxFileSizeBytes: number;
231
+ supportedMimeTypes: string[];
232
+ }, {
233
+ maxFilesPerMessage: number;
234
+ enabled: boolean;
235
+ maxFileSizeBytes: number;
236
+ supportedMimeTypes: string[];
237
+ }>;
238
+ imageInput: z.ZodObject<{
239
+ enabled: z.ZodBoolean;
240
+ maxFileSizeBytes: z.ZodNumber;
241
+ supportedMimeTypes: z.ZodArray<z.ZodString, "many">;
242
+ }, "strict", z.ZodTypeAny, {
243
+ enabled: boolean;
244
+ maxFileSizeBytes: number;
245
+ supportedMimeTypes: string[];
246
+ }, {
247
+ enabled: boolean;
248
+ maxFileSizeBytes: number;
249
+ supportedMimeTypes: string[];
250
+ }>;
251
+ }, "strict", z.ZodTypeAny, {
252
+ textExtraction: {
253
+ maxFilesPerMessage: number;
254
+ enabled: boolean;
255
+ maxFileSizeBytes: number;
256
+ supportedMimeTypes: string[];
257
+ };
258
+ imageInput: {
259
+ enabled: boolean;
260
+ maxFileSizeBytes: number;
261
+ supportedMimeTypes: string[];
262
+ };
263
+ }, {
264
+ textExtraction: {
265
+ maxFilesPerMessage: number;
266
+ enabled: boolean;
267
+ maxFileSizeBytes: number;
268
+ supportedMimeTypes: string[];
269
+ };
270
+ imageInput: {
271
+ enabled: boolean;
272
+ maxFileSizeBytes: number;
273
+ supportedMimeTypes: string[];
274
+ };
275
+ }>;
276
+ }, "strict", z.ZodTypeAny, {
277
+ outputsThinking: boolean;
278
+ showsThinkingToggle: boolean;
279
+ attachments: {
280
+ textExtraction: {
281
+ maxFilesPerMessage: number;
282
+ enabled: boolean;
283
+ maxFileSizeBytes: number;
284
+ supportedMimeTypes: string[];
285
+ };
286
+ imageInput: {
287
+ enabled: boolean;
288
+ maxFileSizeBytes: number;
289
+ supportedMimeTypes: string[];
290
+ };
291
+ };
292
+ }, {
293
+ outputsThinking: boolean;
294
+ showsThinkingToggle: boolean;
295
+ attachments: {
296
+ textExtraction: {
297
+ maxFilesPerMessage: number;
298
+ enabled: boolean;
299
+ maxFileSizeBytes: number;
300
+ supportedMimeTypes: string[];
301
+ };
302
+ imageInput: {
303
+ enabled: boolean;
304
+ maxFileSizeBytes: number;
305
+ supportedMimeTypes: string[];
306
+ };
307
+ };
308
+ }>>;
309
+ reasoningLevels: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
310
+ routingMode: z.ZodEnum<["COST_FIRST", "SPEED_FIRST", "SUCCESS_FIRST"]>;
311
+ reasoningEfforts: z.ZodEffects<z.ZodArray<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max"]>, "many">, ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[], ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[]>;
312
+ defaultReasoningEffort: z.ZodOptional<z.ZodEnum<["none", "minimal", "low", "medium", "high", "xhigh", "max"]>>;
313
+ }, "strict", z.ZodTypeAny, {
314
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
315
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
316
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
317
+ }, {
318
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
319
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
320
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
321
+ }>, {
322
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
323
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
324
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
325
+ }, {
326
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
327
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
328
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
329
+ }>, "many">>;
330
+ }, "strict", z.ZodTypeAny, {
331
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
332
+ publicModelId: string;
333
+ displayName: string;
334
+ materialMode: "standard" | "certified";
335
+ description: string;
336
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
337
+ examples?: {
338
+ kind: string;
339
+ label: string;
340
+ input: Record<string, unknown>;
341
+ }[] | undefined;
342
+ pricingSnapshot?: {
343
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
344
+ publicModelId: string;
345
+ billingRuleSnapshot: {
346
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
347
+ version: 1 | 2 | 3;
348
+ rules?: Record<string, unknown>[] | undefined;
349
+ tiers?: Record<string, unknown>[] | undefined;
350
+ } & {
351
+ [k: string]: unknown;
352
+ };
353
+ }[] | undefined;
354
+ promptSchema?: Record<string, unknown> | undefined;
355
+ paramsSchema?: Record<string, unknown> | undefined;
356
+ mediaRequirements?: Record<string, unknown>[] | undefined;
357
+ textConfig?: {
358
+ outputsThinking: boolean;
359
+ showsThinkingToggle: boolean;
360
+ attachments: {
361
+ textExtraction: {
362
+ maxFilesPerMessage: number;
363
+ enabled: boolean;
364
+ maxFileSizeBytes: number;
365
+ supportedMimeTypes: string[];
366
+ };
367
+ imageInput: {
368
+ enabled: boolean;
369
+ maxFileSizeBytes: number;
370
+ supportedMimeTypes: string[];
371
+ };
372
+ };
373
+ } | undefined;
374
+ reasoningLevels?: {
375
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
376
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
377
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
378
+ }[] | undefined;
379
+ }, {
380
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
381
+ publicModelId: string;
382
+ displayName: string;
383
+ materialMode: "standard" | "certified";
384
+ description: string;
385
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
386
+ examples?: {
387
+ kind: string;
388
+ label: string;
389
+ input: Record<string, unknown>;
390
+ }[] | undefined;
391
+ pricingSnapshot?: {
392
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
393
+ publicModelId: string;
394
+ billingRuleSnapshot: {
395
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
396
+ version: 1 | 2 | 3;
397
+ rules?: Record<string, unknown>[] | undefined;
398
+ tiers?: Record<string, unknown>[] | undefined;
399
+ } & {
400
+ [k: string]: unknown;
401
+ };
402
+ }[] | undefined;
403
+ promptSchema?: Record<string, unknown> | undefined;
404
+ paramsSchema?: Record<string, unknown> | undefined;
405
+ mediaRequirements?: Record<string, unknown>[] | undefined;
406
+ textConfig?: {
407
+ outputsThinking: boolean;
408
+ showsThinkingToggle: boolean;
409
+ attachments: {
410
+ textExtraction: {
411
+ maxFilesPerMessage: number;
412
+ enabled: boolean;
413
+ maxFileSizeBytes: number;
414
+ supportedMimeTypes: string[];
415
+ };
416
+ imageInput: {
417
+ enabled: boolean;
418
+ maxFileSizeBytes: number;
419
+ supportedMimeTypes: string[];
420
+ };
421
+ };
422
+ } | undefined;
423
+ reasoningLevels?: {
424
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
425
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
426
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
427
+ }[] | undefined;
428
+ }>;
429
+ includedSections: z.ZodArray<z.ZodEnum<["parameters", "pricing", "examples"]>, "many">;
430
+ notices: z.ZodArray<z.ZodObject<{
431
+ id: z.ZodString;
432
+ revision: z.ZodString;
433
+ kind: z.ZodEnum<["RECHARGE_PROMOTION", "ANNOUNCEMENT"]>;
434
+ title: z.ZodString;
435
+ message: z.ZodString;
436
+ details: z.ZodString;
437
+ expiresAt: z.ZodNullable<z.ZodString>;
438
+ action: z.ZodOptional<z.ZodObject<{
439
+ label: z.ZodString;
440
+ url: z.ZodEffects<z.ZodString, string, string>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ label: string;
443
+ url: string;
444
+ }, {
445
+ label: string;
446
+ url: string;
447
+ }>>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ id: string;
450
+ revision: string;
451
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
452
+ message: string;
453
+ title: string;
454
+ details: string;
455
+ expiresAt: string | null;
456
+ action?: {
457
+ label: string;
458
+ url: string;
459
+ } | undefined;
460
+ }, {
461
+ id: string;
462
+ revision: string;
463
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
464
+ message: string;
465
+ title: string;
466
+ details: string;
467
+ expiresAt: string | null;
468
+ action?: {
469
+ label: string;
470
+ url: string;
471
+ } | undefined;
472
+ }>, "many">;
473
+ }, "strict", z.ZodTypeAny, {
474
+ schemaVersion: 2;
475
+ notices: {
476
+ id: string;
477
+ revision: string;
478
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
479
+ message: string;
480
+ title: string;
481
+ details: string;
482
+ expiresAt: string | null;
483
+ action?: {
484
+ label: string;
485
+ url: string;
486
+ } | undefined;
487
+ }[];
488
+ model: {
489
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
490
+ publicModelId: string;
491
+ displayName: string;
492
+ materialMode: "standard" | "certified";
493
+ description: string;
494
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
495
+ examples?: {
496
+ kind: string;
497
+ label: string;
498
+ input: Record<string, unknown>;
499
+ }[] | undefined;
500
+ pricingSnapshot?: {
501
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
502
+ publicModelId: string;
503
+ billingRuleSnapshot: {
504
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
505
+ version: 1 | 2 | 3;
506
+ rules?: Record<string, unknown>[] | undefined;
507
+ tiers?: Record<string, unknown>[] | undefined;
508
+ } & {
509
+ [k: string]: unknown;
510
+ };
511
+ }[] | undefined;
512
+ promptSchema?: Record<string, unknown> | undefined;
513
+ paramsSchema?: Record<string, unknown> | undefined;
514
+ mediaRequirements?: Record<string, unknown>[] | undefined;
515
+ textConfig?: {
516
+ outputsThinking: boolean;
517
+ showsThinkingToggle: boolean;
518
+ attachments: {
519
+ textExtraction: {
520
+ maxFilesPerMessage: number;
521
+ enabled: boolean;
522
+ maxFileSizeBytes: number;
523
+ supportedMimeTypes: string[];
524
+ };
525
+ imageInput: {
526
+ enabled: boolean;
527
+ maxFileSizeBytes: number;
528
+ supportedMimeTypes: string[];
529
+ };
530
+ };
531
+ } | undefined;
532
+ reasoningLevels?: {
533
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
534
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
535
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
536
+ }[] | undefined;
537
+ };
538
+ includedSections: ("parameters" | "pricing" | "examples")[];
539
+ }, {
540
+ schemaVersion: 2;
541
+ notices: {
542
+ id: string;
543
+ revision: string;
544
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
545
+ message: string;
546
+ title: string;
547
+ details: string;
548
+ expiresAt: string | null;
549
+ action?: {
550
+ label: string;
551
+ url: string;
552
+ } | undefined;
553
+ }[];
554
+ model: {
555
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
556
+ publicModelId: string;
557
+ displayName: string;
558
+ materialMode: "standard" | "certified";
559
+ description: string;
560
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
561
+ examples?: {
562
+ kind: string;
563
+ label: string;
564
+ input: Record<string, unknown>;
565
+ }[] | undefined;
566
+ pricingSnapshot?: {
567
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
568
+ publicModelId: string;
569
+ billingRuleSnapshot: {
570
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
571
+ version: 1 | 2 | 3;
572
+ rules?: Record<string, unknown>[] | undefined;
573
+ tiers?: Record<string, unknown>[] | undefined;
574
+ } & {
575
+ [k: string]: unknown;
576
+ };
577
+ }[] | undefined;
578
+ promptSchema?: Record<string, unknown> | undefined;
579
+ paramsSchema?: Record<string, unknown> | undefined;
580
+ mediaRequirements?: Record<string, unknown>[] | undefined;
581
+ textConfig?: {
582
+ outputsThinking: boolean;
583
+ showsThinkingToggle: boolean;
584
+ attachments: {
585
+ textExtraction: {
586
+ maxFilesPerMessage: number;
587
+ enabled: boolean;
588
+ maxFileSizeBytes: number;
589
+ supportedMimeTypes: string[];
590
+ };
591
+ imageInput: {
592
+ enabled: boolean;
593
+ maxFileSizeBytes: number;
594
+ supportedMimeTypes: string[];
595
+ };
596
+ };
597
+ } | undefined;
598
+ reasoningLevels?: {
599
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
600
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
601
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
602
+ }[] | undefined;
603
+ };
604
+ includedSections: ("parameters" | "pricing" | "examples")[];
605
+ }>, {
606
+ schemaVersion: 2;
607
+ notices: {
608
+ id: string;
609
+ revision: string;
610
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
611
+ message: string;
612
+ title: string;
613
+ details: string;
614
+ expiresAt: string | null;
615
+ action?: {
616
+ label: string;
617
+ url: string;
618
+ } | undefined;
619
+ }[];
620
+ model: {
621
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
622
+ publicModelId: string;
623
+ displayName: string;
624
+ materialMode: "standard" | "certified";
625
+ description: string;
626
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
627
+ examples?: {
628
+ kind: string;
629
+ label: string;
630
+ input: Record<string, unknown>;
631
+ }[] | undefined;
632
+ pricingSnapshot?: {
633
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
634
+ publicModelId: string;
635
+ billingRuleSnapshot: {
636
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
637
+ version: 1 | 2 | 3;
638
+ rules?: Record<string, unknown>[] | undefined;
639
+ tiers?: Record<string, unknown>[] | undefined;
640
+ } & {
641
+ [k: string]: unknown;
642
+ };
643
+ }[] | undefined;
644
+ promptSchema?: Record<string, unknown> | undefined;
645
+ paramsSchema?: Record<string, unknown> | undefined;
646
+ mediaRequirements?: Record<string, unknown>[] | undefined;
647
+ textConfig?: {
648
+ outputsThinking: boolean;
649
+ showsThinkingToggle: boolean;
650
+ attachments: {
651
+ textExtraction: {
652
+ maxFilesPerMessage: number;
653
+ enabled: boolean;
654
+ maxFileSizeBytes: number;
655
+ supportedMimeTypes: string[];
656
+ };
657
+ imageInput: {
658
+ enabled: boolean;
659
+ maxFileSizeBytes: number;
660
+ supportedMimeTypes: string[];
661
+ };
662
+ };
663
+ } | undefined;
664
+ reasoningLevels?: {
665
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
666
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
667
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
668
+ }[] | undefined;
669
+ };
670
+ includedSections: ("parameters" | "pricing" | "examples")[];
671
+ }, {
672
+ schemaVersion: 2;
673
+ notices: {
674
+ id: string;
675
+ revision: string;
676
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
677
+ message: string;
678
+ title: string;
679
+ details: string;
680
+ expiresAt: string | null;
681
+ action?: {
682
+ label: string;
683
+ url: string;
684
+ } | undefined;
685
+ }[];
686
+ model: {
687
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
688
+ publicModelId: string;
689
+ displayName: string;
690
+ materialMode: "standard" | "certified";
691
+ description: string;
692
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
693
+ examples?: {
694
+ kind: string;
695
+ label: string;
696
+ input: Record<string, unknown>;
697
+ }[] | undefined;
698
+ pricingSnapshot?: {
699
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
700
+ publicModelId: string;
701
+ billingRuleSnapshot: {
702
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
703
+ version: 1 | 2 | 3;
704
+ rules?: Record<string, unknown>[] | undefined;
705
+ tiers?: Record<string, unknown>[] | undefined;
706
+ } & {
707
+ [k: string]: unknown;
708
+ };
709
+ }[] | undefined;
710
+ promptSchema?: Record<string, unknown> | undefined;
711
+ paramsSchema?: Record<string, unknown> | undefined;
712
+ mediaRequirements?: Record<string, unknown>[] | undefined;
713
+ textConfig?: {
714
+ outputsThinking: boolean;
715
+ showsThinkingToggle: boolean;
716
+ attachments: {
717
+ textExtraction: {
718
+ maxFilesPerMessage: number;
719
+ enabled: boolean;
720
+ maxFileSizeBytes: number;
721
+ supportedMimeTypes: string[];
722
+ };
723
+ imageInput: {
724
+ enabled: boolean;
725
+ maxFileSizeBytes: number;
726
+ supportedMimeTypes: string[];
727
+ };
728
+ };
729
+ } | undefined;
730
+ reasoningLevels?: {
731
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
732
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
733
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
734
+ }[] | undefined;
735
+ };
736
+ includedSections: ("parameters" | "pricing" | "examples")[];
737
+ }>;
738
+ export declare function parseModelListResponseV2(value: unknown): {
739
+ schemaVersion: 2;
740
+ notices: {
741
+ id: string;
742
+ revision: string;
743
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
744
+ message: string;
745
+ title: string;
746
+ details: string;
747
+ expiresAt: string | null;
748
+ action?: {
749
+ label: string;
750
+ url: string;
751
+ } | undefined;
752
+ }[];
753
+ models: {
754
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
755
+ publicModelId: string;
756
+ displayName: string;
757
+ materialMode: "standard" | "certified";
758
+ }[];
759
+ nextCursor: string | null;
760
+ };
761
+ export declare function parseModelDetailResponseV2(value: unknown, publicModelId: string, sections?: ModelSection[]): {
762
+ schemaVersion: 2;
763
+ notices: {
764
+ id: string;
765
+ revision: string;
766
+ kind: "RECHARGE_PROMOTION" | "ANNOUNCEMENT";
767
+ message: string;
768
+ title: string;
769
+ details: string;
770
+ expiresAt: string | null;
771
+ action?: {
772
+ label: string;
773
+ url: string;
774
+ } | undefined;
775
+ }[];
776
+ model: {
777
+ modelType: "TEXT" | "IMAGE" | "VIDEO";
778
+ publicModelId: string;
779
+ displayName: string;
780
+ materialMode: "standard" | "certified";
781
+ description: string;
782
+ routingModes: ("COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST")[];
783
+ examples?: {
784
+ kind: string;
785
+ label: string;
786
+ input: Record<string, unknown>;
787
+ }[] | undefined;
788
+ pricingSnapshot?: {
789
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
790
+ publicModelId: string;
791
+ billingRuleSnapshot: {
792
+ kind: "TEXT_TOKEN" | "IMAGE_GENERATION" | "VIDEO_GENERATION";
793
+ version: 1 | 2 | 3;
794
+ rules?: Record<string, unknown>[] | undefined;
795
+ tiers?: Record<string, unknown>[] | undefined;
796
+ } & {
797
+ [k: string]: unknown;
798
+ };
799
+ }[] | undefined;
800
+ promptSchema?: Record<string, unknown> | undefined;
801
+ paramsSchema?: Record<string, unknown> | undefined;
802
+ mediaRequirements?: Record<string, unknown>[] | undefined;
803
+ textConfig?: {
804
+ outputsThinking: boolean;
805
+ showsThinkingToggle: boolean;
806
+ attachments: {
807
+ textExtraction: {
808
+ maxFilesPerMessage: number;
809
+ enabled: boolean;
810
+ maxFileSizeBytes: number;
811
+ supportedMimeTypes: string[];
812
+ };
813
+ imageInput: {
814
+ enabled: boolean;
815
+ maxFileSizeBytes: number;
816
+ supportedMimeTypes: string[];
817
+ };
818
+ };
819
+ } | undefined;
820
+ reasoningLevels?: {
821
+ routingMode: "COST_FIRST" | "SPEED_FIRST" | "SUCCESS_FIRST";
822
+ reasoningEfforts: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max")[];
823
+ defaultReasoningEffort?: "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
824
+ }[] | undefined;
825
+ };
826
+ includedSections: ("parameters" | "pricing" | "examples")[];
827
+ };
828
+ export type ModelListReadInput = z.infer<z.ZodObject<typeof listModelsReadShape>>;
829
+ export type ModelListResponseV2 = z.infer<typeof listResponse>;
830
+ export type ModelDetailResponseV2 = z.infer<typeof detailResponse>;
831
+ export {};