"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.AssessmentsResults$ = exports.AssessmentsResults$outboundSchema = exports.AssessmentsResults$inboundSchema = exports.Score$ = exports.Score$outboundSchema = exports.Score$inboundSchema = exports.Result$ = exports.Result$outboundSchema = exports.Result$inboundSchema = exports.AssessmentsResultsValue$ = exports.AssessmentsResultsValue$outboundSchema = exports.AssessmentsResultsValue$inboundSchema = exports.AssessmentsResultsSourceValue$ = exports.AssessmentsResultsSourceValue$outboundSchema = exports.AssessmentsResultsSourceValue$inboundSchema = exports.AssessmentsResults4$ = exports.AssessmentsResults4$outboundSchema = exports.AssessmentsResults4$inboundSchema = exports.AssessmentsResultsCandidate$ = exports.AssessmentsResultsCandidate$outboundSchema = exports.AssessmentsResultsCandidate$inboundSchema = exports.Attachments$ = exports.Attachments$outboundSchema = exports.Attachments$inboundSchema = exports.AssessmentsResultsContentType$ = exports.AssessmentsResultsContentType$outboundSchema = exports.AssessmentsResultsContentType$inboundSchema = exports.AssessmentsResultsSchemasValue$ = exports.AssessmentsResultsSchemasValue$outboundSchema = exports.AssessmentsResultsSchemasValue$inboundSchema = exports.AssessmentsResultsSchemasSourceValue$ = exports.AssessmentsResultsSchemasSourceValue$outboundSchema = exports.AssessmentsResultsSchemasSourceValue$inboundSchema = exports.AssessmentsResultsSchemas4$ = exports.AssessmentsResultsSchemas4$outboundSchema = exports.AssessmentsResultsSchemas4$inboundSchema = exports.AssessmentsResultsValue = exports.AssessmentsResultsSchemasValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
/**
 * The content type of the attachment.
 */
var AssessmentsResultsSchemasValue;
(function (AssessmentsResultsSchemasValue) {
    AssessmentsResultsSchemasValue["Text"] = "text";
    AssessmentsResultsSchemasValue["UnmappedValue"] = "unmapped_value";
})(AssessmentsResultsSchemasValue || (exports.AssessmentsResultsSchemasValue = AssessmentsResultsSchemasValue = {}));
/**
 * The result of the assessment.
 */
