"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.ClassifierFTModelOut$ = exports.ClassifierFTModelOut$outboundSchema = exports.ClassifierFTModelOut$inboundSchema = exports.ClassifierFTModelOutModelType$ = exports.ClassifierFTModelOutModelType$outboundSchema = exports.ClassifierFTModelOutModelType$inboundSchema = exports.ClassifierFTModelOutObject$ = exports.ClassifierFTModelOutObject$outboundSchema = exports.ClassifierFTModelOutObject$inboundSchema = exports.ClassifierFTModelOutModelType = exports.ClassifierFTModelOutObject = void 0;
exports.classifierFTModelOutToJSON = classifierFTModelOutToJSON;
exports.classifierFTModelOutFromJSON = classifierFTModelOutFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const classifiertargetout_js_1 = require("./classifiertargetout.js");
const ftmodelcapabilitiesout_js_1 = require("./ftmodelcapabilitiesout.js");
exports.ClassifierFTModelOutObject = {
    Model: "model",
};
exports.ClassifierFTModelOutModelType = {
    Classifier: "classifier",
};
/** @internal */
exports.ClassifierFTModelOutObject$inboundSchema = z.nativeEnum(exports.ClassifierFTModelOutObject);
/** @internal */
exports.ClassifierFTModelOutObject$outboundSchema = exports.ClassifierFTModelOutObject$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierFTModelOutObject$;
(function (ClassifierFTModelOutObject$) {
    /** @deprecated use `ClassifierFTModelOutObject$inboundSchema` instead. */
    ClassifierFTModelOutObject$.inboundSchema = exports.ClassifierFTModelOutObject$inboundSchema;
    /** @deprecated use `ClassifierFTModelOutObject$outboundSchema` instead. */
    ClassifierFTModelOutObject$.outboundSchema = exports.ClassifierFTModelOutObject$outboundSchema;
})(ClassifierFTModelOutObject$ || (exports.ClassifierFTModelOutObject$ = ClassifierFTModelOutObject$ = {}));
/** @internal */
exports.ClassifierFTModelOutModelType$inboundSchema = z.nativeEnum(exports.ClassifierFTModelOutModelType);
/** @internal */
exports.ClassifierFTModelOutModelType$outboundSchema = exports.ClassifierFTModelOutModelType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierFTModelOutModelType$;
(function (ClassifierFTModelOutModelType$) {
    /** @deprecated use `ClassifierFTModelOutModelType$inboundSchema` instead. */
    ClassifierFTModelOutModelType$.inboundSchema = exports.ClassifierFTModelOutModelType$inboundSchema;
    /** @deprecated use `ClassifierFTModelOutModelType$outboundSchema` instead. */
    ClassifierFTModelOutModelType$.outboundSchema = exports.ClassifierFTModelOutModelType$outboundSchema;
})(ClassifierFTModelOutModelType$ || (exports.ClassifierFTModelOutModelType$ = ClassifierFTModelOutModelType$ = {}));
/** @internal */
exports.ClassifierFTModelOut$inboundSchema = z.object({
    id: z.string(),
    object: exports.ClassifierFTModelOutObject$inboundSchema.default("model"),
    created: z.number().int(),
    owned_by: z.string(),
    root: z.string(),
    archived: z.boolean(),
    name: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    capabilities: ftmodelcapabilitiesout_js_1.FTModelCapabilitiesOut$inboundSchema,
    max_context_length: z.number().int().default(32768),
    aliases: z.array(z.string()).optional(),
    job: z.string(),
    classifier_targets: z.array(classifiertargetout_js_1.ClassifierTargetOut$inboundSchema),
    model_type: exports.ClassifierFTModelOutModelType$inboundSchema.default("classifier"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "owned_by": "ownedBy",
        "max_context_length": "maxContextLength",
        "classifier_targets": "classifierTargets",
        "model_type": "modelType",
    });
});
/** @internal */
exports.ClassifierFTModelOut$outboundSchema = z.object({
    id: z.string(),
    object: exports.ClassifierFTModelOutObject$outboundSchema.default("model"),
    created: z.number().int(),
    ownedBy: z.string(),
    root: z.string(),
    archived: z.boolean(),
    name: z.nullable(z.string()).optional(),
    description: z.nullable(z.string()).optional(),
    capabilities: ftmodelcapabilitiesout_js_1.FTModelCapabilitiesOut$outboundSchema,
    maxContextLength: z.number().int().default(32768),
    aliases: z.array(z.string()).optional(),
    job: z.string(),
    classifierTargets: z.array(classifiertargetout_js_1.ClassifierTargetOut$outboundSchema),
    modelType: exports.ClassifierFTModelOutModelType$outboundSchema.default("classifier"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        ownedBy: "owned_by",
        maxContextLength: "max_context_length",
        classifierTargets: "classifier_targets",
        modelType: "model_type",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ClassifierFTModelOut$;
(function (ClassifierFTModelOut$) {
    /** @deprecated use `ClassifierFTModelOut$inboundSchema` instead. */
    ClassifierFTModelOut$.inboundSchema = exports.ClassifierFTModelOut$inboundSchema;
    /** @deprecated use `ClassifierFTModelOut$outboundSchema` instead. */
    ClassifierFTModelOut$.outboundSchema = exports.ClassifierFTModelOut$outboundSchema;
})(ClassifierFTModelOut$ || (exports.ClassifierFTModelOut$ = ClassifierFTModelOut$ = {}));
function classifierFTModelOutToJSON(classifierFTModelOut) {
    return JSON.stringify(exports.ClassifierFTModelOut$outboundSchema.parse(classifierFTModelOut));
}
function classifierFTModelOutFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ClassifierFTModelOut$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ClassifierFTModelOut' from JSON`);
}
//# sourceMappingURL=classifierftmodelout.js.map