/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const UpdateCategoryRequestBody$inboundSchema = z.object({
    category: components.Category$inboundSchema,
});
/** @internal */
export const UpdateCategoryRequestBody$outboundSchema = z.object({
    category: components.Category$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateCategoryRequestBody$;
(function (UpdateCategoryRequestBody$) {
    /** @deprecated use `UpdateCategoryRequestBody$inboundSchema` instead. */
    UpdateCategoryRequestBody$.inboundSchema = UpdateCategoryRequestBody$inboundSchema;
    /** @deprecated use `UpdateCategoryRequestBody$outboundSchema` instead. */
    UpdateCategoryRequestBody$.outboundSchema = UpdateCategoryRequestBody$outboundSchema;
})(UpdateCategoryRequestBody$ || (UpdateCategoryRequestBody$ = {}));
export function updateCategoryRequestBodyToJSON(updateCategoryRequestBody) {
    return JSON.stringify(UpdateCategoryRequestBody$outboundSchema.parse(updateCategoryRequestBody));
}
export function updateCategoryRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateCategoryRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCategoryRequestBody' from JSON`);
}
/** @internal */
export const UpdateCategoryRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => UpdateCategoryRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateCategoryRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => UpdateCategoryRequestBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateCategoryRequest$;
(function (UpdateCategoryRequest$) {
    /** @deprecated use `UpdateCategoryRequest$inboundSchema` instead. */
    UpdateCategoryRequest$.inboundSchema = UpdateCategoryRequest$inboundSchema;
    /** @deprecated use `UpdateCategoryRequest$outboundSchema` instead. */
    UpdateCategoryRequest$.outboundSchema = UpdateCategoryRequest$outboundSchema;
})(UpdateCategoryRequest$ || (UpdateCategoryRequest$ = {}));
export function updateCategoryRequestToJSON(updateCategoryRequest) {
    return JSON.stringify(UpdateCategoryRequest$outboundSchema.parse(updateCategoryRequest));
}
export function updateCategoryRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateCategoryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCategoryRequest' from JSON`);
}
/** @internal */
export const UpdateCategoryResponse$inboundSchema = z.object({
    category: components.Category$inboundSchema,
});
/** @internal */
export const UpdateCategoryResponse$outboundSchema = z.object({
    category: components.Category$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateCategoryResponse$;
(function (UpdateCategoryResponse$) {
    /** @deprecated use `UpdateCategoryResponse$inboundSchema` instead. */
    UpdateCategoryResponse$.inboundSchema = UpdateCategoryResponse$inboundSchema;
    /** @deprecated use `UpdateCategoryResponse$outboundSchema` instead. */
    UpdateCategoryResponse$.outboundSchema = UpdateCategoryResponse$outboundSchema;
})(UpdateCategoryResponse$ || (UpdateCategoryResponse$ = {}));
export function updateCategoryResponseToJSON(updateCategoryResponse) {
    return JSON.stringify(UpdateCategoryResponse$outboundSchema.parse(updateCategoryResponse));
}
export function updateCategoryResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateCategoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCategoryResponse' from JSON`);
}
//# sourceMappingURL=updatecategory.js.map