@dondonudonjp/vertexai-imagen-mcp-server
Version:
[DEPRECATED] MCP Server for Vertex AI Imagen image generation. Imagen endpoints shut down 2026-06-30; migrate to the nanoBanana MCP Server (Gemini image models).
353 lines • 12 kB
TypeScript
/**
* Zod validation schemas for tool arguments
* Provides runtime validation to complement TypeScript's compile-time type checking
*/
import { z } from 'zod';
/**
* Generate Image Arguments Schema
*/
export declare const GenerateImageArgsSchema: z.ZodObject<{
prompt: z.ZodString;
output_path: z.ZodOptional<z.ZodString>;
aspect_ratio: z.ZodDefault<z.ZodEnum<{
"1:1": "1:1";
"3:4": "3:4";
"4:3": "4:3";
"9:16": "9:16";
"16:9": "16:9";
}>>;
return_base64: z.ZodOptional<z.ZodBoolean>;
include_thumbnail: z.ZodOptional<z.ZodBoolean>;
safety_level: z.ZodDefault<z.ZodEnum<{
BLOCK_NONE: "BLOCK_NONE";
BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
}>>;
person_generation: z.ZodDefault<z.ZodEnum<{
DONT_ALLOW: "DONT_ALLOW";
ALLOW_ADULT: "ALLOW_ADULT";
ALLOW_ALL: "ALLOW_ALL";
}>>;
language: z.ZodDefault<z.ZodEnum<{
auto: "auto";
en: "en";
zh: "zh";
"zh-TW": "zh-TW";
hi: "hi";
ja: "ja";
ko: "ko";
pt: "pt";
es: "es";
}>>;
model: z.ZodDefault<z.ZodEnum<{
"imagen-4.0-ultra-generate-001": "imagen-4.0-ultra-generate-001";
"imagen-4.0-fast-generate-001": "imagen-4.0-fast-generate-001";
"imagen-4.0-generate-001": "imagen-4.0-generate-001";
"imagen-3.0-generate-002": "imagen-3.0-generate-002";
"imagen-3.0-fast-generate-001": "imagen-3.0-fast-generate-001";
}>>;
region: z.ZodOptional<z.ZodString>;
sample_count: z.ZodDefault<z.ZodNumber>;
sample_image_size: z.ZodOptional<z.ZodEnum<{
"1K": "1K";
"2K": "2K";
}>>;
}, z.core.$strip>;
/**
* Upscale Image Arguments Schema
*/
export declare const UpscaleImageArgsSchema: z.ZodObject<{
input_path: z.ZodString;
output_path: z.ZodOptional<z.ZodString>;
scale_factor: z.ZodDefault<z.ZodEnum<{
2: "2";
4: "4";
}>>;
return_base64: z.ZodOptional<z.ZodBoolean>;
include_thumbnail: z.ZodOptional<z.ZodBoolean>;
region: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
* Edit Image Arguments Schema
*/
export declare const EditImageArgsSchema: z.ZodObject<{
prompt: z.ZodString;
reference_image_base64: z.ZodOptional<z.ZodString>;
reference_image_path: z.ZodOptional<z.ZodString>;
mask_image_base64: z.ZodOptional<z.ZodString>;
mask_image_path: z.ZodOptional<z.ZodString>;
mask_mode: z.ZodOptional<z.ZodEnum<{
background: "background";
foreground: "foreground";
semantic: "semantic";
user_provided: "user_provided";
mask_free: "mask_free";
}>>;
mask_classes: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
mask_dilation: z.ZodOptional<z.ZodNumber>;
edit_mode: z.ZodOptional<z.ZodEnum<{
inpaint_removal: "inpaint_removal";
inpaint_insertion: "inpaint_insertion";
bgswap: "bgswap";
outpainting: "outpainting";
}>>;
base_steps: z.ZodOptional<z.ZodNumber>;
output_path: z.ZodOptional<z.ZodString>;
return_base64: z.ZodOptional<z.ZodBoolean>;
include_thumbnail: z.ZodOptional<z.ZodBoolean>;
guidance_scale: z.ZodOptional<z.ZodNumber>;
sample_count: z.ZodDefault<z.ZodNumber>;
negative_prompt: z.ZodOptional<z.ZodString>;
model: z.ZodDefault<z.ZodEnum<{
"imagen-3.0-capability-001": "imagen-3.0-capability-001";
}>>;
region: z.ZodOptional<z.ZodString>;
sample_image_size: z.ZodOptional<z.ZodEnum<{
"1K": "1K";
"2K": "2K";
}>>;
}, z.core.$strip>;
export declare const CustomizeImageArgsSchema: z.ZodObject<{
prompt: z.ZodString;
control_image_base64: z.ZodOptional<z.ZodString>;
control_image_path: z.ZodOptional<z.ZodString>;
control_type: z.ZodOptional<z.ZodEnum<{
face_mesh: "face_mesh";
canny: "canny";
scribble: "scribble";
}>>;
enable_control_computation: z.ZodOptional<z.ZodBoolean>;
subject_images: z.ZodOptional<z.ZodArray<z.ZodObject<{
image_base64: z.ZodOptional<z.ZodString>;
image_path: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>>;
subject_description: z.ZodOptional<z.ZodString>;
subject_type: z.ZodOptional<z.ZodEnum<{
person: "person";
animal: "animal";
product: "product";
default: "default";
}>>;
style_image_base64: z.ZodOptional<z.ZodString>;
style_image_path: z.ZodOptional<z.ZodString>;
style_description: z.ZodOptional<z.ZodString>;
output_path: z.ZodOptional<z.ZodString>;
aspect_ratio: z.ZodDefault<z.ZodEnum<{
"1:1": "1:1";
"3:4": "3:4";
"4:3": "4:3";
"9:16": "9:16";
"16:9": "16:9";
}>>;
return_base64: z.ZodOptional<z.ZodBoolean>;
include_thumbnail: z.ZodOptional<z.ZodBoolean>;
safety_level: z.ZodDefault<z.ZodEnum<{
BLOCK_NONE: "BLOCK_NONE";
BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
}>>;
person_generation: z.ZodDefault<z.ZodEnum<{
DONT_ALLOW: "DONT_ALLOW";
ALLOW_ADULT: "ALLOW_ADULT";
ALLOW_ALL: "ALLOW_ALL";
}>>;
language: z.ZodDefault<z.ZodEnum<{
auto: "auto";
en: "en";
zh: "zh";
"zh-TW": "zh-TW";
hi: "hi";
ja: "ja";
ko: "ko";
pt: "pt";
es: "es";
}>>;
negative_prompt: z.ZodOptional<z.ZodString>;
sample_count: z.ZodDefault<z.ZodNumber>;
model: z.ZodDefault<z.ZodEnum<{
"imagen-3.0-capability-001": "imagen-3.0-capability-001";
}>>;
region: z.ZodOptional<z.ZodString>;
sample_image_size: z.ZodOptional<z.ZodEnum<{
"1K": "1K";
"2K": "2K";
}>>;
}, z.core.$strip>;
/**
* Generate and Upscale Image Arguments Schema
*/
export declare const GenerateAndUpscaleImageArgsSchema: z.ZodObject<{
prompt: z.ZodString;
output_path: z.ZodOptional<z.ZodString>;
aspect_ratio: z.ZodDefault<z.ZodEnum<{
"1:1": "1:1";
"3:4": "3:4";
"4:3": "4:3";
"9:16": "9:16";
"16:9": "16:9";
}>>;
scale_factor: z.ZodDefault<z.ZodEnum<{
2: "2";
4: "4";
}>>;
return_base64: z.ZodOptional<z.ZodBoolean>;
include_thumbnail: z.ZodOptional<z.ZodBoolean>;
safety_level: z.ZodDefault<z.ZodEnum<{
BLOCK_NONE: "BLOCK_NONE";
BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
BLOCK_LOW_AND_ABOVE: "BLOCK_LOW_AND_ABOVE";
}>>;
person_generation: z.ZodDefault<z.ZodEnum<{
DONT_ALLOW: "DONT_ALLOW";
ALLOW_ADULT: "ALLOW_ADULT";
ALLOW_ALL: "ALLOW_ALL";
}>>;
language: z.ZodDefault<z.ZodEnum<{
auto: "auto";
en: "en";
zh: "zh";
"zh-TW": "zh-TW";
hi: "hi";
ja: "ja";
ko: "ko";
pt: "pt";
es: "es";
}>>;
model: z.ZodDefault<z.ZodEnum<{
"imagen-4.0-ultra-generate-001": "imagen-4.0-ultra-generate-001";
"imagen-4.0-fast-generate-001": "imagen-4.0-fast-generate-001";
"imagen-4.0-generate-001": "imagen-4.0-generate-001";
"imagen-3.0-generate-002": "imagen-3.0-generate-002";
"imagen-3.0-fast-generate-001": "imagen-3.0-fast-generate-001";
}>>;
region: z.ZodOptional<z.ZodString>;
sample_image_size: z.ZodOptional<z.ZodEnum<{
"1K": "1K";
"2K": "2K";
}>>;
}, z.core.$strip>;
/**
* Job-related schemas
*/
export declare const StartJobArgsSchema: z.ZodObject<{
tool_type: z.ZodEnum<{
generate: "generate";
edit: "edit";
customize: "customize";
upscale: "upscale";
generate_and_upscale: "generate_and_upscale";
}>;
params: z.ZodRecord<z.ZodString, z.ZodAny>;
}, z.core.$strip>;
export declare const CheckJobStatusArgsSchema: z.ZodObject<{
job_id: z.ZodString;
}, z.core.$strip>;
export declare const GetJobResultArgsSchema: z.ZodObject<{
job_id: z.ZodString;
}, z.core.$strip>;
export declare const CancelJobArgsSchema: z.ZodObject<{
job_id: z.ZodString;
}, z.core.$strip>;
export declare const ListJobsArgsSchema: z.ZodObject<{
status: z.ZodOptional<z.ZodEnum<{
pending: "pending";
running: "running";
completed: "completed";
failed: "failed";
}>>;
limit: z.ZodDefault<z.ZodNumber>;
}, z.core.$strip>;
/**
* History-related schemas
*/
export declare const ListHistoryArgsSchema: z.ZodObject<{
filters: z.ZodOptional<z.ZodObject<{
tool_name: z.ZodOptional<z.ZodString>;
model: z.ZodOptional<z.ZodString>;
aspect_ratio: z.ZodOptional<z.ZodString>;
date_from: z.ZodOptional<z.ZodString>;
date_to: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
sort_by: z.ZodDefault<z.ZodEnum<{
created_at: "created_at";
file_size: "file_size";
}>>;
sort_order: z.ZodDefault<z.ZodEnum<{
asc: "asc";
desc: "desc";
}>>;
limit: z.ZodDefault<z.ZodNumber>;
offset: z.ZodDefault<z.ZodNumber>;
}, z.core.$strip>;
export declare const SearchHistoryArgsSchema: z.ZodObject<{
query: z.ZodString;
limit: z.ZodDefault<z.ZodNumber>;
filters: z.ZodOptional<z.ZodObject<{
tool_name: z.ZodOptional<z.ZodString>;
model: z.ZodOptional<z.ZodString>;
aspect_ratio: z.ZodOptional<z.ZodString>;
date_from: z.ZodOptional<z.ZodString>;
date_to: z.ZodOptional<z.ZodString>;
}, z.core.$strip>>;
}, z.core.$strip>;
export declare const GetHistoryByUuidArgsSchema: z.ZodObject<{
uuid: z.ZodString;
}, z.core.$strip>;
export declare const GetMetadataFromImageArgsSchema: z.ZodObject<{
image_path: z.ZodString;
}, z.core.$strip>;
/**
* Template-related schemas
*/
export declare const SavePromptTemplateArgsSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodString;
template: z.ZodString;
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
default_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
export declare const ListPromptTemplatesArgsSchema: z.ZodObject<{
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
search: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const GetTemplateDetailArgsSchema: z.ZodObject<{
template_name: z.ZodString;
}, z.core.$strip>;
export declare const GenerateFromTemplateArgsSchema: z.ZodObject<{
template_name: z.ZodString;
variable_values: z.ZodRecord<z.ZodString, z.ZodAny>;
override_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
}, z.core.$strip>;
export declare const DeleteTemplateArgsSchema: z.ZodObject<{
template_name: z.ZodString;
}, z.core.$strip>;
export declare const UpdateTemplateArgsSchema: z.ZodObject<{
template_name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
template: z.ZodOptional<z.ZodString>;
variables: z.ZodOptional<z.ZodArray<z.ZodString>>;
default_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strip>;
/**
* Other tool schemas
*/
export declare const ListGeneratedImagesArgsSchema: z.ZodObject<{
directory: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export declare const ListSemanticClassesArgsSchema: z.ZodObject<{
category: z.ZodOptional<z.ZodString>;
search: z.ZodOptional<z.ZodString>;
ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
}, z.core.$strip>;
export declare const CustomizeImageFromYamlArgsSchema: z.ZodObject<{
yaml_path: z.ZodString;
}, z.core.$strip>;
export declare const CustomizeImageFromYamlInlineArgsSchema: z.ZodObject<{
yaml_content: z.ZodString;
}, z.core.$strip>;
//# sourceMappingURL=schemas.d.ts.map