"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RpcError = exports.JsonRpcError = void 0;
const superstruct_1 = require("superstruct");
exports.JsonRpcError = (0, superstruct_1.type)({
    jsonrpc: (0, superstruct_1.literal)("2.0"),
    id: (0, superstruct_1.union)([(0, superstruct_1.number)(), (0, superstruct_1.string)()]),
    error: (0, superstruct_1.type)({
        code: (0, superstruct_1.number)(),
        message: (0, superstruct_1.string)(),
        data: (0, superstruct_1.nullable)((0, superstruct_1.any)()),
    }),
});
exports.RpcError = (0, superstruct_1.type)({
    reason: (0, superstruct_1.string)(),
    body: (0, superstruct_1.string)(),
});
//# sourceMappingURL=types.js.map