/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: d7b65fc389a2
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { AuthenticationType$inboundSchema, } from "./authenticationtype.js";
import { ConnectorAuthenticationHeader$inboundSchema, } from "./connectorauthenticationheader.js";
/** @internal */
export const PublicAuthenticationMethod$inboundSchema = z.object({
    method_type: AuthenticationType$inboundSchema,
    headers: z.nullable(z.array(ConnectorAuthenticationHeader$inboundSchema))
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "method_type": "methodType",
    });
});
export function publicAuthenticationMethodFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PublicAuthenticationMethod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicAuthenticationMethod' from JSON`);
}
//# sourceMappingURL=publicauthenticationmethod.js.map