/*
 * 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 GetDemographicsRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetDemographicsRequest$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 GetDemographicsRequest$;
(function (GetDemographicsRequest$) {
    /** @deprecated use `GetDemographicsRequest$inboundSchema` instead. */
    GetDemographicsRequest$.inboundSchema = GetDemographicsRequest$inboundSchema;
    /** @deprecated use `GetDemographicsRequest$outboundSchema` instead. */
    GetDemographicsRequest$.outboundSchema = GetDemographicsRequest$outboundSchema;
})(GetDemographicsRequest$ || (GetDemographicsRequest$ = {}));
export function getDemographicsRequestToJSON(getDemographicsRequest) {
    return JSON.stringify(GetDemographicsRequest$outboundSchema.parse(getDemographicsRequest));
}
export function getDemographicsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetDemographicsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetDemographicsRequest' from JSON`);
}
/** @internal */
export const GetDemographicsResponse$inboundSchema = z.object({
    demographics: components.Demographics$inboundSchema,
});
/** @internal */
export const GetDemographicsResponse$outboundSchema = z.object({
    demographics: components.Demographics$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetDemographicsResponse$;
(function (GetDemographicsResponse$) {
    /** @deprecated use `GetDemographicsResponse$inboundSchema` instead. */
    GetDemographicsResponse$.inboundSchema = GetDemographicsResponse$inboundSchema;
    /** @deprecated use `GetDemographicsResponse$outboundSchema` instead. */
    GetDemographicsResponse$.outboundSchema = GetDemographicsResponse$outboundSchema;
})(GetDemographicsResponse$ || (GetDemographicsResponse$ = {}));
export function getDemographicsResponseToJSON(getDemographicsResponse) {
    return JSON.stringify(GetDemographicsResponse$outboundSchema.parse(getDemographicsResponse));
}
export function getDemographicsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetDemographicsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetDemographicsResponse' from JSON`);
}
//# sourceMappingURL=getdemographics.js.map