"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSkillsApiModelFromJSON = exports.createSkillsApiModelToJSON = exports.CreateSkillsApiModel$ = exports.CreateSkillsApiModel$outboundSchema = exports.CreateSkillsApiModel$inboundSchema = exports.createSkillsApiModelLevelFromJSON = exports.createSkillsApiModelLevelToJSON = exports.CreateSkillsApiModelLevel$ = exports.CreateSkillsApiModelLevel$outboundSchema = exports.CreateSkillsApiModelLevel$inboundSchema = exports.CreateSkillsApiModelValue$ = exports.CreateSkillsApiModelValue$outboundSchema = exports.CreateSkillsApiModelValue$inboundSchema = exports.createSkillsApiModelSourceValueFromJSON = exports.createSkillsApiModelSourceValueToJSON = exports.CreateSkillsApiModelSourceValue$ = exports.CreateSkillsApiModelSourceValue$outboundSchema = exports.CreateSkillsApiModelSourceValue$inboundSchema = exports.createSkillsApiModel4FromJSON = exports.createSkillsApiModel4ToJSON = exports.CreateSkillsApiModel4$ = exports.CreateSkillsApiModel4$outboundSchema = exports.CreateSkillsApiModel4$inboundSchema = exports.CreateSkillsApiModelValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
var CreateSkillsApiModelValue;
(function (CreateSkillsApiModelValue) {
    CreateSkillsApiModelValue["Primary"] = "primary";
    CreateSkillsApiModelValue["Secondary"] = "secondary";
    CreateSkillsApiModelValue["Tertiary"] = "tertiary";
})(CreateSkillsApiModelValue || (exports.CreateSkillsApiModelValue = CreateSkillsApiModelValue = {}));
/** @internal */
exports.CreateSkillsApiModel4$inboundSchema = z.object({});
/** @internal */
exports.CreateSkillsApiModel4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSkillsApiModel4$;
(function (CreateSkillsApiModel4$) {
    /** @deprecated use `CreateSkillsApiModel4$inboundSchema` instead. */
    CreateSkillsApiModel4$.inboundSchema = exports.CreateSkillsApiModel4$inboundSchema;
    /** @deprecated use `CreateSkillsApiModel4$outboundSchema` instead. */
    CreateSkillsApiModel4$.outboundSchema = exports.CreateSkillsApiModel4$outboundSchema;
})(CreateSkillsApiModel4$ || (exports.CreateSkillsApiModel4$ = CreateSkillsApiModel4$ = {}));
function createSkillsApiModel4ToJSON(createSkillsApiModel4) {
    return JSON.stringify(exports.CreateSkillsApiModel4$outboundSchema.parse(createSkillsApiModel4));
}
exports.createSkillsApiModel4ToJSON = createSkillsApiModel4ToJSON;
function createSkillsApiModel4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSkillsApiModel4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSkillsApiModel4' from JSON`);
}
exports.createSkillsApiModel4FromJSON = createSkillsApiModel4FromJSON;
/** @internal */
exports.CreateSkillsApiModelSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.CreateSkillsApiModel4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.CreateSkillsApiModelSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.CreateSkillsApiModel4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSkillsApiModelSourceValue$;
(function (CreateSkillsApiModelSourceValue$) {
    /** @deprecated use `CreateSkillsApiModelSourceValue$inboundSchema` instead. */
    CreateSkillsApiModelSourceValue$.inboundSchema = exports.CreateSkillsApiModelSourceValue$inboundSchema;
    /** @deprecated use `CreateSkillsApiModelSourceValue$outboundSchema` instead. */
    CreateSkillsApiModelSourceValue$.outboundSchema = exports.CreateSkillsApiModelSourceValue$outboundSchema;
})(CreateSkillsApiModelSourceValue$ || (exports.CreateSkillsApiModelSourceValue$ = CreateSkillsApiModelSourceValue$ = {}));
function createSkillsApiModelSourceValueToJSON(createSkillsApiModelSourceValue) {
    return JSON.stringify(exports.CreateSkillsApiModelSourceValue$outboundSchema.parse(createSkillsApiModelSourceValue));
}
exports.createSkillsApiModelSourceValueToJSON = createSkillsApiModelSourceValueToJSON;
function createSkillsApiModelSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSkillsApiModelSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSkillsApiModelSourceValue' from JSON`);
}
exports.createSkillsApiModelSourceValueFromJSON = createSkillsApiModelSourceValueFromJSON;
/** @internal */
exports.CreateSkillsApiModelValue$inboundSchema = z
    .union([
    z.nativeEnum(CreateSkillsApiModelValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CreateSkillsApiModelValue$outboundSchema = z.union([
    z.nativeEnum(CreateSkillsApiModelValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSkillsApiModelValue$;
(function (CreateSkillsApiModelValue$) {
    /** @deprecated use `CreateSkillsApiModelValue$inboundSchema` instead. */
    CreateSkillsApiModelValue$.inboundSchema = exports.CreateSkillsApiModelValue$inboundSchema;
    /** @deprecated use `CreateSkillsApiModelValue$outboundSchema` instead. */
    CreateSkillsApiModelValue$.outboundSchema = exports.CreateSkillsApiModelValue$outboundSchema;
})(CreateSkillsApiModelValue$ || (exports.CreateSkillsApiModelValue$ = CreateSkillsApiModelValue$ = {}));
/** @internal */
exports.CreateSkillsApiModelLevel$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.CreateSkillsApiModel4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateSkillsApiModelValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CreateSkillsApiModelLevel$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.CreateSkillsApiModel4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CreateSkillsApiModelValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSkillsApiModelLevel$;
(function (CreateSkillsApiModelLevel$) {
    /** @deprecated use `CreateSkillsApiModelLevel$inboundSchema` instead. */
    CreateSkillsApiModelLevel$.inboundSchema = exports.CreateSkillsApiModelLevel$inboundSchema;
    /** @deprecated use `CreateSkillsApiModelLevel$outboundSchema` instead. */
    CreateSkillsApiModelLevel$.outboundSchema = exports.CreateSkillsApiModelLevel$outboundSchema;
})(CreateSkillsApiModelLevel$ || (exports.CreateSkillsApiModelLevel$ = CreateSkillsApiModelLevel$ = {}));
function createSkillsApiModelLevelToJSON(createSkillsApiModelLevel) {
    return JSON.stringify(exports.CreateSkillsApiModelLevel$outboundSchema.parse(createSkillsApiModelLevel));
}
exports.createSkillsApiModelLevelToJSON = createSkillsApiModelLevelToJSON;
function createSkillsApiModelLevelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSkillsApiModelLevel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSkillsApiModelLevel' from JSON`);
}
exports.createSkillsApiModelLevelFromJSON = createSkillsApiModelLevelFromJSON;
/** @internal */
exports.CreateSkillsApiModel$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    level: z.nullable(z.lazy(() => exports.CreateSkillsApiModelLevel$inboundSchema))
        .optional(),
    name: z.nullable(z.string()).optional(),
});
/** @internal */
exports.CreateSkillsApiModel$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    level: z.nullable(z.lazy(() => exports.CreateSkillsApiModelLevel$outboundSchema))
        .optional(),
    name: z.nullable(z.string()).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateSkillsApiModel$;
(function (CreateSkillsApiModel$) {
    /** @deprecated use `CreateSkillsApiModel$inboundSchema` instead. */
    CreateSkillsApiModel$.inboundSchema = exports.CreateSkillsApiModel$inboundSchema;
    /** @deprecated use `CreateSkillsApiModel$outboundSchema` instead. */
    CreateSkillsApiModel$.outboundSchema = exports.CreateSkillsApiModel$outboundSchema;
})(CreateSkillsApiModel$ || (exports.CreateSkillsApiModel$ = CreateSkillsApiModel$ = {}));
function createSkillsApiModelToJSON(createSkillsApiModel) {
    return JSON.stringify(exports.CreateSkillsApiModel$outboundSchema.parse(createSkillsApiModel));
}
exports.createSkillsApiModelToJSON = createSkillsApiModelToJSON;
function createSkillsApiModelFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateSkillsApiModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateSkillsApiModel' from JSON`);
}
exports.createSkillsApiModelFromJSON = createSkillsApiModelFromJSON;
//# sourceMappingURL=createskillsapimodel.js.map