UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

27 lines 958 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.jsonLiteralSchema = exports.literalSchema = void 0; const zod_1 = __importDefault(require("zod")); /** * The zod schema for JSON literal primitives * @see {@link https://zod.dev/?id=json-type|Zod Documentation} */ exports.literalSchema = zod_1.default.union([ zod_1.default.string(), zod_1.default.number(), zod_1.default.boolean(), zod_1.default.null(), ]); /** * The zod schema for JSON * @see {@link https://zod.dev/?id=json-type|Zod Documentation} */ exports.jsonLiteralSchema = zod_1.default.lazy(() => zod_1.default.union([ exports.literalSchema, zod_1.default.array(exports.jsonLiteralSchema), zod_1.default.record(exports.jsonLiteralSchema), ])); //# sourceMappingURL=jsonLiteralSchema.js.map