/*
 * 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 UpdateScoreScaleRequestBody$inboundSchema = z.object({
    scoreScale: components.ScoreScale$inboundSchema,
});
/** @internal */
export const UpdateScoreScaleRequestBody$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 UpdateScoreScaleRequestBody$;
(function (UpdateScoreScaleRequestBody$) {
    /** @deprecated use `UpdateScoreScaleRequestBody$inboundSchema` instead. */
    UpdateScoreScaleRequestBody$.inboundSchema = UpdateScoreScaleRequestBody$inboundSchema;
    /** @deprecated use `UpdateScoreScaleRequestBody$outboundSchema` instead. */
    UpdateScoreScaleRequestBody$.outboundSchema = UpdateScoreScaleRequestBody$outboundSchema;
})(UpdateScoreScaleRequestBody$ || (UpdateScoreScaleRequestBody$ = {}));
export function updateScoreScaleRequestBodyToJSON(updateScoreScaleRequestBody) {
    return JSON.stringify(UpdateScoreScaleRequestBody$outboundSchema.parse(updateScoreScaleRequestBody));
}
export function updateScoreScaleRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateScoreScaleRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateScoreScaleRequestBody' from JSON`);
}
/** @internal */
export const UpdateScoreScaleRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => UpdateScoreScaleRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateScoreScaleRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => UpdateScoreScaleRequestBody$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 UpdateScoreScaleRequest$;
(function (UpdateScoreScaleRequest$) {
    /** @deprecated use `UpdateScoreScaleRequest$inboundSchema` instead. */
    UpdateScoreScaleRequest$.inboundSchema = UpdateScoreScaleRequest$inboundSchema;
    /** @deprecated use `UpdateScoreScaleRequest$outboundSchema` instead. */
    UpdateScoreScaleRequest$.outboundSchema = UpdateScoreScaleRequest$outboundSchema;
})(UpdateScoreScaleRequest$ || (UpdateScoreScaleRequest$ = {}));
export function updateScoreScaleRequestToJSON(updateScoreScaleRequest) {
    return JSON.stringify(UpdateScoreScaleRequest$outboundSchema.parse(updateScoreScaleRequest));
}
export function updateScoreScaleRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateScoreScaleRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateScoreScaleRequest' from JSON`);
}
/** @internal */
export const UpdateScoreScaleResponse$inboundSchema = z.object({
    scoreScale: components.ScoreScale$inboundSchema,
});
/** @internal */
export const UpdateScoreScaleResponse$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 UpdateScoreScaleResponse$;
(function (UpdateScoreScaleResponse$) {
    /** @deprecated use `UpdateScoreScaleResponse$inboundSchema` instead. */
    UpdateScoreScaleResponse$.inboundSchema = UpdateScoreScaleResponse$inboundSchema;
    /** @deprecated use `UpdateScoreScaleResponse$outboundSchema` instead. */
    UpdateScoreScaleResponse$.outboundSchema = UpdateScoreScaleResponse$outboundSchema;
})(UpdateScoreScaleResponse$ || (UpdateScoreScaleResponse$ = {}));
export function updateScoreScaleResponseToJSON(updateScoreScaleResponse) {
    return JSON.stringify(UpdateScoreScaleResponse$outboundSchema.parse(updateScoreScaleResponse));
}
export function updateScoreScaleResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateScoreScaleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateScoreScaleResponse' from JSON`);
}
//# sourceMappingURL=updatescorescale.js.map