"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.atsCreateCandidatesAssessmentsRequestDtoFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoToJSON = exports.AtsCreateCandidatesAssessmentsRequestDto$ = exports.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoRequesterFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$ = exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoPackageFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoPackageToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$ = exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoJobFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoJobToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoJob$ = exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoJob$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoCandidateFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$ = exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoApplicationFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$ = exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoApplicationStatusFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$ = exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue$ = exports.AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDtoSourceValueFromJSON = exports.atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON = exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$ = exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$inboundSchema = exports.atsCreateCandidatesAssessmentsRequestDto4FromJSON = exports.atsCreateCandidatesAssessmentsRequestDto4ToJSON = exports.AtsCreateCandidatesAssessmentsRequestDto4$ = exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue = 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");
const candidateemail_js_1 = require("./candidateemail.js");
const jobhiringteam_js_1 = require("./jobhiringteam.js");
/**
 * The status of the application.
 */
var AtsCreateCandidatesAssessmentsRequestDtoValue;
(function (AtsCreateCandidatesAssessmentsRequestDtoValue) {
    AtsCreateCandidatesAssessmentsRequestDtoValue["Active"] = "active";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Assessment"] = "assessment";
    AtsCreateCandidatesAssessmentsRequestDtoValue["BackgroundCheck"] = "background_check";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Converted"] = "converted";
    AtsCreateCandidatesAssessmentsRequestDtoValue["DeclinedByCandidate"] = "declined_by_candidate";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Hired"] = "hired";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Interview"] = "interview";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Lead"] = "lead";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Offer"] = "offer";
    AtsCreateCandidatesAssessmentsRequestDtoValue["ReferenceCheck"] = "reference_check";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Rejected"] = "rejected";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Review"] = "review";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Screen"] = "screen";
    AtsCreateCandidatesAssessmentsRequestDtoValue["New"] = "new";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Onboarding"] = "onboarding";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Created"] = "created";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Accepted"] = "accepted";
    AtsCreateCandidatesAssessmentsRequestDtoValue["ShortList"] = "short_list";
    AtsCreateCandidatesAssessmentsRequestDtoValue["Approved"] = "approved";
    AtsCreateCandidatesAssessmentsRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AtsCreateCandidatesAssessmentsRequestDtoValue || (exports.AtsCreateCandidatesAssessmentsRequestDtoValue = AtsCreateCandidatesAssessmentsRequestDtoValue = {}));
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDto4$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 AtsCreateCandidatesAssessmentsRequestDto4$;
(function (AtsCreateCandidatesAssessmentsRequestDto4$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDto4$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDto4$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDto4$ || (exports.AtsCreateCandidatesAssessmentsRequestDto4$ = AtsCreateCandidatesAssessmentsRequestDto4$ = {}));
function atsCreateCandidatesAssessmentsRequestDto4ToJSON(atsCreateCandidatesAssessmentsRequestDto4) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDto4));
}
exports.atsCreateCandidatesAssessmentsRequestDto4ToJSON = atsCreateCandidatesAssessmentsRequestDto4ToJSON;
function atsCreateCandidatesAssessmentsRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDto4' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDto4FromJSON = atsCreateCandidatesAssessmentsRequestDto4FromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDto4$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 AtsCreateCandidatesAssessmentsRequestDtoSourceValue$;
(function (AtsCreateCandidatesAssessmentsRequestDtoSourceValue$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoSourceValue$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoSourceValue$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoSourceValue$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoSourceValue$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$ = AtsCreateCandidatesAssessmentsRequestDtoSourceValue$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON(atsCreateCandidatesAssessmentsRequestDtoSourceValue) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoSourceValue));
}
exports.atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON = atsCreateCandidatesAssessmentsRequestDtoSourceValueToJSON;
function atsCreateCandidatesAssessmentsRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoSourceValue' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoSourceValueFromJSON = atsCreateCandidatesAssessmentsRequestDtoSourceValueFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(AtsCreateCandidatesAssessmentsRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(AtsCreateCandidatesAssessmentsRequestDtoValue),
    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 AtsCreateCandidatesAssessmentsRequestDtoValue$;
