Variable ServerNotificationSchemaConst
ServerNotificationSchema: 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/message">;
params: ZodObject<
extendShape<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
{
data: ZodUnknown;
level: ZodEnum<
[
"debug",
"info",
"notice",
"warning",
"error",
"critical",
"alert",
"emergency",
],
>;
logger: ZodOptional<ZodString>;
},
>,
"passthrough",
ZodTypeAny,
objectOutputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
data: ZodUnknown;
level: ZodEnum<
[(...), (...), (...), (...), (...), (...), (...), (...)],
>;
logger: ZodOptional<ZodString>;
},
>,
ZodTypeAny,
"passthrough",
>,
objectInputType<
extendShape<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
{
data: ZodUnknown;
level: ZodEnum<
[(...), (...), (...), (...), (...), (...), (...), (...)],
>;
logger: ZodOptional<ZodString>;
},
>,
ZodTypeAny,
"passthrough",
>,
>;
},
>,
"strip",
ZodTypeAny,
{
method: "notifications/message";
params: {
_meta?: objectOutputType<{}, ZodTypeAny, "passthrough">;
data?: unknown;
level:
| "error"
| "debug"
| "info"
| "notice"
| "warning"
| "critical"
| "alert"
| "emergency";
logger?: string;
} & { [k: string]: unknown };
},
{
method: "notifications/message";
params: {
_meta?: objectInputType<{}, ZodTypeAny, "passthrough">;
data?: unknown;
level:
| "error"
| "debug"
| "info"
| "notice"
| "warning"
| "critical"
| "alert"
| "emergency";
logger?: string;
} & { [k: string]: unknown };
},
>,
],
> = ...