@arizeai/phoenix-client
Version:
A client for the Phoenix API
956 lines (955 loc) • 529 kB
TypeScript
import { PromptProviderSDKs } from "../../types/prompts";
import { z } from "zod";
export declare const SDKProviderIdMap: Record<PromptProviderSDKs, string>;
/**
* SDK Provider Converter Map
*
* This map contains the converters for each SDK provider.
*
* If a "from" direction is not supported for a particular provider, you can set the schema to `z.unknown()`,
* passing contents directly through, but forcing the caller to handle the unknown type.
*/
export declare const SDKProviderConverterMap: {
OPENAI: import("./types").SDKConverters<z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
role: z.ZodLiteral<"assistant">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
tool_call_id: z.ZodOptional<z.ZodString>;
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodEffects<z.ZodOptional<z.ZodLiteral<"function">>, "function", "function" | undefined>;
id: z.ZodString;
function: z.ZodObject<{
name: z.ZodString;
arguments: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
}, "strip", z.ZodTypeAny, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
type: "function";
id: string;
}, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
id: string;
type?: "function" | undefined;
}>, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
role: z.ZodLiteral<"assistant">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
tool_call_id: z.ZodOptional<z.ZodString>;
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodEffects<z.ZodOptional<z.ZodLiteral<"function">>, "function", "function" | undefined>;
id: z.ZodString;
function: z.ZodObject<{
name: z.ZodString;
arguments: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
}, "strip", z.ZodTypeAny, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
type: "function";
id: string;
}, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
id: string;
type?: "function" | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
role: z.ZodLiteral<"assistant">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
tool_call_id: z.ZodOptional<z.ZodString>;
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
type: z.ZodEffects<z.ZodOptional<z.ZodLiteral<"function">>, "function", "function" | undefined>;
id: z.ZodString;
function: z.ZodObject<{
name: z.ZodString;
arguments: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
}, "strip", z.ZodTypeAny, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
type: "function";
id: string;
}, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
id: string;
type?: "function" | undefined;
}>, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
role: z.ZodLiteral<"tool">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
tool_call_id: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
role: z.ZodLiteral<"tool">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
tool_call_id: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
role: z.ZodLiteral<"tool">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
tool_call_id: z.ZodString;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
role: z.ZodLiteral<"function">;
content: z.ZodNullable<z.ZodString>;
name: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
role: z.ZodLiteral<"function">;
content: z.ZodNullable<z.ZodString>;
name: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
role: z.ZodLiteral<"function">;
content: z.ZodNullable<z.ZodString>;
name: z.ZodString;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
role: z.ZodLiteral<"user">;
content: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "image_url";
image_url: {
url: string;
};
}, {
type: "image_url";
image_url: {
url: string;
};
}>]>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
role: z.ZodLiteral<"user">;
content: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "image_url";
image_url: {
url: string;
};
}, {
type: "image_url";
image_url: {
url: string;
};
}>]>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
role: z.ZodLiteral<"user">;
content: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "image_url";
image_url: {
url: string;
};
}, {
type: "image_url";
image_url: {
url: string;
};
}>]>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
role: z.ZodLiteral<"system">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
role: z.ZodLiteral<"system">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
role: z.ZodLiteral<"system">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
role: z.ZodLiteral<"developer">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
role: z.ZodLiteral<"developer">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
role: z.ZodLiteral<"developer">;
content: z.ZodUnion<[z.ZodArray<z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, "many">, z.ZodString]>;
name: z.ZodOptional<z.ZodString>;
}, z.ZodTypeAny, "passthrough">>]>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"text">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "text";
}, {
text: string;
type: "text";
}>, z.ZodObject<{
type: z.ZodLiteral<"image_url">;
image_url: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "image_url";
image_url: {
url: string;
};
}, {
type: "image_url";
image_url: {
url: string;
};
}>]>, z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"none">, z.ZodLiteral<"required">, z.ZodObject<{
type: z.ZodLiteral<"function">;
function: z.ZodObject<{
name: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
}, {
name: string;
}>;
}, "strip", z.ZodTypeAny, {
function: {
name: string;
};
type: "function";
}, {
function: {
name: string;
};
type: "function";
}>]>, z.ZodObject<{
type: z.ZodEffects<z.ZodOptional<z.ZodLiteral<"function">>, "function", "function" | undefined>;
id: z.ZodString;
function: z.ZodObject<{
name: z.ZodString;
arguments: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
arguments: z.ZodString;
}, z.ZodTypeAny, "passthrough">>;
}, "strip", z.ZodTypeAny, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
type: "function";
id: string;
}, {
function: {
name: string;
arguments: string;
} & {
[k: string]: unknown;
};
id: string;
type?: "function" | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"function">;
function: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
parameters: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
parameters: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
parameters: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, z.ZodTypeAny, "passthrough">>;
}, z.ZodTypeAny, "passthrough">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodLiteral<"function">;
function: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
parameters: z.ZodObject<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}, {
anyOf: z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">[];
}>]>>;
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
additionalProperties: z.ZodOptional<z.ZodBoolean>;
} & {
strict: z.ZodOptional<z.ZodBoolean>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodLiteral<"object">;
properties: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
anyOf: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, z.ZodTypeAny, "passthrough">>, "many">;
}, "strip", z.ZodTypeAny, {
anyOf: z.objectOutputType<{
type: z.ZodEnum<["string", "number", "boolean", "object", "array", "null", "integer"]>;
description: z.ZodOptional<z.ZodString>;