"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.applicationFromJSON = exports.applicationToJSON = exports.Application$ = exports.Application$outboundSchema = exports.Application$inboundSchema = exports.sourceFromJSON = exports.sourceToJSON = exports.Source$ = exports.Source$outboundSchema = exports.Source$inboundSchema = exports.applicationInterviewStageFromJSON = exports.applicationInterviewStageToJSON = exports.ApplicationInterviewStage$ = exports.ApplicationInterviewStage$outboundSchema = exports.ApplicationInterviewStage$inboundSchema = exports.applicationCandidateFromJSON = exports.applicationCandidateToJSON = exports.ApplicationCandidate$ = exports.ApplicationCandidate$outboundSchema = exports.ApplicationCandidate$inboundSchema = exports.applicationStatusFromJSON = exports.applicationStatusToJSON = exports.ApplicationStatus$ = exports.ApplicationStatus$outboundSchema = exports.ApplicationStatus$inboundSchema = exports.ApplicationValue$ = exports.ApplicationValue$outboundSchema = exports.ApplicationValue$inboundSchema = exports.applicationSourceValueFromJSON = exports.applicationSourceValueToJSON = exports.ApplicationSourceValue$ = exports.ApplicationSourceValue$outboundSchema = exports.ApplicationSourceValue$inboundSchema = exports.application4FromJSON = exports.application4ToJSON = exports.Application4$ = exports.Application4$outboundSchema = exports.Application4$inboundSchema = exports.ApplicationValue = 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 applicationattachment_js_1 = require("./applicationattachment.js");
const atsdocumentapimodel_js_1 = require("./atsdocumentapimodel.js");
const candidateemail_js_1 = require("./candidateemail.js");
const customfields_js_1 = require("./customfields.js");
const phonenumber_js_1 = require("./phonenumber.js");
const questionnaire_js_1 = require("./questionnaire.js");
const rejectedreason_js_1 = require("./rejectedreason.js");
const resultlink_js_1 = require("./resultlink.js");
const sociallink_js_1 = require("./sociallink.js");
/**
 * The status of the application.
 */