(function (AtsCreateCandidatesAssessmentsRequestDtoValue$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoValue$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoValue$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoValue$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoValue$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoValue$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoValue$ = AtsCreateCandidatesAssessmentsRequestDtoValue$ = {}));
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsCreateCandidatesAssessmentsRequestDtoValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AtsCreateCandidatesAssessmentsRequestDtoValue$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 AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$;
(function (AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$ = AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON(atsCreateCandidatesAssessmentsRequestDtoApplicationStatus) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema
        .parse(atsCreateCandidatesAssessmentsRequestDtoApplicationStatus));
}
exports.atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON = atsCreateCandidatesAssessmentsRequestDtoApplicationStatusToJSON;
function atsCreateCandidatesAssessmentsRequestDtoApplicationStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$inboundSchema
        .parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoApplicationStatusFromJSON = atsCreateCandidatesAssessmentsRequestDtoApplicationStatusFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$inboundSchema = z.object({
    application_status: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "application_status": "applicationStatus",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema = z.object({
    applicationStatus: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoApplicationStatus$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        applicationStatus: "application_status",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateCandidatesAssessmentsRequestDtoApplication$;
(function (AtsCreateCandidatesAssessmentsRequestDtoApplication$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoApplication$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoApplication$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoApplication$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoApplication$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$ = AtsCreateCandidatesAssessmentsRequestDtoApplication$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON(atsCreateCandidatesAssessmentsRequestDtoApplication) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoApplication));
}
exports.atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON = atsCreateCandidatesAssessmentsRequestDtoApplicationToJSON;
function atsCreateCandidatesAssessmentsRequestDtoApplicationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoApplication' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoApplicationFromJSON = atsCreateCandidatesAssessmentsRequestDtoApplicationFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$inboundSchema = z.object({
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$inboundSchema)).optional(),
    first_name: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    profile_url: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "profile_url": "profileUrl",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema = z.object({
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$outboundSchema)).optional(),
    firstName: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    profileUrl: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        profileUrl: "profile_url",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateCandidatesAssessmentsRequestDtoCandidate$;
(function (AtsCreateCandidatesAssessmentsRequestDtoCandidate$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoCandidate$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoCandidate$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoCandidate$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoCandidate$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$ = AtsCreateCandidatesAssessmentsRequestDtoCandidate$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON(atsCreateCandidatesAssessmentsRequestDtoCandidate) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoCandidate));
}
exports.atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON = atsCreateCandidatesAssessmentsRequestDtoCandidateToJSON;
function atsCreateCandidatesAssessmentsRequestDtoCandidateFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoCandidate' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoCandidateFromJSON = atsCreateCandidatesAssessmentsRequestDtoCandidateFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoJob$inboundSchema = z.object({
    hiring_team: z.nullable(z.array(jobhiringteam_js_1.JobHiringTeam$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remote_id: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "hiring_team": "hiringTeam",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema = z.object({
    hiringTeam: z.nullable(z.array(jobhiringteam_js_1.JobHiringTeam$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    remoteId: z.nullable(z.string()).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hiringTeam: "hiring_team",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateCandidatesAssessmentsRequestDtoJob$;
(function (AtsCreateCandidatesAssessmentsRequestDtoJob$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoJob$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoJob$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoJob$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoJob$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoJob$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoJob$ = AtsCreateCandidatesAssessmentsRequestDtoJob$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoJobToJSON(atsCreateCandidatesAssessmentsRequestDtoJob) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoJob));
}
exports.atsCreateCandidatesAssessmentsRequestDtoJobToJSON = atsCreateCandidatesAssessmentsRequestDtoJobToJSON;
function atsCreateCandidatesAssessmentsRequestDtoJobFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoJob' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoJobFromJSON = atsCreateCandidatesAssessmentsRequestDtoJobFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$inboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateCandidatesAssessmentsRequestDtoPackage$;
(function (AtsCreateCandidatesAssessmentsRequestDtoPackage$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoPackage$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoPackage$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoPackage$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoPackage$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$ = AtsCreateCandidatesAssessmentsRequestDtoPackage$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoPackageToJSON(atsCreateCandidatesAssessmentsRequestDtoPackage) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoPackage));
}
exports.atsCreateCandidatesAssessmentsRequestDtoPackageToJSON = atsCreateCandidatesAssessmentsRequestDtoPackageToJSON;
function atsCreateCandidatesAssessmentsRequestDtoPackageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoPackage' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoPackageFromJSON = atsCreateCandidatesAssessmentsRequestDtoPackageFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$inboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    first_name: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    remote_user_id: z.nullable(z.string()).optional(),
    role: z.nullable(z.string()).optional(),
    user_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "remote_user_id": "remoteUserId",
        "user_id": "userId",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema = z.object({
    email: z.nullable(z.string()).optional(),
    firstName: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    remoteUserId: z.nullable(z.string()).optional(),
    role: z.nullable(z.string()).optional(),
    userId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        remoteUserId: "remote_user_id",
        userId: "user_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateCandidatesAssessmentsRequestDtoRequester$;
(function (AtsCreateCandidatesAssessmentsRequestDtoRequester$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoRequester$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoRequester$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDtoRequester$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDtoRequester$ || (exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$ = AtsCreateCandidatesAssessmentsRequestDtoRequester$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON(atsCreateCandidatesAssessmentsRequestDtoRequester) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDtoRequester));
}
exports.atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON = atsCreateCandidatesAssessmentsRequestDtoRequesterToJSON;
function atsCreateCandidatesAssessmentsRequestDtoRequesterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDtoRequester' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoRequesterFromJSON = atsCreateCandidatesAssessmentsRequestDtoRequesterFromJSON;
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDto$inboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$inboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoJob$inboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$inboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    requester: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$inboundSchema)).optional(),
    results_update_url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "results_update_url": "resultsUpdateUrl",
    });
});
/** @internal */
exports.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema = z.object({
    application: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoApplication$outboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoCandidate$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    job: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoJob$outboundSchema)).optional(),
    package: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoPackage$outboundSchema)).optional(),
    passthrough: z.nullable(z.record(z.any())).optional(),
    requester: z.nullable(z.lazy(() => exports.AtsCreateCandidatesAssessmentsRequestDtoRequester$outboundSchema)).optional(),
    resultsUpdateUrl: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        resultsUpdateUrl: "results_update_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsCreateCandidatesAssessmentsRequestDto$;
