/*
 * 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 CreateCategoryRequest$inboundSchema = z.object({
    category: components.Category$inboundSchema,
});
/** @internal */
export const CreateCategoryRequest$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 CreateCategoryRequest$;
(function (CreateCategoryRequest$) {
    /** @deprecated use `CreateCategoryRequest$inboundSchema` instead. */
    CreateCategoryRequest$.inboundSchema = CreateCategoryRequest$inboundSchema;
    /** @deprecated use `CreateCategoryRequest$outboundSchema` instead. */
    CreateCategoryRequest$.outboundSchema = CreateCategoryRequest$outboundSchema;
})(CreateCategoryRequest$ || (CreateCategoryRequest$ = {}));
export function createCategoryRequestToJSON(createCategoryRequest) {
    return JSON.stringify(CreateCategoryRequest$outboundSchema.parse(createCategoryRequest));
}
export function createCategoryRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateCategoryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCategoryRequest' from JSON`);
}
/** @internal */
export const CreateCategorySourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateCategorySourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: 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 CreateCategorySourcedIdPairs$;
(function (CreateCategorySourcedIdPairs$) {
    /** @deprecated use `CreateCategorySourcedIdPairs$inboundSchema` instead. */
    CreateCategorySourcedIdPairs$.inboundSchema = CreateCategorySourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateCategorySourcedIdPairs$outboundSchema` instead. */
    CreateCategorySourcedIdPairs$.outboundSchema = CreateCategorySourcedIdPairs$outboundSchema;
})(CreateCategorySourcedIdPairs$ || (CreateCategorySourcedIdPairs$ = {}));
export function createCategorySourcedIdPairsToJSON(createCategorySourcedIdPairs) {
    return JSON.stringify(CreateCategorySourcedIdPairs$outboundSchema.parse(createCategorySourcedIdPairs));
}
export function createCategorySourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateCategorySourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCategorySourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateCategoryResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateCategorySourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateCategoryResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateCategorySourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateCategoryResponse$;
(function (CreateCategoryResponse$) {
    /** @deprecated use `CreateCategoryResponse$inboundSchema` instead. */
    CreateCategoryResponse$.inboundSchema = CreateCategoryResponse$inboundSchema;
    /** @deprecated use `CreateCategoryResponse$outboundSchema` instead. */
    CreateCategoryResponse$.outboundSchema = CreateCategoryResponse$outboundSchema;
})(CreateCategoryResponse$ || (CreateCategoryResponse$ = {}));
export function createCategoryResponseToJSON(createCategoryResponse) {
    return JSON.stringify(CreateCategoryResponse$outboundSchema.parse(createCategoryResponse));
}
export function createCategoryResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateCategoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateCategoryResponse' from JSON`);
}
//# sourceMappingURL=createcategory.js.map