/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 1e12a181d995
 */

import * as z from "zod/v4";

export type OAuth2TokenAuth = {
  type: "oauth2-token";
  value: string;
};

/** @internal */
export type OAuth2TokenAuth$Outbound = {
  type: "oauth2-token";
  value: string;
};

/** @internal */
export const OAuth2TokenAuth$outboundSchema: z.ZodType<
  OAuth2TokenAuth$Outbound,
  OAuth2TokenAuth
> = z.object({
  type: z.literal("oauth2-token"),
  value: z.string(),
});

export function oAuth2TokenAuthToJSON(
  oAuth2TokenAuth: OAuth2TokenAuth,
): string {
  return JSON.stringify(OAuth2TokenAuth$outboundSchema.parse(oAuth2TokenAuth));
}
