/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const TransformationSummary$inboundSchema = z.object({
    name: z.string().optional(),
    allowed_for_strict: z.boolean().optional(),
    used: z.boolean().optional(),
    named: z.boolean().optional(),
}).transform((v) => {
    return remap$(v, {
        "allowed_for_strict": "allowedForStrict",
    });
});
/** @internal */
export const TransformationSummary$outboundSchema = z.object({
    name: z.string().optional(),
    allowedForStrict: z.boolean().optional(),
    used: z.boolean().optional(),
    named: z.boolean().optional(),
}).transform((v) => {
    return remap$(v, {
        allowedForStrict: "allowed_for_strict",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var TransformationSummary$;
(function (TransformationSummary$) {
    /** @deprecated use `TransformationSummary$inboundSchema` instead. */
    TransformationSummary$.inboundSchema = TransformationSummary$inboundSchema;
    /** @deprecated use `TransformationSummary$outboundSchema` instead. */
    TransformationSummary$.outboundSchema = TransformationSummary$outboundSchema;
})(TransformationSummary$ || (TransformationSummary$ = {}));
export function transformationSummaryToJSON(transformationSummary) {
    return JSON.stringify(TransformationSummary$outboundSchema.parse(transformationSummary));
}
export function transformationSummaryFromJSON(jsonString) {
    return safeParse(jsonString, (x) => TransformationSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransformationSummary' from JSON`);
}
//# sourceMappingURL=transformationsummary.js.map