UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

76 lines 3.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.intentFeedbackReportDataSchema = exports.intentFeedbackInDBReportSchema = exports.genericIntentFeedbackFindingArrayType = exports.overlapIntentFeedbackFindingArrayType = void 0; exports.overlapIntentFeedbackFindingArrayType = [ "strongOverlap", "someOverlap" ]; exports.genericIntentFeedbackFindingArrayType = [ "poorFScore", "fairFScore", "goodFScore", "fewSentences", "unclearIntent", "noSiblings" ]; exports.intentFeedbackInDBReportSchema = { title: "intentFeedbackInDBReportSchema", type: "object", additionalProperties: false, properties: { info: { type: "object", additionalProperties: false, properties: { fScore: { type: "number" } } }, findings: { type: "array", additionalItems: false, items: { type: "object", additionalProperties: false, required: ["type"], properties: { type: { type: "string", enum: [...exports.genericIntentFeedbackFindingArrayType, ...exports.overlapIntentFeedbackFindingArrayType, "lowDataIntents"] }, // The referenceId can also equal 'Reject', hence cannot have a format overlappingIntentReferenceId: { type: ["string", "null"] }, overlappingIntentName: { type: ["string", "null"] }, overlappingFlowId: { type: ["string", "null"], format: "mongo-id" }, overlappingFlowName: { type: ["string", "null"] }, overlappingIntentId: { type: ["string", "null"], format: "mongo-id" }, intents: { type: "array", additionalItems: false, items: { type: "object", additionalProperties: false, properties: { // The referenceId can also equal 'Reject', hence cannot have a format intentReferenceId: { type: ["string", "null"] }, intentName: { type: ["string", "null"] }, flowId: { type: ["string", "null"], format: "mongo-id" }, flowName: { type: ["string", "null"] }, intentId: { type: ["string", "null"], format: "mongo-id" }, }, }, }, }, }, }, }, }; exports.intentFeedbackReportDataSchema = { title: "intentFeedbackReportDataSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, exports.intentFeedbackInDBReportSchema.properties), { intentReferenceId: { type: "string", format: "uuid" } }), }; //# sourceMappingURL=IIntentFeedbackReport.js.map