@cognigy/rest-api-client 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/build/apigroups/AdministrationAPIGroup_2_0.js +3 -1
- package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +9 -6
- package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/identityAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +4 -5
- package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -0
- package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +2 -1
- package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +5 -3
- package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +5 -3
- package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +2 -1
- package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
- package/build/shared/charts/descriptors/analytics/completeGoal.js +1 -0
- package/build/shared/charts/descriptors/analytics/deactivateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/index.js +3 -1
- package/build/shared/charts/descriptors/analytics/mergeProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +9 -0
- package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
- package/build/shared/charts/descriptors/analytics/trackMilestone.js +95 -0
- package/build/shared/charts/descriptors/analytics/updateProfile.js +1 -0
- package/build/shared/charts/descriptors/apps/initAppSession.js +1 -0
- package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +35 -10
- package/build/shared/charts/descriptors/apps/setHtmlAppState.js +25 -2
- package/build/shared/charts/descriptors/apps/utils/getXAppsOverlaySettings.js +54 -0
- package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/azureAIDocumentIntelligenceConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/index.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockProviderConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -3
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +3 -3
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +14 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +16 -8
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +3 -3
- package/build/shared/charts/descriptors/data/addToContext.js +7 -0
- package/build/shared/charts/descriptors/data/copyDataToContext.js +3 -0
- package/build/shared/charts/descriptors/data/copySlotsToContext.js +3 -0
- package/build/shared/charts/descriptors/data/debugMessage.js +73 -0
- package/build/shared/charts/descriptors/data/index.js +3 -1
- package/build/shared/charts/descriptors/data/removeFromContext.js +9 -1
- package/build/shared/charts/descriptors/data/resetContext.js +1 -0
- package/build/shared/charts/descriptors/index.js +7 -1
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +35 -10
- package/build/shared/charts/descriptors/logic/resetState.js +1 -0
- package/build/shared/charts/descriptors/logic/setState.js +2 -1
- package/build/shared/charts/descriptors/logic/setTranslation.js +3 -1
- package/build/shared/charts/descriptors/logic/switchLocale.js +1 -0
- package/build/shared/charts/descriptors/logic/think.js +3 -1
- package/build/shared/charts/descriptors/logic/thinkV2.js +2 -0
- package/build/shared/charts/descriptors/message/question/question.js +50 -5
- package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
- package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +23 -1
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +19 -9
- package/build/shared/charts/descriptors/service/GPTPrompt.js +59 -24
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +11 -2
- package/build/shared/charts/descriptors/service/handoverV2.js +84 -1
- package/build/shared/charts/descriptors/service/httpRequest.js +35 -2
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +96 -17
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/dtmf.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -0
- package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +3 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +298 -8
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +10 -6
- package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
- package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
- package/build/shared/constants.js +10 -1
- package/build/shared/handoverClients/interfaces/THandoverEventType.js +1 -0
- package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
- package/build/shared/helper/nlu/textCleaner.js +3 -1
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/IProfile.js +1 -0
- package/build/shared/interfaces/IProfileSchema.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +20 -20
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyStep_2_0.js → analytics/IMilestoneAnalytics.js} +1 -1
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyProgress_2_0.js → appsession/ISetAppStateOptions.js} +1 -1
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyIndexItem_2_0.js → appsession/ISetAppStateOverlaySettings.js} +1 -1
- package/build/shared/interfaces/appsession/ISetAppStateOverlaySettingsMetaData.js +3 -0
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IIndexJourneysRest_2_0.js → debugEvents/TDebugEventMessagePayload.js} +1 -1
- package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +33 -69
- package/build/shared/interfaces/handover.js +42 -1
- package/build/shared/interfaces/license.js +3 -2
- package/build/shared/interfaces/license.js.map +1 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +2 -0
- package/build/shared/interfaces/messageAPI/handover.js +20 -1
- package/build/shared/interfaces/resources/IConnection.js +1 -0
- package/build/shared/interfaces/resources/IEndpoint.js +1 -2
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +25 -4
- package/build/shared/interfaces/resources/IMilestone.js +1 -1
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +12 -0
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
- package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
- package/build/shared/interfaces/resources/settings/IKnowledgeAISettings.js +18 -0
- package/build/shared/interfaces/resources/settings/index.js +4 -1
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +0 -1
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadOrganisationKnowledgeChunksCountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
- package/build/shared/interfaces/restAPI/{resources/journey/v2.0/IJourney_2_0.js → operations/nlu/v2.0/index.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IAvailableModelsForLLMProvider_2_0 .js +18 -0
- package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IGetAvailableModelsForLLMRest_2_0 .js +3 -0
- package/build/shared/interfaces/security/IRole.js +2 -0
- package/build/shared/interfaces/security/ISystemCapabilities.js +3 -0
- package/build/shared/interfaces/security/index.js +1 -1
- package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -2
- package/build/shared/interfaces/user.js +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +1254 -670
- package/build/shared/interfaces/journeys/IJourney.js +0 -83
- package/build/shared/interfaces/journeys/IJourneyProgress.js +0 -40
- package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +0 -35
- package/build/shared/interfaces/journeys/index.js +0 -14
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.js +0 -3
- /package/build/shared/interfaces/restAPI/{resources/journey/v2.0 → operations}/index.js +0 -0
|
@@ -4,6 +4,7 @@ exports.setxAppResult = exports.SET_ADAPTIVE_CARD_APP_STATE = void 0;
|
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
|
|
6
6
|
const BaseContext_1 = require("../../../helper/BaseContext");
|
|
7
|
+
const getXAppsOverlaySettings_1 = require("./utils/getXAppsOverlaySettings");
|
|
7
8
|
/**
|
|
8
9
|
* Node name: 'setAdaptiveCardAppState'
|
|
9
10
|
*
|
|
@@ -51,8 +52,8 @@ exports.SET_ADAPTIVE_CARD_APP_STATE = (0, createNodeDescriptor_1.createNodeDescr
|
|
|
51
52
|
label: "UI__NODE_EDITOR__SET_ADAPTIVE_CARD_APP_STATE__STORE_RESULT_IN_CONTEXT__LABEL",
|
|
52
53
|
condition: {
|
|
53
54
|
key: "waitForInput",
|
|
54
|
-
value: true
|
|
55
|
-
}
|
|
55
|
+
value: true,
|
|
56
|
+
},
|
|
56
57
|
},
|
|
57
58
|
{
|
|
58
59
|
key: "contextKey",
|
|
@@ -63,14 +64,16 @@ exports.SET_ADAPTIVE_CARD_APP_STATE = (0, createNodeDescriptor_1.createNodeDescr
|
|
|
63
64
|
and: [
|
|
64
65
|
{
|
|
65
66
|
key: "waitForInput",
|
|
66
|
-
value: true
|
|
67
|
-
},
|
|
67
|
+
value: true,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
68
70
|
key: "storeResultInContext",
|
|
69
|
-
value: true
|
|
70
|
-
}
|
|
71
|
-
]
|
|
71
|
+
value: true,
|
|
72
|
+
},
|
|
73
|
+
],
|
|
72
74
|
},
|
|
73
75
|
},
|
|
76
|
+
...(0, getXAppsOverlaySettings_1.getXAppsOverlaySettingsFields)(),
|
|
74
77
|
],
|
|
75
78
|
sections: [
|
|
76
79
|
{
|
|
@@ -84,18 +87,28 @@ exports.SET_ADAPTIVE_CARD_APP_STATE = (0, createNodeDescriptor_1.createNodeDescr
|
|
|
84
87
|
defaultCollapsed: true,
|
|
85
88
|
fields: ["waitForInput", "storeResultInContext", "contextKey"],
|
|
86
89
|
label: "UI__NODE_EDITOR__SET_ADAPTIVE_CARD_APP_STATE__WAITING_BEHAVIOR__LABEL",
|
|
87
|
-
}
|
|
90
|
+
},
|
|
91
|
+
(0, getXAppsOverlaySettings_1.getXAppsOverlaySettingsSection)(),
|
|
88
92
|
],
|
|
89
93
|
form: [
|
|
90
94
|
{ type: "field", key: "card" },
|
|
91
95
|
{ type: "section", key: "overrideSection" },
|
|
92
96
|
{ type: "section", key: "waitingBehavior" },
|
|
97
|
+
{ type: "section", key: (0, getXAppsOverlaySettings_1.getXAppsOverlaySettingsSection)().key },
|
|
93
98
|
],
|
|
94
99
|
tags: ["basic", "apps", "xApps"],
|
|
95
100
|
function: async ({ cognigy, config, nodeId }) => {
|
|
96
101
|
var _a, _b;
|
|
97
102
|
const { api, input, context } = cognigy;
|
|
98
103
|
const { card, primaryColor, primaryContrastColor, waitForInput, storeResultInContext, contextKey, } = config;
|
|
104
|
+
const overlaySettings = {
|
|
105
|
+
autoOpen: config.autoOpen,
|
|
106
|
+
closeOnSubmit: config.closeOnSubmit,
|
|
107
|
+
feedbackMessage: config.feedbackMessage,
|
|
108
|
+
screenTitle: config.screenTitle,
|
|
109
|
+
sendEventOnCloseIconClick: config.sendEventOnCloseIconClick,
|
|
110
|
+
showCloseIcon: config.showCloseIcon,
|
|
111
|
+
};
|
|
99
112
|
const systemContextWaitingKey = `adaptiveCardAPPWaiting-${nodeId}`;
|
|
100
113
|
const appTemplateURL = `${input.apps.baseUrl}/apps/adaptivecards/`;
|
|
101
114
|
// only set the app state once
|
|
@@ -103,10 +116,22 @@ exports.SET_ADAPTIVE_CARD_APP_STATE = (0, createNodeDescriptor_1.createNodeDescr
|
|
|
103
116
|
api.setAppState(appTemplateURL, {
|
|
104
117
|
card,
|
|
105
118
|
primaryColor: primaryColor || undefined,
|
|
106
|
-
primaryContrastColor: primaryContrastColor || undefined
|
|
119
|
+
primaryContrastColor: primaryContrastColor || undefined
|
|
120
|
+
}, {
|
|
121
|
+
webchat3: {
|
|
122
|
+
overlaySettingsMetaData: {
|
|
123
|
+
overlaySettings,
|
|
124
|
+
endpointType: input.endpointType,
|
|
125
|
+
url: input.apps.url,
|
|
126
|
+
URLToken: input.URLToken
|
|
127
|
+
}
|
|
128
|
+
}
|
|
107
129
|
});
|
|
130
|
+
api.logDebugMessage(`UI__DEBUG_MODE__SET_ADAPTIVE_CARD_APP_STATE__MESSAGE`);
|
|
108
131
|
}
|
|
109
|
-
if (api.getSystemContext(systemContextWaitingKey) &&
|
|
132
|
+
if (api.getSystemContext(systemContextWaitingKey) &&
|
|
133
|
+
contextKey &&
|
|
134
|
+
((_b = (_a = input.data) === null || _a === void 0 ? void 0 : _a._cognigy) === null || _b === void 0 ? void 0 : _b._app)) {
|
|
110
135
|
api.deleteSystemContext(systemContextWaitingKey);
|
|
111
136
|
(0, exports.setxAppResult)({
|
|
112
137
|
input,
|
|
@@ -4,6 +4,8 @@ exports.SET_HTML_APP_STATE = exports.formExampleDOM = exports.getHTML = void 0;
|
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
|
|
6
6
|
const setAdaptiveCardAppState_1 = require("./setAdaptiveCardAppState");
|
|
7
|
+
const getXAppsOverlaySettings_1 = require("./utils/getXAppsOverlaySettings");
|
|
8
|
+
;
|
|
7
9
|
const getHTML = (body) => /* html */ `<!DOCTYPE html>
|
|
8
10
|
<html lang="en">
|
|
9
11
|
|
|
@@ -169,6 +171,7 @@ exports.SET_HTML_APP_STATE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
169
171
|
]
|
|
170
172
|
},
|
|
171
173
|
},
|
|
174
|
+
...(0, getXAppsOverlaySettings_1.getXAppsOverlaySettingsFields)(),
|
|
172
175
|
],
|
|
173
176
|
sections: [
|
|
174
177
|
{
|
|
@@ -176,19 +179,29 @@ exports.SET_HTML_APP_STATE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
176
179
|
defaultCollapsed: true,
|
|
177
180
|
fields: ["waitForInput", "storeResultInContext", "contextKey"],
|
|
178
181
|
label: "UI__NODE_EDITOR__SET_HTML_APP_STATE__WAITING_BEHAVIOR__LABEL",
|
|
179
|
-
}
|
|
182
|
+
},
|
|
183
|
+
(0, getXAppsOverlaySettings_1.getXAppsOverlaySettingsSection)(),
|
|
180
184
|
],
|
|
181
185
|
form: [
|
|
182
186
|
{ type: "field", key: "mode" },
|
|
183
187
|
{ type: "field", key: "html" },
|
|
184
188
|
{ type: "field", key: "body" },
|
|
185
189
|
{ type: "section", key: "waitingBehavior" },
|
|
190
|
+
{ type: "section", key: (0, getXAppsOverlaySettings_1.getXAppsOverlaySettingsSection)().key },
|
|
186
191
|
],
|
|
187
192
|
tags: ["basic", "apps", "xApps"],
|
|
188
193
|
function: async ({ cognigy, config, nodeId }) => {
|
|
189
194
|
var _a, _b;
|
|
190
195
|
const { api, input, context } = cognigy;
|
|
191
196
|
const { html, body, mode, waitForInput, storeResultInContext, contextKey, } = config;
|
|
197
|
+
const overlaySettings = {
|
|
198
|
+
autoOpen: config.autoOpen,
|
|
199
|
+
closeOnSubmit: config.closeOnSubmit,
|
|
200
|
+
feedbackMessage: config.feedbackMessage,
|
|
201
|
+
screenTitle: config.screenTitle,
|
|
202
|
+
sendEventOnCloseIconClick: config.sendEventOnCloseIconClick,
|
|
203
|
+
showCloseIcon: config.showCloseIcon,
|
|
204
|
+
};
|
|
192
205
|
const htmlDocument = (() => {
|
|
193
206
|
if (mode !== "full") {
|
|
194
207
|
return (0, exports.getHTML)(body);
|
|
@@ -198,7 +211,17 @@ exports.SET_HTML_APP_STATE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
198
211
|
const systemContextWaitingKey = `xAPPHtmlWaiting-${nodeId}`;
|
|
199
212
|
// only set the app state once
|
|
200
213
|
if (!api.getSystemContext(systemContextWaitingKey)) {
|
|
201
|
-
api.setAppState("generic-html", { html: htmlDocument }
|
|
214
|
+
api.setAppState("generic-html", { html: htmlDocument }, {
|
|
215
|
+
webchat3: {
|
|
216
|
+
overlaySettingsMetaData: {
|
|
217
|
+
overlaySettings,
|
|
218
|
+
endpointType: input.endpointType,
|
|
219
|
+
url: input.apps.url,
|
|
220
|
+
URLToken: input.URLToken
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
api.logDebugMessage(`UI__DEBUG_MODE__SET_HTML_APP_STATE__MESSAGE`);
|
|
202
225
|
}
|
|
203
226
|
if (api.getSystemContext(systemContextWaitingKey) && ((_b = (_a = input.data) === null || _a === void 0 ? void 0 : _a._cognigy) === null || _b === void 0 ? void 0 : _b._app)) {
|
|
204
227
|
api.deleteSystemContext(systemContextWaitingKey);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getXAppsOverlaySettingsSection = exports.getXAppsOverlaySettingsFields = void 0;
|
|
4
|
+
const getXAppsOverlaySettingsFields = () => {
|
|
5
|
+
const fields = [
|
|
6
|
+
{
|
|
7
|
+
key: "screenTitle",
|
|
8
|
+
type: "cognigyText",
|
|
9
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__SCREEN_TITLE__LABEL",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: "showCloseIcon",
|
|
13
|
+
type: "toggle",
|
|
14
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__SHOW_CLOSE_ICON__LABEL",
|
|
15
|
+
defaultValue: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: "sendEventOnCloseIconClick",
|
|
19
|
+
type: "toggle",
|
|
20
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__SEND_EVENT_ON_CLOSE_ICON__LABEL",
|
|
21
|
+
defaultValue: false,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "autoOpen",
|
|
25
|
+
type: "toggle",
|
|
26
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__AUTO_OPEN__LABEL",
|
|
27
|
+
defaultValue: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: "closeOnSubmit",
|
|
31
|
+
type: "toggle",
|
|
32
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__CLOSE_ON_SUBMIT__LABEL",
|
|
33
|
+
defaultValue: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: "feedbackMessage",
|
|
37
|
+
type: "cognigyText",
|
|
38
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__FEEDBACK_MESSAGE__LABEL",
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
return fields;
|
|
42
|
+
};
|
|
43
|
+
exports.getXAppsOverlaySettingsFields = getXAppsOverlaySettingsFields;
|
|
44
|
+
const getXAppsOverlaySettingsSection = () => {
|
|
45
|
+
const section = {
|
|
46
|
+
key: "overlaySettings",
|
|
47
|
+
label: "UI__NODE_EDITOR__XAPPS__WEBCHAT_OVERLAY_SETTINGS__SECTION_LABEL",
|
|
48
|
+
defaultCollapsed: true,
|
|
49
|
+
fields: (0, exports.getXAppsOverlaySettingsFields)().map((field) => field.key),
|
|
50
|
+
};
|
|
51
|
+
return section;
|
|
52
|
+
};
|
|
53
|
+
exports.getXAppsOverlaySettingsSection = getXAppsOverlaySettingsSection;
|
|
54
|
+
//# sourceMappingURL=getXAppsOverlaySettings.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AZURE_AI_DOCUMENT_INTELLIGENCE_PROVIDER_CONNECTION = void 0;
|
|
4
|
+
exports.AZURE_AI_DOCUMENT_INTELLIGENCE_PROVIDER_CONNECTION = {
|
|
5
|
+
type: "AzureAIDocumentIntelligenceProvider",
|
|
6
|
+
label: "UI__NODE_EDITOR__AZURE_AI_DOCUMENT_INTELLIGENCE_PROVIDER_CONNECTION__LABEL",
|
|
7
|
+
fields: [
|
|
8
|
+
{ fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
|
|
9
|
+
{ fieldName: "endpointUrl", label: "UI__CONNECTION_EDITOR__FIELD_ENDPOINT_URL" },
|
|
10
|
+
]
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=azureAIDocumentIntelligenceConnection.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cognigyDocumentParserProviderModule = void 0;
|
|
4
|
+
/* Custom modules */
|
|
5
|
+
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
6
|
+
const azureAIDocumentIntelligenceConnection_1 = require("./azureAIDocumentIntelligenceConnection");
|
|
7
|
+
exports.cognigyDocumentParserProviderModule = (0, createNodeDescriptor_1.createExtension)({
|
|
8
|
+
nodes: [],
|
|
9
|
+
connections: [
|
|
10
|
+
azureAIDocumentIntelligenceConnection_1.AZURE_AI_DOCUMENT_INTELLIGENCE_PROVIDER_CONNECTION
|
|
11
|
+
]
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AWS_BEDROCK_PROVIDER_CONNECTION = void 0;
|
|
4
|
+
exports.AWS_BEDROCK_PROVIDER_CONNECTION = {
|
|
5
|
+
type: "AwsBedrockProvider",
|
|
6
|
+
label: "UI__NODE_EDITOR__AWS_BEDROCK_PROVIDER_CONNECTION__LABEL",
|
|
7
|
+
fields: [
|
|
8
|
+
{ fieldName: "accessKeyId", label: "UI__CONNECTION_EDITOR__FIELD_ACCESS_KEY_ID" },
|
|
9
|
+
{ fieldName: "secretAccessKey", label: "UI__CONNECTION_EDITOR__FIELD_SECRET_ACCESS_KEY" },
|
|
10
|
+
]
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=awsBedrockProviderConnection.js.map
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AZURE_OPEN_AI_PROVIDER_CONNECTION = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Use AZURE_OPEAN_AI_V2_PROVIDER_CONNECTION instead, deprecated in v4.52.0
|
|
6
|
+
* it can be removed in v4.84
|
|
6
7
|
*/
|
|
7
|
-
exports.
|
|
8
|
+
exports.AZURE_OPEN_AI_PROVIDER_CONNECTION = {
|
|
8
9
|
type: "AzureOpenAIProvider",
|
|
9
|
-
label: "
|
|
10
|
+
label: "UI__NODE_EDITOR__AZURE_OPEN_AI_PROVIDER_CONNECTION__LABEL",
|
|
10
11
|
fields: [
|
|
11
12
|
{ fieldName: "apiKey" },
|
|
12
13
|
{ fieldName: "resourceName" },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.AZURE_OPEN_AI_V2_PROVIDER_CONNECTION = void 0;
|
|
4
|
+
exports.AZURE_OPEN_AI_V2_PROVIDER_CONNECTION = {
|
|
5
5
|
type: "AzureOpenAIProviderV2",
|
|
6
|
-
label: "
|
|
6
|
+
label: "UI__NODE_EDITOR__AZURE_OPEN_AI_V2_PROVIDER_CONNECTION__LABEL",
|
|
7
7
|
fields: [
|
|
8
8
|
{ fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
|
|
9
9
|
]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AZURE_OPEN_AI_OAUTH2_PROVIDER_CONNECTION = void 0;
|
|
4
|
+
exports.AZURE_OPEN_AI_OAUTH2_PROVIDER_CONNECTION = {
|
|
5
|
+
type: "azureOpenAIProviderOauth2",
|
|
6
|
+
label: "UI__NODE_EDITOR__AZURE_OPEN_AI_PROVIDER_OAUTH2_CONNECTION__LABEL",
|
|
7
|
+
fields: [
|
|
8
|
+
{ fieldName: "clientId", label: "UI__CONNECTION_EDITOR__FIELD_CLIENT_ID" },
|
|
9
|
+
{ fieldName: "clientSecret", label: "UI__CONNECTION_EDITOR__FIELD_CLIENT_SECRET" },
|
|
10
|
+
{ fieldName: "oauthUrl", label: "UI__CONNECTION_EDITOR__FIELD_OAUTH2_URL" },
|
|
11
|
+
{ fieldName: "scope", label: "UI__CONNECTION_EDITOR__FIELD_SCOPE" }
|
|
12
|
+
]
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=azureOpenAIProviderOauth2Connection.js.map
|
|
@@ -1,35 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cognigyGenerativeAIProviderModule = exports.ALEPH_ALPHA_PROVIDER_CONNECTION = exports.GOOGLE_VERTEXAI_PROVIDER_CONNECTION = exports.ANTHROPIC_PROVIDER_CONNECTION = exports.
|
|
3
|
+
exports.cognigyGenerativeAIProviderModule = exports.AWS_BEDROCK_PROVIDER_CONNECTION = exports.ALEPH_ALPHA_PROVIDER_CONNECTION = exports.GOOGLE_VERTEXAI_PROVIDER_CONNECTION = exports.ANTHROPIC_PROVIDER_CONNECTION = exports.AZURE_OPEN_AI_OAUTH2_PROVIDER_CONNECTION = exports.AZURE_OPEN_AI_V2_PROVIDER_CONNECTION = exports.AZURE_OPEN_AI_PROVIDER_CONNECTION = exports.OPEN_AI_PROVIDER_CONNECTION = void 0;
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
6
6
|
const openAIProviderConnection_1 = require("./openAIProviderConnection");
|
|
7
7
|
const azureOpenAIProviderConnection_1 = require("./azureOpenAIProviderConnection");
|
|
8
8
|
const azureOpenAIProviderConnectionV2_1 = require("./azureOpenAIProviderConnectionV2");
|
|
9
|
+
const azureOpenAIProviderOauth2Connection_1 = require("./azureOpenAIProviderOauth2Connection");
|
|
9
10
|
const anthropicProviderConnection_1 = require("./anthropicProviderConnection");
|
|
10
11
|
const googleVertexAIProviderConnection_1 = require("./googleVertexAIProviderConnection");
|
|
11
12
|
const alephAlphaProviderConnection_1 = require("./alephAlphaProviderConnection");
|
|
13
|
+
const awsBedrockProviderConnection_1 = require("./awsBedrockProviderConnection");
|
|
12
14
|
var openAIProviderConnection_2 = require("./openAIProviderConnection");
|
|
13
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "OPEN_AI_PROVIDER_CONNECTION", { enumerable: true, get: function () { return openAIProviderConnection_2.OPEN_AI_PROVIDER_CONNECTION; } });
|
|
14
16
|
var azureOpenAIProviderConnection_2 = require("./azureOpenAIProviderConnection");
|
|
15
|
-
Object.defineProperty(exports, "
|
|
17
|
+
Object.defineProperty(exports, "AZURE_OPEN_AI_PROVIDER_CONNECTION", { enumerable: true, get: function () { return azureOpenAIProviderConnection_2.AZURE_OPEN_AI_PROVIDER_CONNECTION; } });
|
|
16
18
|
var azureOpenAIProviderConnectionV2_2 = require("./azureOpenAIProviderConnectionV2");
|
|
17
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "AZURE_OPEN_AI_V2_PROVIDER_CONNECTION", { enumerable: true, get: function () { return azureOpenAIProviderConnectionV2_2.AZURE_OPEN_AI_V2_PROVIDER_CONNECTION; } });
|
|
20
|
+
var azureOpenAIProviderOauth2Connection_2 = require("./azureOpenAIProviderOauth2Connection");
|
|
21
|
+
Object.defineProperty(exports, "AZURE_OPEN_AI_OAUTH2_PROVIDER_CONNECTION", { enumerable: true, get: function () { return azureOpenAIProviderOauth2Connection_2.AZURE_OPEN_AI_OAUTH2_PROVIDER_CONNECTION; } });
|
|
18
22
|
var anthropicProviderConnection_2 = require("./anthropicProviderConnection");
|
|
19
23
|
Object.defineProperty(exports, "ANTHROPIC_PROVIDER_CONNECTION", { enumerable: true, get: function () { return anthropicProviderConnection_2.ANTHROPIC_PROVIDER_CONNECTION; } });
|
|
20
24
|
var googleVertexAIProviderConnection_2 = require("./googleVertexAIProviderConnection");
|
|
21
25
|
Object.defineProperty(exports, "GOOGLE_VERTEXAI_PROVIDER_CONNECTION", { enumerable: true, get: function () { return googleVertexAIProviderConnection_2.GOOGLE_VERTEXAI_PROVIDER_CONNECTION; } });
|
|
22
26
|
var alephAlphaProviderConnection_2 = require("./alephAlphaProviderConnection");
|
|
23
27
|
Object.defineProperty(exports, "ALEPH_ALPHA_PROVIDER_CONNECTION", { enumerable: true, get: function () { return alephAlphaProviderConnection_2.ALEPH_ALPHA_PROVIDER_CONNECTION; } });
|
|
28
|
+
var awsBedrockProviderConnection_2 = require("./awsBedrockProviderConnection");
|
|
29
|
+
Object.defineProperty(exports, "AWS_BEDROCK_PROVIDER_CONNECTION", { enumerable: true, get: function () { return awsBedrockProviderConnection_2.AWS_BEDROCK_PROVIDER_CONNECTION; } });
|
|
24
30
|
exports.cognigyGenerativeAIProviderModule = (0, createNodeDescriptor_1.createExtension)({
|
|
25
31
|
nodes: [],
|
|
26
32
|
connections: [
|
|
27
|
-
openAIProviderConnection_1.
|
|
28
|
-
azureOpenAIProviderConnection_1.
|
|
29
|
-
azureOpenAIProviderConnectionV2_1.
|
|
33
|
+
openAIProviderConnection_1.OPEN_AI_PROVIDER_CONNECTION,
|
|
34
|
+
azureOpenAIProviderConnection_1.AZURE_OPEN_AI_PROVIDER_CONNECTION,
|
|
35
|
+
azureOpenAIProviderConnectionV2_1.AZURE_OPEN_AI_V2_PROVIDER_CONNECTION,
|
|
36
|
+
azureOpenAIProviderOauth2Connection_1.AZURE_OPEN_AI_OAUTH2_PROVIDER_CONNECTION,
|
|
30
37
|
anthropicProviderConnection_1.ANTHROPIC_PROVIDER_CONNECTION,
|
|
31
38
|
googleVertexAIProviderConnection_1.GOOGLE_VERTEXAI_PROVIDER_CONNECTION,
|
|
32
|
-
alephAlphaProviderConnection_1.ALEPH_ALPHA_PROVIDER_CONNECTION
|
|
39
|
+
alephAlphaProviderConnection_1.ALEPH_ALPHA_PROVIDER_CONNECTION,
|
|
40
|
+
awsBedrockProviderConnection_1.AWS_BEDROCK_PROVIDER_CONNECTION
|
|
33
41
|
]
|
|
34
42
|
});
|
|
35
43
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.OPEN_AI_PROVIDER_CONNECTION = void 0;
|
|
4
|
+
exports.OPEN_AI_PROVIDER_CONNECTION = {
|
|
5
5
|
type: "OpenAIProvider",
|
|
6
|
-
label: "
|
|
6
|
+
label: "UI__NODE_EDITOR__OPEN_AI_PROVIDER_CONNECTION__LABEL",
|
|
7
7
|
fields: [
|
|
8
8
|
{ fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
|
|
9
9
|
]
|
|
@@ -76,6 +76,13 @@ exports.ADD_TO_CONTEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
76
76
|
value = config.value;
|
|
77
77
|
}
|
|
78
78
|
api.addToContext(key, value, mode);
|
|
79
|
+
let stringValue = value;
|
|
80
|
+
try {
|
|
81
|
+
stringValue = JSON.stringify(value, undefined, 2);
|
|
82
|
+
}
|
|
83
|
+
catch (err) {
|
|
84
|
+
}
|
|
85
|
+
api.logDebugMessage(`context.${key} = ${stringValue}`);
|
|
79
86
|
}
|
|
80
87
|
});
|
|
81
88
|
//# sourceMappingURL=addToContext.js.map
|
|
@@ -20,9 +20,12 @@ exports.COPY_DATA_TO_CONTEXT = (0, createNodeDescriptor_1.createNodeDescriptor)(
|
|
|
20
20
|
tags: ["data"],
|
|
21
21
|
function: async ({ cognigy }) => {
|
|
22
22
|
const { input, api } = cognigy;
|
|
23
|
+
let debug = "";
|
|
23
24
|
for (const key in input.data) {
|
|
24
25
|
api.addToContext(key, input.data[key], "simple");
|
|
26
|
+
debug += `Copied ${key} to context<br>`;
|
|
25
27
|
}
|
|
28
|
+
debug && api.logDebugMessage(`${debug}`);
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
//# sourceMappingURL=copyDataToContext.js.map
|
|
@@ -86,14 +86,17 @@ exports.COPY_SLOTS_TO_CONTEXT = (0, createNodeDescriptor_1.createNodeDescriptor)
|
|
|
86
86
|
if (!input.slots || !input.slots[tag]) {
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
+
let debug = "";
|
|
89
90
|
for (const keyphrase of input.slots[tag]) {
|
|
90
91
|
if (keyphrase.neg && useNeg) {
|
|
91
92
|
api.removeFromContext(key, keyphrase.lower, mode);
|
|
92
93
|
}
|
|
93
94
|
else {
|
|
94
95
|
api.addToContext(key, keyphrase.lower, mode);
|
|
96
|
+
debug += `UI__DEBUG_MODE__COPY_SLOTS_TO_CONTEXT__MESSAGE_1 ${keyphrase.lower} UI__DEBUG_MODE__COPY_SLOTS_TO_CONTEXT__MESSAGE_2 context.${key}<br>`;
|
|
95
97
|
}
|
|
96
98
|
}
|
|
99
|
+
debug && api.logDebugMessage(`${debug}`);
|
|
97
100
|
}
|
|
98
101
|
});
|
|
99
102
|
//# sourceMappingURL=copySlotsToContext.js.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEBUG_MESSAGE = void 0;
|
|
4
|
+
/* Custom modules */
|
|
5
|
+
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
|
|
6
|
+
/**
|
|
7
|
+
* Node name: 'Debug Message'
|
|
8
|
+
*
|
|
9
|
+
* Purpose:
|
|
10
|
+
* Send a Debug Message to the Interaction Panel
|
|
11
|
+
*/
|
|
12
|
+
exports.DEBUG_MESSAGE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
13
|
+
type: "debugMessage",
|
|
14
|
+
defaultLabel: "Debug Message",
|
|
15
|
+
summary: "UI__NODE_EDITOR__DEBUG_MESSAGE__SUMMARY",
|
|
16
|
+
appearance: {
|
|
17
|
+
showIcon: false
|
|
18
|
+
},
|
|
19
|
+
fields: [
|
|
20
|
+
{
|
|
21
|
+
key: "level",
|
|
22
|
+
type: "select",
|
|
23
|
+
label: "UI__NODE_EDITOR__DEBUG_MESSAG__FIELDS__LEVEL__LABEL",
|
|
24
|
+
defaultValue: "info",
|
|
25
|
+
description: "UI__NODE_EDITOR__DEBUG_MESSAG__FIELDS__LEVEL__DESCRIPTION",
|
|
26
|
+
params: {
|
|
27
|
+
options: [
|
|
28
|
+
{
|
|
29
|
+
label: "UI__NODE_EDITOR__DEBUG_MESSAG__FIELDS__LEVEL__OPTIONS__INFO",
|
|
30
|
+
value: "info",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "UI__NODE_EDITOR__DEBUG_MESSAG__FIELDS__LEVEL__OPTIONS__ERROR",
|
|
34
|
+
value: "error",
|
|
35
|
+
},
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
key: "header",
|
|
41
|
+
type: "cognigyText",
|
|
42
|
+
label: "UI__NODE_EDITOR__DEBUG_MESSAG__FIELDS__HEADER__LABEL",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "message",
|
|
46
|
+
type: "cognigyText",
|
|
47
|
+
label: "UI__NODE_EDITOR__DEBUG_MESSAG__FIELDS__MESSAGE__LABEL",
|
|
48
|
+
params: {
|
|
49
|
+
required: true,
|
|
50
|
+
multiline: true,
|
|
51
|
+
rows: 4,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
preview: {
|
|
56
|
+
key: "message",
|
|
57
|
+
type: "text",
|
|
58
|
+
},
|
|
59
|
+
tags: ["basic", "debug"],
|
|
60
|
+
function: async ({ cognigy, config }) => {
|
|
61
|
+
const { api } = cognigy;
|
|
62
|
+
const { level, message, header } = config;
|
|
63
|
+
if (level && message) {
|
|
64
|
+
if (level === "info") {
|
|
65
|
+
api.logDebugMessage(message, header);
|
|
66
|
+
}
|
|
67
|
+
if (level === "error") {
|
|
68
|
+
api.logDebugError(message, header);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=debugMessage.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LOG = exports.CODE = exports.RESET_CONTEXT = exports.REMOVE_FROM_CONTEXT = exports.COPY_SLOTS_TO_CONTEXT = exports.COPY_DATA_TO_CONTEXT = exports.ADD_TO_CONTEXT = void 0;
|
|
3
|
+
exports.DEBUG_MESSAGE = exports.LOG = exports.CODE = exports.RESET_CONTEXT = exports.REMOVE_FROM_CONTEXT = exports.COPY_SLOTS_TO_CONTEXT = exports.COPY_DATA_TO_CONTEXT = exports.ADD_TO_CONTEXT = void 0;
|
|
4
4
|
var addToContext_1 = require("./addToContext");
|
|
5
5
|
Object.defineProperty(exports, "ADD_TO_CONTEXT", { enumerable: true, get: function () { return addToContext_1.ADD_TO_CONTEXT; } });
|
|
6
6
|
var copyDataToContext_1 = require("./copyDataToContext");
|
|
@@ -15,4 +15,6 @@ var code_1 = require("./code");
|
|
|
15
15
|
Object.defineProperty(exports, "CODE", { enumerable: true, get: function () { return code_1.CODE; } });
|
|
16
16
|
var log_1 = require("./log");
|
|
17
17
|
Object.defineProperty(exports, "LOG", { enumerable: true, get: function () { return log_1.LOG; } });
|
|
18
|
+
var debugMessage_1 = require("./debugMessage");
|
|
19
|
+
Object.defineProperty(exports, "DEBUG_MESSAGE", { enumerable: true, get: function () { return debugMessage_1.DEBUG_MESSAGE; } });
|
|
18
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -65,8 +65,16 @@ exports.REMOVE_FROM_CONTEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
65
65
|
tags: ["data"],
|
|
66
66
|
function: async ({ cognigy, config }) => {
|
|
67
67
|
const { key, value, mode = "simple" } = config;
|
|
68
|
-
const { api } = cognigy;
|
|
68
|
+
const { api, input } = cognigy;
|
|
69
69
|
api.removeFromContext(key, value, mode);
|
|
70
|
+
if (input.endpointType === "adminconsole" || api.getMetadata().isFollowSessionActive) {
|
|
71
|
+
if (mode === "simple") {
|
|
72
|
+
api.logDebugMessage(`UI__DEBUG_MODE__REMOVE_FROM_CONTEXT__MESSAGE context.${key}`);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
api.logDebugMessage(`UI__DEBUG_MODE__REMOVE_FROM_CONTEXT__MESSAGE '${value}' UI__DEBUG_MODE__REMOVE_FROM_CONTEXT__MESSAGE_2 'context.${key}'`);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
70
78
|
}
|
|
71
79
|
});
|
|
72
80
|
//# sourceMappingURL=removeFromContext.js.map
|
|
@@ -21,6 +21,7 @@ exports.RESET_CONTEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
21
21
|
function: async ({ cognigy }) => {
|
|
22
22
|
const { api } = cognigy;
|
|
23
23
|
api.resetContext();
|
|
24
|
+
api.logDebugMessage(`UI__DEBUG_MODE__RESET_CONTEXT__MESSAGE`);
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
//# sourceMappingURL=resetContext.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cognigyTranslationProviderModule = exports.cognigySpeechProviderModule = exports.cognigyGenerativeAIProviderModule = exports.cognigyInternalStorageProviderModule = exports.cognigyVoiceGateway2Module = exports.cognigyMicrosoftModule = exports.cognigyVoiceGatewayModule = exports.cognigySMTPModule = exports.cognigySQLModule = exports.cognigyMongoDBModule = exports.cognigyBasicModule = void 0;
|
|
3
|
+
exports.cognigyDocumentParserProviderModule = exports.cognigyTranslationProviderModule = exports.cognigySpeechProviderModule = exports.cognigyGenerativeAIProviderModule = exports.cognigyInternalStorageProviderModule = exports.cognigyVoiceGateway2Module = exports.cognigyMicrosoftModule = exports.cognigyVoiceGatewayModule = exports.cognigySMTPModule = exports.cognigySQLModule = exports.cognigyMongoDBModule = exports.cognigyBasicModule = void 0;
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../createNodeDescriptor");
|
|
6
6
|
/* Nodes */
|
|
@@ -31,6 +31,7 @@ const nodes = [
|
|
|
31
31
|
data_1.RESET_CONTEXT,
|
|
32
32
|
data_1.CODE,
|
|
33
33
|
data_1.LOG,
|
|
34
|
+
data_1.DEBUG_MESSAGE,
|
|
34
35
|
logic_1.INTERVAL,
|
|
35
36
|
logic_1.ELSE_INTERVAL,
|
|
36
37
|
logic_1.ON_INTERVAL,
|
|
@@ -126,6 +127,9 @@ const nodes = [
|
|
|
126
127
|
agentAssist_1.KNOWLEDGE_ASSIST,
|
|
127
128
|
knowledgeSearch_1.SEARCH_EXTRACT_OUTPUT,
|
|
128
129
|
];
|
|
130
|
+
if (process.env.FEATURE_USE_MILESTONES === "true") {
|
|
131
|
+
nodes.push(analytics_1.TRACK_MILESTONE);
|
|
132
|
+
}
|
|
129
133
|
if (process.env.FEATURE_USE_COGNIGY_LIVE_AGENT === "true") {
|
|
130
134
|
nodes.push(liveAgent_1.ASSIST_INFO);
|
|
131
135
|
}
|
|
@@ -161,4 +165,6 @@ var speechProviders_1 = require("./connectionNodes/speechProviders");
|
|
|
161
165
|
Object.defineProperty(exports, "cognigySpeechProviderModule", { enumerable: true, get: function () { return speechProviders_1.cognigySpeechProviderModule; } });
|
|
162
166
|
var translationProviders_1 = require("./connectionNodes/translationProviders");
|
|
163
167
|
Object.defineProperty(exports, "cognigyTranslationProviderModule", { enumerable: true, get: function () { return translationProviders_1.cognigyTranslationProviderModule; } });
|
|
168
|
+
var documentParserProviders_1 = require("./connectionNodes/documentParserProviders");
|
|
169
|
+
Object.defineProperty(exports, "cognigyDocumentParserProviderModule", { enumerable: true, get: function () { return documentParserProviders_1.cognigyDocumentParserProviderModule; } });
|
|
164
170
|
//# sourceMappingURL=index.js.map
|