"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateScoreScaleResponse$ = exports.CreateScoreScaleResponse$outboundSchema = exports.CreateScoreScaleResponse$inboundSchema = exports.CreateScoreScaleSourcedIdPairs$ = exports.CreateScoreScaleSourcedIdPairs$outboundSchema = exports.CreateScoreScaleSourcedIdPairs$inboundSchema = exports.CreateScoreScaleRequest$ = exports.CreateScoreScaleRequest$outboundSchema = exports.CreateScoreScaleRequest$inboundSchema = void 0;
exports.createScoreScaleRequestToJSON = createScoreScaleRequestToJSON;
exports.createScoreScaleRequestFromJSON = createScoreScaleRequestFromJSON;
exports.createScoreScaleSourcedIdPairsToJSON = createScoreScaleSourcedIdPairsToJSON;
exports.createScoreScaleSourcedIdPairsFromJSON = createScoreScaleSourcedIdPairsFromJSON;
exports.createScoreScaleResponseToJSON = createScoreScaleResponseToJSON;
exports.createScoreScaleResponseFromJSON = createScoreScaleResponseFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.CreateScoreScaleRequest$inboundSchema = z.object({
    scoreScale: components.ScoreScale$inboundSchema,
});
/** @internal */
exports.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.
 */
var CreateScoreScaleRequest$;
(function (CreateScoreScaleRequest$) {
    /** @deprecated use `CreateScoreScaleRequest$inboundSchema` instead. */
    CreateScoreScaleRequest$.inboundSchema = exports.CreateScoreScaleRequest$inboundSchema;
    /** @deprecated use `CreateScoreScaleRequest$outboundSchema` instead. */
    CreateScoreScaleRequest$.outboundSchema = exports.CreateScoreScaleRequest$outboundSchema;
})(CreateScoreScaleRequest$ || (exports.CreateScoreScaleRequest$ = CreateScoreScaleRequest$ = {}));
function createScoreScaleRequestToJSON(createScoreScaleRequest) {
    return JSON.stringify(exports.CreateScoreScaleRequest$outboundSchema.parse(createScoreScaleRequest));
}
function createScoreScaleRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateScoreScaleRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScoreScaleRequest' from JSON`);
}
/** @internal */
exports.CreateScoreScaleSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.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.
 */
var CreateScoreScaleSourcedIdPairs$;
(function (CreateScoreScaleSourcedIdPairs$) {
    /** @deprecated use `CreateScoreScaleSourcedIdPairs$inboundSchema` instead. */
    CreateScoreScaleSourcedIdPairs$.inboundSchema = exports.CreateScoreScaleSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateScoreScaleSourcedIdPairs$outboundSchema` instead. */
    CreateScoreScaleSourcedIdPairs$.outboundSchema = exports.CreateScoreScaleSourcedIdPairs$outboundSchema;
})(CreateScoreScaleSourcedIdPairs$ || (exports.CreateScoreScaleSourcedIdPairs$ = CreateScoreScaleSourcedIdPairs$ = {}));
function createScoreScaleSourcedIdPairsToJSON(createScoreScaleSourcedIdPairs) {
    return JSON.stringify(exports.CreateScoreScaleSourcedIdPairs$outboundSchema.parse(createScoreScaleSourcedIdPairs));
}
function createScoreScaleSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateScoreScaleSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScoreScaleSourcedIdPairs' from JSON`);
}
/** @internal */
exports.CreateScoreScaleResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateScoreScaleSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.CreateScoreScaleResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateScoreScaleSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateScoreScaleResponse$;
(function (CreateScoreScaleResponse$) {
    /** @deprecated use `CreateScoreScaleResponse$inboundSchema` instead. */
    CreateScoreScaleResponse$.inboundSchema = exports.CreateScoreScaleResponse$inboundSchema;
    /** @deprecated use `CreateScoreScaleResponse$outboundSchema` instead. */
    CreateScoreScaleResponse$.outboundSchema = exports.CreateScoreScaleResponse$outboundSchema;
})(CreateScoreScaleResponse$ || (exports.CreateScoreScaleResponse$ = CreateScoreScaleResponse$ = {}));
function createScoreScaleResponseToJSON(createScoreScaleResponse) {
    return JSON.stringify(exports.CreateScoreScaleResponse$outboundSchema.parse(createScoreScaleResponse));
}
function createScoreScaleResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateScoreScaleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateScoreScaleResponse' from JSON`);
}
//# sourceMappingURL=createscorescale.js.map