Variable JSONRPCMessageSchemaConst
JSONRPCMessageSchema: ZodUnion<
[
ZodObject<
extendShape<
{ id: ZodUnion<[ZodString, ZodNumber]>; jsonrpc: ZodLiteral<"2.0"> },
{
method: ZodString;
params: ZodOptional<
ZodObject<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ... },
"passthrough",
ZodTypeAny,
objectOutputType<(...), (...), (...)>,
objectInputType<(...), (...), (...)>,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<ZodObject<(...), (...), (...), (...), (...)>>;
},
ZodTypeAny,
"passthrough",
>,
>,
>;
},
>,
"strict",
ZodTypeAny,
{
id: string
| number;
jsonrpc: "2.0";
method: string;
params?: objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
{
id: string
| number;
jsonrpc: "2.0";
method: string;
params?: objectInputType<
{
_meta: ZodOptional<
ZodObject<
{ progressToken: ZodOptional<(...)> },
"passthrough",
ZodTypeAny,
objectOutputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
objectInputType<{ progressToken: ... }, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
>,
ZodObject<
extendShape<
{ jsonrpc: ZodLiteral<"2.0"> },
{
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",
>,
>,
>;
},
>,
"strict",
ZodTypeAny,
{
jsonrpc: "2.0";
method: string;
params?: objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
{
jsonrpc: "2.0";
method: string;
params?: objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>;
},
>,
ZodObject<
{
id: ZodUnion<[ZodString, ZodNumber]>;
jsonrpc: ZodLiteral<"2.0">;
result: ZodObject<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
"passthrough",
ZodTypeAny,
objectOutputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
objectInputType<
{
_meta: ZodOptional<
ZodObject<
{},
"passthrough",
ZodTypeAny,
objectOutputType<{}, ZodTypeAny, "passthrough">,
objectInputType<{}, ZodTypeAny, "passthrough">,
>,
>;
},
ZodTypeAny,
"passthrough",
>,
>;
},
"strict",
ZodTypeAny,
{
id: string
| number;
jsonrpc: "2.0";
result: { _meta?: objectOutputType<{}, ZodTypeAny, "passthrough"> } & {
[k: string]: unknown;
};
},
{
id: string
| number;
jsonrpc: "2.0";
result: { _meta?: objectInputType<{}, ZodTypeAny, "passthrough"> } & {
[k: string]: unknown;
};
},
>,
ZodObject<
{
error: ZodObject<
{
code: ZodNumber;
data: ZodOptional<ZodUnknown>;
message: ZodString;
},
"strip",
ZodTypeAny,
{ code: number; data?: unknown; message: string },
{ code: number; data?: unknown; message: string },
>;
id: ZodUnion<[ZodString, ZodNumber]>;
jsonrpc: ZodLiteral<"2.0">;
},
"strict",
ZodTypeAny,
{
error: { code: number; data?: unknown; message: string };
id: string | number;
jsonrpc: "2.0";
},
{
error: { code: number; data?: unknown; message: string };
id: string | number;
jsonrpc: "2.0";
},
>,
],
> = ...