/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 6c0610cd28ac
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { OAuth2Token$outboundSchema, } from "./oauth2token.js";
/** @internal */
export const ConnectionCredentials$outboundSchema = z.object({
    oauth: z.nullable(OAuth2Token$outboundSchema).optional(),
    headers: z.nullable(z.record(z.string(), z.string())).optional(),
    bearerToken: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        bearerToken: "bearer_token",
    });
});
export function connectionCredentialsToJSON(connectionCredentials) {
    return JSON.stringify(ConnectionCredentials$outboundSchema.parse(connectionCredentials));
}
//# sourceMappingURL=connectioncredentials.js.map