Variable ElicitRequestSchemaConst
ElicitRequestSchema: ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
method: ZodLiteral<"elicitation/create">;
params: ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<ZodUnion<(...)>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ progressToken: ZodOptional<(...)> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
message: ZodString;
requestedSchema: ZodObject<
{
properties: ZodRecord<
ZodString,
ZodUnion<[(...), (...), (...), (...)]>,
>;
required: ZodOptional<ZodArray<ZodString, "many">>;
type: ZodLiteral<"object">;
},
"strip",
ZodTypeAny,
{
properties: Record<
string,
| { default?: ...; description?: ...; title?: ...; type: ... }
| {
default?: ...;
description?: ...;
format?: ...;
maxLength?: ...;
minLength?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
maximum?: ...;
minimum?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
enum: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
oneOf: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
enum: ...;
enumNames?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
items: ...;
maxItems?: ...;
minItems?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
items: ...;
maxItems?: ...;
minItems?: ...;
title?: ...;
type: ...;
},
>;
required?: string[];
type: "object";
},
{
properties: Record<
string,
| { default?: ...; description?: ...; title?: ...; type: ... }
| {
default?: ...;
description?: ...;
format?: ...;
maxLength?: ...;
minLength?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
maximum?: ...;
minimum?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
enum: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
oneOf: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
enum: ...;
enumNames?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
items: ...;
maxItems?: ...;
minItems?: ...;
title?: ...;
type: ...;
}
| {
default?: ...;
description?: ...;
items: ...;
maxItems?: ...;
minItems?: ...;
title?: ...;
type: ...;
},
>;
required?: string[];
type: "object";
},
>;
},
>,
"strip",
ZodTypeAny,
{
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<[(...), (...)]>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| {
default?: boolean;
description?: string;
title?: string;
type: "boolean";
}
| {
default?: string;
description?: string;
format?: "date"
| "uri"
| "email"
| "date-time";
maxLength?: number;
minLength?: number;
title?: string;
type: "string";
}
| {
default?: number;
description?: string;
maximum?: number;
minimum?: number;
title?: string;
type: "number"
| "integer";
}
| {
default?: string;
description?: string;
enum: string[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
oneOf: { const: ...; title: ... }[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
enum: string[];
enumNames?: (...)[];
title?: string;
type: "string";
}
| {
default?: (...)[];
description?: string;
items: { enum: (...)[]; type: "string" };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
}
| {
default?: (...)[];
description?: string;
items: { anyOf: (...)[] };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
},
>;
required?: string[];
type: "object";
};
},
{
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<[(...), (...)]>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| {
default?: boolean;
description?: string;
title?: string;
type: "boolean";
}
| {
default?: string;
description?: string;
format?: "date"
| "uri"
| "email"
| "date-time";
maxLength?: number;
minLength?: number;
title?: string;
type: "string";
}
| {
default?: number;
description?: string;
maximum?: number;
minimum?: number;
title?: string;
type: "number"
| "integer";
}
| {
default?: string;
description?: string;
enum: string[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
oneOf: { const: ...; title: ... }[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
enum: string[];
enumNames?: (...)[];
title?: string;
type: "string";
}
| {
default?: (...)[];
description?: string;
items: { enum: (...)[]; type: "string" };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
}
| {
default?: (...)[];
description?: string;
items: { anyOf: (...)[] };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
},
>;
required?: string[];
type: "object";
};
},
>;
},
>,
"strip",
ZodTypeAny,
{
method: "elicitation/create";
params: {
_meta?: objectOutputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| {
default?: boolean;
description?: string;
title?: string;
type: "boolean";
}
| {
default?: string;
description?: string;
format?: "date"
| "uri"
| "email"
| "date-time";
maxLength?: number;
minLength?: number;
title?: string;
type: "string";
}
| {
default?: number;
description?: string;
maximum?: number;
minimum?: number;
title?: string;
type: "number"
| "integer";
}
| {
default?: string;
description?: string;
enum: string[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
oneOf: { const: string; title: string }[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
enum: string[];
enumNames?: string[];
title?: string;
type: "string";
}
| {
default?: string[];
description?: string;
items: { enum: string[]; type: "string" };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
}
| {
default?: string[];
description?: string;
items: { anyOf: { const: string; title: string }[] };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
},
>;
required?: string[];
type: "object";
};
};
},
{
method: "elicitation/create";
params: {
_meta?: objectInputType<
{ progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>> },
ZodTypeAny,
"passthrough",
>;
message: string;
requestedSchema: {
properties: Record<
string,
| {
default?: boolean;
description?: string;
title?: string;
type: "boolean";
}
| {
default?: string;
description?: string;
format?: "date"
| "uri"
| "email"
| "date-time";
maxLength?: number;
minLength?: number;
title?: string;
type: "string";
}
| {
default?: number;
description?: string;
maximum?: number;
minimum?: number;
title?: string;
type: "number"
| "integer";
}
| {
default?: string;
description?: string;
enum: string[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
oneOf: { const: string; title: string }[];
title?: string;
type: "string";
}
| {
default?: string;
description?: string;
enum: string[];
enumNames?: string[];
title?: string;
type: "string";
}
| {
default?: string[];
description?: string;
items: { enum: string[]; type: "string" };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
}
| {
default?: string[];
description?: string;
items: { anyOf: { const: string; title: string }[] };
maxItems?: number;
minItems?: number;
title?: string;
type: "array";
},
>;
required?: string[];
type: "object";
};
};
},
> = ...
A request from the server to elicit user input via the client. The client should present the message and form fields to the user.