@cognigy/rest-api-client
Version:
Cognigy REST-Client
27 lines • 1.28 kB
JavaScript
export const biasTowardsParentOrChildIntentsTypes = ["parents", "children"];
export const intentRelationSchema = {
title: "intentHierarchyRelationSchema",
type: "object",
additionalProperties: false,
properties: {
name: { type: "string", format: "resource-name" },
parentReference: { type: ["string", "null"], format: "mongo-id" },
childFeatures: {
oneOf: [
{ type: "boolean" },
{ type: "array", items: { type: "string", format: "mongo-id" } }
]
},
biasTowardsParentOrChildIntents: { type: "string", enum: [...biasTowardsParentOrChildIntentsTypes] },
intentReference: { type: "string", format: "mongo-id" },
flowReference: { type: "string", format: "mongo-id" },
projectReference: { type: "string", format: "mongo-id" },
organisationReference: { type: "string", format: "mongo-id" },
_id: { type: "string", format: "mongo-id" },
createdAt: { type: "integer", format: "timestamp" },
createdBy: { type: "string", format: "mongo-id" },
lastChanged: { type: "integer", format: "timestamp" },
lastChangedBy: { type: "string", format: "mongo-id" },
}
};
//# sourceMappingURL=IIntentRelation.js.map