@cognigy/rest-api-client 0.15.0 → 0.17.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 +17 -0
- package/build/GenericTusFn.js +64 -0
- package/build/RestAPIClient.js +3 -0
- package/build/apigroups/AdministrationAPIGroup_2_0.js +7 -2
- package/build/apigroups/ResourcesAPIGroup_2_0.js +28 -23
- package/build/{shared/interfaces/agentAssist/ISendTileUpdateReferenceParams.js → apigroups/TTusAPIOperation.js} +1 -1
- package/build/apigroups/index.js +2 -0
- package/build/connector/AxiosAdapter.js +5 -4
- package/build/shared/charts/descriptors/agentAssist/constants/constants.js +7 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +41 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +54 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +203 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +93 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +81 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +84 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage2.js +97 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +85 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +41 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/stylesPartial.js +15 -0
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +53 -0
- package/build/shared/charts/descriptors/agentAssist/identityAssist.js +135 -0
- package/build/shared/charts/descriptors/agentAssist/index.js +15 -1
- package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +625 -0
- package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +77 -0
- package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +86 -0
- package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +120 -0
- package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +171 -0
- package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +72 -0
- package/build/shared/charts/descriptors/allFields.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/TGenerativeAIConnectionFields.js +3 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/alephAlphaProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/anthropicProviderConnection.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +4 -4
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +3 -3
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +3 -3
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2Connection.js +8 -8
- package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +2 -2
- package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +5 -5
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/awsSpeechProviderConnection.js +4 -4
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/microsoftSpeechProviderConnection.js +2 -2
- package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +5 -5
- package/build/shared/charts/descriptors/connectionNodes/translationProviders/deeplTranslationProviderConnection.js +15 -0
- package/build/shared/charts/descriptors/connectionNodes/translationProviders/googleTranslationProviderConnection.js +15 -0
- package/build/shared/charts/descriptors/connectionNodes/translationProviders/index.js +23 -0
- package/build/shared/charts/descriptors/connectionNodes/translationProviders/microsoftTranslationProviderConnection.js +21 -0
- package/build/shared/charts/descriptors/index.js +13 -2
- package/build/shared/charts/descriptors/knowledgeSearch/constants/constants.js +6 -0
- package/build/shared/charts/descriptors/knowledgeSearch/index.js +5 -1
- package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearch.js +7 -2
- package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearchV2.js +151 -0
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +985 -0
- package/build/shared/charts/descriptors/logic/goTo.js +2 -0
- package/build/shared/charts/descriptors/message/question/optionalQuestion.js +2 -2
- package/build/shared/charts/descriptors/message/question/question.js +215 -8
- package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +107 -5
- package/build/shared/charts/descriptors/service/GPTConversation.js +125 -23
- package/build/shared/charts/descriptors/service/GPTPrompt.js +148 -12
- package/build/shared/charts/descriptors/service/checkAgentAvailability.js +15 -1
- package/build/shared/charts/descriptors/service/handoverV2.js +45 -0
- package/build/shared/{interfaces/twilioInterface.js → charts/descriptors/voice/interface/IBandwidth.js} +1 -1
- package/build/shared/charts/descriptors/voice/mappers/base.mapper.js +14 -0
- package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +26 -0
- package/build/shared/charts/descriptors/voice/mappers/muteSpeechInput.mapper.js +17 -2
- package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +54 -0
- package/build/shared/charts/descriptors/voice/mappers/record.mapper.js +7 -0
- package/build/shared/charts/descriptors/voice/mappers/sendMetadata.mapper.js +15 -0
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +56 -20
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +39 -13
- package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/play.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +120 -29
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +11 -3
- package/build/shared/charts/descriptors/voice/utils/vgConstants.js +14 -0
- package/build/shared/charts/descriptors/voicegateway/index.js +14 -11
- package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +1 -5
- package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +12 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +6 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +159 -36
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +296 -43
- package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +30 -4
- package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +1 -1
- package/build/shared/constants.js +5 -1
- package/build/shared/handoverClients/interfaces/THandoverEventType.js +3 -1
- package/build/shared/helper/BaseContext.js +33 -15
- package/build/shared/helper/nlu/textCleaner.js +25 -3
- package/build/shared/interfaces/IEndpointTranslationSettings.js +9 -0
- package/build/shared/interfaces/IOrganisation.js +2 -1
- package/build/shared/interfaces/agentAssist/ISendConfigUpdateParams.js +3 -0
- package/build/shared/interfaces/agentAssist/ISendUpdateReferenceParams.js +3 -0
- package/build/shared/interfaces/amqpInterface.js +18 -22
- package/build/shared/interfaces/channels/genesysBotConnector.js +21 -0
- package/build/shared/interfaces/channels/niceCXOne.js +8 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +17 -7
- package/build/shared/interfaces/handover.js +57 -3
- package/build/shared/interfaces/journeys/IJourney.js +6 -0
- package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +2 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +93 -8
- package/build/shared/interfaces/messageAPI/handover.js +4 -4
- package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/build/shared/interfaces/resources/IConnectionSchema.js +3 -0
- package/build/shared/interfaces/resources/IEndpoint.js +1 -0
- package/build/shared/interfaces/resources/IExtension.js +3 -0
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +24 -5
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +24 -1
- package/build/shared/interfaces/resources/TNLUConnectorType.js +0 -1
- package/build/shared/interfaces/resources/TRestChannelType.js +16 -11
- package/build/shared/interfaces/resources/TSocketChannelType.js +5 -1
- package/build/shared/interfaces/resources/TWebhookChannelType.js +6 -1
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +21 -3
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +13 -2
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeStore.js +1 -1
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +3 -23
- package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
- package/build/shared/interfaces/resources/settings/ITranslationSettings.js +63 -0
- package/build/shared/interfaces/resources/settings/index.js +4 -1
- package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/IReadVoiceGatewayAccountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/ISetupVoiceGatewayAccountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/ICallCounterAggregatedValue_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/IGetCallCounterOrganisationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/IGetCallCounterRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterOrganisationRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IKnowlegeQueryCounterAggregatedValue_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +0 -2
- package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +17 -0
- package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/index.js +3 -0
- package/build/shared/interfaces/security/ICallCounterAggregatedValue.js +3 -0
- package/build/shared/interfaces/security/IKnowledgeQueryCounterAggregatedValue.js +3 -0
- package/build/shared/interfaces/security/IPermission.js +3 -0
- package/build/shared/interfaces/security/IRole.js +9 -1
- package/build/shared/interfaces/security/index.js +2 -1
- package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -0
- package/build/test.js +27 -0
- package/package.json +19 -17
- package/types/index.d.ts +823 -140
|
@@ -39,6 +39,13 @@ exports.TRANSFER_VOICE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
39
39
|
description: "UI__NODE_EDITOR__TRANSFER_REASON__FIELDS__REFER_TO__DESCRIPTION",
|
|
40
40
|
defaultValue: "+49123456789",
|
|
41
41
|
},
|
|
42
|
+
{
|
|
43
|
+
key: "referredBy",
|
|
44
|
+
label: "UI__NODE_EDITOR__TRANSFER_REASON__FIELDS__FIELDS__REFERRED_BY__LABEL",
|
|
45
|
+
type: "cognigyText",
|
|
46
|
+
description: "UI__NODE_EDITOR__TRANSFER_REASON__FIELDSFIELDS__REFERRED_BY__DESCRIPTION",
|
|
47
|
+
defaultValue: ""
|
|
48
|
+
},
|
|
42
49
|
{
|
|
43
50
|
key: "useTransferSipHeaders",
|
|
44
51
|
label: "UI__NODE_EDITOR__TRANSFER_REASON__FIELDS__USE_TRANSFER_SIP_HEADERS__LABEL",
|
|
@@ -65,7 +72,7 @@ exports.TRANSFER_VOICE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
65
72
|
key: "advanced",
|
|
66
73
|
label: "UI__NODE_EDITOR__TRANSFER_REASON__SECTIONS__ADVANCED__LABEL",
|
|
67
74
|
defaultCollapsed: true,
|
|
68
|
-
fields: ["useTransferSipHeaders", "transferSipHeaders"],
|
|
75
|
+
fields: ["referredBy", "useTransferSipHeaders", "transferSipHeaders"],
|
|
69
76
|
},
|
|
70
77
|
],
|
|
71
78
|
form: [
|
|
@@ -85,7 +92,7 @@ exports.TRANSFER_VOICE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
85
92
|
summary: "UI__NODE_EDITOR__TRANSFER__SUMMARY",
|
|
86
93
|
function: async ({ cognigy, config }) => {
|
|
87
94
|
const { api, input } = cognigy;
|
|
88
|
-
const { referTo, useTransferSipHeaders, transferSipHeaders, transferReason, } = config;
|
|
95
|
+
const { referTo, useTransferSipHeaders, transferSipHeaders, transferReason, referredBy } = config;
|
|
89
96
|
const { endpointType } = input;
|
|
90
97
|
try {
|
|
91
98
|
if (input.channel === "adminconsole") {
|
|
@@ -95,6 +102,7 @@ exports.TRANSFER_VOICE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
95
102
|
const transferParams = {
|
|
96
103
|
transferReason,
|
|
97
104
|
transferTarget: referTo,
|
|
105
|
+
referredBy,
|
|
98
106
|
useTransferSipHeaders: useTransferSipHeaders,
|
|
99
107
|
transferSipHeaders: transferSipHeaders,
|
|
100
108
|
};
|
|
@@ -111,7 +119,7 @@ exports.TRANSFER_VOICE = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
111
119
|
});
|
|
112
120
|
}
|
|
113
121
|
catch (error) {
|
|
114
|
-
throw new Error(`Error on Transfer Node. Error message: ${error.message}`);
|
|
122
|
+
throw new Error(`Error on Transfer Node type: refer. Error message: ${error.message}`);
|
|
115
123
|
}
|
|
116
124
|
},
|
|
117
125
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GoogleSpeechModel = void 0;
|
|
4
|
+
exports.GoogleSpeechModel = {
|
|
5
|
+
LatestShort: "latest_short",
|
|
6
|
+
LatestLong: "latest_long",
|
|
7
|
+
Video: "video",
|
|
8
|
+
PhoneCall: "phone_call",
|
|
9
|
+
MedicalConversation: "medical_conversation",
|
|
10
|
+
MedicalDictation: "medical_dictation",
|
|
11
|
+
Default: "default",
|
|
12
|
+
CommandAndSearch: "command_and_search",
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=vgConstants.js.map
|
|
@@ -12,17 +12,20 @@ const handover_1 = require("./nodes/handover");
|
|
|
12
12
|
const hangup_1 = require("./nodes/hangup");
|
|
13
13
|
const playURL_1 = require("./nodes/playURL");
|
|
14
14
|
const sendMetaData_1 = require("./nodes/sendMetaData");
|
|
15
|
+
const nodes = [
|
|
16
|
+
sendMessage_1.sendMessageNode,
|
|
17
|
+
playURL_1.playURLNode,
|
|
18
|
+
handover_1.handoverNode,
|
|
19
|
+
hangup_1.hangupNode,
|
|
20
|
+
setSessionParams_1.setSessionParamsNode,
|
|
21
|
+
sendMetaData_1.sendMetaDataNode,
|
|
22
|
+
callRecording_1.callRecordingNode,
|
|
23
|
+
];
|
|
24
|
+
if (process.env.FEATURE_DISABLE_AGENT_ASSIST_NODE_AC !== "true") {
|
|
25
|
+
nodes.push(agentAssist_1.agentAssistNode);
|
|
26
|
+
}
|
|
15
27
|
exports.cognigyVoiceGatewayModule = (0, createNodeDescriptor_1.createExtension)({
|
|
16
|
-
nodes
|
|
17
|
-
|
|
18
|
-
playURL_1.playURLNode,
|
|
19
|
-
handover_1.handoverNode,
|
|
20
|
-
hangup_1.hangupNode,
|
|
21
|
-
setSessionParams_1.setSessionParamsNode,
|
|
22
|
-
sendMetaData_1.sendMetaDataNode,
|
|
23
|
-
agentAssist_1.agentAssistNode,
|
|
24
|
-
callRecording_1.callRecordingNode
|
|
25
|
-
],
|
|
26
|
-
connections: []
|
|
28
|
+
nodes,
|
|
29
|
+
connections: [],
|
|
27
30
|
});
|
|
28
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -398,17 +398,13 @@ const getParameterFields = () => [
|
|
|
398
398
|
defaultValue: false,
|
|
399
399
|
condition: {
|
|
400
400
|
or: [
|
|
401
|
-
{
|
|
402
|
-
key: "sttVendor",
|
|
403
|
-
value: "microsoft",
|
|
404
|
-
},
|
|
405
401
|
{
|
|
406
402
|
key: "sttVendor",
|
|
407
403
|
value: "google",
|
|
408
404
|
},
|
|
409
405
|
{
|
|
410
406
|
key: "sttVendor",
|
|
411
|
-
value: "
|
|
407
|
+
value: "deepgram",
|
|
412
408
|
},
|
|
413
409
|
]
|
|
414
410
|
}
|
|
@@ -28,10 +28,21 @@ exports.muteSpeechInputNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
28
28
|
required: true
|
|
29
29
|
},
|
|
30
30
|
defaultValue: false
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: "muteDtmfInput",
|
|
34
|
+
label: "UI__NODE_EDITOR__MUTE_SPEECH_INPUT__FIELDS__MUTE_DTMF_INPUT__LABEL",
|
|
35
|
+
description: "UI__NODE_EDITOR__MUTE_SPEECH_INPUT__FIELDS__MUTE_DTMF_INPUT__DESCRIPTION",
|
|
36
|
+
type: "toggle",
|
|
37
|
+
params: {
|
|
38
|
+
required: true
|
|
39
|
+
},
|
|
40
|
+
defaultValue: false
|
|
41
|
+
},
|
|
32
42
|
],
|
|
33
43
|
form: [
|
|
34
44
|
{ type: "field", key: "muteSpeechInput" },
|
|
45
|
+
{ type: "field", key: "muteDtmfInput" },
|
|
35
46
|
],
|
|
36
47
|
function: async ({ cognigy, config }) => {
|
|
37
48
|
const { api } = cognigy;
|
|
@@ -67,6 +67,12 @@ exports.playNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
67
67
|
"sttVendor",
|
|
68
68
|
"sttHints",
|
|
69
69
|
"sttHintsDynamicHints",
|
|
70
|
+
"googleModel",
|
|
71
|
+
"sttLabel",
|
|
72
|
+
"sttDeepgramTier",
|
|
73
|
+
"deepgramEndpointing",
|
|
74
|
+
"deepgramEndpointingValue",
|
|
75
|
+
"deepgramSmartFormatting",
|
|
70
76
|
"sttDisablePunctuation",
|
|
71
77
|
"sttVadEnabled",
|
|
72
78
|
"sttVadMode",
|
|
@@ -7,6 +7,7 @@ const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
|
|
|
7
7
|
const design_1 = require("../utils/design");
|
|
8
8
|
const setSessionConfig_mapper_1 = require("../../voice/mappers/setSessionConfig.mapper");
|
|
9
9
|
const setSessionConfig_mapper_2 = require("../../voice/mappers/setSessionConfig.mapper");
|
|
10
|
+
const vgConstants_1 = require("../../voice/utils/vgConstants");
|
|
10
11
|
exports.voiceConfigFields = [
|
|
11
12
|
{
|
|
12
13
|
key: "bargeInMinWordCount",
|
|
@@ -50,6 +51,71 @@ exports.voiceConfigFields = [
|
|
|
50
51
|
defaultValue: "",
|
|
51
52
|
label: "_unused_",
|
|
52
53
|
},
|
|
54
|
+
{
|
|
55
|
+
key: "sttDeepgramTier",
|
|
56
|
+
type: "sttTierModelSelect",
|
|
57
|
+
label: "_unused_",
|
|
58
|
+
description: "_unused_",
|
|
59
|
+
defaultValue: "base",
|
|
60
|
+
params: {
|
|
61
|
+
languageKey: "config.sttDeepgramModel",
|
|
62
|
+
},
|
|
63
|
+
condition: {
|
|
64
|
+
key: "sttVendor",
|
|
65
|
+
value: "deepgram"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "sttDeepgramModel",
|
|
70
|
+
type: "sttTierModelSelect",
|
|
71
|
+
defaultValue: "general",
|
|
72
|
+
label: "_unused_",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: "deepgramEndpointing",
|
|
76
|
+
type: "toggle",
|
|
77
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING__LABEL",
|
|
78
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING__DESCRIPTION",
|
|
79
|
+
defaultValue: false,
|
|
80
|
+
condition: {
|
|
81
|
+
key: "sttVendor",
|
|
82
|
+
value: "deepgram"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
key: "deepgramEndpointingValue",
|
|
87
|
+
type: "number",
|
|
88
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING_TIME__LABEL",
|
|
89
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_ENDPOINTING_TIME__DESCRIPTION",
|
|
90
|
+
defaultValue: 1000,
|
|
91
|
+
params: {
|
|
92
|
+
min: 10,
|
|
93
|
+
max: 1000
|
|
94
|
+
},
|
|
95
|
+
condition: {
|
|
96
|
+
and: [
|
|
97
|
+
{
|
|
98
|
+
key: "sttVendor",
|
|
99
|
+
value: "deepgram"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
key: "deepgramEndpointing",
|
|
103
|
+
value: true
|
|
104
|
+
},
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
key: "deepgramSmartFormatting",
|
|
110
|
+
type: "toggle",
|
|
111
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_SMART_FORMATTING__LABEL",
|
|
112
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAM_SMART_FORMATTING__DESCRIPTION",
|
|
113
|
+
defaultValue: false,
|
|
114
|
+
condition: {
|
|
115
|
+
key: "sttVendor",
|
|
116
|
+
value: "deepgram"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
53
119
|
{
|
|
54
120
|
key: "sttHints",
|
|
55
121
|
type: "textArray",
|
|
@@ -73,7 +139,11 @@ exports.voiceConfigFields = [
|
|
|
73
139
|
{
|
|
74
140
|
key: "sttVendor",
|
|
75
141
|
value: "soniox"
|
|
76
|
-
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
key: "sttVendor",
|
|
145
|
+
value: "deepgram"
|
|
146
|
+
},
|
|
77
147
|
]
|
|
78
148
|
}
|
|
79
149
|
},
|
|
@@ -85,17 +155,13 @@ exports.voiceConfigFields = [
|
|
|
85
155
|
defaultValue: false,
|
|
86
156
|
condition: {
|
|
87
157
|
or: [
|
|
88
|
-
{
|
|
89
|
-
key: "sttVendor",
|
|
90
|
-
value: "microsoft",
|
|
91
|
-
},
|
|
92
158
|
{
|
|
93
159
|
key: "sttVendor",
|
|
94
160
|
value: "google",
|
|
95
161
|
},
|
|
96
162
|
{
|
|
97
163
|
key: "sttVendor",
|
|
98
|
-
value: "
|
|
164
|
+
value: "deepgram",
|
|
99
165
|
},
|
|
100
166
|
]
|
|
101
167
|
}
|
|
@@ -123,7 +189,7 @@ exports.voiceConfigFields = [
|
|
|
123
189
|
{
|
|
124
190
|
key: "sttVendor",
|
|
125
191
|
value: "nuance"
|
|
126
|
-
}
|
|
192
|
+
},
|
|
127
193
|
]
|
|
128
194
|
}
|
|
129
195
|
},
|
|
@@ -150,10 +216,26 @@ exports.voiceConfigFields = [
|
|
|
150
216
|
{
|
|
151
217
|
key: "sttVendor",
|
|
152
218
|
value: "soniox"
|
|
153
|
-
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
key: "sttVendor",
|
|
222
|
+
value: "deepgram"
|
|
223
|
+
},
|
|
154
224
|
]
|
|
155
225
|
}
|
|
156
226
|
},
|
|
227
|
+
{
|
|
228
|
+
key: "sttLabel",
|
|
229
|
+
type: "cognigyText",
|
|
230
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__STT_LABEL__LABEL",
|
|
231
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__STT_LABEL__DESCRIPTION",
|
|
232
|
+
defaultValue: "",
|
|
233
|
+
condition: {
|
|
234
|
+
negate: true,
|
|
235
|
+
key: "sttVendor",
|
|
236
|
+
value: "", // We show the field for all vendors as soon as it is defined
|
|
237
|
+
}
|
|
238
|
+
},
|
|
157
239
|
{
|
|
158
240
|
key: "sttVadMode",
|
|
159
241
|
type: "slider",
|
|
@@ -201,9 +283,16 @@ exports.voiceConfigFields = [
|
|
|
201
283
|
description: "_unused_",
|
|
202
284
|
params: {
|
|
203
285
|
languageKey: "config.ttsLanguage",
|
|
286
|
+
modelKey: "config.ttsModel",
|
|
204
287
|
voiceKey: "config.ttsVoice"
|
|
205
288
|
}
|
|
206
289
|
},
|
|
290
|
+
{
|
|
291
|
+
key: "ttsModel",
|
|
292
|
+
type: "ttsSelect",
|
|
293
|
+
defaultValue: "",
|
|
294
|
+
label: "_unused_"
|
|
295
|
+
},
|
|
207
296
|
{
|
|
208
297
|
key: "ttsVoice",
|
|
209
298
|
type: "ttsSelect",
|
|
@@ -216,6 +305,18 @@ exports.voiceConfigFields = [
|
|
|
216
305
|
defaultValue: "",
|
|
217
306
|
label: "_unused_"
|
|
218
307
|
},
|
|
308
|
+
{
|
|
309
|
+
key: "ttsLabel",
|
|
310
|
+
type: "cognigyText",
|
|
311
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__TTS_LABEL__LABEL",
|
|
312
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__TTS_LABEL__DESCRIPTION",
|
|
313
|
+
defaultValue: "",
|
|
314
|
+
condition: {
|
|
315
|
+
negate: true,
|
|
316
|
+
key: "ttsVendor",
|
|
317
|
+
value: "", // We show the field for all vendors as soon as it is defined
|
|
318
|
+
}
|
|
319
|
+
},
|
|
219
320
|
{
|
|
220
321
|
key: "userNoInputMode",
|
|
221
322
|
type: "select",
|
|
@@ -523,34 +624,51 @@ exports.voiceConfigFields = [
|
|
|
523
624
|
}
|
|
524
625
|
},
|
|
525
626
|
{
|
|
526
|
-
key: "
|
|
527
|
-
type: "
|
|
528
|
-
label: "
|
|
529
|
-
description: "
|
|
530
|
-
defaultValue:
|
|
531
|
-
condition: {
|
|
532
|
-
key: "ttsVendor",
|
|
533
|
-
value: "microsoft",
|
|
534
|
-
}
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
key: "azureTtsDeploymentId",
|
|
538
|
-
type: "cognigyText",
|
|
539
|
-
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_TTS_DEPLOYMENT_ID__LABEL",
|
|
540
|
-
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_TTS_DEPLOYMENT_ID__DESCRIPTION",
|
|
541
|
-
defaultValue: "",
|
|
627
|
+
key: "googleModel",
|
|
628
|
+
type: "select",
|
|
629
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__LABEL",
|
|
630
|
+
description: "UI__NODE_EDITOR__GOOGLE_MODEL__DESCRIPTION",
|
|
631
|
+
defaultValue: vgConstants_1.GoogleSpeechModel.LatestShort,
|
|
542
632
|
condition: {
|
|
543
|
-
|
|
633
|
+
key: "sttVendor",
|
|
634
|
+
value: "google"
|
|
635
|
+
},
|
|
636
|
+
params: {
|
|
637
|
+
options: [
|
|
544
638
|
{
|
|
545
|
-
|
|
546
|
-
value:
|
|
639
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__LATEST_SHORT__LABEL",
|
|
640
|
+
value: vgConstants_1.GoogleSpeechModel.LatestShort,
|
|
547
641
|
},
|
|
548
642
|
{
|
|
549
|
-
|
|
550
|
-
value:
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
|
|
643
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__LATEST_LONG__LABEL",
|
|
644
|
+
value: vgConstants_1.GoogleSpeechModel.LatestLong,
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__COMMAND_AND_SEARCH__LABEL",
|
|
648
|
+
value: vgConstants_1.GoogleSpeechModel.CommandAndSearch,
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__PHONE_CALL__LABEL",
|
|
652
|
+
value: vgConstants_1.GoogleSpeechModel.PhoneCall,
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__VIDEO__LABEL",
|
|
656
|
+
value: vgConstants_1.GoogleSpeechModel.Video,
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__MEDICAL_DICTATION__LABEL",
|
|
660
|
+
value: vgConstants_1.GoogleSpeechModel.MedicalDictation,
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__MEDICAL_CONVERSATION__LABEL",
|
|
664
|
+
value: vgConstants_1.GoogleSpeechModel.MedicalConversation,
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
label: "UI__NODE_EDITOR__GOOGLE_MODEL__OPTIONS__DEFAULT__LABEL",
|
|
668
|
+
value: vgConstants_1.GoogleSpeechModel.Default,
|
|
669
|
+
},
|
|
670
|
+
],
|
|
671
|
+
},
|
|
554
672
|
},
|
|
555
673
|
{
|
|
556
674
|
key: "sessionParams",
|
|
@@ -577,8 +695,14 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
|
|
|
577
695
|
defaultCollapsed: true,
|
|
578
696
|
fields: [
|
|
579
697
|
"sttVendor",
|
|
698
|
+
"sttLabel",
|
|
699
|
+
"sttDeepgramTier",
|
|
700
|
+
"deepgramEndpointing",
|
|
701
|
+
"deepgramEndpointingValue",
|
|
702
|
+
"deepgramSmartFormatting",
|
|
580
703
|
"sttHints",
|
|
581
704
|
"sttHintsDynamicHints",
|
|
705
|
+
"googleModel",
|
|
582
706
|
"sttDisablePunctuation",
|
|
583
707
|
"sttVadEnabled",
|
|
584
708
|
"sttVadMode",
|
|
@@ -589,7 +713,7 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
|
|
|
589
713
|
"recognizeLanguagesAzure",
|
|
590
714
|
"sttAzure",
|
|
591
715
|
"recognizeLanguagesGoogle",
|
|
592
|
-
"sttGoogle"
|
|
716
|
+
"sttGoogle",
|
|
593
717
|
],
|
|
594
718
|
},
|
|
595
719
|
{
|
|
@@ -598,9 +722,8 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
|
|
|
598
722
|
defaultCollapsed: true,
|
|
599
723
|
fields: [
|
|
600
724
|
"ttsVendor",
|
|
601
|
-
"
|
|
602
|
-
"
|
|
603
|
-
"ttsDisableCache"
|
|
725
|
+
"ttsLabel",
|
|
726
|
+
"ttsDisableCache",
|
|
604
727
|
],
|
|
605
728
|
},
|
|
606
729
|
{
|