/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const GetCategoryRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetCategoryRequest$outboundSchema = z.object({
    sourcedId: 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 GetCategoryRequest$;
(function (GetCategoryRequest$) {
    /** @deprecated use `GetCategoryRequest$inboundSchema` instead. */
    GetCategoryRequest$.inboundSchema = GetCategoryRequest$inboundSchema;
    /** @deprecated use `GetCategoryRequest$outboundSchema` instead. */
    GetCategoryRequest$.outboundSchema = GetCategoryRequest$outboundSchema;
})(GetCategoryRequest$ || (GetCategoryRequest$ = {}));
export function getCategoryRequestToJSON(getCategoryRequest) {
    return JSON.stringify(GetCategoryRequest$outboundSchema.parse(getCategoryRequest));
}
export function getCategoryRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCategoryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoryRequest' from JSON`);
}
/** @internal */
export const GetCategoryResponse$inboundSchema = z.object({
    category: components.Category$inboundSchema,
});
/** @internal */
export const GetCategoryResponse$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 GetCategoryResponse$;
(function (GetCategoryResponse$) {
    /** @deprecated use `GetCategoryResponse$inboundSchema` instead. */
    GetCategoryResponse$.inboundSchema = GetCategoryResponse$inboundSchema;
    /** @deprecated use `GetCategoryResponse$outboundSchema` instead. */
    GetCategoryResponse$.outboundSchema = GetCategoryResponse$outboundSchema;
})(GetCategoryResponse$ || (GetCategoryResponse$ = {}));
export function getCategoryResponseToJSON(getCategoryResponse) {
    return JSON.stringify(GetCategoryResponse$outboundSchema.parse(getCategoryResponse));
}
export function getCategoryResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetCategoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCategoryResponse' from JSON`);
}
//# sourceMappingURL=getcategory.js.map