UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

22 lines 947 B
/* Interfaces */ import { entityMetaSchema } from "./IEntityMeta"; // use TMimeType.ts from service-api, move to shared export const allowedMimeTypes = ["image/png", "image/jpeg", "application/json"]; export const fileDataSchema = { title: "fileDataSchema", type: "object", additionalProperties: false, properties: { name: { type: "string", format: "resource-name" }, data: { type: "object" }, mimetype: { type: "string", enum: allowedMimeTypes }, fileToken: { type: "string", format: "alphanum-64" } }, }; export const fileSchema = { title: "fileSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), fileDataSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }), }; //# sourceMappingURL=IFile.js.map