UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

25 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fileSchema = exports.fileDataSchema = exports.allowedMimeTypes = void 0; /* Interfaces */ const IEntityMeta_1 = require("./IEntityMeta"); // use TMimeType.ts from service-api, move to shared exports.allowedMimeTypes = ["image/png", "image/jpeg", "application/json"]; exports.fileDataSchema = { title: "fileDataSchema", type: "object", additionalProperties: false, properties: { name: { type: "string", format: "resource-name" }, data: { type: "object" }, mimetype: { type: "string", enum: exports.allowedMimeTypes }, fileToken: { type: "string", format: "alphanum-64" } }, }; exports.fileSchema = { title: "fileSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.fileDataSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=IFile.js.map