/*
 * 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 LogConversationSecurity$inboundSchema = z.object({
    WebIntegrationKey: z.string().optional(),
    ApiIntegrationKey: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "WebIntegrationKey": "webIntegrationKey",
        "ApiIntegrationKey": "apiIntegrationKey",
    });
});
/** @internal */
export const LogConversationSecurity$outboundSchema = z.object({
    webIntegrationKey: z.string().optional(),
    apiIntegrationKey: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        webIntegrationKey: "WebIntegrationKey",
        apiIntegrationKey: "ApiIntegrationKey",
    });
});
export function logConversationSecurityToJSON(logConversationSecurity) {
    return JSON.stringify(LogConversationSecurity$outboundSchema.parse(logConversationSecurity));
}
export function logConversationSecurityFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LogConversationSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LogConversationSecurity' from JSON`);
}
//# sourceMappingURL=logconversation.js.map