@cognigy/rest-api-client 4.93.0 → 4.94.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 +5 -0
- package/build/authentication/AuthenticationAPI.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +1 -1
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +1 -1
- package/build/shared/charts/descriptors/analytics/requestRating.js +1 -1
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +6 -6
- package/build/shared/charts/descriptors/liveAgent/assistInfo.js +1 -1
- package/build/shared/charts/descriptors/logic/thinkV2.js +1 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +2 -2
- package/build/shared/charts/descriptors/message/say.js +2 -2
- package/build/shared/charts/descriptors/message/sendText.js +1 -1
- package/build/shared/charts/descriptors/microsoft/getToken.js +1 -1
- package/build/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
- package/build/shared/charts/descriptors/service/GPTConversation.js +14 -14
- package/build/shared/charts/descriptors/service/GPTPrompt.js +4 -4
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +4 -4
- package/build/shared/charts/descriptors/service/handover.js +1 -1
- package/build/shared/charts/descriptors/service/jwtSecret.js +5 -3
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/dtmf.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/play.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/sendMetadata.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +2 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +2 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +3 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +2 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +3 -3
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +2 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +2 -2
- package/build/shared/interfaces/handover.js +2 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +1 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +2 -1
- package/build/shared/interfaces/resources/TRestChannelType.js +7 -2
- package/dist/esm/authentication/AuthenticationAPI.js +1 -1
- package/dist/esm/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +1 -1
- package/dist/esm/shared/charts/descriptors/agentAssist/knowledgeAssist.js +1 -1
- package/dist/esm/shared/charts/descriptors/agentAssist/nextActionAssist.js +1 -1
- package/dist/esm/shared/charts/descriptors/analytics/overwriteAnalytics.js +1 -1
- package/dist/esm/shared/charts/descriptors/analytics/requestRating.js +1 -1
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +6 -6
- package/dist/esm/shared/charts/descriptors/liveAgent/assistInfo.js +1 -1
- package/dist/esm/shared/charts/descriptors/logic/thinkV2.js +1 -1
- package/dist/esm/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +2 -2
- package/dist/esm/shared/charts/descriptors/message/say.js +2 -2
- package/dist/esm/shared/charts/descriptors/message/sendText.js +1 -1
- package/dist/esm/shared/charts/descriptors/microsoft/getToken.js +1 -1
- package/dist/esm/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/GPTConversation.js +15 -15
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +4 -4
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +4 -4
- package/dist/esm/shared/charts/descriptors/service/handover.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/jwtSecret.js +5 -3
- package/dist/esm/shared/charts/descriptors/voice/nodes/bargeIn.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/continuousAsr.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/dtmf.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/noUserInput.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/play.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/sendMetadata.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/transfer.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/callRecording.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/handover.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/playURL.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +3 -2
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/record.js +3 -3
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/refer.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +2 -2
- package/dist/esm/shared/interfaces/handover.js +2 -1
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +1 -0
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +2 -1
- package/dist/esm/shared/interfaces/resources/TRestChannelType.js +7 -2
- package/package.json +3 -2
- package/types/index.d.ts +17 -5
- package/build/shared/interfaces/license.js.map +0 -1
- package/build/test.js +0 -1
- package/dist/esm/shared/interfaces/license.js.map +0 -1
- package/dist/esm/test.js +0 -1
|
@@ -67,7 +67,7 @@ export const DTMF = createNodeDescriptor({
|
|
|
67
67
|
const { endpointType } = input;
|
|
68
68
|
try {
|
|
69
69
|
const payload = setSessionConfig.handleInput(endpointType, voiceConfigParamsToVoiceSettings(config, api));
|
|
70
|
-
api.say(null, {
|
|
70
|
+
yield api.say(null, {
|
|
71
71
|
_cognigy: payload,
|
|
72
72
|
});
|
|
73
73
|
logFullConfigToDebugMode(cognigy, config);
|
|
@@ -38,7 +38,7 @@ export const MUTE_SPEECH_INPUT = createNodeDescriptor({
|
|
|
38
38
|
try {
|
|
39
39
|
mapper.endpointType = endpointType;
|
|
40
40
|
const payload = mapper.handleInput(config, api);
|
|
41
|
-
api.say(null, {
|
|
41
|
+
yield api.say(null, {
|
|
42
42
|
_cognigy: payload
|
|
43
43
|
});
|
|
44
44
|
api.logDebugMessage(`UI__DEBUG_MODE__MUTE_SPEECH__MESSAGE ${config.muteSpeechInput}`);
|
|
@@ -93,7 +93,7 @@ export const USER_INPUT_TIMEOUT = createNodeDescriptor({
|
|
|
93
93
|
const { endpointType } = input;
|
|
94
94
|
try {
|
|
95
95
|
const payload = setSessionConfig.handleInput(endpointType, voiceConfigParamsToVoiceSettings(config, api));
|
|
96
|
-
api.say(null, {
|
|
96
|
+
yield api.say(null, {
|
|
97
97
|
_cognigy: payload,
|
|
98
98
|
});
|
|
99
99
|
logFullConfigToDebugMode(cognigy, config);
|
|
@@ -328,7 +328,7 @@ export const SESSION_SPEECH_PARAMETERS = createNodeDescriptor({
|
|
|
328
328
|
const { endpointType } = input;
|
|
329
329
|
try {
|
|
330
330
|
const payload = setSessionConfig.handleInput(endpointType, voiceConfigParamsToVoiceSettings(config, api));
|
|
331
|
-
api.say(null, {
|
|
331
|
+
yield api.say(null, {
|
|
332
332
|
_cognigy: payload,
|
|
333
333
|
});
|
|
334
334
|
logFullConfigToDebugMode(cognigy, config);
|
|
@@ -95,7 +95,7 @@ export const TRANSFER_VOICE = createNodeDescriptor({
|
|
|
95
95
|
const { endpointType } = input;
|
|
96
96
|
try {
|
|
97
97
|
if (input.channel === "adminconsole") {
|
|
98
|
-
api.say("Transferring a call is not supported in the Interaction Panel.", null);
|
|
98
|
+
yield api.say("Transferring a call is not supported in the Interaction Panel.", null);
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
101
|
const transferParams = {
|
|
@@ -113,7 +113,7 @@ export const TRANSFER_VOICE = createNodeDescriptor({
|
|
|
113
113
|
api.log("error", "Invalid JSON in Transfer SIP Headers");
|
|
114
114
|
}
|
|
115
115
|
const payload = transfer.handleInput(endpointType, transferParams, true);
|
|
116
|
-
api.say(null, {
|
|
116
|
+
yield api.say(null, {
|
|
117
117
|
_cognigy: payload,
|
|
118
118
|
});
|
|
119
119
|
logFullConfigToDebugMode(cognigy, config);
|
|
@@ -107,11 +107,11 @@ export const callRecordingNode = createNodeDescriptor({
|
|
|
107
107
|
}
|
|
108
108
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
109
109
|
if (isFeatureAccmEnabled) {
|
|
110
|
-
return api.say(null, {
|
|
110
|
+
return yield api.say(null, {
|
|
111
111
|
_cognigy: buildPayloadAccm("callRecording", config, nodeId)
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
api.output(null, {
|
|
114
|
+
yield api.output(null, {
|
|
115
115
|
_cognigy: {
|
|
116
116
|
_voiceGateway: {
|
|
117
117
|
json: {
|
|
@@ -129,12 +129,12 @@ export const handoverNode = createNodeDescriptor({
|
|
|
129
129
|
};
|
|
130
130
|
try {
|
|
131
131
|
if (input.channel === "adminconsole") {
|
|
132
|
-
api.say("Transferring a call is not supported in the Interaction Panel, please use the AudioCodes endpoint.", null);
|
|
132
|
+
yield api.say("Transferring a call is not supported in the Interaction Panel, please use the AudioCodes endpoint.", null);
|
|
133
133
|
return;
|
|
134
134
|
}
|
|
135
135
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
136
136
|
const payload = isFeatureAccmEnabled ? buildPayloadAccm("handover", transferParams, nodeId) : transfer.handleInput("audioCodes", transferParams);
|
|
137
|
-
api.say(null, {
|
|
137
|
+
yield api.say(null, {
|
|
138
138
|
_cognigy: payload
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -36,7 +36,7 @@ export const hangupNode = createNodeDescriptor({
|
|
|
36
36
|
try {
|
|
37
37
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
38
38
|
const payload = isFeatureAccmEnabled ? buildPayloadAccm("hangup", config, nodeId) : hangUp.handleInput("audioCodes", hangupReason);
|
|
39
|
-
api.say(null, {
|
|
39
|
+
yield api.say(null, {
|
|
40
40
|
_cognigy: payload
|
|
41
41
|
});
|
|
42
42
|
}
|
|
@@ -117,7 +117,7 @@ export const playURLNode = createNodeDescriptor({
|
|
|
117
117
|
try {
|
|
118
118
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
119
119
|
const payload = isFeatureAccmEnabled ? buildPayloadAccm("playURL", config, nodeId) : play.handleInput({ endpointType: 'audioCodes', config });
|
|
120
|
-
api.say(null, {
|
|
120
|
+
yield api.say(null, {
|
|
121
121
|
_cognigy: payload
|
|
122
122
|
});
|
|
123
123
|
}
|
|
@@ -248,16 +248,17 @@ export const sendMessageNode = createNodeDescriptor({
|
|
|
248
248
|
const { text, activityParams, setActivityParams } = config;
|
|
249
249
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
250
250
|
if (isFeatureAccmEnabled && text) {
|
|
251
|
-
|
|
251
|
+
yield api.say(null, {
|
|
252
252
|
_cognigy: buildPayloadAccm("sendMessage", config, nodeId)
|
|
253
253
|
});
|
|
254
|
+
return;
|
|
254
255
|
}
|
|
255
256
|
let compiledParams = activityParams || {};
|
|
256
257
|
if (setActivityParams) {
|
|
257
258
|
compileParams(config, compiledParams);
|
|
258
259
|
}
|
|
259
260
|
if (text) {
|
|
260
|
-
api.output(null, {
|
|
261
|
+
yield api.output(null, {
|
|
261
262
|
"_cognigy": {
|
|
262
263
|
"_voiceGateway": {
|
|
263
264
|
"json": {
|
|
@@ -35,7 +35,7 @@ export const sendMetaDataNode = createNodeDescriptor({
|
|
|
35
35
|
try {
|
|
36
36
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
37
37
|
const payload = isFeatureAccmEnabled ? buildPayloadAccm("sendMetadata", config, nodeId) : sendMetadata.handleInput("audioCodes", config.metaData);
|
|
38
|
-
api.output(null, {
|
|
38
|
+
yield api.output(null, {
|
|
39
39
|
_cognigy: payload
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -51,14 +51,14 @@ export const setSessionParamsNode = createNodeDescriptor({
|
|
|
51
51
|
const { sessionParams } = config;
|
|
52
52
|
const { isFeatureAccmEnabled } = api.getEndpointSettings();
|
|
53
53
|
if (isFeatureAccmEnabled) {
|
|
54
|
-
return api.say(null, {
|
|
54
|
+
return yield api.say(null, {
|
|
55
55
|
_cognigy: buildPayloadAccm("setSessionParams", config, nodeId)
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
let compiledParams = sessionParams || {};
|
|
59
59
|
compileParams(config, compiledParams);
|
|
60
60
|
// output the activity to the voice gateway
|
|
61
|
-
api.output(null, {
|
|
61
|
+
yield api.output(null, {
|
|
62
62
|
"_cognigy": {
|
|
63
63
|
"_voiceGateway": {
|
|
64
64
|
"json": {
|
|
@@ -32,7 +32,7 @@ export const hangupNode = createNodeDescriptor({
|
|
|
32
32
|
const { hangupReason } = config;
|
|
33
33
|
try {
|
|
34
34
|
const payload = hangUp.handleInput("voiceGateway2", hangupReason);
|
|
35
|
-
api.say(null, {
|
|
35
|
+
yield api.say(null, {
|
|
36
36
|
_cognigy: payload
|
|
37
37
|
});
|
|
38
38
|
api.logDebugMessage(`UI__DEBUG_MODE__HANGUP__MESSAGE ${hangupReason}`);
|
|
@@ -48,7 +48,7 @@ export const muteSpeechInputNode = createNodeDescriptor({
|
|
|
48
48
|
const { api } = cognigy;
|
|
49
49
|
try {
|
|
50
50
|
const payload = mapper.handleInput(config, api);
|
|
51
|
-
api.say(null, {
|
|
51
|
+
yield api.say(null, {
|
|
52
52
|
_cognigy: payload
|
|
53
53
|
});
|
|
54
54
|
logFullConfigToDebugMode(cognigy, config);
|
|
@@ -52,7 +52,7 @@ export const recordNode = createNodeDescriptor({
|
|
|
52
52
|
label: "UI__NODE_EDITOR__VOICEGATEWAY2__FIELDS__SIPREC_SERVER_URL__LABEL",
|
|
53
53
|
type: "cognigyText",
|
|
54
54
|
description: "UI__NODE_EDITOR__VOICEGATEWAY2__FIELDS__SIPREC_SERVER_URL__DESCRIPTION",
|
|
55
|
-
defaultValue:
|
|
55
|
+
defaultValue: "",
|
|
56
56
|
condition: {
|
|
57
57
|
key: "action",
|
|
58
58
|
value: "startCallRecording"
|
|
@@ -63,7 +63,7 @@ export const recordNode = createNodeDescriptor({
|
|
|
63
63
|
label: "UI__NODE_EDITOR__VOICEGATEWAY2__FIELDS__RECORDING_ID__LABEL",
|
|
64
64
|
type: "cognigyText",
|
|
65
65
|
description: "UI__NODE_EDITOR__VOICEGATEWAY2__FIELDS__RECORDING_ID__DESCRIPTION",
|
|
66
|
-
defaultValue:
|
|
66
|
+
defaultValue: "",
|
|
67
67
|
condition: {
|
|
68
68
|
key: "action",
|
|
69
69
|
value: "startCallRecording"
|
|
@@ -95,7 +95,7 @@ export const recordNode = createNodeDescriptor({
|
|
|
95
95
|
};
|
|
96
96
|
try {
|
|
97
97
|
const payload = mapper.handleInput(recordInput, api, false);
|
|
98
|
-
api.say(null, {
|
|
98
|
+
yield api.say(null, {
|
|
99
99
|
_cognigy: payload
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -86,10 +86,10 @@ export const referNode = createNodeDescriptor({
|
|
|
86
86
|
try {
|
|
87
87
|
const payload = transfer.handleInput("voiceGateway2", transferParams, false);
|
|
88
88
|
if (input.channel === "adminconsole") {
|
|
89
|
-
api.output('You are using the deprecated Refer Node. Please replace it with new Transfer Node in the Node Selection Menu.', null);
|
|
89
|
+
yield api.output('You are using the deprecated Refer Node. Please replace it with new Transfer Node in the Node Selection Menu.', null);
|
|
90
90
|
}
|
|
91
91
|
api.log('error', 'You are using the deprecated Refer Node. Please replace it with new Transfer Node in the Node Selection Menu.');
|
|
92
|
-
api.say(null, {
|
|
92
|
+
yield api.say(null, {
|
|
93
93
|
_cognigy: payload
|
|
94
94
|
});
|
|
95
95
|
}
|
|
@@ -1074,7 +1074,7 @@ export const setSessionConfigNode = createNodeDescriptor({
|
|
|
1074
1074
|
try {
|
|
1075
1075
|
const voiceSettings = voiceConfigParamsToVoiceSettings(config, api);
|
|
1076
1076
|
const payload = setSessionConfig.handleVGInput(voiceSettings, sessionParams, api);
|
|
1077
|
-
api.say(null, {
|
|
1077
|
+
yield api.say(null, {
|
|
1078
1078
|
_cognigy: payload,
|
|
1079
1079
|
});
|
|
1080
1080
|
logFullConfigToDebugMode(cognigy, voiceSettings);
|
|
@@ -506,7 +506,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
506
506
|
if (agentAssistEnabled && !dialTranscriptionWebhook) {
|
|
507
507
|
textWarningAdminChannel = `${textWarningAdminChannel + "\n"} Copilot is enabled but no transcription webhook is configured. Please configure a transcription webhook in the Transfer node.`;
|
|
508
508
|
}
|
|
509
|
-
api.say(textWarningAdminChannel, null);
|
|
509
|
+
yield api.say(textWarningAdminChannel, null);
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
512
|
if (agentAssistEnabled && dialTranscriptionWebhook) {
|
|
@@ -545,7 +545,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
545
545
|
api.log("error", "Invalid JSON in Transfer SIP Headers");
|
|
546
546
|
}
|
|
547
547
|
const payload = transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttDeepgramModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, anchorMedia);
|
|
548
|
-
api.say(null, {
|
|
548
|
+
yield api.say(null, {
|
|
549
549
|
_cognigy: payload,
|
|
550
550
|
});
|
|
551
551
|
api.logDebugMessage(`${transferType} UI__DEBUG_MODE__TRANSFER__MESSAGE ${transferTarget}`);
|
|
@@ -98,7 +98,8 @@ export const handoverSettingsSchema = {
|
|
|
98
98
|
enableTranscriptTile: { type: "boolean" },
|
|
99
99
|
enableTranscriptTileChatInput: { type: "boolean" },
|
|
100
100
|
redactTranscriptTileMessages: { type: "boolean" },
|
|
101
|
-
|
|
101
|
+
enableAgentCopilotAuthentication: { type: "boolean" },
|
|
102
|
+
agentCopilotAuthentication: { type: "string" },
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
}
|
|
@@ -95,6 +95,7 @@ export const nodeFieldTypes = [
|
|
|
95
95
|
"checkbox",
|
|
96
96
|
"chipInput",
|
|
97
97
|
"code",
|
|
98
|
+
"cognigyLLMText",
|
|
98
99
|
"cognigyText",
|
|
99
100
|
"cognigyTextArray",
|
|
100
101
|
"condition",
|
|
@@ -137,7 +138,7 @@ export const nodeFieldTypes = [
|
|
|
137
138
|
"toggle",
|
|
138
139
|
"ttsSelect",
|
|
139
140
|
"typescript",
|
|
140
|
-
"xml"
|
|
141
|
+
"xml"
|
|
141
142
|
];
|
|
142
143
|
export const searchableNodeFieldTypes = [
|
|
143
144
|
"text",
|
|
@@ -13,7 +13,8 @@ export const restChannelTypes = [
|
|
|
13
13
|
"nonConversational",
|
|
14
14
|
"amazonLex",
|
|
15
15
|
"genesysBotConnector",
|
|
16
|
-
"niceCXOne"
|
|
16
|
+
"niceCXOne",
|
|
17
|
+
"niceCXOneAAH",
|
|
17
18
|
];
|
|
18
19
|
export const restChannelDisplayNames = [
|
|
19
20
|
{
|
|
@@ -75,6 +76,10 @@ export const restChannelDisplayNames = [
|
|
|
75
76
|
{
|
|
76
77
|
channel: "niceCXOne",
|
|
77
78
|
displayName: "NICE CXone"
|
|
78
|
-
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
channel: "niceCXOneAAH",
|
|
82
|
+
displayName: "NICE CXone AAH"
|
|
83
|
+
},
|
|
79
84
|
];
|
|
80
85
|
//# sourceMappingURL=TRestChannelType.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognigy/rest-api-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.94.0",
|
|
4
4
|
"description": "Cognigy REST-Client",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -73,7 +73,8 @@
|
|
|
73
73
|
"typescript": "4.7.4"
|
|
74
74
|
},
|
|
75
75
|
"engines": {
|
|
76
|
-
"node": ">=
|
|
76
|
+
"node": ">=22.1.0",
|
|
77
|
+
"npm": ">=10.1.0",
|
|
77
78
|
"vscode": "^1.22.0"
|
|
78
79
|
}
|
|
79
80
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1888,7 +1888,8 @@ declare const restChannelTypes: readonly [
|
|
|
1888
1888
|
"nonConversational",
|
|
1889
1889
|
"amazonLex",
|
|
1890
1890
|
"genesysBotConnector",
|
|
1891
|
-
"niceCXOne"
|
|
1891
|
+
"niceCXOne",
|
|
1892
|
+
"niceCXOneAAH"
|
|
1892
1893
|
];
|
|
1893
1894
|
export declare type TRestChannelType = typeof restChannelTypes[number];
|
|
1894
1895
|
declare const socketChannelTypes: readonly [
|
|
@@ -2250,7 +2251,8 @@ export interface IAgentAssistSettings {
|
|
|
2250
2251
|
enableTranscriptTile?: boolean;
|
|
2251
2252
|
enableTranscriptTileChatInput?: boolean;
|
|
2252
2253
|
redactTranscriptTileMessages?: boolean;
|
|
2253
|
-
|
|
2254
|
+
enableAgentCopilotAuthentication?: boolean;
|
|
2255
|
+
agentCopilotAuthentication?: string;
|
|
2254
2256
|
}
|
|
2255
2257
|
export interface IGenesysCloudHandoverSettings {
|
|
2256
2258
|
host: string;
|
|
@@ -2449,6 +2451,7 @@ export interface IGraphEndpointDependency {
|
|
|
2449
2451
|
* - niceCXOne
|
|
2450
2452
|
* - agentAssistVoice
|
|
2451
2453
|
* - webchat3
|
|
2454
|
+
* - niceCXOneAAH
|
|
2452
2455
|
*/
|
|
2453
2456
|
export declare type TChannelType = TWebhookChannelType | TRestChannelType | TSocketChannelType | "inject" | "abstract-rest" | "adminconsole" | "voiceGateway2";
|
|
2454
2457
|
declare const endpointTypes: readonly [
|
|
@@ -2482,6 +2485,7 @@ declare const endpointTypes: readonly [
|
|
|
2482
2485
|
"bandwidth",
|
|
2483
2486
|
"genesysBotConnector",
|
|
2484
2487
|
"niceCXOne",
|
|
2488
|
+
"niceCXOneAAH",
|
|
2485
2489
|
"agentAssistVoice",
|
|
2486
2490
|
"webchat3"
|
|
2487
2491
|
];
|
|
@@ -6979,6 +6983,12 @@ export interface IIndexEndpointsRestReturnValue_2_0 extends ICursorBasedPaginati
|
|
|
6979
6983
|
* redactTranscriptTileMessages:
|
|
6980
6984
|
* type: boolean
|
|
6981
6985
|
* description: Enable redaction of messages in transcript tile
|
|
6986
|
+
* enableAgentCopilotAuthentication:
|
|
6987
|
+
* type: boolean
|
|
6988
|
+
* description: Enable authentication for agent copilot
|
|
6989
|
+
* agentCopilotAuthentication:
|
|
6990
|
+
* type: string
|
|
6991
|
+
* description: Authentication connection reference Id for agent copilot
|
|
6982
6992
|
* orgDataPrivacySettings:
|
|
6983
6993
|
* $ref: '#/components/schemas/IEndpoitOrgDataPrivacySettings_2_0'
|
|
6984
6994
|
* IEndpoint_2_0:
|
|
@@ -10266,8 +10276,8 @@ export interface IActions {
|
|
|
10266
10276
|
parseCognigyScriptText?: (executionObjects: IExecutionObjects) => (text: string) => string;
|
|
10267
10277
|
parseCognigyScriptCondition?: (executionObjects: IExecutionObjects, nodeId: string) => (condition: string) => string;
|
|
10268
10278
|
parseCognigyScriptResultLocation?: (executionObjects: IExecutionObjects, nodeId: string) => (condition: string) => any;
|
|
10269
|
-
output?: (text: string, data: any, settings?: ISayNodeSettings) => void
|
|
10270
|
-
outputWithMeta?: (text: string, data: any, metadata?: IOutputEventMetadata, settings?: ISayNodeSettings) => void
|
|
10279
|
+
output?: (text: string, data: any, settings?: ISayNodeSettings) => Promise<void>;
|
|
10280
|
+
outputWithMeta?: (text: string, data: any, metadata?: IOutputEventMetadata, settings?: ISayNodeSettings) => Promise<void>;
|
|
10271
10281
|
reloadBrainFlow?: (flowReferenceId: string) => Promise<void>;
|
|
10272
10282
|
removeFromContext?: (key: string, value: string, mode: string) => void;
|
|
10273
10283
|
rephraseSentenceWithAI(sentence: string, options: IRephraseSentenceWithAIOptions): Promise<string>;
|
|
@@ -10277,7 +10287,7 @@ export interface IActions {
|
|
|
10277
10287
|
resetContext?: () => object;
|
|
10278
10288
|
resetFormBrain?: () => Promise<void>;
|
|
10279
10289
|
resetState?: () => Promise<string>;
|
|
10280
|
-
say?: (text: string, data?: any, settings?: ISayNodeSettings) => void
|
|
10290
|
+
say?: (text: string, data?: any, settings?: ISayNodeSettings) => Promise<void>;
|
|
10281
10291
|
sendHttpRequest?: (httpRequestParams: IHttpRequestNodeParams) => Promise<void>;
|
|
10282
10292
|
sendTileUpdateToAgentAssistWorkspace: (params: ISendTileUpdateParams) => Promise<void>;
|
|
10283
10293
|
sendConfigUpdateToAgentAssistWorkspace: (params: ISendConfigUpdateParams) => Promise<void>;
|
|
@@ -11120,6 +11130,7 @@ declare const nodeFieldTypes: readonly [
|
|
|
11120
11130
|
"checkbox",
|
|
11121
11131
|
"chipInput",
|
|
11122
11132
|
"code",
|
|
11133
|
+
"cognigyLLMText",
|
|
11123
11134
|
"cognigyText",
|
|
11124
11135
|
"cognigyTextArray",
|
|
11125
11136
|
"condition",
|
|
@@ -21509,6 +21520,7 @@ export interface IImpersonateUserRestManagementReturnValue_2_0 {
|
|
|
21509
21520
|
access_token: string;
|
|
21510
21521
|
expires_in: number;
|
|
21511
21522
|
refresh_token: string;
|
|
21523
|
+
login_token: string;
|
|
21512
21524
|
token_type: "Bearer";
|
|
21513
21525
|
}
|
|
21514
21526
|
export interface ManagementAPIGroup_2_0 {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"license.js","sourceRoot":"","sources":["../../../src/shared/interfaces/license.ts"],"names":[],"mappings":";;;AAuBA;;;;;;;;;;;;;;;GAeG;AACU,QAAA,aAAa,GAAU;IACnC,SAAS;IACT,OAAO;IACP,kBAAkB;IAClB,gBAAgB;IAChB,sBAAsB;IACtB,SAAS,CAAC,wEAAwE;CAClF,CAAC;AAcW,QAAA,0BAA0B,GAAU,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjF,QAAA,0BAA0B,GAA8D;IACpG,EAAE,EAAE,YAAY;IAChB,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;CAC9B,CAAC"}
|
package/build/test.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"license.js","sourceRoot":"","sources":["../../../../src/shared/interfaces/license.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,MAAM,aAAa,GAAU;IACnC,SAAS;IACT,OAAO;IACP,kBAAkB;IAClB,gBAAgB;IAChB,sBAAsB;IACtB,SAAS,CAAC,wEAAwE;CAClF,CAAC;AAcF,MAAM,CAAC,MAAM,0BAA0B,GAAU,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAG9F,MAAM,CAAC,MAAM,0BAA0B,GAA8D;IACpG,EAAE,EAAE,YAAY;IAChB,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;CAC9B,CAAC"}
|
package/dist/esm/test.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=test.js.map
|