"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.ListKnowledgeBasesResponseBody$outboundSchema = exports.ListKnowledgeBasesResponseBody$inboundSchema = exports.ListKnowledgeBasesData$outboundSchema = exports.ListKnowledgeBasesData$inboundSchema = exports.ListKnowledgeBasesData1$outboundSchema = exports.ListKnowledgeBasesData1$inboundSchema = exports.ListKnowledgeBasesDataRetrievalSettings$outboundSchema = exports.ListKnowledgeBasesDataRetrievalSettings$inboundSchema = exports.ListKnowledgeBasesDataAgenticRagConfig$outboundSchema = exports.ListKnowledgeBasesDataAgenticRagConfig$inboundSchema = exports.ListKnowledgeBasesDataRerankConfig$outboundSchema = exports.ListKnowledgeBasesDataRerankConfig$inboundSchema = exports.DataRetrievalType$outboundSchema = exports.DataRetrievalType$inboundSchema = exports.ListKnowledgeBasesDataType$outboundSchema = exports.ListKnowledgeBasesDataType$inboundSchema = exports.ListKnowledgeBasesData2$outboundSchema = exports.ListKnowledgeBasesData2$inboundSchema = exports.DataExternalConfig$outboundSchema = exports.DataExternalConfig$inboundSchema = exports.DataRetrievalSettings$outboundSchema = exports.DataRetrievalSettings$inboundSchema = exports.DataAgenticRagConfig$outboundSchema = exports.DataAgenticRagConfig$inboundSchema = exports.DataRerankConfig$outboundSchema = exports.DataRerankConfig$inboundSchema = exports.ListKnowledgeBasesDataKnowledgeType$outboundSchema = exports.ListKnowledgeBasesDataKnowledgeType$inboundSchema = exports.ListKnowledgeBasesObject$outboundSchema = exports.ListKnowledgeBasesObject$inboundSchema = exports.ListKnowledgeBasesRequest$outboundSchema = exports.ListKnowledgeBasesRequest$inboundSchema = exports.DataRetrievalType = exports.ListKnowledgeBasesDataType = exports.ListKnowledgeBasesDataKnowledgeType = exports.ListKnowledgeBasesObject = void 0;
exports.listKnowledgeBasesRequestToJSON = listKnowledgeBasesRequestToJSON;
exports.listKnowledgeBasesRequestFromJSON = listKnowledgeBasesRequestFromJSON;
exports.dataRerankConfigToJSON = dataRerankConfigToJSON;
exports.dataRerankConfigFromJSON = dataRerankConfigFromJSON;
exports.dataAgenticRagConfigToJSON = dataAgenticRagConfigToJSON;
exports.dataAgenticRagConfigFromJSON = dataAgenticRagConfigFromJSON;
exports.dataRetrievalSettingsToJSON = dataRetrievalSettingsToJSON;
exports.dataRetrievalSettingsFromJSON = dataRetrievalSettingsFromJSON;
exports.dataExternalConfigToJSON = dataExternalConfigToJSON;
exports.dataExternalConfigFromJSON = dataExternalConfigFromJSON;
exports.listKnowledgeBasesData2ToJSON = listKnowledgeBasesData2ToJSON;
exports.listKnowledgeBasesData2FromJSON = listKnowledgeBasesData2FromJSON;
exports.listKnowledgeBasesDataRerankConfigToJSON = listKnowledgeBasesDataRerankConfigToJSON;
exports.listKnowledgeBasesDataRerankConfigFromJSON = listKnowledgeBasesDataRerankConfigFromJSON;
exports.listKnowledgeBasesDataAgenticRagConfigToJSON = listKnowledgeBasesDataAgenticRagConfigToJSON;
exports.listKnowledgeBasesDataAgenticRagConfigFromJSON = listKnowledgeBasesDataAgenticRagConfigFromJSON;
exports.listKnowledgeBasesDataRetrievalSettingsToJSON = listKnowledgeBasesDataRetrievalSettingsToJSON;
exports.listKnowledgeBasesDataRetrievalSettingsFromJSON = listKnowledgeBasesDataRetrievalSettingsFromJSON;
exports.listKnowledgeBasesData1ToJSON = listKnowledgeBasesData1ToJSON;
exports.listKnowledgeBasesData1FromJSON = listKnowledgeBasesData1FromJSON;
exports.listKnowledgeBasesDataToJSON = listKnowledgeBasesDataToJSON;
exports.listKnowledgeBasesDataFromJSON = listKnowledgeBasesDataFromJSON;
exports.listKnowledgeBasesResponseBodyToJSON = listKnowledgeBasesResponseBodyToJSON;
exports.listKnowledgeBasesResponseBodyFromJSON = listKnowledgeBasesResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
exports.ListKnowledgeBasesObject = {
    List: "list",
};
exports.ListKnowledgeBasesDataKnowledgeType = {
    External: "external",
};
exports.ListKnowledgeBasesDataType = {
    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.DataRetrievalType = {
    VectorSearch: "vector_search",
    KeywordSearch: "keyword_search",
    HybridSearch: "hybrid_search",
};
/** @internal */
exports.ListKnowledgeBasesRequest$inboundSchema = z.object({
    limit: z.number().default(10),
    starting_after: z.string().optional(),
    ending_before: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "starting_after": "startingAfter",
        "ending_before": "endingBefore",
    });
});
/** @internal */
exports.ListKnowledgeBasesRequest$outboundSchema = z.object({
    limit: z.number().default(10),
    startingAfter: z.string().optional(),
    endingBefore: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        startingAfter: "starting_after",
        endingBefore: "ending_before",
    });
});
function listKnowledgeBasesRequestToJSON(listKnowledgeBasesRequest) {
    return JSON.stringify(exports.ListKnowledgeBasesRequest$outboundSchema.parse(listKnowledgeBasesRequest));
}
function listKnowledgeBasesRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesRequest' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesObject$inboundSchema = z.nativeEnum(exports.ListKnowledgeBasesObject);
/** @internal */
exports.ListKnowledgeBasesObject$outboundSchema = exports.ListKnowledgeBasesObject$inboundSchema;
/** @internal */
exports.ListKnowledgeBasesDataKnowledgeType$inboundSchema = z.nativeEnum(exports.ListKnowledgeBasesDataKnowledgeType);
/** @internal */
exports.ListKnowledgeBasesDataKnowledgeType$outboundSchema = exports.ListKnowledgeBasesDataKnowledgeType$inboundSchema;
/** @internal */
exports.DataRerankConfig$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",
    });
});
/** @internal */
exports.DataRerankConfig$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 dataRerankConfigToJSON(dataRerankConfig) {
    return JSON.stringify(exports.DataRerankConfig$outboundSchema.parse(dataRerankConfig));
}
function dataRerankConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataRerankConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataRerankConfig' from JSON`);
}
/** @internal */
exports.DataAgenticRagConfig$inboundSchema = z.object({
    model: z.string(),
});
/** @internal */
exports.DataAgenticRagConfig$outboundSchema = z.object({
    model: z.string(),
});
function dataAgenticRagConfigToJSON(dataAgenticRagConfig) {
    return JSON.stringify(exports.DataAgenticRagConfig$outboundSchema.parse(dataAgenticRagConfig));
}
function dataAgenticRagConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataAgenticRagConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataAgenticRagConfig' from JSON`);
}
/** @internal */
exports.DataRetrievalSettings$inboundSchema = z.object({
    top_k: z.number().int().default(5),
    threshold: z.number().default(0),
    rerank_config: z.nullable(z.lazy(() => exports.DataRerankConfig$inboundSchema))
        .optional(),
    agentic_rag_config: z.nullable(z.lazy(() => exports.DataAgenticRagConfig$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "top_k": "topK",
        "rerank_config": "rerankConfig",
        "agentic_rag_config": "agenticRagConfig",
    });
});
/** @internal */
exports.DataRetrievalSettings$outboundSchema = z.object({
    topK: z.number().int().default(5),
    threshold: z.number().default(0),
    rerankConfig: z.nullable(z.lazy(() => exports.DataRerankConfig$outboundSchema))
        .optional(),
    agenticRagConfig: z.nullable(z.lazy(() => exports.DataAgenticRagConfig$outboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        topK: "top_k",
        rerankConfig: "rerank_config",
        agenticRagConfig: "agentic_rag_config",
    });
});
function dataRetrievalSettingsToJSON(dataRetrievalSettings) {
    return JSON.stringify(exports.DataRetrievalSettings$outboundSchema.parse(dataRetrievalSettings));
}
function dataRetrievalSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataRetrievalSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataRetrievalSettings' from JSON`);
}
/** @internal */
exports.DataExternalConfig$inboundSchema = z.object({
    name: z.string(),
    api_url: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "api_url": "apiUrl",
    });
});
/** @internal */
exports.DataExternalConfig$outboundSchema = z.object({
    name: z.string(),
    apiUrl: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        apiUrl: "api_url",
    });
});
function dataExternalConfigToJSON(dataExternalConfig) {
    return JSON.stringify(exports.DataExternalConfig$outboundSchema.parse(dataExternalConfig));
}
function dataExternalConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataExternalConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataExternalConfig' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesData2$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.ListKnowledgeBasesDataKnowledgeType$inboundSchema.default("external"),
    retrieval_settings: z.lazy(() => exports.DataRetrievalSettings$inboundSchema)
        .optional(),
    external_config: z.lazy(() => exports.DataExternalConfig$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",
    });
});
/** @internal */
exports.ListKnowledgeBasesData2$outboundSchema = z.object({
    id: z.string(),
    created: z.string(),
    description: z.string().optional(),
    key: z.string(),
    domainId: z.string(),
    path: z.string().optional(),
    createdById: z.nullable(z.string()).optional(),
    updatedById: z.nullable(z.string()).optional(),
    updated: z.string(),
    type: exports.ListKnowledgeBasesDataKnowledgeType$outboundSchema.default("external"),
    retrievalSettings: z.lazy(() => exports.DataRetrievalSettings$outboundSchema)
        .optional(),
    externalConfig: z.lazy(() => exports.DataExternalConfig$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        domainId: "domain_id",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        retrievalSettings: "retrieval_settings",
        externalConfig: "external_config",
    });
});
function listKnowledgeBasesData2ToJSON(listKnowledgeBasesData2) {
    return JSON.stringify(exports.ListKnowledgeBasesData2$outboundSchema.parse(listKnowledgeBasesData2));
}
function listKnowledgeBasesData2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesData2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesData2' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesDataType$inboundSchema = z.nativeEnum(exports.ListKnowledgeBasesDataType);
/** @internal */
exports.ListKnowledgeBasesDataType$outboundSchema = exports.ListKnowledgeBasesDataType$inboundSchema;
/** @internal */
exports.DataRetrievalType$inboundSchema = z.nativeEnum(exports.DataRetrievalType);
/** @internal */
exports.DataRetrievalType$outboundSchema = exports.DataRetrievalType$inboundSchema;
/** @internal */
exports.ListKnowledgeBasesDataRerankConfig$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",
    });
});
/** @internal */
exports.ListKnowledgeBasesDataRerankConfig$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 listKnowledgeBasesDataRerankConfigToJSON(listKnowledgeBasesDataRerankConfig) {
    return JSON.stringify(exports.ListKnowledgeBasesDataRerankConfig$outboundSchema.parse(listKnowledgeBasesDataRerankConfig));
}
function listKnowledgeBasesDataRerankConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesDataRerankConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesDataRerankConfig' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesDataAgenticRagConfig$inboundSchema = z.object({
    model: z.string(),
});
/** @internal */
exports.ListKnowledgeBasesDataAgenticRagConfig$outboundSchema = z.object({
    model: z.string(),
});
function listKnowledgeBasesDataAgenticRagConfigToJSON(listKnowledgeBasesDataAgenticRagConfig) {
    return JSON.stringify(exports.ListKnowledgeBasesDataAgenticRagConfig$outboundSchema.parse(listKnowledgeBasesDataAgenticRagConfig));
}
function listKnowledgeBasesDataAgenticRagConfigFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesDataAgenticRagConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesDataAgenticRagConfig' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesDataRetrievalSettings$inboundSchema = z.object({
    retrieval_type: exports.DataRetrievalType$inboundSchema.default("hybrid_search"),
    top_k: z.number().int().default(5),
    threshold: z.number().default(0),
    rerank_config: z.nullable(z.lazy(() => exports.ListKnowledgeBasesDataRerankConfig$inboundSchema)).optional(),
    agentic_rag_config: z.nullable(z.lazy(() => exports.ListKnowledgeBasesDataAgenticRagConfig$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "retrieval_type": "retrievalType",
        "top_k": "topK",
        "rerank_config": "rerankConfig",
        "agentic_rag_config": "agenticRagConfig",
    });
});
/** @internal */
exports.ListKnowledgeBasesDataRetrievalSettings$outboundSchema = z.object({
    retrievalType: exports.DataRetrievalType$outboundSchema.default("hybrid_search"),
    topK: z.number().int().default(5),
    threshold: z.number().default(0),
    rerankConfig: z.nullable(z.lazy(() => exports.ListKnowledgeBasesDataRerankConfig$outboundSchema)).optional(),
    agenticRagConfig: z.nullable(z.lazy(() => exports.ListKnowledgeBasesDataAgenticRagConfig$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 listKnowledgeBasesDataRetrievalSettingsToJSON(listKnowledgeBasesDataRetrievalSettings) {
    return JSON.stringify(exports.ListKnowledgeBasesDataRetrievalSettings$outboundSchema.parse(listKnowledgeBasesDataRetrievalSettings));
}
function listKnowledgeBasesDataRetrievalSettingsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesDataRetrievalSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesDataRetrievalSettings' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesData1$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.ListKnowledgeBasesDataType$inboundSchema.default("internal"),
    retrieval_settings: z.lazy(() => exports.ListKnowledgeBasesDataRetrievalSettings$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",
    });
});
/** @internal */
exports.ListKnowledgeBasesData1$outboundSchema = z.object({
    id: z.string(),
    created: z.string(),
    description: z.string().optional(),
    key: z.string(),
    domainId: z.string(),
    path: z.string().optional(),
    createdById: z.nullable(z.string()).optional(),
    updatedById: z.nullable(z.string()).optional(),
    updated: z.string(),
    type: exports.ListKnowledgeBasesDataType$outboundSchema.default("internal"),
    retrievalSettings: z.lazy(() => exports.ListKnowledgeBasesDataRetrievalSettings$outboundSchema).optional(),
    model: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        id: "_id",
        domainId: "domain_id",
        createdById: "created_by_id",
        updatedById: "updated_by_id",
        retrievalSettings: "retrieval_settings",
    });
});
function listKnowledgeBasesData1ToJSON(listKnowledgeBasesData1) {
    return JSON.stringify(exports.ListKnowledgeBasesData1$outboundSchema.parse(listKnowledgeBasesData1));
}
function listKnowledgeBasesData1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesData1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesData1' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesData$inboundSchema = z.union([
    z.lazy(() => exports.ListKnowledgeBasesData1$inboundSchema),
    z.lazy(() => exports.ListKnowledgeBasesData2$inboundSchema),
]);
/** @internal */
exports.ListKnowledgeBasesData$outboundSchema = z.union([
    z.lazy(() => exports.ListKnowledgeBasesData1$outboundSchema),
    z.lazy(() => exports.ListKnowledgeBasesData2$outboundSchema),
]);
function listKnowledgeBasesDataToJSON(listKnowledgeBasesData) {
    return JSON.stringify(exports.ListKnowledgeBasesData$outboundSchema.parse(listKnowledgeBasesData));
}
function listKnowledgeBasesDataFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesData' from JSON`);
}
/** @internal */
exports.ListKnowledgeBasesResponseBody$inboundSchema = z.object({
    object: exports.ListKnowledgeBasesObject$inboundSchema,
    data: z.array(z.union([
        z.lazy(() => exports.ListKnowledgeBasesData1$inboundSchema),
        z.lazy(() => exports.ListKnowledgeBasesData2$inboundSchema),
    ])),
    has_more: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
exports.ListKnowledgeBasesResponseBody$outboundSchema = z.object({
    object: exports.ListKnowledgeBasesObject$outboundSchema,
    data: z.array(z.union([
        z.lazy(() => exports.ListKnowledgeBasesData1$outboundSchema),
        z.lazy(() => exports.ListKnowledgeBasesData2$outboundSchema),
    ])),
    hasMore: z.boolean(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        hasMore: "has_more",
    });
});
function listKnowledgeBasesResponseBodyToJSON(listKnowledgeBasesResponseBody) {
    return JSON.stringify(exports.ListKnowledgeBasesResponseBody$outboundSchema.parse(listKnowledgeBasesResponseBody));
}
function listKnowledgeBasesResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListKnowledgeBasesResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListKnowledgeBasesResponseBody' from JSON`);
}
//# sourceMappingURL=listknowledgebases.js.map