"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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.UpdateKnowledgeResponseBody$inboundSchema = exports.UpdateKnowledgeResponseBody1$inboundSchema = exports.UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema = exports.UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema = exports.UpdateKnowledgeResponseBodyRerankConfig$inboundSchema = exports.UpdateKnowledgeResponseBodyRetrievalType$inboundSchema = exports.UpdateKnowledgeResponseBodyType$inboundSchema = exports.UpdateKnowledgeResponseBody2$inboundSchema = exports.UpdateKnowledgeResponseBodyExternalConfig$inboundSchema = exports.UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema = exports.UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema = exports.UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema = exports.UpdateKnowledgeResponseBodyKnowledgeType$inboundSchema = exports.UpdateKnowledgeRequest$outboundSchema = exports.UpdateKnowledgeRequestBody$outboundSchema = exports.UpdateKnowledgeRequestBody1$outboundSchema = exports.UpdateKnowledgeRequestBodyType$outboundSchema = exports.RequestBodyExternalConfig$outboundSchema = exports.RequestBodyRetrievalSettings$outboundSchema = exports.RequestBodyAgenticRagConfig$outboundSchema = exports.RequestBodyRerankConfig$outboundSchema = exports.UpdateKnowledgeRequestBody2$outboundSchema = exports.UpdateKnowledgeRequestBodyKnowledgeType$outboundSchema = exports.UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema = exports.UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema = exports.UpdateKnowledgeRequestBodyRerankConfig$outboundSchema = exports.RequestBodyRetrievalType$outboundSchema = exports.UpdateKnowledgeResponseBodyRetrievalType = exports.UpdateKnowledgeResponseBodyType = exports.UpdateKnowledgeResponseBodyKnowledgeType = exports.UpdateKnowledgeRequestBodyType = exports.UpdateKnowledgeRequestBodyKnowledgeType = exports.RequestBodyRetrievalType = void 0;
exports.updateKnowledgeRequestBodyRerankConfigToJSON = updateKnowledgeRequestBodyRerankConfigToJSON;
exports.updateKnowledgeRequestBodyAgenticRagConfigToJSON = updateKnowledgeRequestBodyAgenticRagConfigToJSON;
exports.updateKnowledgeRequestBodyRetrievalSettingsToJSON = updateKnowledgeRequestBodyRetrievalSettingsToJSON;
exports.updateKnowledgeRequestBody2ToJSON = updateKnowledgeRequestBody2ToJSON;
exports.requestBodyRerankConfigToJSON = requestBodyRerankConfigToJSON;
exports.requestBodyAgenticRagConfigToJSON = requestBodyAgenticRagConfigToJSON;
exports.requestBodyRetrievalSettingsToJSON = requestBodyRetrievalSettingsToJSON;
exports.requestBodyExternalConfigToJSON = requestBodyExternalConfigToJSON;
exports.updateKnowledgeRequestBody1ToJSON = updateKnowledgeRequestBody1ToJSON;
exports.updateKnowledgeRequestBodyToJSON = updateKnowledgeRequestBodyToJSON;
exports.updateKnowledgeRequestToJSON = updateKnowledgeRequestToJSON;
exports.updateKnowledgeResponseBodyKnowledgeRerankConfigFromJSON = updateKnowledgeResponseBodyKnowledgeRerankConfigFromJSON;
exports.updateKnowledgeResponseBodyKnowledgeAgenticRagConfigFromJSON = updateKnowledgeResponseBodyKnowledgeAgenticRagConfigFromJSON;
exports.updateKnowledgeResponseBodyKnowledgeRetrievalSettingsFromJSON = updateKnowledgeResponseBodyKnowledgeRetrievalSettingsFromJSON;
exports.updateKnowledgeResponseBodyExternalConfigFromJSON = updateKnowledgeResponseBodyExternalConfigFromJSON;
exports.updateKnowledgeResponseBody2FromJSON = updateKnowledgeResponseBody2FromJSON;
exports.updateKnowledgeResponseBodyRerankConfigFromJSON = updateKnowledgeResponseBodyRerankConfigFromJSON;
exports.updateKnowledgeResponseBodyAgenticRagConfigFromJSON = updateKnowledgeResponseBodyAgenticRagConfigFromJSON;
exports.updateKnowledgeResponseBodyRetrievalSettingsFromJSON = updateKnowledgeResponseBodyRetrievalSettingsFromJSON;
exports.updateKnowledgeResponseBody1FromJSON = updateKnowledgeResponseBody1FromJSON;
exports.updateKnowledgeResponseBodyFromJSON = updateKnowledgeResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
 */
