/*
 * 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 UpdateAssessmentLineItemRequestBody$inboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$inboundSchema,
});
/** @internal */
export const UpdateAssessmentLineItemRequestBody$outboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateAssessmentLineItemRequestBody$;
(function (UpdateAssessmentLineItemRequestBody$) {
    /** @deprecated use `UpdateAssessmentLineItemRequestBody$inboundSchema` instead. */
    UpdateAssessmentLineItemRequestBody$.inboundSchema = UpdateAssessmentLineItemRequestBody$inboundSchema;
    /** @deprecated use `UpdateAssessmentLineItemRequestBody$outboundSchema` instead. */
    UpdateAssessmentLineItemRequestBody$.outboundSchema = UpdateAssessmentLineItemRequestBody$outboundSchema;
})(UpdateAssessmentLineItemRequestBody$ || (UpdateAssessmentLineItemRequestBody$ = {}));
export function updateAssessmentLineItemRequestBodyToJSON(updateAssessmentLineItemRequestBody) {
    return JSON.stringify(UpdateAssessmentLineItemRequestBody$outboundSchema.parse(updateAssessmentLineItemRequestBody));
}
export function updateAssessmentLineItemRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateAssessmentLineItemRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentLineItemRequestBody' from JSON`);
}
/** @internal */
export const UpdateAssessmentLineItemRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => UpdateAssessmentLineItemRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateAssessmentLineItemRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => UpdateAssessmentLineItemRequestBody$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 UpdateAssessmentLineItemRequest$;
(function (UpdateAssessmentLineItemRequest$) {
    /** @deprecated use `UpdateAssessmentLineItemRequest$inboundSchema` instead. */
    UpdateAssessmentLineItemRequest$.inboundSchema = UpdateAssessmentLineItemRequest$inboundSchema;
    /** @deprecated use `UpdateAssessmentLineItemRequest$outboundSchema` instead. */
    UpdateAssessmentLineItemRequest$.outboundSchema = UpdateAssessmentLineItemRequest$outboundSchema;
})(UpdateAssessmentLineItemRequest$ || (UpdateAssessmentLineItemRequest$ = {}));
export function updateAssessmentLineItemRequestToJSON(updateAssessmentLineItemRequest) {
    return JSON.stringify(UpdateAssessmentLineItemRequest$outboundSchema.parse(updateAssessmentLineItemRequest));
}
export function updateAssessmentLineItemRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateAssessmentLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentLineItemRequest' from JSON`);
}
/** @internal */
export const UpdateAssessmentLineItemResponse$inboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$inboundSchema,
});
/** @internal */
export const UpdateAssessmentLineItemResponse$outboundSchema = z.object({
    assessmentLineItem: components.AssessmentLineItem$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateAssessmentLineItemResponse$;
(function (UpdateAssessmentLineItemResponse$) {
    /** @deprecated use `UpdateAssessmentLineItemResponse$inboundSchema` instead. */
    UpdateAssessmentLineItemResponse$.inboundSchema = UpdateAssessmentLineItemResponse$inboundSchema;
    /** @deprecated use `UpdateAssessmentLineItemResponse$outboundSchema` instead. */
    UpdateAssessmentLineItemResponse$.outboundSchema = UpdateAssessmentLineItemResponse$outboundSchema;
})(UpdateAssessmentLineItemResponse$ || (UpdateAssessmentLineItemResponse$ = {}));
export function updateAssessmentLineItemResponseToJSON(updateAssessmentLineItemResponse) {
    return JSON.stringify(UpdateAssessmentLineItemResponse$outboundSchema.parse(updateAssessmentLineItemResponse));
}
export function updateAssessmentLineItemResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateAssessmentLineItemResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAssessmentLineItemResponse' from JSON`);
}
//# sourceMappingURL=updateassessmentlineitem.js.map