/*
 * 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 CreateAssessmentResultRequest$inboundSchema = z.object({
    assessmentResult: components.AssessmentResult$inboundSchema,
});
/** @internal */
export const CreateAssessmentResultRequest$outboundSchema = z.object({
    assessmentResult: components.AssessmentResult$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateAssessmentResultRequest$;
(function (CreateAssessmentResultRequest$) {
    /** @deprecated use `CreateAssessmentResultRequest$inboundSchema` instead. */
    CreateAssessmentResultRequest$.inboundSchema = CreateAssessmentResultRequest$inboundSchema;
    /** @deprecated use `CreateAssessmentResultRequest$outboundSchema` instead. */
    CreateAssessmentResultRequest$.outboundSchema = CreateAssessmentResultRequest$outboundSchema;
})(CreateAssessmentResultRequest$ || (CreateAssessmentResultRequest$ = {}));
export function createAssessmentResultRequestToJSON(createAssessmentResultRequest) {
    return JSON.stringify(CreateAssessmentResultRequest$outboundSchema.parse(createAssessmentResultRequest));
}
export function createAssessmentResultRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateAssessmentResultRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentResultRequest' from JSON`);
}
/** @internal */
export const CreateAssessmentResultSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateAssessmentResultSourcedIdPairs$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 CreateAssessmentResultSourcedIdPairs$;
(function (CreateAssessmentResultSourcedIdPairs$) {
    /** @deprecated use `CreateAssessmentResultSourcedIdPairs$inboundSchema` instead. */
    CreateAssessmentResultSourcedIdPairs$.inboundSchema = CreateAssessmentResultSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateAssessmentResultSourcedIdPairs$outboundSchema` instead. */
    CreateAssessmentResultSourcedIdPairs$.outboundSchema = CreateAssessmentResultSourcedIdPairs$outboundSchema;
})(CreateAssessmentResultSourcedIdPairs$ || (CreateAssessmentResultSourcedIdPairs$ = {}));
export function createAssessmentResultSourcedIdPairsToJSON(createAssessmentResultSourcedIdPairs) {
    return JSON.stringify(CreateAssessmentResultSourcedIdPairs$outboundSchema.parse(createAssessmentResultSourcedIdPairs));
}
export function createAssessmentResultSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateAssessmentResultSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentResultSourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateAssessmentResultResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateAssessmentResultSourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateAssessmentResultResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateAssessmentResultSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateAssessmentResultResponse$;
(function (CreateAssessmentResultResponse$) {
    /** @deprecated use `CreateAssessmentResultResponse$inboundSchema` instead. */
    CreateAssessmentResultResponse$.inboundSchema = CreateAssessmentResultResponse$inboundSchema;
    /** @deprecated use `CreateAssessmentResultResponse$outboundSchema` instead. */
    CreateAssessmentResultResponse$.outboundSchema = CreateAssessmentResultResponse$outboundSchema;
})(CreateAssessmentResultResponse$ || (CreateAssessmentResultResponse$ = {}));
export function createAssessmentResultResponseToJSON(createAssessmentResultResponse) {
    return JSON.stringify(CreateAssessmentResultResponse$outboundSchema.parse(createAssessmentResultResponse));
}
export function createAssessmentResultResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateAssessmentResultResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateAssessmentResultResponse' from JSON`);
}
//# sourceMappingURL=createassessmentresult.js.map