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

import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";

export type Security = {
  apiKey?: string | undefined;
};

/** @internal */
export type Security$Outbound = {
  ApiKey?: string | undefined;
};

/** @internal */
export const Security$outboundSchema: z.ZodType<Security$Outbound, Security> = z
  .object({
    apiKey: z.string().optional(),
  }).transform((v) => {
    return remap$(v, {
      apiKey: "ApiKey",
    });
  });

export function securityToJSON(security: Security): string {
  return JSON.stringify(Security$outboundSchema.parse(security));
}
