/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 873ca51c5774
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const OAuth2TokenAuth$inboundSchema = z.object({
    type: z.literal("oauth2-token"),
    value: z.string(),
});
/** @internal */
export const OAuth2TokenAuth$outboundSchema = z.object({
    type: z.literal("oauth2-token"),
    value: z.string(),
});
export function oAuth2TokenAuthToJSON(oAuth2TokenAuth) {
    return JSON.stringify(OAuth2TokenAuth$outboundSchema.parse(oAuth2TokenAuth));
}
export function oAuth2TokenAuthFromJSON(jsonString) {
    return safeParse(jsonString, (x) => OAuth2TokenAuth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OAuth2TokenAuth' from JSON`);
}
//# sourceMappingURL=oauth2tokenauth.js.map