/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 262fdf294dc4
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { ConnectionConfigType$inboundSchema, } from "./connectionconfigtype.js";
/** @internal */
export const PublicConnectionConfig$inboundSchema = z.object({
    type: ConnectionConfigType$inboundSchema.optional(),
    base_url: z.nullable(z.string()).optional(),
    headers: z.nullable(z.record(z.string(), z.string())).optional(),
    signed: z.nullable(z.boolean()).optional(),
}).transform((v) => {
    return remap$(v, {
        "base_url": "baseUrl",
    });
});
export function publicConnectionConfigFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PublicConnectionConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicConnectionConfig' from JSON`);
}
//# sourceMappingURL=publicconnectionconfig.js.map