"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.entitySkillsCreateRequestDtoFromJSON = exports.entitySkillsCreateRequestDtoToJSON = exports.EntitySkillsCreateRequestDto$ = exports.EntitySkillsCreateRequestDto$outboundSchema = exports.EntitySkillsCreateRequestDto$inboundSchema = exports.entitySkillsCreateRequestDtoMinimumProficiencyFromJSON = exports.entitySkillsCreateRequestDtoMinimumProficiencyToJSON = exports.EntitySkillsCreateRequestDtoMinimumProficiency$ = exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema = exports.EntitySkillsCreateRequestDtoMinimumProficiency$inboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue$ = exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue$inboundSchema = exports.entitySkillsCreateRequestDtoSchemasSourceValueFromJSON = exports.entitySkillsCreateRequestDtoSchemasSourceValueToJSON = exports.EntitySkillsCreateRequestDtoSchemasSourceValue$ = exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasSourceValue$inboundSchema = exports.entitySkillsCreateRequestDtoSchemas4FromJSON = exports.entitySkillsCreateRequestDtoSchemas4ToJSON = exports.EntitySkillsCreateRequestDtoSchemas4$ = exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema = exports.EntitySkillsCreateRequestDtoSchemas4$inboundSchema = exports.entitySkillsCreateRequestDtoMaximumProficiencyFromJSON = exports.entitySkillsCreateRequestDtoMaximumProficiencyToJSON = exports.EntitySkillsCreateRequestDtoMaximumProficiency$ = exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema = exports.EntitySkillsCreateRequestDtoMaximumProficiency$inboundSchema = exports.EntitySkillsCreateRequestDtoValue$ = exports.EntitySkillsCreateRequestDtoValue$outboundSchema = exports.EntitySkillsCreateRequestDtoValue$inboundSchema = exports.entitySkillsCreateRequestDtoSourceValueFromJSON = exports.entitySkillsCreateRequestDtoSourceValueToJSON = exports.EntitySkillsCreateRequestDtoSourceValue$ = exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema = exports.EntitySkillsCreateRequestDtoSourceValue$inboundSchema = exports.entitySkillsCreateRequestDto4FromJSON = exports.entitySkillsCreateRequestDto4ToJSON = exports.EntitySkillsCreateRequestDto4$ = exports.EntitySkillsCreateRequestDto4$outboundSchema = exports.EntitySkillsCreateRequestDto4$inboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue = exports.EntitySkillsCreateRequestDtoValue = 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 EntitySkillsCreateRequestDtoValue;
(function (EntitySkillsCreateRequestDtoValue) {
    EntitySkillsCreateRequestDtoValue["One"] = "1";
    EntitySkillsCreateRequestDtoValue["Two"] = "2";
    EntitySkillsCreateRequestDtoValue["Three"] = "3";
    EntitySkillsCreateRequestDtoValue["Four"] = "4";
    EntitySkillsCreateRequestDtoValue["Five"] = "5";
    EntitySkillsCreateRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(EntitySkillsCreateRequestDtoValue || (exports.EntitySkillsCreateRequestDtoValue = EntitySkillsCreateRequestDtoValue = {}));
var EntitySkillsCreateRequestDtoSchemasValue;
(function (EntitySkillsCreateRequestDtoSchemasValue) {
    EntitySkillsCreateRequestDtoSchemasValue["One"] = "1";
    EntitySkillsCreateRequestDtoSchemasValue["Two"] = "2";
    EntitySkillsCreateRequestDtoSchemasValue["Three"] = "3";
    EntitySkillsCreateRequestDtoSchemasValue["Four"] = "4";
    EntitySkillsCreateRequestDtoSchemasValue["Five"] = "5";
    EntitySkillsCreateRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
})(EntitySkillsCreateRequestDtoSchemasValue || (exports.EntitySkillsCreateRequestDtoSchemasValue = EntitySkillsCreateRequestDtoSchemasValue = {}));
/** @internal */
exports.EntitySkillsCreateRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.EntitySkillsCreateRequestDto4$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 EntitySkillsCreateRequestDto4$;
(function (EntitySkillsCreateRequestDto4$) {
    /** @deprecated use `EntitySkillsCreateRequestDto4$inboundSchema` instead. */
    EntitySkillsCreateRequestDto4$.inboundSchema = exports.EntitySkillsCreateRequestDto4$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDto4$outboundSchema` instead. */
    EntitySkillsCreateRequestDto4$.outboundSchema = exports.EntitySkillsCreateRequestDto4$outboundSchema;
})(EntitySkillsCreateRequestDto4$ || (exports.EntitySkillsCreateRequestDto4$ = EntitySkillsCreateRequestDto4$ = {}));
function entitySkillsCreateRequestDto4ToJSON(entitySkillsCreateRequestDto4) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDto4$outboundSchema.parse(entitySkillsCreateRequestDto4));
}
exports.entitySkillsCreateRequestDto4ToJSON = entitySkillsCreateRequestDto4ToJSON;
function entitySkillsCreateRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDto4' from JSON`);
}
exports.entitySkillsCreateRequestDto4FromJSON = entitySkillsCreateRequestDto4FromJSON;
/** @internal */
exports.EntitySkillsCreateRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.EntitySkillsCreateRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.EntitySkillsCreateRequestDto4$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 EntitySkillsCreateRequestDtoSourceValue$;
(function (EntitySkillsCreateRequestDtoSourceValue$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoSourceValue$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoSourceValue$.inboundSchema = exports.EntitySkillsCreateRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoSourceValue$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoSourceValue$.outboundSchema = exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema;
})(EntitySkillsCreateRequestDtoSourceValue$ || (exports.EntitySkillsCreateRequestDtoSourceValue$ = EntitySkillsCreateRequestDtoSourceValue$ = {}));
function entitySkillsCreateRequestDtoSourceValueToJSON(entitySkillsCreateRequestDtoSourceValue) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoSourceValue$outboundSchema.parse(entitySkillsCreateRequestDtoSourceValue));
}
exports.entitySkillsCreateRequestDtoSourceValueToJSON = entitySkillsCreateRequestDtoSourceValueToJSON;
function entitySkillsCreateRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDtoSourceValue' from JSON`);
}
exports.entitySkillsCreateRequestDtoSourceValueFromJSON = entitySkillsCreateRequestDtoSourceValueFromJSON;
/** @internal */
exports.EntitySkillsCreateRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(EntitySkillsCreateRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.EntitySkillsCreateRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(EntitySkillsCreateRequestDtoValue),
    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 EntitySkillsCreateRequestDtoValue$;
(function (EntitySkillsCreateRequestDtoValue$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoValue$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoValue$.inboundSchema = exports.EntitySkillsCreateRequestDtoValue$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoValue$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoValue$.outboundSchema = exports.EntitySkillsCreateRequestDtoValue$outboundSchema;
})(EntitySkillsCreateRequestDtoValue$ || (exports.EntitySkillsCreateRequestDtoValue$ = EntitySkillsCreateRequestDtoValue$ = {}));
/** @internal */
exports.EntitySkillsCreateRequestDtoMaximumProficiency$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    source_value: z.nullable(z.union([
        z.lazy(() => exports.EntitySkillsCreateRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EntitySkillsCreateRequestDtoValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.EntitySkillsCreateRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EntitySkillsCreateRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
        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 EntitySkillsCreateRequestDtoMaximumProficiency$;
(function (EntitySkillsCreateRequestDtoMaximumProficiency$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoMaximumProficiency$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoMaximumProficiency$.inboundSchema = exports.EntitySkillsCreateRequestDtoMaximumProficiency$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoMaximumProficiency$.outboundSchema = exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema;
})(EntitySkillsCreateRequestDtoMaximumProficiency$ || (exports.EntitySkillsCreateRequestDtoMaximumProficiency$ = EntitySkillsCreateRequestDtoMaximumProficiency$ = {}));
function entitySkillsCreateRequestDtoMaximumProficiencyToJSON(entitySkillsCreateRequestDtoMaximumProficiency) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema.parse(entitySkillsCreateRequestDtoMaximumProficiency));
}
exports.entitySkillsCreateRequestDtoMaximumProficiencyToJSON = entitySkillsCreateRequestDtoMaximumProficiencyToJSON;
function entitySkillsCreateRequestDtoMaximumProficiencyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDtoMaximumProficiency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDtoMaximumProficiency' from JSON`);
}
exports.entitySkillsCreateRequestDtoMaximumProficiencyFromJSON = entitySkillsCreateRequestDtoMaximumProficiencyFromJSON;
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemas4$inboundSchema = z.object({});
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemas4$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 EntitySkillsCreateRequestDtoSchemas4$;
(function (EntitySkillsCreateRequestDtoSchemas4$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoSchemas4$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoSchemas4$.inboundSchema = exports.EntitySkillsCreateRequestDtoSchemas4$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoSchemas4$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoSchemas4$.outboundSchema = exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema;
})(EntitySkillsCreateRequestDtoSchemas4$ || (exports.EntitySkillsCreateRequestDtoSchemas4$ = EntitySkillsCreateRequestDtoSchemas4$ = {}));
function entitySkillsCreateRequestDtoSchemas4ToJSON(entitySkillsCreateRequestDtoSchemas4) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema.parse(entitySkillsCreateRequestDtoSchemas4));
}
exports.entitySkillsCreateRequestDtoSchemas4ToJSON = entitySkillsCreateRequestDtoSchemas4ToJSON;
function entitySkillsCreateRequestDtoSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDtoSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDtoSchemas4' from JSON`);
}
exports.entitySkillsCreateRequestDtoSchemas4FromJSON = entitySkillsCreateRequestDtoSchemas4FromJSON;
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.EntitySkillsCreateRequestDtoSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.EntitySkillsCreateRequestDtoSchemas4$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 EntitySkillsCreateRequestDtoSchemasSourceValue$;
(function (EntitySkillsCreateRequestDtoSchemasSourceValue$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoSchemasSourceValue$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoSchemasSourceValue$.inboundSchema = exports.EntitySkillsCreateRequestDtoSchemasSourceValue$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoSchemasSourceValue$.outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema;
})(EntitySkillsCreateRequestDtoSchemasSourceValue$ || (exports.EntitySkillsCreateRequestDtoSchemasSourceValue$ = EntitySkillsCreateRequestDtoSchemasSourceValue$ = {}));
function entitySkillsCreateRequestDtoSchemasSourceValueToJSON(entitySkillsCreateRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoSchemasSourceValue$outboundSchema.parse(entitySkillsCreateRequestDtoSchemasSourceValue));
}
exports.entitySkillsCreateRequestDtoSchemasSourceValueToJSON = entitySkillsCreateRequestDtoSchemasSourceValueToJSON;
function entitySkillsCreateRequestDtoSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDtoSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDtoSchemasSourceValue' from JSON`);
}
exports.entitySkillsCreateRequestDtoSchemasSourceValueFromJSON = entitySkillsCreateRequestDtoSchemasSourceValueFromJSON;
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(EntitySkillsCreateRequestDtoSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema = z.union([
    z.nativeEnum(EntitySkillsCreateRequestDtoSchemasValue),
    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 EntitySkillsCreateRequestDtoSchemasValue$;
(function (EntitySkillsCreateRequestDtoSchemasValue$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoSchemasValue$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoSchemasValue$.inboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoSchemasValue$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoSchemasValue$.outboundSchema = exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema;
})(EntitySkillsCreateRequestDtoSchemasValue$ || (exports.EntitySkillsCreateRequestDtoSchemasValue$ = EntitySkillsCreateRequestDtoSchemasValue$ = {}));
/** @internal */
exports.EntitySkillsCreateRequestDtoMinimumProficiency$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    source_value: z.nullable(z.union([
        z.lazy(() => exports.EntitySkillsCreateRequestDtoSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EntitySkillsCreateRequestDtoSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.EntitySkillsCreateRequestDtoSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.EntitySkillsCreateRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
        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 EntitySkillsCreateRequestDtoMinimumProficiency$;
(function (EntitySkillsCreateRequestDtoMinimumProficiency$) {
    /** @deprecated use `EntitySkillsCreateRequestDtoMinimumProficiency$inboundSchema` instead. */
    EntitySkillsCreateRequestDtoMinimumProficiency$.inboundSchema = exports.EntitySkillsCreateRequestDtoMinimumProficiency$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema` instead. */
    EntitySkillsCreateRequestDtoMinimumProficiency$.outboundSchema = exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema;
})(EntitySkillsCreateRequestDtoMinimumProficiency$ || (exports.EntitySkillsCreateRequestDtoMinimumProficiency$ = EntitySkillsCreateRequestDtoMinimumProficiency$ = {}));
function entitySkillsCreateRequestDtoMinimumProficiencyToJSON(entitySkillsCreateRequestDtoMinimumProficiency) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema.parse(entitySkillsCreateRequestDtoMinimumProficiency));
}
exports.entitySkillsCreateRequestDtoMinimumProficiencyToJSON = entitySkillsCreateRequestDtoMinimumProficiencyToJSON;
function entitySkillsCreateRequestDtoMinimumProficiencyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDtoMinimumProficiency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDtoMinimumProficiency' from JSON`);
}
exports.entitySkillsCreateRequestDtoMinimumProficiencyFromJSON = entitySkillsCreateRequestDtoMinimumProficiencyFromJSON;
/** @internal */
exports.EntitySkillsCreateRequestDto$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    maximum_proficiency: z.nullable(z.lazy(() => exports.EntitySkillsCreateRequestDtoMaximumProficiency$inboundSchema)).optional(),
    minimum_proficiency: z.nullable(z.lazy(() => exports.EntitySkillsCreateRequestDtoMinimumProficiency$inboundSchema)).optional(),
    name: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "maximum_proficiency": "maximumProficiency",
        "minimum_proficiency": "minimumProficiency",
    });
});
/** @internal */
exports.EntitySkillsCreateRequestDto$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    maximumProficiency: z.nullable(z.lazy(() => exports.EntitySkillsCreateRequestDtoMaximumProficiency$outboundSchema)).optional(),
    minimumProficiency: z.nullable(z.lazy(() => exports.EntitySkillsCreateRequestDtoMinimumProficiency$outboundSchema)).optional(),
    name: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        maximumProficiency: "maximum_proficiency",
        minimumProficiency: "minimum_proficiency",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var EntitySkillsCreateRequestDto$;
(function (EntitySkillsCreateRequestDto$) {
    /** @deprecated use `EntitySkillsCreateRequestDto$inboundSchema` instead. */
    EntitySkillsCreateRequestDto$.inboundSchema = exports.EntitySkillsCreateRequestDto$inboundSchema;
    /** @deprecated use `EntitySkillsCreateRequestDto$outboundSchema` instead. */
    EntitySkillsCreateRequestDto$.outboundSchema = exports.EntitySkillsCreateRequestDto$outboundSchema;
})(EntitySkillsCreateRequestDto$ || (exports.EntitySkillsCreateRequestDto$ = EntitySkillsCreateRequestDto$ = {}));
function entitySkillsCreateRequestDtoToJSON(entitySkillsCreateRequestDto) {
    return JSON.stringify(exports.EntitySkillsCreateRequestDto$outboundSchema.parse(entitySkillsCreateRequestDto));
}
exports.entitySkillsCreateRequestDtoToJSON = entitySkillsCreateRequestDtoToJSON;
function entitySkillsCreateRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.EntitySkillsCreateRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EntitySkillsCreateRequestDto' from JSON`);
}
exports.entitySkillsCreateRequestDtoFromJSON = entitySkillsCreateRequestDtoFromJSON;
//# sourceMappingURL=entityskillscreaterequestdto.js.map