/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 9da31ad0b572
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const APIKeyAuth$inboundSchema = z
    .object({
    type: z.literal("api-key"),
    value: z.string(),
});
/** @internal */
export const APIKeyAuth$outboundSchema = z.object({
    type: z.literal("api-key"),
    value: z.string(),
});
export function apiKeyAuthToJSON(apiKeyAuth) {
    return JSON.stringify(APIKeyAuth$outboundSchema.parse(apiKeyAuth));
}
export function apiKeyAuthFromJSON(jsonString) {
    return safeParse(jsonString, (x) => APIKeyAuth$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'APIKeyAuth' from JSON`);
}
//# sourceMappingURL=apikeyauth.js.map