/*
 * 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 GetEnrollmentRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetEnrollmentRequest$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 GetEnrollmentRequest$;
(function (GetEnrollmentRequest$) {
    /** @deprecated use `GetEnrollmentRequest$inboundSchema` instead. */
    GetEnrollmentRequest$.inboundSchema = GetEnrollmentRequest$inboundSchema;
    /** @deprecated use `GetEnrollmentRequest$outboundSchema` instead. */
    GetEnrollmentRequest$.outboundSchema = GetEnrollmentRequest$outboundSchema;
})(GetEnrollmentRequest$ || (GetEnrollmentRequest$ = {}));
export function getEnrollmentRequestToJSON(getEnrollmentRequest) {
    return JSON.stringify(GetEnrollmentRequest$outboundSchema.parse(getEnrollmentRequest));
}
export function getEnrollmentRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetEnrollmentRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentRequest' from JSON`);
}
/** @internal */
export const GetEnrollmentResponse$inboundSchema = z.object({
    enrollment: components.Enrollment$inboundSchema,
});
/** @internal */
export const GetEnrollmentResponse$outboundSchema = z.object({
    enrollment: components.Enrollment$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetEnrollmentResponse$;
(function (GetEnrollmentResponse$) {
    /** @deprecated use `GetEnrollmentResponse$inboundSchema` instead. */
    GetEnrollmentResponse$.inboundSchema = GetEnrollmentResponse$inboundSchema;
    /** @deprecated use `GetEnrollmentResponse$outboundSchema` instead. */
    GetEnrollmentResponse$.outboundSchema = GetEnrollmentResponse$outboundSchema;
})(GetEnrollmentResponse$ || (GetEnrollmentResponse$ = {}));
export function getEnrollmentResponseToJSON(getEnrollmentResponse) {
    return JSON.stringify(GetEnrollmentResponse$outboundSchema.parse(getEnrollmentResponse));
}
export function getEnrollmentResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetEnrollmentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnrollmentResponse' from JSON`);
}
//# sourceMappingURL=getenrollment.js.map