exports.RequestBodyRetrievalType = {
    VectorSearch: "vector_search",
    KeywordSearch: "keyword_search",
    HybridSearch: "hybrid_search",
};
exports.UpdateKnowledgeRequestBodyKnowledgeType = {
    Internal: "internal",
};
exports.UpdateKnowledgeRequestBodyType = {
    External: "external",
};
exports.UpdateKnowledgeResponseBodyKnowledgeType = {
    External: "external",
};
exports.UpdateKnowledgeResponseBodyType = {
    Internal: "internal",
};
/**
 * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
 */
exports.UpdateKnowledgeResponseBodyRetrievalType = {
    VectorSearch: "vector_search",
    KeywordSearch: "keyword_search",
    HybridSearch: "hybrid_search",
};
/** @internal */
exports.RequestBodyRetrievalType$outboundSchema = z.nativeEnum(exports.RequestBodyRetrievalType);
/** @internal */
exports.UpdateKnowledgeRequestBodyRerankConfig$outboundSchema = z.object({
    topK: z.number().int().default(5),
    rerankThreshold: z.number().default(0.5),
    rerankModel: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        topK: "top_k",
        rerankThreshold: "rerank_threshold",
        rerankModel: "rerank_model",
    });
});
function updateKnowledgeRequestBodyRerankConfigToJSON(updateKnowledgeRequestBodyRerankConfig) {
    return JSON.stringify(exports.UpdateKnowledgeRequestBodyRerankConfig$outboundSchema.parse(updateKnowledgeRequestBodyRerankConfig));
}
/** @internal */
exports.UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema = z.object({
    model: z.string(),
});
function updateKnowledgeRequestBodyAgenticRagConfigToJSON(updateKnowledgeRequestBodyAgenticRagConfig) {
    return JSON.stringify(exports.UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema.parse(updateKnowledgeRequestBodyAgenticRagConfig));
}
/** @internal */
exports.UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema = z.object({
    retrievalType: exports.RequestBodyRetrievalType$outboundSchema.default("hybrid_search"),
    topK: z.number().int().default(5),
    threshold: z.number().default(0),
    rerankConfig: z.nullable(z.lazy(() => exports.UpdateKnowledgeRequestBodyRerankConfig$outboundSchema)).optional(),
    agenticRagConfig: z.nullable(z.lazy(() => exports.UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        retrievalType: "retrieval_type",
        topK: "top_k",
        rerankConfig: "rerank_config",
        agenticRagConfig: "agentic_rag_config",
    });
});
function updateKnowledgeRequestBodyRetrievalSettingsToJSON(updateKnowledgeRequestBodyRetrievalSettings) {
    return JSON.stringify(exports.UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema.parse(updateKnowledgeRequestBodyRetrievalSettings));
}
/** @internal */
exports.UpdateKnowledgeRequestBodyKnowledgeType$outboundSchema = z
    .nativeEnum(exports.UpdateKnowledgeRequestBodyKnowledgeType);
