/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const SchemeCloudinaryAuth$inboundSchema = z.object({
    api_key: z.string(),
    api_secret: z.string(),
}).transform((v) => {
    return remap$(v, {
        "api_key": "apiKey",
        "api_secret": "apiSecret",
    });
});
/** @internal */
export const SchemeCloudinaryAuth$outboundSchema = z.object({
    apiKey: z.string(),
    apiSecret: z.string(),
}).transform((v) => {
    return remap$(v, {
        apiKey: "api_key",
        apiSecret: "api_secret",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var SchemeCloudinaryAuth$;
(function (SchemeCloudinaryAuth$) {
    /** @deprecated use `SchemeCloudinaryAuth$inboundSchema` instead. */
    SchemeCloudinaryAuth$.inboundSchema = SchemeCloudinaryAuth$inboundSchema;
    /** @deprecated use `SchemeCloudinaryAuth$outboundSchema` instead. */
    SchemeCloudinaryAuth$.outboundSchema = SchemeCloudinaryAuth$outboundSchema;
})(SchemeCloudinaryAuth$ || (SchemeCloudinaryAuth$ = {}));
export function schemeCloudinaryAuthToJSON(schemeCloudinaryAuth) {
    return JSON.stringify(SchemeCloudinaryAuth$outboundSchema.parse(schemeCloudinaryAuth));
}
export function schemeCloudinaryAuthFromJSON(jsonString) {
    return safeParse(jsonString, (x) => SchemeCloudinaryAuth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SchemeCloudinaryAuth' from JSON`);
}
//# sourceMappingURL=schemecloudinaryauth.js.map