UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

23 lines 1.14 kB
/* Interfaces & Types */ import { entityMetaSchema } from "../IEntityMeta"; export const knowledgeStoreStatus = ["ready", "ingesting", "warning", "empty"]; export const knowledgeStoreDataSchema = { title: "knowledgeStoreDataSchema", type: "object", additionalProperties: false, required: [ "name" ], properties: { name: { type: "string", format: "resource-name" }, description: { type: "string", format: "resource-description" }, language: { type: "string", format: "language-code" } } }; export const knowledgeStoreSchema = { title: "knowledgeStoreSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), knowledgeStoreDataSchema.properties), { status: { type: "string", enum: [...knowledgeStoreStatus] }, documents: { type: "array", items: { type: "string" } }, referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=IKnowledgeStore.js.map