Variable LoggingMessageNotificationSchemaConst
LoggingMessageNotificationSchema: ZodObject<
extendShape<
{
method: ZodString;
params: ZodOptional<
ZodObject<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
"passthrough",
ZodTypeAny,
objectOutputType<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
ZodTypeAny,
"passthrough",
>,
objectInputType<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
ZodTypeAny,
"passthrough",
>,
>,
>;
},
{
method: ZodLiteral<"notifications/message">;
params: ZodObject<
extendShape<
{ _meta: ZodOptional<ZodRecord<ZodString, ZodUnknown>> },
{
data: ZodUnknown;
level: ZodEnum<
[
"debug",
"info",
"notice",
"warning",
"error",
"critical",
"alert",
"emergency",
],
>;
logger: ZodOptional<ZodString>;
},
>,
"strip",
ZodTypeAny,
{
_meta?: Record<string, unknown>;
data?: unknown;
level:
| "error"
| "debug"
| "info"
| "notice"
| "warning"
| "critical"
| "alert"
| "emergency";
logger?: string;
},
{
_meta?: Record<string, unknown>;
data?: unknown;
level:
| "error"
| "debug"
| "info"
| "notice"
| "warning"
| "critical"
| "alert"
| "emergency";
logger?: string;
},
>;
},
>,
"strip",
ZodTypeAny,
{
method: "notifications/message";
params: {
_meta?: Record<string, unknown>;
data?: unknown;
level:
| "error"
| "debug"
| "info"
| "notice"
| "warning"
| "critical"
| "alert"
| "emergency";
logger?: string;
};
},
{
method: "notifications/message";
params: {
_meta?: Record<string, unknown>;
data?: unknown;
level:
| "error"
| "debug"
| "info"
| "notice"
| "warning"
| "critical"
| "alert"
| "emergency";
logger?: string;
};
},
> = ...
Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.