@cognigy/rest-api-client
Version:
Cognigy REST-Client
28 lines • 984 B
JavaScript
/* Interfaces */
import { entityMetaSchema } from "./IEntityMeta";
export const snippetTypes = [
"profile",
"input",
"context",
"custom",
"answer",
"flow-output",
"flow-input"
];
export const snippetDataSchema = {
title: "snippetDataSchema",
type: "object",
additionalProperties: false,
properties: {
label: { type: "string", format: "snippet-label" },
type: { type: "string", format: "snippet-type" },
script: { type: "string", format: "snippet-script" },
},
};
export const snippetSchema = {
title: "snippetSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), snippetDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
};
//# sourceMappingURL=ISnippet.js.map