/** @internal */
exports.UpdateKnowledgeRequestBody2$outboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    embeddingModel: z.string().optional(),
    path: z.string().optional(),
    retrievalSettings: z.lazy(() => exports.UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema).optional(),
    type: exports.UpdateKnowledgeRequestBodyKnowledgeType$outboundSchema.default("internal"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        embeddingModel: "embedding_model",
        retrievalSettings: "retrieval_settings",
    });
});
function updateKnowledgeRequestBody2ToJSON(updateKnowledgeRequestBody2) {
    return JSON.stringify(exports.UpdateKnowledgeRequestBody2$outboundSchema.parse(updateKnowledgeRequestBody2));
}
/** @internal */
exports.RequestBodyRerankConfig$outboundSchema = z.object({
    topK: z.number().int().default(5),
    rerankThreshold: z.number().default(0.5),
    rerankModel: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        topK: "top_k",
        rerankThreshold: "rerank_threshold",
        rerankModel: "rerank_model",
    });
});
function requestBodyRerankConfigToJSON(requestBodyRerankConfig) {
    return JSON.stringify(exports.RequestBodyRerankConfig$outboundSchema.parse(requestBodyRerankConfig));
}
/** @internal */
exports.RequestBodyAgenticRagConfig$outboundSchema = z.object({
    model: z.string(),
});
function requestBodyAgenticRagConfigToJSON(requestBodyAgenticRagConfig) {
    return JSON.stringify(exports.RequestBodyAgenticRagConfig$outboundSchema.parse(requestBodyAgenticRagConfig));
}
/** @internal */
exports.RequestBodyRetrievalSettings$outboundSchema = z.object({
    topK: z.number().int().default(5),
    threshold: z.number().default(0),
    rerankConfig: z.nullable(z.lazy(() => exports.RequestBodyRerankConfig$outboundSchema))
        .optional(),
    agenticRagConfig: z.nullable(z.lazy(() => exports.RequestBodyAgenticRagConfig$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        topK: "top_k",
        rerankConfig: "rerank_config",
        agenticRagConfig: "agentic_rag_config",
    });
});
function requestBodyRetrievalSettingsToJSON(requestBodyRetrievalSettings) {
    return JSON.stringify(exports.RequestBodyRetrievalSettings$outboundSchema.parse(requestBodyRetrievalSettings));
}
/** @internal */
exports.RequestBodyExternalConfig$outboundSchema = z.object({
    name: z.string().optional(),
    apiUrl: z.string().optional(),
    apiKey: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        apiUrl: "api_url",
        apiKey: "api_key",
    });
});
function requestBodyExternalConfigToJSON(requestBodyExternalConfig) {
    return JSON.stringify(exports.RequestBodyExternalConfig$outboundSchema.parse(requestBodyExternalConfig));
}
/** @internal */
exports.UpdateKnowledgeRequestBodyType$outboundSchema = z.nativeEnum(exports.UpdateKnowledgeRequestBodyType);
/** @internal */
exports.UpdateKnowledgeRequestBody1$outboundSchema = z.object({
    description: z.nullable(z.string()).optional(),
    path: z.string().optional(),
    retrievalSettings: z.lazy(() => exports.RequestBodyRetrievalSettings$outboundSchema)
        .optional(),
    externalConfig: z.lazy(() => exports.RequestBodyExternalConfig$outboundSchema)
        .optional(),
    type: exports.UpdateKnowledgeRequestBodyType$outboundSchema.default("external"),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        retrievalSettings: "retrieval_settings",
        externalConfig: "external_config",
    });
});
function updateKnowledgeRequestBody1ToJSON(updateKnowledgeRequestBody1) {
    return JSON.stringify(exports.UpdateKnowledgeRequestBody1$outboundSchema.parse(updateKnowledgeRequestBody1));
}
/** @internal */
exports.UpdateKnowledgeRequestBody$outboundSchema = z.union([
    z.lazy(() => exports.UpdateKnowledgeRequestBody1$outboundSchema),
    z.lazy(() => exports.UpdateKnowledgeRequestBody2$outboundSchema),
]);
function updateKnowledgeRequestBodyToJSON(updateKnowledgeRequestBody) {
    return JSON.stringify(exports.UpdateKnowledgeRequestBody$outboundSchema.parse(updateKnowledgeRequestBody));
}
/** @internal */
exports.UpdateKnowledgeRequest$outboundSchema = z.object({
    knowledgeId: z.string(),
    requestBody: z.union([
        z.lazy(() => exports.UpdateKnowledgeRequestBody1$outboundSchema),
        z.lazy(() => exports.UpdateKnowledgeRequestBody2$outboundSchema),
    ]),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        knowledgeId: "knowledge_id",
        requestBody: "RequestBody",
    });
});
function updateKnowledgeRequestToJSON(updateKnowledgeRequest) {
    return JSON.stringify(exports.UpdateKnowledgeRequest$outboundSchema.parse(updateKnowledgeRequest));
}
/** @internal */
exports.UpdateKnowledgeResponseBodyKnowledgeType$inboundSchema = z
    .nativeEnum(exports.UpdateKnowledgeResponseBodyKnowledgeType);
