/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { remap as remap$ } from "../../../lib/primitives.js";
import { safeParse } from "../../../lib/schemas.js";
/** @internal */
export const Security$inboundSchema = z.object({
    ApiKeyAuth: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "ApiKeyAuth": "apiKeyAuth",
    });
});
/** @internal */
export const Security$outboundSchema = z.object({
    apiKeyAuth: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        apiKeyAuth: "ApiKeyAuth",
    });
});
export function securityToJSON(security) {
    return JSON.stringify(Security$outboundSchema.parse(security));
}
export function securityFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Security$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Security' from JSON`);
}
//# sourceMappingURL=security.js.map