@cognigy/rest-api-client
Version:
Cognigy REST-Client
34 lines • 2.39 kB
JavaScript
import { sharedSettingsSchema } from "./ISharedSettings";
const localeSettingsSchema = {
title: "localizedFlowDataSchema",
type: "object",
additionalProperties: false,
required: ["localeReference", "inheritFallbackLocaleModel"],
properties: {
localeReference: { type: "string", format: "mongo-id" },
inheritFallbackLocaleModel: { type: "boolean" },
}
};
export const flowIntentMappingOrderType = ["joint", "main", "attached"];
export const implicitSlotParsingType = ["disabled", "full", "system", "lexicon"];
export const flowSettingsDataSchema = {
title: "flowSettingsDataSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign({}, sharedSettingsSchema.properties), { continueExecutionAfterAttachedFlow: { type: "boolean" }, continueExecutionAfterDefaultReply: { type: "boolean" }, continueExecutionAfterNegativeConfirmation: { type: "boolean" }, passDefaultRepliesIntoFlow: { type: "boolean" }, flowIntentMappingOrder: { type: "string", enum: [...flowIntentMappingOrderType] }, useAttachedFlowThresholds: { type: "boolean" }, useAttachedFlowContinueAfterDefaultReply: { type: "boolean" }, useAttachedFlowPassDefaultRepliesIntoFlow: { type: "boolean" }, implicitSlotParsing: { type: "string", enum: [...implicitSlotParsingType] }, useAttachedFlowImplicitSlotParsing: { type: "boolean" }, lexiconSlotsWithSubMatches: { type: "boolean" }, useIntentDefaultRepliesAsExamples: { type: ["boolean", "null"] }, localeSettings: {
type: "object",
required: ["localeReference", "inheritFallbackLocaleModel"],
additionalProperties: false,
properties: {
localeReference: { type: "string", format: "mongo-id" },
inheritFallbackLocaleModel: { type: "boolean" },
}
} })
};
export const flowSettingsSchema = {
title: "flowSettingsSchema",
type: "object",
additionalProperties: false,
properties: Object.assign(Object.assign({}, flowSettingsDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, localeSettings: { type: "array", items: localeSettingsSchema } })
};
//# sourceMappingURL=IFlowSettings.js.map