var ApplicationValue;
(function (ApplicationValue) {
    ApplicationValue["Active"] = "active";
    ApplicationValue["Assessment"] = "assessment";
    ApplicationValue["BackgroundCheck"] = "background_check";
    ApplicationValue["Converted"] = "converted";
    ApplicationValue["DeclinedByCandidate"] = "declined_by_candidate";
    ApplicationValue["Hired"] = "hired";
    ApplicationValue["Interview"] = "interview";
    ApplicationValue["Lead"] = "lead";
    ApplicationValue["Offer"] = "offer";
    ApplicationValue["ReferenceCheck"] = "reference_check";
    ApplicationValue["Rejected"] = "rejected";
    ApplicationValue["Review"] = "review";
    ApplicationValue["Screen"] = "screen";
    ApplicationValue["New"] = "new";
    ApplicationValue["Onboarding"] = "onboarding";
    ApplicationValue["Created"] = "created";
    ApplicationValue["Accepted"] = "accepted";
    ApplicationValue["ShortList"] = "short_list";
    ApplicationValue["Approved"] = "approved";
    ApplicationValue["UnmappedValue"] = "unmapped_value";
})(ApplicationValue || (exports.ApplicationValue = ApplicationValue = {}));
/** @internal */
exports.Application4$inboundSchema = z.object({});
/** @internal */
exports.Application4$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 Application4$;
(function (Application4$) {
    /** @deprecated use `Application4$inboundSchema` instead. */
    Application4$.inboundSchema = exports.Application4$inboundSchema;
    /** @deprecated use `Application4$outboundSchema` instead. */
    Application4$.outboundSchema = exports.Application4$outboundSchema;
})(Application4$ || (exports.Application4$ = Application4$ = {}));
function application4ToJSON(application4) {
    return JSON.stringify(exports.Application4$outboundSchema.parse(application4));
}
exports.application4ToJSON = application4ToJSON;
function application4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Application4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Application4' from JSON`);
}
exports.application4FromJSON = application4FromJSON;
/** @internal */
exports.ApplicationSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.Application4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.ApplicationSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.Application4$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 ApplicationSourceValue$;
(function (ApplicationSourceValue$) {
    /** @deprecated use `ApplicationSourceValue$inboundSchema` instead. */
    ApplicationSourceValue$.inboundSchema = exports.ApplicationSourceValue$inboundSchema;
    /** @deprecated use `ApplicationSourceValue$outboundSchema` instead. */
    ApplicationSourceValue$.outboundSchema = exports.ApplicationSourceValue$outboundSchema;
})(ApplicationSourceValue$ || (exports.ApplicationSourceValue$ = ApplicationSourceValue$ = {}));
function applicationSourceValueToJSON(applicationSourceValue) {
    return JSON.stringify(exports.ApplicationSourceValue$outboundSchema.parse(applicationSourceValue));
}
exports.applicationSourceValueToJSON = applicationSourceValueToJSON;
function applicationSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApplicationSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApplicationSourceValue' from JSON`);
}
exports.applicationSourceValueFromJSON = applicationSourceValueFromJSON;
/** @internal */
exports.ApplicationValue$inboundSchema = z
    .union([
    z.nativeEnum(ApplicationValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.ApplicationValue$outboundSchema = z.union([
    z.nativeEnum(ApplicationValue),
    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 ApplicationValue$;
(function (ApplicationValue$) {
    /** @deprecated use `ApplicationValue$inboundSchema` instead. */
    ApplicationValue$.inboundSchema = exports.ApplicationValue$inboundSchema;
    /** @deprecated use `ApplicationValue$outboundSchema` instead. */
    ApplicationValue$.outboundSchema = exports.ApplicationValue$outboundSchema;
})(ApplicationValue$ || (exports.ApplicationValue$ = ApplicationValue$ = {}));
/** @internal */
exports.ApplicationStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.Application4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ApplicationValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.ApplicationStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.Application4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ApplicationValue$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 ApplicationStatus$;
(function (ApplicationStatus$) {
    /** @deprecated use `ApplicationStatus$inboundSchema` instead. */
    ApplicationStatus$.inboundSchema = exports.ApplicationStatus$inboundSchema;
    /** @deprecated use `ApplicationStatus$outboundSchema` instead. */
    ApplicationStatus$.outboundSchema = exports.ApplicationStatus$outboundSchema;
})(ApplicationStatus$ || (exports.ApplicationStatus$ = ApplicationStatus$ = {}));
function applicationStatusToJSON(applicationStatus) {
    return JSON.stringify(exports.ApplicationStatus$outboundSchema.parse(applicationStatus));
}
exports.applicationStatusToJSON = applicationStatusToJSON;
function applicationStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApplicationStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApplicationStatus' from JSON`);
}
exports.applicationStatusFromJSON = applicationStatusFromJSON;
/** @internal */
exports.ApplicationCandidate$inboundSchema = z.object({
    company: z.nullable(z.string()).optional(),
    email: z.nullable(z.string()).optional(),
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$inboundSchema)).optional(),
    first_name: z.nullable(z.string()).optional(),
    last_name: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    phone_numbers: z.nullable(z.array(phonenumber_js_1.PhoneNumber$inboundSchema)).optional(),
    social_links: z.nullable(z.array(sociallink_js_1.SocialLink$inboundSchema)).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "first_name": "firstName",
        "last_name": "lastName",
        "phone_numbers": "phoneNumbers",
        "social_links": "socialLinks",
    });
});
/** @internal */
exports.ApplicationCandidate$outboundSchema = z.object({
    company: z.nullable(z.string()).optional(),
    email: z.nullable(z.string()).optional(),
    emails: z.nullable(z.array(candidateemail_js_1.CandidateEmail$outboundSchema)).optional(),
    firstName: z.nullable(z.string()).optional(),
    lastName: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    phoneNumbers: z.nullable(z.array(phonenumber_js_1.PhoneNumber$outboundSchema)).optional(),
    socialLinks: z.nullable(z.array(sociallink_js_1.SocialLink$outboundSchema)).optional(),
    title: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        firstName: "first_name",
        lastName: "last_name",
        phoneNumbers: "phone_numbers",
        socialLinks: "social_links",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ApplicationCandidate$;
(function (ApplicationCandidate$) {
    /** @deprecated use `ApplicationCandidate$inboundSchema` instead. */
    ApplicationCandidate$.inboundSchema = exports.ApplicationCandidate$inboundSchema;
    /** @deprecated use `ApplicationCandidate$outboundSchema` instead. */
    ApplicationCandidate$.outboundSchema = exports.ApplicationCandidate$outboundSchema;
})(ApplicationCandidate$ || (exports.ApplicationCandidate$ = ApplicationCandidate$ = {}));
function applicationCandidateToJSON(applicationCandidate) {
    return JSON.stringify(exports.ApplicationCandidate$outboundSchema.parse(applicationCandidate));
}
exports.applicationCandidateToJSON = applicationCandidateToJSON;
function applicationCandidateFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApplicationCandidate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApplicationCandidate' from JSON`);
}
exports.applicationCandidateFromJSON = applicationCandidateFromJSON;
/** @internal */
exports.ApplicationInterviewStage$inboundSchema = z.object({
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    order: z.nullable(z.number()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "created_at": "createdAt",
        "remote_id": "remoteId",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
    });
});
/** @internal */
exports.ApplicationInterviewStage$outboundSchema = z.object({
    createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    order: z.nullable(z.number()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        createdAt: "created_at",
        remoteId: "remote_id",
        unifiedCustomFields: "unified_custom_fields",
        updatedAt: "updated_at",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ApplicationInterviewStage$;
(function (ApplicationInterviewStage$) {
    /** @deprecated use `ApplicationInterviewStage$inboundSchema` instead. */
    ApplicationInterviewStage$.inboundSchema = exports.ApplicationInterviewStage$inboundSchema;
    /** @deprecated use `ApplicationInterviewStage$outboundSchema` instead. */
    ApplicationInterviewStage$.outboundSchema = exports.ApplicationInterviewStage$outboundSchema;
})(ApplicationInterviewStage$ || (exports.ApplicationInterviewStage$ = ApplicationInterviewStage$ = {}));
function applicationInterviewStageToJSON(applicationInterviewStage) {
    return JSON.stringify(exports.ApplicationInterviewStage$outboundSchema.parse(applicationInterviewStage));
}
exports.applicationInterviewStageToJSON = applicationInterviewStageToJSON;
function applicationInterviewStageFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApplicationInterviewStage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApplicationInterviewStage' from JSON`);
}
exports.applicationInterviewStageFromJSON = applicationInterviewStageFromJSON;
/** @internal */
exports.Source$inboundSchema = z
    .object({
    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.Source$outboundSchema = z.object({
    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 Source$;
(function (Source$) {
    /** @deprecated use `Source$inboundSchema` instead. */
    Source$.inboundSchema = exports.Source$inboundSchema;
    /** @deprecated use `Source$outboundSchema` instead. */
    Source$.outboundSchema = exports.Source$outboundSchema;
})(Source$ || (exports.Source$ = Source$ = {}));
function sourceToJSON(source) {
    return JSON.stringify(exports.Source$outboundSchema.parse(source));
}
exports.sourceToJSON = sourceToJSON;
function sourceFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Source$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Source' from JSON`);
}
exports.sourceFromJSON = sourceFromJSON;
/** @internal */
exports.Application$inboundSchema = z.object({
    application_status: z.nullable(z.lazy(() => exports.ApplicationStatus$inboundSchema))
        .optional(),
    attachments: z.nullable(z.array(applicationattachment_js_1.ApplicationAttachment$inboundSchema))
        .optional(),
    candidate: z.nullable(z.lazy(() => exports.ApplicationCandidate$inboundSchema))
        .optional(),
    candidate_id: z.nullable(z.string()).optional(),
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    custom_fields: z.nullable(z.array(customfields_js_1.CustomFields$inboundSchema)).optional(),
    documents: z.nullable(z.array(atsdocumentapimodel_js_1.AtsDocumentApiModel$inboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    interview_stage: z.nullable(z.lazy(() => exports.ApplicationInterviewStage$inboundSchema)).optional(),
    interview_stage_id: z.nullable(z.string()).optional(),
    job_id: z.nullable(z.string()).optional(),
    location_id: z.nullable(z.string()).optional(),
    location_ids: z.nullable(z.array(z.string())).optional(),
    questionnaires: z.nullable(z.array(questionnaire_js_1.Questionnaire$inboundSchema)).optional(),
    rejected_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    rejected_reason_ids: z.nullable(z.array(z.string())).optional(),
    rejected_reasons: z.nullable(z.array(rejectedreason_js_1.RejectedReason$inboundSchema))
        .optional(),
    remote_candidate_id: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    remote_interview_stage_id: z.nullable(z.string()).optional(),
    remote_job_id: z.nullable(z.string()).optional(),
    remote_location_id: z.nullable(z.string()).optional(),
    remote_location_ids: z.nullable(z.array(z.string())).optional(),
    remote_rejected_reason_ids: z.nullable(z.array(z.string())).optional(),
    result_links: z.nullable(z.array(resultlink_js_1.ResultLink$inboundSchema)).optional(),
    source: z.nullable(z.lazy(() => exports.Source$inboundSchema)).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "application_status": "applicationStatus",
        "candidate_id": "candidateId",
        "created_at": "createdAt",
        "custom_fields": "customFields",
        "interview_stage": "interviewStage",
        "interview_stage_id": "interviewStageId",
        "job_id": "jobId",
        "location_id": "locationId",
        "location_ids": "locationIds",
        "rejected_at": "rejectedAt",
        "rejected_reason_ids": "rejectedReasonIds",
        "rejected_reasons": "rejectedReasons",
        "remote_candidate_id": "remoteCandidateId",
        "remote_id": "remoteId",
        "remote_interview_stage_id": "remoteInterviewStageId",
        "remote_job_id": "remoteJobId",
        "remote_location_id": "remoteLocationId",
        "remote_location_ids": "remoteLocationIds",
        "remote_rejected_reason_ids": "remoteRejectedReasonIds",
        "result_links": "resultLinks",
        "unified_custom_fields": "unifiedCustomFields",
        "updated_at": "updatedAt",
    });
});
/** @internal */
exports.Application$outboundSchema = z.object({
    applicationStatus: z.nullable(z.lazy(() => exports.ApplicationStatus$outboundSchema))
        .optional(),
    attachments: z.nullable(z.array(applicationattachment_js_1.ApplicationAttachment$outboundSchema))
        .optional(),
    candidate: z.nullable(z.lazy(() => exports.ApplicationCandidate$outboundSchema))
        .optional(),
    candidateId: z.nullable(z.string()).optional(),
    createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    customFields: z.nullable(z.array(customfields_js_1.CustomFields$outboundSchema)).optional(),
    documents: z.nullable(z.array(atsdocumentapimodel_js_1.AtsDocumentApiModel$outboundSchema)).optional(),
    id: z.nullable(z.string()).optional(),
    interviewStage: z.nullable(z.lazy(() => exports.ApplicationInterviewStage$outboundSchema)).optional(),
    interviewStageId: z.nullable(z.string()).optional(),
    jobId: z.nullable(z.string()).optional(),
    locationId: z.nullable(z.string()).optional(),
    locationIds: z.nullable(z.array(z.string())).optional(),
    questionnaires: z.nullable(z.array(questionnaire_js_1.Questionnaire$outboundSchema)).optional(),
    rejectedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    rejectedReasonIds: z.nullable(z.array(z.string())).optional(),
    rejectedReasons: z.nullable(z.array(rejectedreason_js_1.RejectedReason$outboundSchema))
        .optional(),
    remoteCandidateId: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    remoteInterviewStageId: z.nullable(z.string()).optional(),
    remoteJobId: z.nullable(z.string()).optional(),
    remoteLocationId: z.nullable(z.string()).optional(),
    remoteLocationIds: z.nullable(z.array(z.string())).optional(),
    remoteRejectedReasonIds: z.nullable(z.array(z.string())).optional(),
    resultLinks: z.nullable(z.array(resultlink_js_1.ResultLink$outboundSchema)).optional(),
    source: z.nullable(z.lazy(() => exports.Source$outboundSchema)).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
    updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        applicationStatus: "application_status",
        candidateId: "candidate_id",
        createdAt: "created_at",
        customFields: "custom_fields",
        interviewStage: "interview_stage",
        interviewStageId: "interview_stage_id",
        jobId: "job_id",
        locationId: "location_id",
        locationIds: "location_ids",
        rejectedAt: "rejected_at",
        rejectedReasonIds: "rejected_reason_ids",
        rejectedReasons: "rejected_reasons",
        remoteCandidateId: "remote_candidate_id",
        remoteId: "remote_id",
        remoteInterviewStageId: "remote_interview_stage_id",
        remoteJobId: "remote_job_id",
        remoteLocationId: "remote_location_id",
        remoteLocationIds: "remote_location_ids",
        remoteRejectedReasonIds: "remote_rejected_reason_ids",
        resultLinks: "result_links",
        unifiedCustomFields: "unified_custom_fields",
        updatedAt: "updated_at",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Application$;
(function (Application$) {
    /** @deprecated use `Application$inboundSchema` instead. */
    Application$.inboundSchema = exports.Application$inboundSchema;
    /** @deprecated use `Application$outboundSchema` instead. */
    Application$.outboundSchema = exports.Application$outboundSchema;
})(Application$ || (exports.Application$ = Application$ = {}));
function applicationToJSON(application) {
    return JSON.stringify(exports.Application$outboundSchema.parse(application));
}
exports.applicationToJSON = applicationToJSON;
function applicationFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Application$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Application' from JSON`);
}
exports.applicationFromJSON = applicationFromJSON;
//# sourceMappingURL=application.js.map