@cognigy/rest-api-client
Version:
Cognigy REST-Client
27 lines • 979 B
JavaScript
/* Custom modules */
import { createQuerySchema } from "../../helper/createQuerySchema";
export const runtimeFileStatus = [
"infected",
"scanned", // we have scanned the file and it is not infected
];
export const runtimeFileSchema = {
title: "runtimeFileSchema",
type: "object",
additionalProperties: false,
required: [
"projectId",
"organisationId",
],
properties: {
_id: { type: "string", format: "mongo-id" },
name: { type: "string" },
mimeType: { type: "string" },
size: { type: "number" },
storageConnection: { type: "string", format: "uuid" },
status: { type: "string", enum: [...runtimeFileStatus] },
projectId: { type: "string", format: "mongo-id" },
organisationId: { type: "string", format: "mongo-id" }
}
};
export const runtimeFileQuerySchema = createQuerySchema("runtimeFileQuerySchema", runtimeFileSchema);
//# sourceMappingURL=IRuntimeFile.js.map