@cognigy/rest-api-client 2025.20.0 → 2025.22.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 +10 -0
- package/build/apigroups/SimulationAPIGroup_2_0.js +4 -0
- package/build/shared/charts/descriptors/analytics/trackGoal.js +2 -2
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -5
- package/build/shared/charts/descriptors/service/GPTPrompt.js +4 -4
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +4 -3
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +7 -3
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +4 -3
- package/build/shared/charts/descriptors/voice/mappers/msTeamsTransfer.mapper.js +36 -0
- package/build/shared/charts/descriptors/voicegateway2/index.js +16 -11
- package/build/shared/charts/descriptors/voicegateway2/nodes/msTeamsTransfer.js +126 -0
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +3 -0
- package/build/shared/interfaces/license.js +9 -1
- package/build/shared/interfaces/resources/IAuditEvent.js +6 -1
- package/build/shared/interfaces/resources/IChartNode.js +7 -1
- package/build/shared/interfaces/restAPI/simulation/simulation/ICloneSimulationRest_2_0.js +3 -0
- package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +4 -0
- package/dist/esm/shared/charts/descriptors/analytics/trackGoal.js +2 -2
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -5
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +4 -4
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +4 -3
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +7 -3
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +4 -3
- package/dist/esm/shared/charts/descriptors/voice/mappers/msTeamsTransfer.mapper.js +33 -0
- package/dist/esm/shared/charts/descriptors/voicegateway2/index.js +16 -11
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/msTeamsTransfer.js +124 -0
- package/dist/esm/shared/interfaces/IOrganisation.js +1 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +3 -0
- package/dist/esm/shared/interfaces/license.js +9 -1
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +6 -1
- package/dist/esm/shared/interfaces/resources/IChartNode.js +6 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulation/ICloneSimulationRest_2_0.js +2 -0
- package/package.json +1 -1
- package/types/index.d.ts +88 -23
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# 2025.22.0
|
|
2
|
+
Released: October 28th, 2025
|
|
3
|
+
|
|
4
|
+
Released state of package up to date with Cognigy.AI v2025.22.0
|
|
5
|
+
|
|
6
|
+
# 2025.21.0
|
|
7
|
+
Released: October 14th, 2025
|
|
8
|
+
|
|
9
|
+
Released state of package up to date with Cognigy.AI v2025.21.0
|
|
10
|
+
|
|
1
11
|
# 2025.20.0
|
|
2
12
|
Released: October 02nd, 2025
|
|
3
13
|
|
|
@@ -35,6 +35,10 @@ function SimulationAPIGroup_2_0(instance) {
|
|
|
35
35
|
var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
|
|
36
36
|
return (0, GenericAPIFn_1.GenericAPIFn)(`/testing/beta/simulations/${simulationReference}/schedule`, "POST", self)(args, options);
|
|
37
37
|
},
|
|
38
|
+
cloneSimulation: (_a, options) => {
|
|
39
|
+
var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
|
|
40
|
+
return (0, GenericAPIFn_1.GenericAPIFn)(`/testing/beta/simulations/${simulationReference}/clone`, "POST", self)(args, options);
|
|
41
|
+
},
|
|
38
42
|
indexSimulationRunBatches: (args, options) => (0, GenericAPIFn_1.GenericAPIFn)(`/testing/beta/simulations/batches?${(0, query_1.stringifyQuery)(args)}`, "GET", self)(undefined, options),
|
|
39
43
|
getAllSimulationRunBatches: (_a, options) => {
|
|
40
44
|
var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
|
|
@@ -4,7 +4,7 @@ exports.TRACK_GOAL = void 0;
|
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
|
|
6
6
|
/* Npm modules */
|
|
7
|
-
const
|
|
7
|
+
const crypto = require("crypto");
|
|
8
8
|
/**
|
|
9
9
|
* Node name: 'trackGoal'
|
|
10
10
|
*
|
|
@@ -58,7 +58,7 @@ exports.TRACK_GOAL = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
58
58
|
}
|
|
59
59
|
// Create a new cycle id if there is a start step
|
|
60
60
|
if (hasStartStep) {
|
|
61
|
-
cycleId =
|
|
61
|
+
cycleId = crypto.randomUUID();
|
|
62
62
|
activeCycleIds[goalId] = cycleId;
|
|
63
63
|
const sessionStateAnalyticsUpdate = Object.assign(Object.assign({}, sessionState.analytics), { goalCycleIds: activeCycleIds });
|
|
64
64
|
api.setSessionState("analytics", sessionStateAnalyticsUpdate);
|
|
@@ -23,8 +23,8 @@ const getLanguageName = (languageCode) => {
|
|
|
23
23
|
// remove the "region" part from language codes (e.g. en-US becomes en, the -US gets stripped)
|
|
24
24
|
const languageOnly = languageCode.split('-')[0];
|
|
25
25
|
// our runtimes support this, but it's not reflected in every project's typings!
|
|
26
|
-
// this flag is used to reset a breaking-change behavior (returning "flamish" instead of "dutch (belgium)") to its former behavior
|
|
27
|
-
// @ts-ignore
|
|
26
|
+
// this flag is used to reset a breaking-change behavior (returning "flamish" instead of "dutch (belgium)") to its former behavior
|
|
27
|
+
// @ts-ignore
|
|
28
28
|
const languageName = (new Intl.DisplayNames(["en-US"], { type: "language", languageDisplay: "standard", fallback: 'none' }).of(languageOnly));
|
|
29
29
|
return languageName;
|
|
30
30
|
};
|
|
@@ -656,7 +656,7 @@ exports.SEARCH_EXTRACT_OUTPUT = (0, createNodeDescriptor_1.createNodeDescriptor)
|
|
|
656
656
|
// add error to context or input
|
|
657
657
|
switch (searchStoreLocation) {
|
|
658
658
|
case "context":
|
|
659
|
-
// @ts-ignore
|
|
659
|
+
// @ts-ignore
|
|
660
660
|
api.addToContext(searchStoreLocationContextKey, searchStoreDataWithError, "simple");
|
|
661
661
|
break;
|
|
662
662
|
default:
|
|
@@ -738,7 +738,7 @@ exports.SEARCH_EXTRACT_OUTPUT = (0, createNodeDescriptor_1.createNodeDescriptor)
|
|
|
738
738
|
// Save result
|
|
739
739
|
switch (searchStoreLocation) {
|
|
740
740
|
case "context":
|
|
741
|
-
// @ts-ignore
|
|
741
|
+
// @ts-ignore
|
|
742
742
|
api.addToContext(searchStoreLocationContextKey, knowledgeSearchResponseData, "simple");
|
|
743
743
|
break;
|
|
744
744
|
case "default":
|
|
@@ -767,7 +767,7 @@ exports.SEARCH_EXTRACT_OUTPUT = (0, createNodeDescriptor_1.createNodeDescriptor)
|
|
|
767
767
|
if (documents && (mode !== "s")) {
|
|
768
768
|
// check if we received streamed output at all
|
|
769
769
|
let streamedOutput = false;
|
|
770
|
-
const isStreamingChannel = input.
|
|
770
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
771
771
|
const _messageId = (0, crypto_1.randomUUID)();
|
|
772
772
|
const promptData = {
|
|
773
773
|
prompt,
|
|
@@ -4,7 +4,7 @@ exports.GPT_PROMPT = void 0;
|
|
|
4
4
|
/* Custom modules */
|
|
5
5
|
const createNodeDescriptor_1 = require("../../createNodeDescriptor");
|
|
6
6
|
const logic_1 = require("../logic");
|
|
7
|
-
const
|
|
7
|
+
const crypto = require("crypto");
|
|
8
8
|
const prompt_1 = require("../nlu/generativeSlotFiller/prompt");
|
|
9
9
|
const errors_1 = require("../../../errors");
|
|
10
10
|
const transcripts_1 = require("../../../interfaces/transcripts/transcripts");
|
|
@@ -621,7 +621,7 @@ exports.GPT_PROMPT = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
621
621
|
// add error to context or input
|
|
622
622
|
switch (storeLocation) {
|
|
623
623
|
case "context":
|
|
624
|
-
// @ts-ignore
|
|
624
|
+
// @ts-ignore
|
|
625
625
|
api.addToContext(contextKey, errorResponse, "simple");
|
|
626
626
|
break;
|
|
627
627
|
default:
|
|
@@ -659,8 +659,8 @@ exports.GPT_PROMPT = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
try {
|
|
662
|
-
const isStreamingChannel = input.
|
|
663
|
-
const _messageId =
|
|
662
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
663
|
+
const _messageId = crypto.randomUUID();
|
|
664
664
|
const data = {
|
|
665
665
|
prompt,
|
|
666
666
|
temperature,
|
|
@@ -12,6 +12,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.AI_AGENT_JOB = exports.AI_AGENT_TOOLS_WHITELIST = void 0;
|
|
15
|
+
/* Npm modules */
|
|
16
|
+
const crypto = require("crypto");
|
|
15
17
|
/* Custom modules */
|
|
16
18
|
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
17
19
|
const setSessionConfig_mapper_1 = require("../../voice/mappers/setSessionConfig.mapper");
|
|
@@ -21,7 +23,6 @@ const createSystemMessage_1 = require("./helpers/createSystemMessage");
|
|
|
21
23
|
const generateSearchPrompt_1 = require("./helpers/generateSearchPrompt");
|
|
22
24
|
const getUserMemory_1 = require("./helpers/getUserMemory");
|
|
23
25
|
const createToolDefinitions_1 = require("./helpers/createToolDefinitions");
|
|
24
|
-
const uuid_1 = require("uuid");
|
|
25
26
|
const transcripts_1 = require("../../../../interfaces/transcripts/transcripts");
|
|
26
27
|
exports.AI_AGENT_TOOLS_WHITELIST = ["aiAgentJobDefault", "aiAgentJobTool", "aiAgentJobMCPTool"];
|
|
27
28
|
exports.AI_AGENT_JOB = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
@@ -1218,8 +1219,8 @@ exports.AI_AGENT_JOB = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
1218
1219
|
const enhancedInput = `## Knowledge Source Context\nAdditional Context from the knowledge source: \n${JSON.stringify(knowledgeSearchResponseData)}\n\n\n${((_z = userInput === null || userInput === void 0 ? void 0 : userInput.payload) === null || _z === void 0 ? void 0 : _z.text) || input.text}`;
|
|
1219
1220
|
transcript[transcript.length - 1].payload.text = enhancedInput;
|
|
1220
1221
|
}
|
|
1221
|
-
const isStreamingChannel = input.
|
|
1222
|
-
const _messageId =
|
|
1222
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
1223
|
+
const _messageId = crypto.randomUUID();
|
|
1223
1224
|
const enableAdvancedLogging = advancedLogging && loggingWebhookUrl && (conditionForLogging === "" || !!conditionForLogging);
|
|
1224
1225
|
const llmPromptOptions = Object.assign(Object.assign(Object.assign({ prompt: "", chat: systemMessage,
|
|
1225
1226
|
// Temp fix to override the transcript if needed
|
|
@@ -76,13 +76,16 @@ const createToolDefinitions = async (childConfigs, api, useStrict) => {
|
|
|
76
76
|
const toolFilter = child.config.toolFilter;
|
|
77
77
|
const mcpHeaders = child.config.mcpHeaders;
|
|
78
78
|
let mcpTools = null;
|
|
79
|
+
let fetchedFromCache = null;
|
|
79
80
|
try {
|
|
80
|
-
|
|
81
|
+
const fetched = await api.fetchMcpTools({
|
|
81
82
|
mcpServerUrl,
|
|
82
83
|
timeout,
|
|
83
84
|
cacheTools,
|
|
84
85
|
mcpHeaders,
|
|
85
86
|
});
|
|
87
|
+
mcpTools = fetched.tools;
|
|
88
|
+
fetchedFromCache = fetched.fromCache;
|
|
86
89
|
}
|
|
87
90
|
catch (error) {
|
|
88
91
|
const errorDetails = error instanceof Error
|
|
@@ -95,11 +98,12 @@ const createToolDefinitions = async (childConfigs, api, useStrict) => {
|
|
|
95
98
|
}
|
|
96
99
|
if (mcpTools) {
|
|
97
100
|
if (sendDebug) {
|
|
101
|
+
const sourceLabel = fetchedFromCache ? "from cache" : "from MCP server";
|
|
98
102
|
if (mcpTools.length === 0) {
|
|
99
|
-
(_b = api.logDebugMessage) === null || _b === void 0 ? void 0 : _b.call(api, `No tools fetched from MCP Tool "${child.config.name}".`, "MCP Tool");
|
|
103
|
+
(_b = api.logDebugMessage) === null || _b === void 0 ? void 0 : _b.call(api, `No tools fetched from MCP Tool "${child.config.name}" (${sourceLabel}).`, "MCP Tool");
|
|
100
104
|
}
|
|
101
105
|
if (mcpTools.length > 0) {
|
|
102
|
-
const messageLines = [`Fetched tools from MCP Tool "${child.config.name}"`];
|
|
106
|
+
const messageLines = [`Fetched tools from MCP Tool "${child.config.name}" (${sourceLabel})`];
|
|
103
107
|
mcpTools.forEach((tool) => {
|
|
104
108
|
messageLines.push(`<br>- <b>${tool.name}</b>: ${tool.description}`);
|
|
105
109
|
if (child.config.debugMessageParameters && tool.inputSchema) {
|
|
@@ -12,11 +12,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.LLM_PROMPT_V2 = void 0;
|
|
15
|
+
/* Npm modules */
|
|
16
|
+
const crypto = require("crypto");
|
|
15
17
|
/* Custom modules */
|
|
16
18
|
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
17
19
|
const logic_1 = require("../../logic");
|
|
18
20
|
const createToolDefinitions_1 = require("../aiAgent/helpers/createToolDefinitions");
|
|
19
|
-
const uuid_1 = require("uuid");
|
|
20
21
|
const prompt_1 = require("../../nlu/generativeSlotFiller/prompt");
|
|
21
22
|
const errors_1 = require("../../../../errors");
|
|
22
23
|
const transcripts_1 = require("../../../../interfaces/transcripts/transcripts");
|
|
@@ -791,8 +792,8 @@ exports.LLM_PROMPT_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
791
792
|
}
|
|
792
793
|
};
|
|
793
794
|
try {
|
|
794
|
-
const isStreamingChannel = input.
|
|
795
|
-
const _messageId =
|
|
795
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
796
|
+
const _messageId = crypto.randomUUID();
|
|
796
797
|
// Start measuring LLM latency and time to first output if debug flag is enabled
|
|
797
798
|
let firstOutputTime = null;
|
|
798
799
|
/**
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.msTeamsTransfer = void 0;
|
|
4
|
+
exports.msTeamsTransfer = {
|
|
5
|
+
handleInput(endpointType, params) {
|
|
6
|
+
try {
|
|
7
|
+
return this.handleVGInput(params);
|
|
8
|
+
}
|
|
9
|
+
catch (error) {
|
|
10
|
+
throw Error(error.message);
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
handleVGInput(transferParam) {
|
|
14
|
+
const { transferTarget, callerName, topic, context, callSentiment, suggestedActions, } = transferParam;
|
|
15
|
+
const payload = {
|
|
16
|
+
_voiceGateway2: {
|
|
17
|
+
json: {}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
let headers = {
|
|
21
|
+
"X-MS-TEAMS-CALLER-NAME": callerName,
|
|
22
|
+
"X-MS-TEAMS-CALL-TOPIC": topic,
|
|
23
|
+
"X-MS-TEAMS-CALL-CONTEXT": context,
|
|
24
|
+
"X-MS-TEAMS-CALL-CALL-SENTIMENT": callSentiment,
|
|
25
|
+
"X-MS-TEAMS-SUGGESTED-ACTIONS": suggestedActions,
|
|
26
|
+
};
|
|
27
|
+
const referVerb = {
|
|
28
|
+
"referTo": transferTarget,
|
|
29
|
+
"actionHook": 'refer',
|
|
30
|
+
headers
|
|
31
|
+
};
|
|
32
|
+
payload._voiceGateway2.json["sip:refer"] = referVerb;
|
|
33
|
+
return payload;
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=msTeamsTransfer.mapper.js.map
|
|
@@ -8,22 +8,27 @@ const hangup_1 = require("./nodes/hangup");
|
|
|
8
8
|
const play_1 = require("./nodes/play");
|
|
9
9
|
const refer_1 = require("./nodes/refer");
|
|
10
10
|
const transfer_1 = require("./nodes/transfer");
|
|
11
|
+
const msTeamsTransfer_1 = require("./nodes/msTeamsTransfer");
|
|
11
12
|
const setSessionConfig_1 = require("./nodes/setSessionConfig");
|
|
12
13
|
const sendMetadata_1 = require("./nodes/sendMetadata");
|
|
13
14
|
const record_1 = require("./nodes/record");
|
|
14
15
|
const muteSpeechInput_1 = require("./nodes/muteSpeechInput");
|
|
16
|
+
const nodes = [
|
|
17
|
+
setSessionConfig_1.setSessionConfigNode,
|
|
18
|
+
dtmf_1.dtmfNode,
|
|
19
|
+
hangup_1.hangupNode,
|
|
20
|
+
play_1.playNode,
|
|
21
|
+
refer_1.referNode,
|
|
22
|
+
transfer_1.transferNode,
|
|
23
|
+
sendMetadata_1.sendMetadataNode,
|
|
24
|
+
record_1.recordNode,
|
|
25
|
+
muteSpeechInput_1.muteSpeechInputNode,
|
|
26
|
+
];
|
|
27
|
+
if (process.env.FEATURE_DISABLE_MS_TEAMS_TRANSFER_NODE !== "true") {
|
|
28
|
+
nodes.push(msTeamsTransfer_1.msTeamsTransferNode);
|
|
29
|
+
}
|
|
15
30
|
exports.cognigyVoiceGateway2Module = (0, createNodeDescriptor_1.createExtension)({
|
|
16
|
-
nodes
|
|
17
|
-
setSessionConfig_1.setSessionConfigNode,
|
|
18
|
-
dtmf_1.dtmfNode,
|
|
19
|
-
hangup_1.hangupNode,
|
|
20
|
-
play_1.playNode,
|
|
21
|
-
refer_1.referNode,
|
|
22
|
-
transfer_1.transferNode,
|
|
23
|
-
sendMetadata_1.sendMetadataNode,
|
|
24
|
-
record_1.recordNode,
|
|
25
|
-
muteSpeechInput_1.muteSpeechInputNode,
|
|
26
|
-
],
|
|
31
|
+
nodes,
|
|
27
32
|
connections: []
|
|
28
33
|
});
|
|
29
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.msTeamsTransferNode = void 0;
|
|
4
|
+
/** Custom Modules */
|
|
5
|
+
const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
6
|
+
/** Helper Modules */
|
|
7
|
+
const msTeamsTransfer_mapper_1 = require("../../voice/mappers/msTeamsTransfer.mapper");
|
|
8
|
+
const design_1 = require("../utils/design");
|
|
9
|
+
const customHeaderDefaultValue = "X-Custom-Header";
|
|
10
|
+
exports.msTeamsTransferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
11
|
+
type: "msTeamsTransfer",
|
|
12
|
+
defaultLabel: "MS Teams Transfer",
|
|
13
|
+
preview: {
|
|
14
|
+
key: "transferTarget",
|
|
15
|
+
type: "text",
|
|
16
|
+
},
|
|
17
|
+
appearance: {
|
|
18
|
+
color: design_1.nodeColor,
|
|
19
|
+
},
|
|
20
|
+
tags: ["voice"],
|
|
21
|
+
fields: [
|
|
22
|
+
{
|
|
23
|
+
key: "transferTarget",
|
|
24
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__FIELDS__TRANSFER_TARGET__LABEL",
|
|
25
|
+
type: "cognigyText",
|
|
26
|
+
params: {
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__FIELDS__TRANSFER_TARGET__DESCRIPTION",
|
|
30
|
+
defaultValue: "+49123456789",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "callerName",
|
|
34
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALLER_NAME__LABEL",
|
|
35
|
+
type: "cognigyText",
|
|
36
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALLER_NAME__DESCRIPTION",
|
|
37
|
+
defaultValue: "",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
key: "topic",
|
|
41
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__TOPIC__LABEL",
|
|
42
|
+
type: "cognigyText",
|
|
43
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__TOPIC__DESCRIPTION",
|
|
44
|
+
defaultValue: "",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: "context",
|
|
48
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CONTEXT__LABEL",
|
|
49
|
+
type: "cognigyText",
|
|
50
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CONTEXT__DESCRIPTION",
|
|
51
|
+
defaultValue: "My context",
|
|
52
|
+
params: {
|
|
53
|
+
required: true,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: "callSentiment",
|
|
58
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALL_SENTIMENT__LABEL",
|
|
59
|
+
type: "cognigyText",
|
|
60
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALL_SENTIMENT__DESCRIPTION",
|
|
61
|
+
defaultValue: "",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "suggestedActions",
|
|
65
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__SUGGESTED_ACTIONS__LABEL",
|
|
66
|
+
type: "cognigyText",
|
|
67
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__SUGGESTED_ACTIONS__DESCRIPTION",
|
|
68
|
+
defaultValue: "",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
form: [
|
|
72
|
+
{
|
|
73
|
+
type: "field",
|
|
74
|
+
key: "transferTarget"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: "field",
|
|
78
|
+
key: "callerName"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: "field",
|
|
82
|
+
key: "topic"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
type: "field",
|
|
86
|
+
key: "context"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: "field",
|
|
90
|
+
key: "callSentiment"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
type: "field",
|
|
94
|
+
key: "suggestedActions"
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
|
|
98
|
+
function: async ({ cognigy, config, }) => {
|
|
99
|
+
const { api, input } = cognigy;
|
|
100
|
+
const { transferTarget, callerName, topic, context, callSentiment, suggestedActions, } = config;
|
|
101
|
+
const transferParams = {
|
|
102
|
+
transferTarget,
|
|
103
|
+
callerName,
|
|
104
|
+
topic,
|
|
105
|
+
context,
|
|
106
|
+
callSentiment,
|
|
107
|
+
suggestedActions,
|
|
108
|
+
};
|
|
109
|
+
try {
|
|
110
|
+
if (input.channel === "adminconsole") {
|
|
111
|
+
let textWarningAdminChannel = "Transferring a call is not supported in the Interaction Panel, please use the VoiceGateway endpoint.";
|
|
112
|
+
await api.say(textWarningAdminChannel, null);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const payload = msTeamsTransfer_mapper_1.msTeamsTransfer.handleInput("voiceGateway2", transferParams);
|
|
116
|
+
await api.say(null, {
|
|
117
|
+
_cognigy: payload,
|
|
118
|
+
});
|
|
119
|
+
api.logDebugMessage(`UI__DEBUG_MODE__MS_TEAMS__TRANSFER__MESSAGE ${transferTarget}`);
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
throw new Error(`Error on Transfer node type:. Error message: ${error.message}`);
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=msTeamsTransfer.js.map
|
|
@@ -66,6 +66,7 @@ exports.organisationDataSchema = {
|
|
|
66
66
|
quotaMaxProjects: { type: "integer", minimum: 0 },
|
|
67
67
|
quotaMaxUsers: { type: "integer", minimum: 0 },
|
|
68
68
|
quotaMaxKnowledgeChunks: { type: "integer", minimum: 0 },
|
|
69
|
+
aiOpsCenterEnabled: { type: "boolean" },
|
|
69
70
|
sessionStateTTLInMinutes: { type: "integer", minimum: 0 },
|
|
70
71
|
billingTimezone: { type: "string", format: "timezone" },
|
|
71
72
|
dataPrivacySettings: exports.organisationDataPrivacySettingsSchema,
|
|
@@ -46,6 +46,9 @@ exports.generativeAIModels = [
|
|
|
46
46
|
"gemini-1.5-flash",
|
|
47
47
|
"gemini-2.0-flash",
|
|
48
48
|
"gemini-2.0-flash-lite",
|
|
49
|
+
"gemini-2.5-pro",
|
|
50
|
+
"gemini-2.5-flash",
|
|
51
|
+
"gemini-2.5-flash-lite",
|
|
49
52
|
"amazon.nova-lite-v1:0",
|
|
50
53
|
"amazon.nova-pro-v1:0",
|
|
51
54
|
"amazon.nova-micro-v1:0",
|
|
@@ -16,6 +16,13 @@ exports.licenseCapabilitiesMapping = exports.licenseCapabilitiesFromKey = export
|
|
|
16
16
|
* - willExpireSoon
|
|
17
17
|
* - expiredRenewRequired
|
|
18
18
|
* - expired
|
|
19
|
+
* systemCapabilities:
|
|
20
|
+
* type: object
|
|
21
|
+
* properties:
|
|
22
|
+
* aiOpsCenterEnabled:
|
|
23
|
+
* type: boolean
|
|
24
|
+
* quotaMaxKnowledgeChunks:
|
|
25
|
+
* type: number
|
|
19
26
|
*/
|
|
20
27
|
exports.licenseStates = [
|
|
21
28
|
"invalid",
|
|
@@ -25,11 +32,12 @@ exports.licenseStates = [
|
|
|
25
32
|
"expiredRenewRequired",
|
|
26
33
|
"expired" /* The license is expired. The system can no longer be used (ui, api) */
|
|
27
34
|
];
|
|
28
|
-
exports.licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent", "knowledge"];
|
|
35
|
+
exports.licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent", "knowledge", "aiOpsCenter"];
|
|
29
36
|
exports.licenseCapabilitiesMapping = {
|
|
30
37
|
ui: "uiLicensed",
|
|
31
38
|
handover: "handoverLicensed",
|
|
32
39
|
liveAgent: "liveAgentLicensed",
|
|
33
40
|
knowledge: "knowledgeLicensed",
|
|
41
|
+
aiOpsCenter: "aiOpsCenterLicensed"
|
|
34
42
|
};
|
|
35
43
|
//# sourceMappingURL=license.js.map
|
|
@@ -7,7 +7,8 @@ exports.auditEventTypes = [
|
|
|
7
7
|
"replace",
|
|
8
8
|
"patch",
|
|
9
9
|
"delete",
|
|
10
|
-
"
|
|
10
|
+
"authentication",
|
|
11
|
+
"authorization",
|
|
11
12
|
];
|
|
12
13
|
exports.actionTypes = [
|
|
13
14
|
"acceptTermsOfService",
|
|
@@ -112,6 +113,10 @@ exports.actionTypes = [
|
|
|
112
113
|
"updateObservationConfig",
|
|
113
114
|
"resolveAiOpsCenterError",
|
|
114
115
|
"odataRequest",
|
|
116
|
+
"loginSucceeded",
|
|
117
|
+
"loginFailed",
|
|
118
|
+
"loginError",
|
|
119
|
+
"unauthorized",
|
|
115
120
|
];
|
|
116
121
|
exports.auditEventSchema = {
|
|
117
122
|
title: "auditEventSchema",
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nodeQuerySchema = exports.nodeSchema = exports.updateNodeDataSchema = exports.nodeDataSchema = exports.nodeInDBSchema = exports.searchableNodeFields = exports.defaultNodeFields = void 0;
|
|
3
|
+
exports.nodeQuerySchema = exports.nodeSchema = exports.updateNodeDataSchema = exports.nodeDataSchema = exports.nodeInDBSchema = exports.searchableNodeFields = exports.defaultNodeFields = exports.ConvertActionType = void 0;
|
|
4
4
|
/* Custom Modules */
|
|
5
5
|
const createQuerySchema_1 = require("../../helper/createQuerySchema");
|
|
6
|
+
var ConvertActionType;
|
|
7
|
+
(function (ConvertActionType) {
|
|
8
|
+
ConvertActionType["ADDED"] = "added";
|
|
9
|
+
ConvertActionType["REMOVED"] = "removed";
|
|
10
|
+
ConvertActionType["UPDATED"] = "updated";
|
|
11
|
+
})(ConvertActionType = exports.ConvertActionType || (exports.ConvertActionType = {}));
|
|
6
12
|
exports.defaultNodeFields = [
|
|
7
13
|
"label",
|
|
8
14
|
"comment",
|
|
@@ -22,6 +22,10 @@ export function SimulationAPIGroup_2_0(instance) {
|
|
|
22
22
|
var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
|
|
23
23
|
return GenericAPIFn(`/testing/beta/simulations/${simulationReference}/schedule`, "POST", self)(args, options);
|
|
24
24
|
},
|
|
25
|
+
cloneSimulation: (_a, options) => {
|
|
26
|
+
var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
|
|
27
|
+
return GenericAPIFn(`/testing/beta/simulations/${simulationReference}/clone`, "POST", self)(args, options);
|
|
28
|
+
},
|
|
25
29
|
indexSimulationRunBatches: (args, options) => GenericAPIFn(`/testing/beta/simulations/batches?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
26
30
|
getAllSimulationRunBatches: (_a, options) => {
|
|
27
31
|
var { simulationReference } = _a, args = __rest(_a, ["simulationReference"]);
|
|
@@ -2,7 +2,7 @@ import { __awaiter } from "tslib";
|
|
|
2
2
|
/* Custom modules */
|
|
3
3
|
import { createNodeDescriptor } from "../../createNodeDescriptor";
|
|
4
4
|
/* Npm modules */
|
|
5
|
-
import
|
|
5
|
+
import * as crypto from "crypto";
|
|
6
6
|
/**
|
|
7
7
|
* Node name: 'trackGoal'
|
|
8
8
|
*
|
|
@@ -56,7 +56,7 @@ export const TRACK_GOAL = createNodeDescriptor({
|
|
|
56
56
|
}
|
|
57
57
|
// Create a new cycle id if there is a start step
|
|
58
58
|
if (hasStartStep) {
|
|
59
|
-
cycleId =
|
|
59
|
+
cycleId = crypto.randomUUID();
|
|
60
60
|
activeCycleIds[goalId] = cycleId;
|
|
61
61
|
const sessionStateAnalyticsUpdate = Object.assign(Object.assign({}, sessionState.analytics), { goalCycleIds: activeCycleIds });
|
|
62
62
|
api.setSessionState("analytics", sessionStateAnalyticsUpdate);
|
|
@@ -21,8 +21,8 @@ const getLanguageName = (languageCode) => {
|
|
|
21
21
|
// remove the "region" part from language codes (e.g. en-US becomes en, the -US gets stripped)
|
|
22
22
|
const languageOnly = languageCode.split('-')[0];
|
|
23
23
|
// our runtimes support this, but it's not reflected in every project's typings!
|
|
24
|
-
// this flag is used to reset a breaking-change behavior (returning "flamish" instead of "dutch (belgium)") to its former behavior
|
|
25
|
-
// @ts-ignore
|
|
24
|
+
// this flag is used to reset a breaking-change behavior (returning "flamish" instead of "dutch (belgium)") to its former behavior
|
|
25
|
+
// @ts-ignore
|
|
26
26
|
const languageName = (new Intl.DisplayNames(["en-US"], { type: "language", languageDisplay: "standard", fallback: 'none' }).of(languageOnly));
|
|
27
27
|
return languageName;
|
|
28
28
|
};
|
|
@@ -654,7 +654,7 @@ export const SEARCH_EXTRACT_OUTPUT = createNodeDescriptor({
|
|
|
654
654
|
// add error to context or input
|
|
655
655
|
switch (searchStoreLocation) {
|
|
656
656
|
case "context":
|
|
657
|
-
// @ts-ignore
|
|
657
|
+
// @ts-ignore
|
|
658
658
|
api.addToContext(searchStoreLocationContextKey, searchStoreDataWithError, "simple");
|
|
659
659
|
break;
|
|
660
660
|
default:
|
|
@@ -736,7 +736,7 @@ export const SEARCH_EXTRACT_OUTPUT = createNodeDescriptor({
|
|
|
736
736
|
// Save result
|
|
737
737
|
switch (searchStoreLocation) {
|
|
738
738
|
case "context":
|
|
739
|
-
// @ts-ignore
|
|
739
|
+
// @ts-ignore
|
|
740
740
|
api.addToContext(searchStoreLocationContextKey, knowledgeSearchResponseData, "simple");
|
|
741
741
|
break;
|
|
742
742
|
case "default":
|
|
@@ -765,7 +765,7 @@ export const SEARCH_EXTRACT_OUTPUT = createNodeDescriptor({
|
|
|
765
765
|
if (documents && (mode !== "s")) {
|
|
766
766
|
// check if we received streamed output at all
|
|
767
767
|
let streamedOutput = false;
|
|
768
|
-
const isStreamingChannel = input.
|
|
768
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
769
769
|
const _messageId = randomUUID();
|
|
770
770
|
const promptData = {
|
|
771
771
|
prompt,
|
|
@@ -2,7 +2,7 @@ import { __awaiter } from "tslib";
|
|
|
2
2
|
/* Custom modules */
|
|
3
3
|
import { createNodeDescriptor } from "../../createNodeDescriptor";
|
|
4
4
|
import { GO_TO } from "../logic";
|
|
5
|
-
import
|
|
5
|
+
import * as crypto from "crypto";
|
|
6
6
|
import { createLastConverationString, createLastConversationChatObject, createLastUserInputString, writeLLMDebugLogs } from "../nlu/generativeSlotFiller/prompt";
|
|
7
7
|
import { InternalServerError } from "../../../errors";
|
|
8
8
|
import { TranscriptEntryType, TranscriptRole } from "../../../interfaces/transcripts/transcripts";
|
|
@@ -619,7 +619,7 @@ export const GPT_PROMPT = createNodeDescriptor({
|
|
|
619
619
|
// add error to context or input
|
|
620
620
|
switch (storeLocation) {
|
|
621
621
|
case "context":
|
|
622
|
-
// @ts-ignore
|
|
622
|
+
// @ts-ignore
|
|
623
623
|
api.addToContext(contextKey, errorResponse, "simple");
|
|
624
624
|
break;
|
|
625
625
|
default:
|
|
@@ -657,8 +657,8 @@ export const GPT_PROMPT = createNodeDescriptor({
|
|
|
657
657
|
}
|
|
658
658
|
});
|
|
659
659
|
try {
|
|
660
|
-
const isStreamingChannel = input.
|
|
661
|
-
const _messageId = randomUUID();
|
|
660
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
661
|
+
const _messageId = crypto.randomUUID();
|
|
662
662
|
const data = {
|
|
663
663
|
prompt,
|
|
664
664
|
temperature,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __rest } from "tslib";
|
|
2
|
+
/* Npm modules */
|
|
3
|
+
import * as crypto from "crypto";
|
|
2
4
|
/* Custom modules */
|
|
3
5
|
import { createNodeDescriptor } from "../../../createNodeDescriptor";
|
|
4
6
|
import { setSessionConfig } from "../../voice/mappers/setSessionConfig.mapper";
|
|
@@ -8,7 +10,6 @@ import { createSystemMessage, getCognigyBrandMessage } from "./helpers/createSys
|
|
|
8
10
|
import { generateSearchPrompt } from "./helpers/generateSearchPrompt";
|
|
9
11
|
import { getUserMemory } from "./helpers/getUserMemory";
|
|
10
12
|
import { createToolDefinitions } from "./helpers/createToolDefinitions";
|
|
11
|
-
import { v4 as randomUUID } from "uuid";
|
|
12
13
|
import { TranscriptEntryType, TranscriptRole } from "../../../../interfaces/transcripts/transcripts";
|
|
13
14
|
export const AI_AGENT_TOOLS_WHITELIST = ["aiAgentJobDefault", "aiAgentJobTool", "aiAgentJobMCPTool"];
|
|
14
15
|
export const AI_AGENT_JOB = createNodeDescriptor({
|
|
@@ -1205,8 +1206,8 @@ export const AI_AGENT_JOB = createNodeDescriptor({
|
|
|
1205
1206
|
const enhancedInput = `## Knowledge Source Context\nAdditional Context from the knowledge source: \n${JSON.stringify(knowledgeSearchResponseData)}\n\n\n${((_z = userInput === null || userInput === void 0 ? void 0 : userInput.payload) === null || _z === void 0 ? void 0 : _z.text) || input.text}`;
|
|
1206
1207
|
transcript[transcript.length - 1].payload.text = enhancedInput;
|
|
1207
1208
|
}
|
|
1208
|
-
const isStreamingChannel = input.
|
|
1209
|
-
const _messageId = randomUUID();
|
|
1209
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
1210
|
+
const _messageId = crypto.randomUUID();
|
|
1210
1211
|
const enableAdvancedLogging = advancedLogging && loggingWebhookUrl && (conditionForLogging === "" || !!conditionForLogging);
|
|
1211
1212
|
const llmPromptOptions = Object.assign(Object.assign(Object.assign({ prompt: "", chat: systemMessage,
|
|
1212
1213
|
// Temp fix to override the transcript if needed
|
|
@@ -74,13 +74,16 @@ export const createToolDefinitions = (childConfigs, api, useStrict) => __awaiter
|
|
|
74
74
|
const toolFilter = child.config.toolFilter;
|
|
75
75
|
const mcpHeaders = child.config.mcpHeaders;
|
|
76
76
|
let mcpTools = null;
|
|
77
|
+
let fetchedFromCache = null;
|
|
77
78
|
try {
|
|
78
|
-
|
|
79
|
+
const fetched = yield api.fetchMcpTools({
|
|
79
80
|
mcpServerUrl,
|
|
80
81
|
timeout,
|
|
81
82
|
cacheTools,
|
|
82
83
|
mcpHeaders,
|
|
83
84
|
});
|
|
85
|
+
mcpTools = fetched.tools;
|
|
86
|
+
fetchedFromCache = fetched.fromCache;
|
|
84
87
|
}
|
|
85
88
|
catch (error) {
|
|
86
89
|
const errorDetails = error instanceof Error
|
|
@@ -93,11 +96,12 @@ export const createToolDefinitions = (childConfigs, api, useStrict) => __awaiter
|
|
|
93
96
|
}
|
|
94
97
|
if (mcpTools) {
|
|
95
98
|
if (sendDebug) {
|
|
99
|
+
const sourceLabel = fetchedFromCache ? "from cache" : "from MCP server";
|
|
96
100
|
if (mcpTools.length === 0) {
|
|
97
|
-
(_b = api.logDebugMessage) === null || _b === void 0 ? void 0 : _b.call(api, `No tools fetched from MCP Tool "${child.config.name}".`, "MCP Tool");
|
|
101
|
+
(_b = api.logDebugMessage) === null || _b === void 0 ? void 0 : _b.call(api, `No tools fetched from MCP Tool "${child.config.name}" (${sourceLabel}).`, "MCP Tool");
|
|
98
102
|
}
|
|
99
103
|
if (mcpTools.length > 0) {
|
|
100
|
-
const messageLines = [`Fetched tools from MCP Tool "${child.config.name}"`];
|
|
104
|
+
const messageLines = [`Fetched tools from MCP Tool "${child.config.name}" (${sourceLabel})`];
|
|
101
105
|
mcpTools.forEach((tool) => {
|
|
102
106
|
messageLines.push(`<br>- <b>${tool.name}</b>: ${tool.description}`);
|
|
103
107
|
if (child.config.debugMessageParameters && tool.inputSchema) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __awaiter, __rest } from "tslib";
|
|
2
|
+
/* Npm modules */
|
|
3
|
+
import * as crypto from "crypto";
|
|
2
4
|
/* Custom modules */
|
|
3
5
|
import { createNodeDescriptor } from "../../../createNodeDescriptor";
|
|
4
6
|
import { GO_TO } from "../../logic";
|
|
5
7
|
import { createToolDefinitions } from "../aiAgent/helpers/createToolDefinitions";
|
|
6
|
-
import { v4 as randomUUID } from "uuid";
|
|
7
8
|
import { createLastConverationString, createLastUserInputString, writeLLMDebugLogs } from "../../nlu/generativeSlotFiller/prompt";
|
|
8
9
|
import { InternalServerError } from "../../../../errors";
|
|
9
10
|
import { TranscriptEntryType, TranscriptRole } from "../../../../interfaces/transcripts/transcripts";
|
|
@@ -778,8 +779,8 @@ export const LLM_PROMPT_V2 = createNodeDescriptor({
|
|
|
778
779
|
}
|
|
779
780
|
});
|
|
780
781
|
try {
|
|
781
|
-
const isStreamingChannel = input.
|
|
782
|
-
const _messageId = randomUUID();
|
|
782
|
+
const isStreamingChannel = input.endpointType === "webchat3" || input.channel === "adminconsole";
|
|
783
|
+
const _messageId = crypto.randomUUID();
|
|
783
784
|
// Start measuring LLM latency and time to first output if debug flag is enabled
|
|
784
785
|
let firstOutputTime = null;
|
|
785
786
|
/**
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const msTeamsTransfer = {
|
|
2
|
+
handleInput(endpointType, params) {
|
|
3
|
+
try {
|
|
4
|
+
return this.handleVGInput(params);
|
|
5
|
+
}
|
|
6
|
+
catch (error) {
|
|
7
|
+
throw Error(error.message);
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
handleVGInput(transferParam) {
|
|
11
|
+
const { transferTarget, callerName, topic, context, callSentiment, suggestedActions, } = transferParam;
|
|
12
|
+
const payload = {
|
|
13
|
+
_voiceGateway2: {
|
|
14
|
+
json: {}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
let headers = {
|
|
18
|
+
"X-MS-TEAMS-CALLER-NAME": callerName,
|
|
19
|
+
"X-MS-TEAMS-CALL-TOPIC": topic,
|
|
20
|
+
"X-MS-TEAMS-CALL-CONTEXT": context,
|
|
21
|
+
"X-MS-TEAMS-CALL-CALL-SENTIMENT": callSentiment,
|
|
22
|
+
"X-MS-TEAMS-SUGGESTED-ACTIONS": suggestedActions,
|
|
23
|
+
};
|
|
24
|
+
const referVerb = {
|
|
25
|
+
"referTo": transferTarget,
|
|
26
|
+
"actionHook": 'refer',
|
|
27
|
+
headers
|
|
28
|
+
};
|
|
29
|
+
payload._voiceGateway2.json["sip:refer"] = referVerb;
|
|
30
|
+
return payload;
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=msTeamsTransfer.mapper.js.map
|
|
@@ -5,22 +5,27 @@ import { hangupNode } from "./nodes/hangup";
|
|
|
5
5
|
import { playNode } from "./nodes/play";
|
|
6
6
|
import { referNode } from "./nodes/refer";
|
|
7
7
|
import { transferNode } from "./nodes/transfer";
|
|
8
|
+
import { msTeamsTransferNode } from "./nodes/msTeamsTransfer";
|
|
8
9
|
import { setSessionConfigNode } from "./nodes/setSessionConfig";
|
|
9
10
|
import { sendMetadataNode } from "./nodes/sendMetadata";
|
|
10
11
|
import { recordNode } from "./nodes/record";
|
|
11
12
|
import { muteSpeechInputNode } from "./nodes/muteSpeechInput";
|
|
13
|
+
const nodes = [
|
|
14
|
+
setSessionConfigNode,
|
|
15
|
+
dtmfNode,
|
|
16
|
+
hangupNode,
|
|
17
|
+
playNode,
|
|
18
|
+
referNode,
|
|
19
|
+
transferNode,
|
|
20
|
+
sendMetadataNode,
|
|
21
|
+
recordNode,
|
|
22
|
+
muteSpeechInputNode,
|
|
23
|
+
];
|
|
24
|
+
if (process.env.FEATURE_DISABLE_MS_TEAMS_TRANSFER_NODE !== "true") {
|
|
25
|
+
nodes.push(msTeamsTransferNode);
|
|
26
|
+
}
|
|
12
27
|
export const cognigyVoiceGateway2Module = createExtension({
|
|
13
|
-
nodes
|
|
14
|
-
setSessionConfigNode,
|
|
15
|
-
dtmfNode,
|
|
16
|
-
hangupNode,
|
|
17
|
-
playNode,
|
|
18
|
-
referNode,
|
|
19
|
-
transferNode,
|
|
20
|
-
sendMetadataNode,
|
|
21
|
-
recordNode,
|
|
22
|
-
muteSpeechInputNode,
|
|
23
|
-
],
|
|
28
|
+
nodes,
|
|
24
29
|
connections: []
|
|
25
30
|
});
|
|
26
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
/** Custom Modules */
|
|
3
|
+
import { createNodeDescriptor } from "../../../createNodeDescriptor";
|
|
4
|
+
/** Helper Modules */
|
|
5
|
+
import { msTeamsTransfer } from "../../voice/mappers/msTeamsTransfer.mapper";
|
|
6
|
+
import { nodeColor } from "../utils/design";
|
|
7
|
+
const customHeaderDefaultValue = "X-Custom-Header";
|
|
8
|
+
export const msTeamsTransferNode = createNodeDescriptor({
|
|
9
|
+
type: "msTeamsTransfer",
|
|
10
|
+
defaultLabel: "MS Teams Transfer",
|
|
11
|
+
preview: {
|
|
12
|
+
key: "transferTarget",
|
|
13
|
+
type: "text",
|
|
14
|
+
},
|
|
15
|
+
appearance: {
|
|
16
|
+
color: nodeColor,
|
|
17
|
+
},
|
|
18
|
+
tags: ["voice"],
|
|
19
|
+
fields: [
|
|
20
|
+
{
|
|
21
|
+
key: "transferTarget",
|
|
22
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__FIELDS__TRANSFER_TARGET__LABEL",
|
|
23
|
+
type: "cognigyText",
|
|
24
|
+
params: {
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__FIELDS__TRANSFER_TARGET__DESCRIPTION",
|
|
28
|
+
defaultValue: "+49123456789",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: "callerName",
|
|
32
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALLER_NAME__LABEL",
|
|
33
|
+
type: "cognigyText",
|
|
34
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALLER_NAME__DESCRIPTION",
|
|
35
|
+
defaultValue: "",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "topic",
|
|
39
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__TOPIC__LABEL",
|
|
40
|
+
type: "cognigyText",
|
|
41
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__TOPIC__DESCRIPTION",
|
|
42
|
+
defaultValue: "",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "context",
|
|
46
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CONTEXT__LABEL",
|
|
47
|
+
type: "cognigyText",
|
|
48
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CONTEXT__DESCRIPTION",
|
|
49
|
+
defaultValue: "My context",
|
|
50
|
+
params: {
|
|
51
|
+
required: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "callSentiment",
|
|
56
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALL_SENTIMENT__LABEL",
|
|
57
|
+
type: "cognigyText",
|
|
58
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__CALL_SENTIMENT__DESCRIPTION",
|
|
59
|
+
defaultValue: "",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
key: "suggestedActions",
|
|
63
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__SUGGESTED_ACTIONS__LABEL",
|
|
64
|
+
type: "cognigyText",
|
|
65
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__MSTEAMS_TRANSFER__FIELDS__SUGGESTED_ACTIONS__DESCRIPTION",
|
|
66
|
+
defaultValue: "",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
form: [
|
|
70
|
+
{
|
|
71
|
+
type: "field",
|
|
72
|
+
key: "transferTarget"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: "field",
|
|
76
|
+
key: "callerName"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: "field",
|
|
80
|
+
key: "topic"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
type: "field",
|
|
84
|
+
key: "context"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: "field",
|
|
88
|
+
key: "callSentiment"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
type: "field",
|
|
92
|
+
key: "suggestedActions"
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
|
|
96
|
+
function: ({ cognigy, config, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
97
|
+
const { api, input } = cognigy;
|
|
98
|
+
const { transferTarget, callerName, topic, context, callSentiment, suggestedActions, } = config;
|
|
99
|
+
const transferParams = {
|
|
100
|
+
transferTarget,
|
|
101
|
+
callerName,
|
|
102
|
+
topic,
|
|
103
|
+
context,
|
|
104
|
+
callSentiment,
|
|
105
|
+
suggestedActions,
|
|
106
|
+
};
|
|
107
|
+
try {
|
|
108
|
+
if (input.channel === "adminconsole") {
|
|
109
|
+
let textWarningAdminChannel = "Transferring a call is not supported in the Interaction Panel, please use the VoiceGateway endpoint.";
|
|
110
|
+
yield api.say(textWarningAdminChannel, null);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
const payload = msTeamsTransfer.handleInput("voiceGateway2", transferParams);
|
|
114
|
+
yield api.say(null, {
|
|
115
|
+
_cognigy: payload,
|
|
116
|
+
});
|
|
117
|
+
api.logDebugMessage(`UI__DEBUG_MODE__MS_TEAMS__TRANSFER__MESSAGE ${transferTarget}`);
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
throw new Error(`Error on Transfer node type:. Error message: ${error.message}`);
|
|
121
|
+
}
|
|
122
|
+
}),
|
|
123
|
+
});
|
|
124
|
+
//# sourceMappingURL=msTeamsTransfer.js.map
|
|
@@ -63,6 +63,7 @@ export const organisationDataSchema = {
|
|
|
63
63
|
quotaMaxProjects: { type: "integer", minimum: 0 },
|
|
64
64
|
quotaMaxUsers: { type: "integer", minimum: 0 },
|
|
65
65
|
quotaMaxKnowledgeChunks: { type: "integer", minimum: 0 },
|
|
66
|
+
aiOpsCenterEnabled: { type: "boolean" },
|
|
66
67
|
sessionStateTTLInMinutes: { type: "integer", minimum: 0 },
|
|
67
68
|
billingTimezone: { type: "string", format: "timezone" },
|
|
68
69
|
dataPrivacySettings: organisationDataPrivacySettingsSchema,
|
|
@@ -43,6 +43,9 @@ export const generativeAIModels = [
|
|
|
43
43
|
"gemini-1.5-flash",
|
|
44
44
|
"gemini-2.0-flash",
|
|
45
45
|
"gemini-2.0-flash-lite",
|
|
46
|
+
"gemini-2.5-pro",
|
|
47
|
+
"gemini-2.5-flash",
|
|
48
|
+
"gemini-2.5-flash-lite",
|
|
46
49
|
"amazon.nova-lite-v1:0",
|
|
47
50
|
"amazon.nova-pro-v1:0",
|
|
48
51
|
"amazon.nova-micro-v1:0",
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
* - willExpireSoon
|
|
14
14
|
* - expiredRenewRequired
|
|
15
15
|
* - expired
|
|
16
|
+
* systemCapabilities:
|
|
17
|
+
* type: object
|
|
18
|
+
* properties:
|
|
19
|
+
* aiOpsCenterEnabled:
|
|
20
|
+
* type: boolean
|
|
21
|
+
* quotaMaxKnowledgeChunks:
|
|
22
|
+
* type: number
|
|
16
23
|
*/
|
|
17
24
|
export const licenseStates = [
|
|
18
25
|
"invalid",
|
|
@@ -22,11 +29,12 @@ export const licenseStates = [
|
|
|
22
29
|
"expiredRenewRequired",
|
|
23
30
|
"expired" /* The license is expired. The system can no longer be used (ui, api) */
|
|
24
31
|
];
|
|
25
|
-
export const licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent", "knowledge"];
|
|
32
|
+
export const licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent", "knowledge", "aiOpsCenter"];
|
|
26
33
|
export const licenseCapabilitiesMapping = {
|
|
27
34
|
ui: "uiLicensed",
|
|
28
35
|
handover: "handoverLicensed",
|
|
29
36
|
liveAgent: "liveAgentLicensed",
|
|
30
37
|
knowledge: "knowledgeLicensed",
|
|
38
|
+
aiOpsCenter: "aiOpsCenterLicensed"
|
|
31
39
|
};
|
|
32
40
|
//# sourceMappingURL=license.js.map
|
|
@@ -4,7 +4,8 @@ export const auditEventTypes = [
|
|
|
4
4
|
"replace",
|
|
5
5
|
"patch",
|
|
6
6
|
"delete",
|
|
7
|
-
"
|
|
7
|
+
"authentication",
|
|
8
|
+
"authorization",
|
|
8
9
|
];
|
|
9
10
|
export const actionTypes = [
|
|
10
11
|
"acceptTermsOfService",
|
|
@@ -109,6 +110,10 @@ export const actionTypes = [
|
|
|
109
110
|
"updateObservationConfig",
|
|
110
111
|
"resolveAiOpsCenterError",
|
|
111
112
|
"odataRequest",
|
|
113
|
+
"loginSucceeded",
|
|
114
|
+
"loginFailed",
|
|
115
|
+
"loginError",
|
|
116
|
+
"unauthorized",
|
|
112
117
|
];
|
|
113
118
|
export const auditEventSchema = {
|
|
114
119
|
title: "auditEventSchema",
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/* Custom Modules */
|
|
2
2
|
import { createQuerySchema } from "../../helper/createQuerySchema";
|
|
3
|
+
export var ConvertActionType;
|
|
4
|
+
(function (ConvertActionType) {
|
|
5
|
+
ConvertActionType["ADDED"] = "added";
|
|
6
|
+
ConvertActionType["REMOVED"] = "removed";
|
|
7
|
+
ConvertActionType["UPDATED"] = "updated";
|
|
8
|
+
})(ConvertActionType || (ConvertActionType = {}));
|
|
3
9
|
export const defaultNodeFields = [
|
|
4
10
|
"label",
|
|
5
11
|
"comment",
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -2815,6 +2815,9 @@ declare const generativeAIModels: readonly [
|
|
|
2815
2815
|
"gemini-1.5-flash",
|
|
2816
2816
|
"gemini-2.0-flash",
|
|
2817
2817
|
"gemini-2.0-flash-lite",
|
|
2818
|
+
"gemini-2.5-pro",
|
|
2819
|
+
"gemini-2.5-flash",
|
|
2820
|
+
"gemini-2.5-flash-lite",
|
|
2818
2821
|
"amazon.nova-lite-v1:0",
|
|
2819
2822
|
"amazon.nova-pro-v1:0",
|
|
2820
2823
|
"amazon.nova-micro-v1:0",
|
|
@@ -2848,6 +2851,13 @@ declare const generativeAIModels: readonly [
|
|
|
2848
2851
|
* - gpt-4
|
|
2849
2852
|
* - gpt-4o
|
|
2850
2853
|
* - gpt-4o-mini
|
|
2854
|
+
* - gpt-4.1
|
|
2855
|
+
* - gpt-4.1-mini
|
|
2856
|
+
* - gpt-4.1-nano
|
|
2857
|
+
* - gpt-5
|
|
2858
|
+
* - gpt-5-nano
|
|
2859
|
+
* - gpt-5-mini
|
|
2860
|
+
* - gpt-5-chat-latest
|
|
2851
2861
|
* - text-embedding-ada-002
|
|
2852
2862
|
* - luminous-extended-control
|
|
2853
2863
|
* - luminous-embedding-128
|
|
@@ -2859,6 +2869,9 @@ declare const generativeAIModels: readonly [
|
|
|
2859
2869
|
* - custom-embedding-model
|
|
2860
2870
|
* - gemini-2.0-flash
|
|
2861
2871
|
* - gemini-2.0-flash-lite
|
|
2872
|
+
* - gemini-2.5-pro
|
|
2873
|
+
* - gemini-2.5-flash
|
|
2874
|
+
* - gemini-2.5-flash-lite
|
|
2862
2875
|
* - mistral-large-2411
|
|
2863
2876
|
* - mistral-small-2503
|
|
2864
2877
|
* - pixtral-large-2411
|
|
@@ -11448,7 +11461,10 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
|
|
|
11448
11461
|
timeout: number;
|
|
11449
11462
|
cacheTools: boolean;
|
|
11450
11463
|
mcpHeaders?: Record<string, string>;
|
|
11451
|
-
}) => Promise<
|
|
11464
|
+
}) => Promise<{
|
|
11465
|
+
tools: any[];
|
|
11466
|
+
fromCache: boolean;
|
|
11467
|
+
}>;
|
|
11452
11468
|
executeMcpTool: (params: {
|
|
11453
11469
|
toolName: string;
|
|
11454
11470
|
toolArgs: {
|
|
@@ -13339,25 +13355,12 @@ export interface IChartNode_2_0<T extends INodeFunctionBaseParams = any> {
|
|
|
13339
13355
|
localeReference: string;
|
|
13340
13356
|
analyticsLabel?: string;
|
|
13341
13357
|
}
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
|
|
13345
|
-
|
|
13346
|
-
[key in P]: string;
|
|
13347
|
-
} & {
|
|
13348
|
-
nodeId: string;
|
|
13349
|
-
};
|
|
13350
|
-
export interface IReadChartNodeRestData_2_0 extends IReadChartNodeRestDataParams_2_0, IReadChartNodeRestDataQuery_2_0 {
|
|
13351
|
-
resourceType: TChartableResourceType;
|
|
13352
|
-
}
|
|
13353
|
-
export interface IReadChartNodeRestReturnValue_2_0<T extends INodeFunctionBaseParams = any> extends IChartNode_2_0<T> {
|
|
13354
|
-
}
|
|
13355
|
-
export interface IReadChartRestData_2_0 extends IReadChartNodeRestDataQuery_2_0 {
|
|
13356
|
-
resourceId: string;
|
|
13357
|
-
resourceType: string;
|
|
13358
|
-
}
|
|
13359
|
-
export interface IReadChartRestReturnValue_2_0 extends IChart_2_0 {
|
|
13358
|
+
declare enum ConvertActionType {
|
|
13359
|
+
ADDED = "added",
|
|
13360
|
+
REMOVED = "removed",
|
|
13361
|
+
UPDATED = "updated"
|
|
13360
13362
|
}
|
|
13363
|
+
export declare type TConvertAction = (typeof ConvertActionType)[keyof typeof ConvertActionType];
|
|
13361
13364
|
export interface IChartNodeBase {
|
|
13362
13365
|
_id: TMongoId;
|
|
13363
13366
|
referenceId: string;
|
|
@@ -13403,6 +13406,27 @@ export interface IChartNodeInDB extends Omit<IChartNode, "config" | "preview" |
|
|
|
13403
13406
|
localeReference: TMongoId;
|
|
13404
13407
|
}[];
|
|
13405
13408
|
}
|
|
13409
|
+
export interface IReadChartNodeRestDataQuery_2_0 {
|
|
13410
|
+
preferredLocaleId?: string;
|
|
13411
|
+
includeConversionMetadata?: boolean;
|
|
13412
|
+
}
|
|
13413
|
+
export declare type IReadChartNodeRestDataParams_2_0<P extends string = "resourceId"> = {
|
|
13414
|
+
[key in P]: string;
|
|
13415
|
+
} & {
|
|
13416
|
+
nodeId: string;
|
|
13417
|
+
};
|
|
13418
|
+
export interface IReadChartNodeRestData_2_0 extends IReadChartNodeRestDataParams_2_0, IReadChartNodeRestDataQuery_2_0 {
|
|
13419
|
+
resourceType: TChartableResourceType;
|
|
13420
|
+
}
|
|
13421
|
+
export interface IReadChartNodeRestReturnValue_2_0<T extends INodeFunctionBaseParams = any> extends IChartNode_2_0<T> {
|
|
13422
|
+
conversionMetadata?: Record<TNodeFieldType, TConvertAction>;
|
|
13423
|
+
}
|
|
13424
|
+
export interface IReadChartRestData_2_0 extends IReadChartNodeRestDataQuery_2_0 {
|
|
13425
|
+
resourceId: string;
|
|
13426
|
+
resourceType: string;
|
|
13427
|
+
}
|
|
13428
|
+
export interface IReadChartRestReturnValue_2_0 extends IChart_2_0 {
|
|
13429
|
+
}
|
|
13406
13430
|
export declare type ICreateChartNodeRestDataParams_2_0<P extends string = "resourceId"> = {
|
|
13407
13431
|
[key in P]: string;
|
|
13408
13432
|
};
|
|
@@ -17278,6 +17302,16 @@ export interface ITransferNodeParams extends INodeFunctionBaseParams {
|
|
|
17278
17302
|
amdRedirectText: string;
|
|
17279
17303
|
};
|
|
17280
17304
|
}
|
|
17305
|
+
export interface IMSTeamsTransferNodeParams extends INodeFunctionBaseParams {
|
|
17306
|
+
config: {
|
|
17307
|
+
transferTarget: string;
|
|
17308
|
+
topic?: string;
|
|
17309
|
+
callerName?: string;
|
|
17310
|
+
context: string;
|
|
17311
|
+
callSentiment?: string;
|
|
17312
|
+
suggestedActions?: string;
|
|
17313
|
+
};
|
|
17314
|
+
}
|
|
17281
17315
|
export interface ISendMetadataParams extends INodeFunctionBaseParams {
|
|
17282
17316
|
config: {
|
|
17283
17317
|
metadata: {
|
|
@@ -17310,6 +17344,7 @@ export interface ICognigyVoiceGateway2Nodes {
|
|
|
17310
17344
|
"sendMetadata": ICreateChartNodeBasicNodesData<"sendMetadata", ISendMetadataParams, TVOICE_GATEWAY_2_EXTENSION>;
|
|
17311
17345
|
"recordNode": ICreateChartNodeBasicNodesData<"recordNode", IRecordNodeParams, TVOICE_GATEWAY_2_EXTENSION>;
|
|
17312
17346
|
"muteSpeechInputNode": ICreateChartNodeBasicNodesData<"muteSpeechInput", IMuteSpeechInputParams, TVOICE_GATEWAY_2_EXTENSION>;
|
|
17347
|
+
"msTeamsTransferNode": ICreateChartNodeBasicNodesData<"msTeamsTransfer", IMSTeamsTransferNodeParams, TVOICE_GATEWAY_2_EXTENSION>;
|
|
17313
17348
|
}
|
|
17314
17349
|
export interface ISearchExtractOutputNodeParams extends INodeFunctionBaseParams {
|
|
17315
17350
|
config: {
|
|
@@ -21251,7 +21286,8 @@ declare const auditEventTypes: readonly [
|
|
|
21251
21286
|
"replace",
|
|
21252
21287
|
"patch",
|
|
21253
21288
|
"delete",
|
|
21254
|
-
"
|
|
21289
|
+
"authentication",
|
|
21290
|
+
"authorization"
|
|
21255
21291
|
];
|
|
21256
21292
|
/**
|
|
21257
21293
|
* @openapi
|
|
@@ -21267,7 +21303,8 @@ declare const auditEventTypes: readonly [
|
|
|
21267
21303
|
* - replace
|
|
21268
21304
|
* - patch
|
|
21269
21305
|
* - delete
|
|
21270
|
-
* -
|
|
21306
|
+
* - authentication
|
|
21307
|
+
* - authorization
|
|
21271
21308
|
*/
|
|
21272
21309
|
export declare type TAuditEventType = typeof auditEventTypes[number];
|
|
21273
21310
|
declare const actionTypes: readonly [
|
|
@@ -21372,7 +21409,11 @@ declare const actionTypes: readonly [
|
|
|
21372
21409
|
"setupObservationConfig",
|
|
21373
21410
|
"updateObservationConfig",
|
|
21374
21411
|
"resolveAiOpsCenterError",
|
|
21375
|
-
"odataRequest"
|
|
21412
|
+
"odataRequest",
|
|
21413
|
+
"loginSucceeded",
|
|
21414
|
+
"loginFailed",
|
|
21415
|
+
"loginError",
|
|
21416
|
+
"unauthorized"
|
|
21376
21417
|
];
|
|
21377
21418
|
export declare type TActionType = typeof actionTypes[number];
|
|
21378
21419
|
/**
|
|
@@ -21604,6 +21645,10 @@ declare const licenseStates: readonly [
|
|
|
21604
21645
|
export declare type TLicenseState = typeof licenseStates[number];
|
|
21605
21646
|
export interface IGetSystemLicenseStateRestReturnValue_2_0 {
|
|
21606
21647
|
state: TLicenseState;
|
|
21648
|
+
systemCapabilities?: {
|
|
21649
|
+
aiOpsCenterEnabled?: boolean;
|
|
21650
|
+
quotaMaxKnowledgeChunks?: number;
|
|
21651
|
+
};
|
|
21607
21652
|
}
|
|
21608
21653
|
export interface ISetSystemLicenseRestDataBody_2_0 {
|
|
21609
21654
|
email: string;
|
|
@@ -22330,6 +22375,8 @@ export interface ISetupVoiceGatewayRestData_2_0 extends ISetupVoiceGatewayRestDa
|
|
|
22330
22375
|
* $ref: '#/components/schemas/TTimezone'
|
|
22331
22376
|
* dataPrivacySettings:
|
|
22332
22377
|
* $ref: '#/components/schemas/IOrganisationDataPrivacySettings_2_0'
|
|
22378
|
+
* aiOpsCenterEnabled:
|
|
22379
|
+
* type: boolean
|
|
22333
22380
|
* businessUnitId:
|
|
22334
22381
|
* type: string
|
|
22335
22382
|
* description: The business unit ID
|
|
@@ -22372,6 +22419,7 @@ export interface IOrganisation_2_0 {
|
|
|
22372
22419
|
stepEventsTTLInMinutes: number;
|
|
22373
22420
|
billingTimezone: string;
|
|
22374
22421
|
dataPrivacySettings: IOrganisationDataPrivacySettings_2_0;
|
|
22422
|
+
aiOpsCenterEnabled: boolean;
|
|
22375
22423
|
}
|
|
22376
22424
|
/**
|
|
22377
22425
|
* @openapi
|
|
@@ -22485,6 +22533,8 @@ export interface IOrganisationDataPrivacySettings_2_0 {
|
|
|
22485
22533
|
* $ref: '#/components/schemas/TTimezone'
|
|
22486
22534
|
* dataPrivacySettings:
|
|
22487
22535
|
* $ref: '#/components/schemas/IOrganisationDataPrivacySettings_2_0'
|
|
22536
|
+
* aiOpsCenterEnabled:
|
|
22537
|
+
* type: boolean
|
|
22488
22538
|
*/
|
|
22489
22539
|
export interface IOrganisationIndexItem_2_0 {
|
|
22490
22540
|
/** The mongo object id of this organisation */
|
|
@@ -22508,6 +22558,7 @@ export interface IOrganisationIndexItem_2_0 {
|
|
|
22508
22558
|
conversationTTLInMinutes: number;
|
|
22509
22559
|
liveAgentAccount: number;
|
|
22510
22560
|
dataPrivacySettings: IOrganisationDataPrivacySettings_2_0;
|
|
22561
|
+
aiOpsCenterEnabled: boolean;
|
|
22511
22562
|
}
|
|
22512
22563
|
export interface IIndexOrganisationsRestData_2_0 extends IRestPagination<IOrganisationIndexItem_2_0> {
|
|
22513
22564
|
}
|
|
@@ -23298,6 +23349,7 @@ export interface IOpsCenterAlert {
|
|
|
23298
23349
|
type: string;
|
|
23299
23350
|
name: string;
|
|
23300
23351
|
description: string;
|
|
23352
|
+
humanReadableName: string;
|
|
23301
23353
|
component: MainComponent;
|
|
23302
23354
|
subComponent: SubComponent;
|
|
23303
23355
|
state: string;
|
|
@@ -23439,16 +23491,28 @@ export interface IScheduleSimulationRestDataBody_2_0 {
|
|
|
23439
23491
|
entrypoint: string;
|
|
23440
23492
|
largeLanguageModelReferenceId?: string;
|
|
23441
23493
|
userId?: string;
|
|
23494
|
+
finalPing?: number;
|
|
23442
23495
|
};
|
|
23443
23496
|
projectReference: string;
|
|
23444
23497
|
numberOfExecutions: number;
|
|
23445
|
-
endPointType
|
|
23498
|
+
endPointType?: string;
|
|
23446
23499
|
}
|
|
23447
23500
|
export interface IScheduleSimulationRestData_2_0 extends IScheduleSimulationRestDataParams_2_0, IScheduleSimulationRestDataBody_2_0 {
|
|
23448
23501
|
}
|
|
23449
23502
|
export interface IScheduleSimulationRestReturnValue_2_0 {
|
|
23450
23503
|
simulation: ISimulationRest_2_0;
|
|
23451
23504
|
}
|
|
23505
|
+
export interface ICloneSimulationRestDataParams_2_0 {
|
|
23506
|
+
simulationReference: string;
|
|
23507
|
+
}
|
|
23508
|
+
export interface ICloneSimulationRestDataBody_2_0 {
|
|
23509
|
+
name?: string;
|
|
23510
|
+
}
|
|
23511
|
+
export interface ICloneSimulationRestData_2_0 extends ICloneSimulationRestDataParams_2_0, ICloneSimulationRestDataBody_2_0 {
|
|
23512
|
+
}
|
|
23513
|
+
export interface ICloneSimulationRestReturnValue_2_0 {
|
|
23514
|
+
simulation: ISimulationRest_2_0;
|
|
23515
|
+
}
|
|
23452
23516
|
declare enum ETurnTypeRest_2_0 {
|
|
23453
23517
|
INPUT = "input",
|
|
23454
23518
|
OUTPUT = "output"
|
|
@@ -23740,6 +23804,7 @@ export interface SimulationAPIGroup_2_0 {
|
|
|
23740
23804
|
deleteSimulation: TRestAPIOperation<IDeleteSimulationRestData_2_0, IDeleteSimulationRestReturnValue_2_0>;
|
|
23741
23805
|
readSimulation: TRestAPIOperation<IReadSimulationRestData_2_0, IReadSimulationRestReturnValue_2_0>;
|
|
23742
23806
|
scheduleSimulation: TRestAPIOperation<IScheduleSimulationRestData_2_0, IScheduleSimulationRestReturnValue_2_0>;
|
|
23807
|
+
cloneSimulation: TRestAPIOperation<ICloneSimulationRestData_2_0, ICloneSimulationRestReturnValue_2_0>;
|
|
23743
23808
|
indexSimulationRunBatches: TRestAPIOperation<IIndexSimulationRunBatchesRestData_2_0, IIndexSimulationRunBatchesRestReturnValue_2_0>;
|
|
23744
23809
|
getAllSimulationRunBatches: TRestAPIOperation<IGetAllSimulationRunBatchesRestData_2_0, IGetAllSimulationRunBatchesRestReturnValue_2_0>;
|
|
23745
23810
|
readSimulationRunBatch: TRestAPIOperation<IReadSimulationRunBatchRestData_2_0, IReadSimulationRunBatchRestReturnValue_2_0>;
|