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