(function (AtsCreateCandidatesAssessmentsRequestDto$) {
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDto$inboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDto$.inboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto$inboundSchema;
    /** @deprecated use `AtsCreateCandidatesAssessmentsRequestDto$outboundSchema` instead. */
    AtsCreateCandidatesAssessmentsRequestDto$.outboundSchema = exports.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema;
})(AtsCreateCandidatesAssessmentsRequestDto$ || (exports.AtsCreateCandidatesAssessmentsRequestDto$ = AtsCreateCandidatesAssessmentsRequestDto$ = {}));
function atsCreateCandidatesAssessmentsRequestDtoToJSON(atsCreateCandidatesAssessmentsRequestDto) {
    return JSON.stringify(exports.AtsCreateCandidatesAssessmentsRequestDto$outboundSchema.parse(atsCreateCandidatesAssessmentsRequestDto));
}
exports.atsCreateCandidatesAssessmentsRequestDtoToJSON = atsCreateCandidatesAssessmentsRequestDtoToJSON;
function atsCreateCandidatesAssessmentsRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsCreateCandidatesAssessmentsRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsCreateCandidatesAssessmentsRequestDto' from JSON`);
}
exports.atsCreateCandidatesAssessmentsRequestDtoFromJSON = atsCreateCandidatesAssessmentsRequestDtoFromJSON;
//# sourceMappingURL=atscreatecandidatesassessmentsrequestdto.js.map