var AssessmentsResultsValue;
(function (AssessmentsResultsValue) {
    AssessmentsResultsValue["Cancelled"] = "cancelled";
    AssessmentsResultsValue["Expired"] = "expired";
    AssessmentsResultsValue["Failed"] = "failed";
    AssessmentsResultsValue["Passed"] = "passed";
})(AssessmentsResultsValue || (exports.AssessmentsResultsValue = AssessmentsResultsValue = {}));
/** @internal */
exports.AssessmentsResultsSchemas4$inboundSchema = z.object({});
/** @internal */
exports.AssessmentsResultsSchemas4$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 AssessmentsResultsSchemas4$;
(function (AssessmentsResultsSchemas4$) {
    /** @deprecated use `AssessmentsResultsSchemas4$inboundSchema` instead. */
    AssessmentsResultsSchemas4$.inboundSchema = exports.AssessmentsResultsSchemas4$inboundSchema;
    /** @deprecated use `AssessmentsResultsSchemas4$outboundSchema` instead. */
    AssessmentsResultsSchemas4$.outboundSchema = exports.AssessmentsResultsSchemas4$outboundSchema;
})(AssessmentsResultsSchemas4$ || (exports.AssessmentsResultsSchemas4$ = AssessmentsResultsSchemas4$ = {}));
/** @internal */
exports.AssessmentsResultsSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AssessmentsResultsSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.AssessmentsResultsSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AssessmentsResultsSchemas4$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 AssessmentsResultsSchemasSourceValue$;
(function (AssessmentsResultsSchemasSourceValue$) {
    /** @deprecated use `AssessmentsResultsSchemasSourceValue$inboundSchema` instead. */
    AssessmentsResultsSchemasSourceValue$.inboundSchema = exports.AssessmentsResultsSchemasSourceValue$inboundSchema;
    /** @deprecated use `AssessmentsResultsSchemasSourceValue$outboundSchema` instead. */
    AssessmentsResultsSchemasSourceValue$.outboundSchema = exports.AssessmentsResultsSchemasSourceValue$outboundSchema;
})(AssessmentsResultsSchemasSourceValue$ || (exports.AssessmentsResultsSchemasSourceValue$ = AssessmentsResultsSchemasSourceValue$ = {}));
/** @internal */
exports.AssessmentsResultsSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(AssessmentsResultsSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssessmentsResultsSchemasValue$outboundSchema = z.union([
    z.nativeEnum(AssessmentsResultsSchemasValue),
    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 AssessmentsResultsSchemasValue$;
(function (AssessmentsResultsSchemasValue$) {
    /** @deprecated use `AssessmentsResultsSchemasValue$inboundSchema` instead. */
    AssessmentsResultsSchemasValue$.inboundSchema = exports.AssessmentsResultsSchemasValue$inboundSchema;
    /** @deprecated use `AssessmentsResultsSchemasValue$outboundSchema` instead. */
    AssessmentsResultsSchemasValue$.outboundSchema = exports.AssessmentsResultsSchemasValue$outboundSchema;
})(AssessmentsResultsSchemasValue$ || (exports.AssessmentsResultsSchemasValue$ = AssessmentsResultsSchemasValue$ = {}));
/** @internal */
exports.AssessmentsResultsContentType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AssessmentsResultsSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssessmentsResultsSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.AssessmentsResultsContentType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AssessmentsResultsSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssessmentsResultsSchemasValue$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 AssessmentsResultsContentType$;
(function (AssessmentsResultsContentType$) {
    /** @deprecated use `AssessmentsResultsContentType$inboundSchema` instead. */
    AssessmentsResultsContentType$.inboundSchema = exports.AssessmentsResultsContentType$inboundSchema;
    /** @deprecated use `AssessmentsResultsContentType$outboundSchema` instead. */
    AssessmentsResultsContentType$.outboundSchema = exports.AssessmentsResultsContentType$outboundSchema;
})(AssessmentsResultsContentType$ || (exports.AssessmentsResultsContentType$ = AssessmentsResultsContentType$ = {}));
/** @internal */
exports.Attachments$inboundSchema = z.object({
    content_type: z.nullable(z.lazy(() => exports.AssessmentsResultsContentType$inboundSchema)).optional(),
    url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "content_type": "contentType",
    });
});
/** @internal */
exports.Attachments$outboundSchema = z.object({
    contentType: z.nullable(z.lazy(() => exports.AssessmentsResultsContentType$outboundSchema)).optional(),
    url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "content_type",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Attachments$;
(function (Attachments$) {
    /** @deprecated use `Attachments$inboundSchema` instead. */
    Attachments$.inboundSchema = exports.Attachments$inboundSchema;
    /** @deprecated use `Attachments$outboundSchema` instead. */
    Attachments$.outboundSchema = exports.Attachments$outboundSchema;
})(Attachments$ || (exports.Attachments$ = Attachments$ = {}));
/** @internal */
exports.AssessmentsResultsCandidate$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    profile_url: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "profile_url": "profileUrl",
    });
});
/** @internal */
exports.AssessmentsResultsCandidate$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    profileUrl: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        profileUrl: "profile_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentsResultsCandidate$;
(function (AssessmentsResultsCandidate$) {
    /** @deprecated use `AssessmentsResultsCandidate$inboundSchema` instead. */
    AssessmentsResultsCandidate$.inboundSchema = exports.AssessmentsResultsCandidate$inboundSchema;
    /** @deprecated use `AssessmentsResultsCandidate$outboundSchema` instead. */
    AssessmentsResultsCandidate$.outboundSchema = exports.AssessmentsResultsCandidate$outboundSchema;
})(AssessmentsResultsCandidate$ || (exports.AssessmentsResultsCandidate$ = AssessmentsResultsCandidate$ = {}));
/** @internal */
exports.AssessmentsResults4$inboundSchema = z.object({});
/** @internal */
exports.AssessmentsResults4$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 AssessmentsResults4$;
(function (AssessmentsResults4$) {
    /** @deprecated use `AssessmentsResults4$inboundSchema` instead. */
    AssessmentsResults4$.inboundSchema = exports.AssessmentsResults4$inboundSchema;
    /** @deprecated use `AssessmentsResults4$outboundSchema` instead. */
    AssessmentsResults4$.outboundSchema = exports.AssessmentsResults4$outboundSchema;
})(AssessmentsResults4$ || (exports.AssessmentsResults4$ = AssessmentsResults4$ = {}));
/** @internal */
exports.AssessmentsResultsSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.AssessmentsResults4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.AssessmentsResultsSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.AssessmentsResults4$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 AssessmentsResultsSourceValue$;
(function (AssessmentsResultsSourceValue$) {
    /** @deprecated use `AssessmentsResultsSourceValue$inboundSchema` instead. */
    AssessmentsResultsSourceValue$.inboundSchema = exports.AssessmentsResultsSourceValue$inboundSchema;
    /** @deprecated use `AssessmentsResultsSourceValue$outboundSchema` instead. */
    AssessmentsResultsSourceValue$.outboundSchema = exports.AssessmentsResultsSourceValue$outboundSchema;
})(AssessmentsResultsSourceValue$ || (exports.AssessmentsResultsSourceValue$ = AssessmentsResultsSourceValue$ = {}));
/** @internal */
exports.AssessmentsResultsValue$inboundSchema = z
    .union([
    z.nativeEnum(AssessmentsResultsValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AssessmentsResultsValue$outboundSchema = z.union([
    z.nativeEnum(AssessmentsResultsValue),
    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 AssessmentsResultsValue$;
(function (AssessmentsResultsValue$) {
    /** @deprecated use `AssessmentsResultsValue$inboundSchema` instead. */
    AssessmentsResultsValue$.inboundSchema = exports.AssessmentsResultsValue$inboundSchema;
    /** @deprecated use `AssessmentsResultsValue$outboundSchema` instead. */
    AssessmentsResultsValue$.outboundSchema = exports.AssessmentsResultsValue$outboundSchema;
})(AssessmentsResultsValue$ || (exports.AssessmentsResultsValue$ = AssessmentsResultsValue$ = {}));
/** @internal */
exports.Result$inboundSchema = z
    .object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.AssessmentsResults4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssessmentsResultsValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.Result$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.AssessmentsResults4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AssessmentsResultsValue$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 Result$;
(function (Result$) {
    /** @deprecated use `Result$inboundSchema` instead. */
    Result$.inboundSchema = exports.Result$inboundSchema;
    /** @deprecated use `Result$outboundSchema` instead. */
    Result$.outboundSchema = exports.Result$outboundSchema;
})(Result$ || (exports.Result$ = Result$ = {}));
/** @internal */
exports.Score$inboundSchema = z
    .object({
    label: z.nullable(z.string()).optional(),
    max: z.nullable(z.string()).optional(),
    min: z.nullable(z.string()).optional(),
    value: z.nullable(z.string()).optional(),
});
/** @internal */
exports.Score$outboundSchema = z.object({
    label: z.nullable(z.string()).optional(),
    max: z.nullable(z.string()).optional(),
    min: z.nullable(z.string()).optional(),
    value: 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 Score$;
(function (Score$) {
    /** @deprecated use `Score$inboundSchema` instead. */
    Score$.inboundSchema = exports.Score$inboundSchema;
    /** @deprecated use `Score$outboundSchema` instead. */
    Score$.outboundSchema = exports.Score$outboundSchema;
})(Score$ || (exports.Score$ = Score$ = {}));
/** @internal */
exports.AssessmentsResults$inboundSchema = z.object({
    assessment_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    assessment_id: z.nullable(z.string()).optional(),
    attachments: z.nullable(z.lazy(() => exports.Attachments$inboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AssessmentsResultsCandidate$inboundSchema))
        .optional(),
    id: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    result: z.nullable(z.lazy(() => exports.Result$inboundSchema)).optional(),
    result_url: z.nullable(z.string()).optional(),
    score: z.nullable(z.lazy(() => exports.Score$inboundSchema)).optional(),
    submission_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    summary: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "assessment_date": "assessmentDate",
        "assessment_id": "assessmentId",
        "remote_id": "remoteId",
        "result_url": "resultUrl",
        "submission_date": "submissionDate",
    });
});
/** @internal */
exports.AssessmentsResults$outboundSchema = z.object({
    assessmentDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    assessmentId: z.nullable(z.string()).optional(),
    attachments: z.nullable(z.lazy(() => exports.Attachments$outboundSchema)).optional(),
    candidate: z.nullable(z.lazy(() => exports.AssessmentsResultsCandidate$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    result: z.nullable(z.lazy(() => exports.Result$outboundSchema)).optional(),
    resultUrl: z.nullable(z.string()).optional(),
    score: z.nullable(z.lazy(() => exports.Score$outboundSchema)).optional(),
    submissionDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
    summary: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        assessmentDate: "assessment_date",
        assessmentId: "assessment_id",
        remoteId: "remote_id",
        resultUrl: "result_url",
        submissionDate: "submission_date",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AssessmentsResults$;
(function (AssessmentsResults$) {
    /** @deprecated use `AssessmentsResults$inboundSchema` instead. */
    AssessmentsResults$.inboundSchema = exports.AssessmentsResults$inboundSchema;
    /** @deprecated use `AssessmentsResults$outboundSchema` instead. */
    AssessmentsResults$.outboundSchema = exports.AssessmentsResults$outboundSchema;
})(AssessmentsResults$ || (exports.AssessmentsResults$ = AssessmentsResults$ = {}));
//# sourceMappingURL=assessmentsresults.js.map