"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.ClassifierDetailedJobOut$ = exports.ClassifierDetailedJobOut$outboundSchema = exports.ClassifierDetailedJobOut$inboundSchema = exports.ClassifierDetailedJobOutJobType$ = exports.ClassifierDetailedJobOutJobType$outboundSchema = exports.ClassifierDetailedJobOutJobType$inboundSchema = exports.ClassifierDetailedJobOutIntegrations$ = exports.ClassifierDetailedJobOutIntegrations$outboundSchema = exports.ClassifierDetailedJobOutIntegrations$inboundSchema = exports.ClassifierDetailedJobOutObject$ = exports.ClassifierDetailedJobOutObject$outboundSchema = exports.ClassifierDetailedJobOutObject$inboundSchema = exports.ClassifierDetailedJobOutStatus$ = exports.ClassifierDetailedJobOutStatus$outboundSchema = exports.ClassifierDetailedJobOutStatus$inboundSchema = exports.ClassifierDetailedJobOutJobType = exports.ClassifierDetailedJobOutObject = exports.ClassifierDetailedJobOutStatus = void 0;
exports.classifierDetailedJobOutIntegrationsToJSON = classifierDetailedJobOutIntegrationsToJSON;
exports.classifierDetailedJobOutIntegrationsFromJSON = classifierDetailedJobOutIntegrationsFromJSON;
exports.classifierDetailedJobOutToJSON = classifierDetailedJobOutToJSON;
exports.classifierDetailedJobOutFromJSON = classifierDetailedJobOutFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const checkpointout_js_1 = require("./checkpointout.js");
const classifiertargetout_js_1 = require("./classifiertargetout.js");
const classifiertrainingparameters_js_1 = require("./classifiertrainingparameters.js");
const eventout_js_1 = require("./eventout.js");
const jobmetadataout_js_1 = require("./jobmetadataout.js");
const wandbintegrationout_js_1 = require("./wandbintegrationout.js");
exports.ClassifierDetailedJobOutStatus = {
    Queued: "QUEUED",
    Started: "STARTED",
    Validating: "VALIDATING",
    Validated: "VALIDATED",
    Running: "RUNNING",
    FailedValidation: "FAILED_VALIDATION",
    Failed: "FAILED",
    Success: "SUCCESS",
    Cancelled: "CANCELLED",
    CancellationRequested: "CANCELLATION_REQUESTED",
};
exports.ClassifierDetailedJobOutObject = {
    Job: "job",
};
exports.ClassifierDetailedJobOutJobType = {
    Classifier: "classifier",
};
/** @internal */
exports.ClassifierDetailedJobOutStatus$inboundSchema = z.nativeEnum(exports.ClassifierDetailedJobOutStatus);
/** @internal */
exports.ClassifierDetailedJobOutStatus$outboundSchema = exports.ClassifierDetailedJobOutStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierDetailedJobOutStatus$;
(function (ClassifierDetailedJobOutStatus$) {
    /** @deprecated use `ClassifierDetailedJobOutStatus$inboundSchema` instead. */
    ClassifierDetailedJobOutStatus$.inboundSchema = exports.ClassifierDetailedJobOutStatus$inboundSchema;
    /** @deprecated use `ClassifierDetailedJobOutStatus$outboundSchema` instead. */
    ClassifierDetailedJobOutStatus$.outboundSchema = exports.ClassifierDetailedJobOutStatus$outboundSchema;
})(ClassifierDetailedJobOutStatus$ || (exports.ClassifierDetailedJobOutStatus$ = ClassifierDetailedJobOutStatus$ = {}));
/** @internal */
exports.ClassifierDetailedJobOutObject$inboundSchema = z.nativeEnum(exports.ClassifierDetailedJobOutObject);
/** @internal */
exports.ClassifierDetailedJobOutObject$outboundSchema = exports.ClassifierDetailedJobOutObject$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierDetailedJobOutObject$;
(function (ClassifierDetailedJobOutObject$) {
    /** @deprecated use `ClassifierDetailedJobOutObject$inboundSchema` instead. */
    ClassifierDetailedJobOutObject$.inboundSchema = exports.ClassifierDetailedJobOutObject$inboundSchema;
    /** @deprecated use `ClassifierDetailedJobOutObject$outboundSchema` instead. */
    ClassifierDetailedJobOutObject$.outboundSchema = exports.ClassifierDetailedJobOutObject$outboundSchema;
})(ClassifierDetailedJobOutObject$ || (exports.ClassifierDetailedJobOutObject$ = ClassifierDetailedJobOutObject$ = {}));
/** @internal */
exports.ClassifierDetailedJobOutIntegrations$inboundSchema = wandbintegrationout_js_1.WandbIntegrationOut$inboundSchema;
/** @internal */
exports.ClassifierDetailedJobOutIntegrations$outboundSchema = wandbintegrationout_js_1.WandbIntegrationOut$outboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierDetailedJobOutIntegrations$;
(function (ClassifierDetailedJobOutIntegrations$) {
    /** @deprecated use `ClassifierDetailedJobOutIntegrations$inboundSchema` instead. */
    ClassifierDetailedJobOutIntegrations$.inboundSchema = exports.ClassifierDetailedJobOutIntegrations$inboundSchema;
    /** @deprecated use `ClassifierDetailedJobOutIntegrations$outboundSchema` instead. */
    ClassifierDetailedJobOutIntegrations$.outboundSchema = exports.ClassifierDetailedJobOutIntegrations$outboundSchema;
})(ClassifierDetailedJobOutIntegrations$ || (exports.ClassifierDetailedJobOutIntegrations$ = ClassifierDetailedJobOutIntegrations$ = {}));
function classifierDetailedJobOutIntegrationsToJSON(classifierDetailedJobOutIntegrations) {
    return JSON.stringify(exports.ClassifierDetailedJobOutIntegrations$outboundSchema.parse(classifierDetailedJobOutIntegrations));
}
function classifierDetailedJobOutIntegrationsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ClassifierDetailedJobOutIntegrations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ClassifierDetailedJobOutIntegrations' from JSON`);
}
/** @internal */
exports.ClassifierDetailedJobOutJobType$inboundSchema = z.nativeEnum(exports.ClassifierDetailedJobOutJobType);
/** @internal */
exports.ClassifierDetailedJobOutJobType$outboundSchema = exports.ClassifierDetailedJobOutJobType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierDetailedJobOutJobType$;
(function (ClassifierDetailedJobOutJobType$) {
    /** @deprecated use `ClassifierDetailedJobOutJobType$inboundSchema` instead. */
    ClassifierDetailedJobOutJobType$.inboundSchema = exports.ClassifierDetailedJobOutJobType$inboundSchema;
    /** @deprecated use `ClassifierDetailedJobOutJobType$outboundSchema` instead. */
    ClassifierDetailedJobOutJobType$.outboundSchema = exports.ClassifierDetailedJobOutJobType$outboundSchema;
})(ClassifierDetailedJobOutJobType$ || (exports.ClassifierDetailedJobOutJobType$ = ClassifierDetailedJobOutJobType$ = {}));
/** @internal */
exports.ClassifierDetailedJobOut$inboundSchema = z.object({
    id: z.string(),
    auto_start: z.boolean(),
    model: z.string(),
    status: exports.ClassifierDetailedJobOutStatus$inboundSchema,
    created_at: z.number().int(),
    modified_at: z.number().int(),
    training_files: z.array(z.string()),
    validation_files: z.nullable(z.array(z.string())).optional(),
    object: exports.ClassifierDetailedJobOutObject$inboundSchema.default("job"),
    fine_tuned_model: z.nullable(z.string()).optional(),
    suffix: z.nullable(z.string()).optional(),
    integrations: z.nullable(z.array(wandbintegrationout_js_1.WandbIntegrationOut$inboundSchema))
        .optional(),
    trained_tokens: z.nullable(z.number().int()).optional(),
    metadata: z.nullable(jobmetadataout_js_1.JobMetadataOut$inboundSchema).optional(),
    job_type: exports.ClassifierDetailedJobOutJobType$inboundSchema.default("classifier"),
    hyperparameters: classifiertrainingparameters_js_1.ClassifierTrainingParameters$inboundSchema,
    events: z.array(eventout_js_1.EventOut$inboundSchema).optional(),
    checkpoints: z.array(checkpointout_js_1.CheckpointOut$inboundSchema).optional(),
    classifier_targets: z.array(classifiertargetout_js_1.ClassifierTargetOut$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "auto_start": "autoStart",
        "created_at": "createdAt",
        "modified_at": "modifiedAt",
        "training_files": "trainingFiles",
        "validation_files": "validationFiles",
        "fine_tuned_model": "fineTunedModel",
        "trained_tokens": "trainedTokens",
        "job_type": "jobType",
        "classifier_targets": "classifierTargets",
    });
});
/** @internal */
exports.ClassifierDetailedJobOut$outboundSchema = z.object({
    id: z.string(),
    autoStart: z.boolean(),
    model: z.string(),
    status: exports.ClassifierDetailedJobOutStatus$outboundSchema,
    createdAt: z.number().int(),
    modifiedAt: z.number().int(),
    trainingFiles: z.array(z.string()),
    validationFiles: z.nullable(z.array(z.string())).optional(),
    object: exports.ClassifierDetailedJobOutObject$outboundSchema.default("job"),
    fineTunedModel: z.nullable(z.string()).optional(),
    suffix: z.nullable(z.string()).optional(),
    integrations: z.nullable(z.array(wandbintegrationout_js_1.WandbIntegrationOut$outboundSchema))
        .optional(),
    trainedTokens: z.nullable(z.number().int()).optional(),
    metadata: z.nullable(jobmetadataout_js_1.JobMetadataOut$outboundSchema).optional(),
    jobType: exports.ClassifierDetailedJobOutJobType$outboundSchema.default("classifier"),
    hyperparameters: classifiertrainingparameters_js_1.ClassifierTrainingParameters$outboundSchema,
    events: z.array(eventout_js_1.EventOut$outboundSchema).optional(),
    checkpoints: z.array(checkpointout_js_1.CheckpointOut$outboundSchema).optional(),
    classifierTargets: z.array(classifiertargetout_js_1.ClassifierTargetOut$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        autoStart: "auto_start",
        createdAt: "created_at",
        modifiedAt: "modified_at",
        trainingFiles: "training_files",
        validationFiles: "validation_files",
        fineTunedModel: "fine_tuned_model",
        trainedTokens: "trained_tokens",
        jobType: "job_type",
        classifierTargets: "classifier_targets",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierDetailedJobOut$;
(function (ClassifierDetailedJobOut$) {
    /** @deprecated use `ClassifierDetailedJobOut$inboundSchema` instead. */
    ClassifierDetailedJobOut$.inboundSchema = exports.ClassifierDetailedJobOut$inboundSchema;
    /** @deprecated use `ClassifierDetailedJobOut$outboundSchema` instead. */
    ClassifierDetailedJobOut$.outboundSchema = exports.ClassifierDetailedJobOut$outboundSchema;
})(ClassifierDetailedJobOut$ || (exports.ClassifierDetailedJobOut$ = ClassifierDetailedJobOut$ = {}));
function classifierDetailedJobOutToJSON(classifierDetailedJobOut) {
    return JSON.stringify(exports.ClassifierDetailedJobOut$outboundSchema.parse(classifierDetailedJobOut));
}
function classifierDetailedJobOutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ClassifierDetailedJobOut$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ClassifierDetailedJobOut' from JSON`);
}
//# sourceMappingURL=classifierdetailedjobout.js.map