/*
 * 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 CreateScoreScaleRequest$inboundSchema = z.object({
    scoreScale: components.ScoreScale$inboundSchema,
});
/** @internal */
export const CreateScoreScaleRequest$outboundSchema = z.object({
    scoreScale: components.ScoreScale$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateScoreScaleRequest$;
(function (CreateScoreScaleRequest$) {
    /** @deprecated use `CreateScoreScaleRequest$inboundSchema` instead. */
    CreateScoreScaleRequest$.inboundSchema = CreateScoreScaleRequest$inboundSchema;
    /** @deprecated use `CreateScoreScaleRequest$outboundSchema` instead. */
    CreateScoreScaleRequest$.outboundSchema = CreateScoreScaleRequest$outboundSchema;
})(CreateScoreScaleRequest$ || (CreateScoreScaleRequest$ = {}));
export function createScoreScaleRequestToJSON(createScoreScaleRequest) {
    return JSON.stringify(CreateScoreScaleRequest$outboundSchema.parse(createScoreScaleRequest));
}
export function createScoreScaleRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateScoreScaleRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScoreScaleRequest' from JSON`);
}
/** @internal */
export const CreateScoreScaleSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateScoreScaleSourcedIdPairs$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 CreateScoreScaleSourcedIdPairs$;
(function (CreateScoreScaleSourcedIdPairs$) {
    /** @deprecated use `CreateScoreScaleSourcedIdPairs$inboundSchema` instead. */
    CreateScoreScaleSourcedIdPairs$.inboundSchema = CreateScoreScaleSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateScoreScaleSourcedIdPairs$outboundSchema` instead. */
    CreateScoreScaleSourcedIdPairs$.outboundSchema = CreateScoreScaleSourcedIdPairs$outboundSchema;
})(CreateScoreScaleSourcedIdPairs$ || (CreateScoreScaleSourcedIdPairs$ = {}));
export function createScoreScaleSourcedIdPairsToJSON(createScoreScaleSourcedIdPairs) {
    return JSON.stringify(CreateScoreScaleSourcedIdPairs$outboundSchema.parse(createScoreScaleSourcedIdPairs));
}
export function createScoreScaleSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateScoreScaleSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScoreScaleSourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateScoreScaleResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateScoreScaleSourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateScoreScaleResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateScoreScaleSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateScoreScaleResponse$;
(function (CreateScoreScaleResponse$) {
    /** @deprecated use `CreateScoreScaleResponse$inboundSchema` instead. */
    CreateScoreScaleResponse$.inboundSchema = CreateScoreScaleResponse$inboundSchema;
    /** @deprecated use `CreateScoreScaleResponse$outboundSchema` instead. */
    CreateScoreScaleResponse$.outboundSchema = CreateScoreScaleResponse$outboundSchema;
})(CreateScoreScaleResponse$ || (CreateScoreScaleResponse$ = {}));
export function createScoreScaleResponseToJSON(createScoreScaleResponse) {
    return JSON.stringify(CreateScoreScaleResponse$outboundSchema.parse(createScoreScaleResponse));
}
export function createScoreScaleResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateScoreScaleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScoreScaleResponse' from JSON`);
}
//# sourceMappingURL=createscorescale.js.map