/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: dbc7e83d8be8
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { ConnectionCredentials$outboundSchema, } from "./connectioncredentials.js";
/** @internal */
export const CredentialsCreateOrUpdate$outboundSchema = z.object({
    name: z.string(),
    isDefault: z.nullable(z.boolean()).optional(),
    credentials: z.nullable(ConnectionCredentials$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        isDefault: "is_default",
    });
});
export function credentialsCreateOrUpdateToJSON(credentialsCreateOrUpdate) {
    return JSON.stringify(CredentialsCreateOrUpdate$outboundSchema.parse(credentialsCreateOrUpdate));
}
//# sourceMappingURL=credentialscreateorupdate.js.map