/*
 * 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 CreateRequest$inboundSchema = z.object({
    transformation: z.string(),
    allowed_for_strict: z.boolean().optional(),
}).transform((v) => {
    return remap$(v, {
        "allowed_for_strict": "allowedForStrict",
    });
});
/** @internal */
export const CreateRequest$outboundSchema = z.object({
    transformation: z.string(),
    allowedForStrict: 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 CreateRequest$;
(function (CreateRequest$) {
    /** @deprecated use `CreateRequest$inboundSchema` instead. */
    CreateRequest$.inboundSchema = CreateRequest$inboundSchema;
    /** @deprecated use `CreateRequest$outboundSchema` instead. */
    CreateRequest$.outboundSchema = CreateRequest$outboundSchema;
})(CreateRequest$ || (CreateRequest$ = {}));
export function createRequestToJSON(createRequest) {
    return JSON.stringify(CreateRequest$outboundSchema.parse(createRequest));
}
export function createRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateRequest' from JSON`);
}
//# sourceMappingURL=createrequest.js.map