/** @internal */
exports.UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema = z.object({
    top_k: z.number().int().default(5),
    rerank_threshold: z.number().default(0.5),
    rerank_model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "top_k": "topK",
        "rerank_threshold": "rerankThreshold",
        "rerank_model": "rerankModel",
    });
});
function updateKnowledgeResponseBodyKnowledgeRerankConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyKnowledgeRerankConfig' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema = z.object({
    model: z.string(),
});
function updateKnowledgeResponseBodyKnowledgeAgenticRagConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema = z.object({
    top_k: z.number().int().default(5),
    threshold: z.number().default(0),
    rerank_config: z.nullable(z.lazy(() => exports.UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema)).optional(),
    agentic_rag_config: z.nullable(z.lazy(() => exports.UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "top_k": "topK",
        "rerank_config": "rerankConfig",
        "agentic_rag_config": "agenticRagConfig",
    });
});
function updateKnowledgeResponseBodyKnowledgeRetrievalSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBodyExternalConfig$inboundSchema = z.object({
    name: z.string(),
    api_url: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "api_url": "apiUrl",
    });
});
function updateKnowledgeResponseBodyExternalConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyExternalConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyExternalConfig' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBody2$inboundSchema = z.object({
    _id: z.string(),
    created: z.string(),
    description: z.string().optional(),
    key: z.string(),
    domain_id: z.string(),
    path: z.string().optional(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    updated: z.string(),
    type: exports.UpdateKnowledgeResponseBodyKnowledgeType$inboundSchema.default("external"),
    retrieval_settings: z.lazy(() => exports.UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema).optional(),
    external_config: z.lazy(() => exports.UpdateKnowledgeResponseBodyExternalConfig$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "retrieval_settings": "retrievalSettings",
        "external_config": "externalConfig",
    });
});
function updateKnowledgeResponseBody2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBody2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBody2' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateKnowledgeResponseBodyType);
/** @internal */
exports.UpdateKnowledgeResponseBodyRetrievalType$inboundSchema = z
    .nativeEnum(exports.UpdateKnowledgeResponseBodyRetrievalType);
/** @internal */
exports.UpdateKnowledgeResponseBodyRerankConfig$inboundSchema = z.object({
    top_k: z.number().int().default(5),
    rerank_threshold: z.number().default(0.5),
    rerank_model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "top_k": "topK",
        "rerank_threshold": "rerankThreshold",
        "rerank_model": "rerankModel",
    });
});
function updateKnowledgeResponseBodyRerankConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyRerankConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyRerankConfig' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema = z.object({
    model: z.string(),
});
function updateKnowledgeResponseBodyAgenticRagConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyAgenticRagConfig' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema = z.object({
    retrieval_type: exports.UpdateKnowledgeResponseBodyRetrievalType$inboundSchema
        .default("hybrid_search"),
    top_k: z.number().int().default(5),
    threshold: z.number().default(0),
    rerank_config: z.nullable(z.lazy(() => exports.UpdateKnowledgeResponseBodyRerankConfig$inboundSchema)).optional(),
    agentic_rag_config: z.nullable(z.lazy(() => exports.UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "retrieval_type": "retrievalType",
        "top_k": "topK",
        "rerank_config": "rerankConfig",
        "agentic_rag_config": "agenticRagConfig",
    });
});
function updateKnowledgeResponseBodyRetrievalSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBodyRetrievalSettings' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBody1$inboundSchema = z.object({
    _id: z.string(),
    created: z.string(),
    description: z.string().optional(),
    key: z.string(),
    domain_id: z.string(),
    path: z.string().optional(),
    created_by_id: z.nullable(z.string()).optional(),
    updated_by_id: z.nullable(z.string()).optional(),
    updated: z.string(),
    type: exports.UpdateKnowledgeResponseBodyType$inboundSchema.default("internal"),
    retrieval_settings: z.lazy(() => exports.UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema).optional(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "_id": "id",
        "domain_id": "domainId",
        "created_by_id": "createdById",
        "updated_by_id": "updatedById",
        "retrieval_settings": "retrievalSettings",
    });
});
function updateKnowledgeResponseBody1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBody1' from JSON`);
}
/** @internal */
exports.UpdateKnowledgeResponseBody$inboundSchema = z.union([
    z.lazy(() => exports.UpdateKnowledgeResponseBody1$inboundSchema),
    z.lazy(() => exports.UpdateKnowledgeResponseBody2$inboundSchema),
]);
function updateKnowledgeResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateKnowledgeResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKnowledgeResponseBody' from JSON`);
}
//# sourceMappingURL=updateknowledge.js.map