Variable ClientNotificationSchemaConst
ClientNotificationSchema: ZodUnion<
[
ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
method: ZodLiteral<"notifications/cancelled">;
params: ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
{
reason: ZodOptional<ZodString>;
requestId: ZodUnion<[ZodString, ZodNumber]>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
reason: ZodOptional<ZodString>;
requestId: ZodUnion<[(...), (...)]>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
reason: ZodOptional<ZodString>;
requestId: ZodUnion<[(...), (...)]>;
},
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "notifications/cancelled";
params: {
_meta?: objectOutputType<{}, ZodTypeAny, "passthrough">;
reason?: string;
requestId: string | number;
} & { [k: string]: unknown };
},
{
method: "notifications/cancelled";
params: {
_meta?: objectInputType<{}, ZodTypeAny, "passthrough">;
reason?: string;
requestId: string | number;
} & { [k: string]: unknown };
},
>,
ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
method: ZodLiteral<"notifications/progress">;
params: ZodObject<
extendShape<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
message: ZodOptional<ZodString>;
progress: ZodNumber;
total: ZodOptional<ZodNumber>;
},
>,
{ progressToken: ZodUnion<[ZodString, ZodNumber]> },
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
extendShape<
{ _meta: ZodOptional<(...)> },
{
message: ZodOptional<(...)>;
progress: ZodNumber;
total: ZodOptional<(...)>;
},
>,
{ progressToken: ZodUnion<[(...), (...)]> },
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
extendShape<
{ _meta: ZodOptional<(...)> },
{
message: ZodOptional<(...)>;
progress: ZodNumber;
total: ZodOptional<(...)>;
},
>,
{ progressToken: ZodUnion<[(...), (...)]> },
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "notifications/progress";
params: {
_meta?: objectOutputType<{}, ZodTypeAny, "passthrough">;
message?: string;
progress: number;
progressToken: string | number;
total?: number;
} & { [k: string]: unknown };
},
{
method: "notifications/progress";
params: {
_meta?: objectInputType<{}, ZodTypeAny, "passthrough">;
message?: string;
progress: number;
progressToken: string | number;
total?: number;
} & { [k: string]: unknown };
},
>,
ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{ method: ZodLiteral<"notifications/initialized"> },
>,
"strip",
ZodTypeAny,
{
method: "notifications/initialized";
params?: objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
{
method: "notifications/initialized";
params?: objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
>,
ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{ method: ZodLiteral<"notifications/roots/list_changed"> },
>,
"strip",
ZodTypeAny,
{
method: "notifications/roots/list_changed";
params?: objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
{
method: "notifications/roots/list_changed";
params?: objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
>,
],
> = ...