/*
 * 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 { ConnectorAuthenticationHeader$inboundSchema, } from "./connectorauthenticationheader.js";
import { OutboundAuthenticationType$inboundSchema, } from "./outboundauthenticationtype.js";
/** @internal */
export const PublicAuthenticationMethod$inboundSchema = z.object({
    method_type: OutboundAuthenticationType$inboundSchema,
    headers: z.nullable(z.array(ConnectorAuthenticationHeader$inboundSchema))
        .optional(),
    has_default_credentials: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        "method_type": "methodType",
        "has_default_credentials": "hasDefaultCredentials",
    });
});
export function publicAuthenticationMethodFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PublicAuthenticationMethod$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicAuthenticationMethod' from JSON`);
}
//# sourceMappingURL=publicauthenticationmethod.js.map