UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

37 lines 2.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.flowSettingsSchema = exports.flowSettingsDataSchema = exports.implicitSlotParsingType = exports.flowIntentMappingOrderType = void 0; const ISharedSettings_1 = require("./ISharedSettings"); const localeSettingsSchema = { title: "localizedFlowDataSchema", type: "object", additionalProperties: false, required: ["localeReference", "inheritFallbackLocaleModel"], properties: { localeReference: { type: "string", format: "mongo-id" }, inheritFallbackLocaleModel: { type: "boolean" }, } }; exports.flowIntentMappingOrderType = ["joint", "main", "attached"]; exports.implicitSlotParsingType = ["disabled", "full", "system", "lexicon"]; exports.flowSettingsDataSchema = { title: "flowSettingsDataSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { continueExecutionAfterAttachedFlow: { type: "boolean" }, continueExecutionAfterDefaultReply: { type: "boolean" }, continueExecutionAfterNegativeConfirmation: { type: "boolean" }, passDefaultRepliesIntoFlow: { type: "boolean" }, flowIntentMappingOrder: { type: "string", enum: [...exports.flowIntentMappingOrderType] }, useAttachedFlowThresholds: { type: "boolean" }, useAttachedFlowContinueAfterDefaultReply: { type: "boolean" }, useAttachedFlowPassDefaultRepliesIntoFlow: { type: "boolean" }, implicitSlotParsing: { type: "string", enum: [...exports.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" }, } } }) }; exports.flowSettingsSchema = { title: "flowSettingsSchema", type: "object", additionalProperties: false, properties: Object.assign(Object.assign({}, exports.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