/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 2332b938fac4
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { AuthenticationConfiguration$inboundSchema, } from "./authenticationconfiguration.js";
import { OutboundAuthenticationType$inboundSchema, } from "./outboundauthenticationtype.js";
/** @internal */
export const CredentialsResponse$inboundSchema = z.object({
    credentials: z.array(AuthenticationConfiguration$inboundSchema),
    connector_preset_credentials_for_auth: z.array(OutboundAuthenticationType$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "connector_preset_credentials_for_auth": "connectorPresetCredentialsForAuth",
    });
});
export function credentialsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CredentialsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CredentialsResponse' from JSON`);
}
//# sourceMappingURL=credentialsresponse.js.map