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