@cognigy/rest-api-client 2025.25.0 → 2026.2.0-rc1
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/README.md +15 -0
- package/build/apigroups/InsightsAPIGroup_2_1.js +27 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +140 -375
- package/build/apigroups/SimulationAPIGroup_2_0.js +33 -18
- package/build/apigroups/aiAgentsV2/agent.js +3 -0
- package/build/apigroups/aiAgentsV2/agentAPI.js +38 -0
- package/build/apigroups/aiAgentsV2/agentPersona.js +3 -0
- package/build/apigroups/aiAgentsV2/agentPersonaAPI.js +38 -0
- package/build/apigroups/aiAgentsV2/tool.js +3 -0
- package/build/apigroups/aiAgentsV2/toolAPI.js +35 -0
- package/build/apigroups/aiAgentsV2/toolDescriptor.js +3 -0
- package/build/apigroups/aiAgentsV2/toolDescriptorAPI.js +13 -0
- package/build/apigroups/index.js +3 -1
- package/build/authentication/AuthenticationAPI.js +1 -0
- package/build/shared/charts/createNodeDescriptor.js +1 -0
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
- package/build/shared/charts/descriptors/analytics/updateProfile.js +5 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
- package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +15 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +63 -10
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +52 -0
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +8 -7
- package/build/shared/charts/descriptors/index.js +6 -0
- package/build/shared/charts/descriptors/message/question/question.js +254 -59
- package/build/shared/charts/descriptors/message/say.js +3 -0
- package/build/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +239 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +783 -0
- package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +25 -20
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +10 -6
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +57 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +10 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +26 -0
- package/build/shared/charts/descriptors/service/aiAgentV2.js +89 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
- package/build/shared/charts/descriptors/service/httpRequest.js +3 -0
- package/build/shared/charts/descriptors/service/index.js +9 -1
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +26 -17
- package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +57 -1
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +75 -15
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +27 -5
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +67 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +149 -4
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +137 -4
- package/build/shared/errors/ErrorCode.js +2 -1
- package/build/shared/errors/ErrorCollection.js +1 -0
- package/build/shared/helper/BaseContext.js +1 -1
- package/build/shared/interfaces/amqpInterface.js +1 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/build/shared/interfaces/handover.js +1 -0
- package/build/shared/interfaces/handoverProviders.js +0 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +4 -1
- package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/build/shared/interfaces/resources/IChart.js +10 -1
- package/build/shared/interfaces/resources/IChartNode.js +32 -4
- package/build/shared/interfaces/resources/IEndpoint.js +1 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +49 -0
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +12 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +3 -0
- package/build/shared/interfaces/security/ISessionScope.js +3 -0
- package/build/spec/aiAgentV2.spec.js +564 -0
- package/dist/esm/apigroups/InsightsAPIGroup_2_1.js +13 -0
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +140 -375
- package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +33 -18
- package/dist/esm/apigroups/aiAgentsV2/agent.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/agentAPI.js +24 -0
- package/dist/esm/apigroups/aiAgentsV2/agentPersona.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/agentPersonaAPI.js +24 -0
- package/dist/esm/apigroups/aiAgentsV2/aiAgentV2API.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/tool.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/toolAPI.js +21 -0
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptor.js +2 -0
- package/dist/esm/apigroups/aiAgentsV2/toolDescriptorAPI.js +9 -0
- package/dist/esm/apigroups/index.js +1 -0
- package/dist/esm/authentication/AuthenticationAPI.js +1 -0
- package/dist/esm/shared/charts/createNodeDescriptor.js +1 -0
- package/dist/esm/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
- package/dist/esm/shared/charts/descriptors/analytics/updateProfile.js +5 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +12 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +10 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +63 -10
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +49 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +3 -3
- package/dist/esm/shared/charts/descriptors/index.js +7 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +254 -59
- package/dist/esm/shared/charts/descriptors/message/say.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +237 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +770 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +25 -20
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +10 -6
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +56 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +10 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +25 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgentV2.js +87 -0
- package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/httpRequest.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +4 -0
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +33 -24
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +56 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +75 -15
- package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +27 -5
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +67 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +149 -4
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +137 -4
- package/dist/esm/shared/errors/ErrorCode.js +2 -1
- package/dist/esm/shared/errors/ErrorCollection.js +1 -0
- package/dist/esm/shared/helper/BaseContext.js +1 -1
- package/dist/esm/shared/interfaces/amqpInterface.js +1 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/dist/esm/shared/interfaces/handover.js +1 -0
- package/dist/esm/shared/interfaces/handoverProviders.js +0 -1
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +4 -1
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/dist/esm/shared/interfaces/resources/IChart.js +10 -1
- package/dist/esm/shared/interfaces/resources/IChartNode.js +32 -4
- package/dist/esm/shared/interfaces/resources/IEndpoint.js +1 -0
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
- package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
- package/dist/esm/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
- package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +46 -0
- package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
- package/dist/esm/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +9 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +2 -0
- package/dist/esm/shared/interfaces/security/ISessionScope.js +2 -0
- package/dist/esm/spec/aiAgentV2.spec.js +563 -0
- package/package.json +6 -3
- package/types/index.d.ts +1198 -44
|
@@ -81,6 +81,132 @@ exports.voiceConfigFields = [
|
|
|
81
81
|
value: "deepgram"
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
|
+
{
|
|
85
|
+
key: "deepgramfluxEndpointing",
|
|
86
|
+
type: "toggle",
|
|
87
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__LABEL",
|
|
88
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__DESCRIPTION",
|
|
89
|
+
defaultValue: true,
|
|
90
|
+
condition: {
|
|
91
|
+
key: "sttVendor",
|
|
92
|
+
value: "deepgramflux"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "deepgramfluxEndOfTurnThreshold",
|
|
97
|
+
type: "slider",
|
|
98
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__LABEL",
|
|
99
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__DESCRIPTION",
|
|
100
|
+
defaultValue: 0.7,
|
|
101
|
+
params: {
|
|
102
|
+
min: 0.5,
|
|
103
|
+
max: 0.9,
|
|
104
|
+
step: 0.1
|
|
105
|
+
},
|
|
106
|
+
condition: {
|
|
107
|
+
and: [
|
|
108
|
+
{
|
|
109
|
+
key: "sttVendor",
|
|
110
|
+
value: "deepgramflux"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
key: "deepgramfluxEndpointing",
|
|
114
|
+
value: true
|
|
115
|
+
},
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
key: "deepgramfluxEndOfTurnTimeoutMs",
|
|
121
|
+
type: "number",
|
|
122
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__LABEL",
|
|
123
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__DESCRIPTION",
|
|
124
|
+
defaultValue: 5000,
|
|
125
|
+
params: {
|
|
126
|
+
min: 500,
|
|
127
|
+
max: 10000
|
|
128
|
+
},
|
|
129
|
+
condition: {
|
|
130
|
+
and: [
|
|
131
|
+
{
|
|
132
|
+
key: "sttVendor",
|
|
133
|
+
value: "deepgramflux"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
key: "deepgramfluxEndpointing",
|
|
137
|
+
value: true
|
|
138
|
+
},
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
key: "speechmaticsEndpointing",
|
|
144
|
+
type: "toggle",
|
|
145
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__LABEL",
|
|
146
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__DESCRIPTION",
|
|
147
|
+
defaultValue: true,
|
|
148
|
+
condition: {
|
|
149
|
+
key: "sttVendor",
|
|
150
|
+
value: "speechmatics"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
key: "speechmaticsEndpointingValue",
|
|
155
|
+
type: "number",
|
|
156
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__LABEL",
|
|
157
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__DESCRIPTION",
|
|
158
|
+
defaultValue: 500,
|
|
159
|
+
params: {
|
|
160
|
+
min: 10,
|
|
161
|
+
max: 5000
|
|
162
|
+
},
|
|
163
|
+
condition: {
|
|
164
|
+
and: [
|
|
165
|
+
{
|
|
166
|
+
key: "sttVendor",
|
|
167
|
+
value: "speechmatics"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
key: "speechmaticsEndpointing",
|
|
171
|
+
value: true
|
|
172
|
+
},
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
key: "openaiEndpointing",
|
|
178
|
+
type: "toggle",
|
|
179
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__LABEL",
|
|
180
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__DESCRIPTION",
|
|
181
|
+
defaultValue: true,
|
|
182
|
+
condition: {
|
|
183
|
+
key: "sttVendor",
|
|
184
|
+
value: "openai"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
key: "openaiEndpointingValue",
|
|
189
|
+
type: "number",
|
|
190
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__LABEL",
|
|
191
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__DESCRIPTION",
|
|
192
|
+
defaultValue: 500,
|
|
193
|
+
params: {
|
|
194
|
+
min: 10,
|
|
195
|
+
max: 1000
|
|
196
|
+
},
|
|
197
|
+
condition: {
|
|
198
|
+
and: [
|
|
199
|
+
{
|
|
200
|
+
key: "sttVendor",
|
|
201
|
+
value: "openai"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
key: "openaiEndpointing",
|
|
205
|
+
value: true
|
|
206
|
+
},
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
84
210
|
{
|
|
85
211
|
key: "sttHints",
|
|
86
212
|
type: "textArray",
|
|
@@ -109,6 +235,10 @@ exports.voiceConfigFields = [
|
|
|
109
235
|
key: "sttVendor",
|
|
110
236
|
value: "deepgram"
|
|
111
237
|
},
|
|
238
|
+
{
|
|
239
|
+
key: "sttVendor",
|
|
240
|
+
value: "deepgramflux"
|
|
241
|
+
},
|
|
112
242
|
]
|
|
113
243
|
}
|
|
114
244
|
},
|
|
@@ -248,7 +378,7 @@ exports.voiceConfigFields = [
|
|
|
248
378
|
defaultValue: "",
|
|
249
379
|
params: {
|
|
250
380
|
languageKey: "config.sttLanguage",
|
|
251
|
-
modelKey: "config.
|
|
381
|
+
modelKey: "config.sttModel",
|
|
252
382
|
}
|
|
253
383
|
},
|
|
254
384
|
{
|
|
@@ -259,14 +389,22 @@ exports.voiceConfigFields = [
|
|
|
259
389
|
defaultValue: "",
|
|
260
390
|
},
|
|
261
391
|
{
|
|
262
|
-
key: "
|
|
392
|
+
key: "sttModel",
|
|
263
393
|
type: "sttSelect",
|
|
264
394
|
label: "_unused_",
|
|
265
395
|
description: "_unused_",
|
|
266
396
|
defaultValue: "",
|
|
267
397
|
condition: {
|
|
268
|
-
|
|
269
|
-
|
|
398
|
+
and: [
|
|
399
|
+
{
|
|
400
|
+
key: "sttVendor",
|
|
401
|
+
value: "deepgram"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
key: "sttVendor",
|
|
405
|
+
value: "openai"
|
|
406
|
+
}
|
|
407
|
+
]
|
|
270
408
|
}
|
|
271
409
|
},
|
|
272
410
|
{
|
|
@@ -974,6 +1112,13 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
|
|
|
974
1112
|
"deepgramEndpointing",
|
|
975
1113
|
"deepgramEndpointingValue",
|
|
976
1114
|
"deepgramSmartFormatting",
|
|
1115
|
+
"deepgramfluxEndpointing",
|
|
1116
|
+
"deepgramfluxEndOfTurnThreshold",
|
|
1117
|
+
"deepgramfluxEndOfTurnTimeoutMs",
|
|
1118
|
+
"speechmaticsEndpointing",
|
|
1119
|
+
"speechmaticsEndpointingValue",
|
|
1120
|
+
"openaiEndpointing",
|
|
1121
|
+
"openaiEndpointingValue",
|
|
977
1122
|
"sttHints",
|
|
978
1123
|
"sttHintsDynamicHints",
|
|
979
1124
|
"googleModel",
|
|
@@ -315,7 +315,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
315
315
|
defaultValue: "",
|
|
316
316
|
params: {
|
|
317
317
|
languageKey: "config.sttLanguage",
|
|
318
|
-
modelKey: "config.
|
|
318
|
+
modelKey: "config.sttModel"
|
|
319
319
|
},
|
|
320
320
|
condition: {
|
|
321
321
|
key: "transferType",
|
|
@@ -323,7 +323,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
325
|
{
|
|
326
|
-
key: "
|
|
326
|
+
key: "sttModel",
|
|
327
327
|
type: "sttSelect",
|
|
328
328
|
label: "_unused_",
|
|
329
329
|
description: "_unused_",
|
|
@@ -404,6 +404,132 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
404
404
|
value: "deepgram"
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
|
+
{
|
|
408
|
+
key: "deepgramfluxEndpointing",
|
|
409
|
+
type: "toggle",
|
|
410
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__LABEL",
|
|
411
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__DESCRIPTION",
|
|
412
|
+
defaultValue: false,
|
|
413
|
+
condition: {
|
|
414
|
+
key: "sttVendor",
|
|
415
|
+
value: "deepgramflux"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
key: "deepgramfluxEndOfTurnThreshold",
|
|
420
|
+
type: "slider",
|
|
421
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__LABEL",
|
|
422
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__DESCRIPTION",
|
|
423
|
+
defaultValue: 0.7,
|
|
424
|
+
params: {
|
|
425
|
+
min: 0.5,
|
|
426
|
+
max: 0.9,
|
|
427
|
+
step: 0.1
|
|
428
|
+
},
|
|
429
|
+
condition: {
|
|
430
|
+
and: [
|
|
431
|
+
{
|
|
432
|
+
key: "sttVendor",
|
|
433
|
+
value: "deepgramflux"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
key: "deepgramfluxEndpointing",
|
|
437
|
+
value: true
|
|
438
|
+
},
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
key: "deepgramfluxEndOfTurnTimeoutMs",
|
|
444
|
+
type: "number",
|
|
445
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__LABEL",
|
|
446
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__DESCRIPTION",
|
|
447
|
+
defaultValue: 5000,
|
|
448
|
+
params: {
|
|
449
|
+
min: 500,
|
|
450
|
+
max: 10000
|
|
451
|
+
},
|
|
452
|
+
condition: {
|
|
453
|
+
and: [
|
|
454
|
+
{
|
|
455
|
+
key: "sttVendor",
|
|
456
|
+
value: "deepgramflux"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
key: "deepgramfluxEndpointing",
|
|
460
|
+
value: true
|
|
461
|
+
},
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
key: "speechmaticsEndpointing",
|
|
467
|
+
type: "toggle",
|
|
468
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__LABEL",
|
|
469
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__DESCRIPTION",
|
|
470
|
+
defaultValue: true,
|
|
471
|
+
condition: {
|
|
472
|
+
key: "sttVendor",
|
|
473
|
+
value: "speechmatics"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
key: "speechmaticsEndpointingValue",
|
|
478
|
+
type: "number",
|
|
479
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__LABEL",
|
|
480
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__DESCRIPTION",
|
|
481
|
+
defaultValue: 500,
|
|
482
|
+
params: {
|
|
483
|
+
min: 10,
|
|
484
|
+
max: 5000
|
|
485
|
+
},
|
|
486
|
+
condition: {
|
|
487
|
+
and: [
|
|
488
|
+
{
|
|
489
|
+
key: "sttVendor",
|
|
490
|
+
value: "speechmatics"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
key: "speechmaticsEndpointing",
|
|
494
|
+
value: true
|
|
495
|
+
},
|
|
496
|
+
]
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
key: "openaiEndpointing",
|
|
501
|
+
type: "toggle",
|
|
502
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__LABEL",
|
|
503
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__DESCRIPTION",
|
|
504
|
+
defaultValue: true,
|
|
505
|
+
condition: {
|
|
506
|
+
key: "sttVendor",
|
|
507
|
+
value: "openai"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
key: "openaiEndpointingValue",
|
|
512
|
+
type: "number",
|
|
513
|
+
label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__LABEL",
|
|
514
|
+
description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__DESCRIPTION",
|
|
515
|
+
defaultValue: 500,
|
|
516
|
+
params: {
|
|
517
|
+
min: 10,
|
|
518
|
+
max: 1000
|
|
519
|
+
},
|
|
520
|
+
condition: {
|
|
521
|
+
and: [
|
|
522
|
+
{
|
|
523
|
+
key: "sttVendor",
|
|
524
|
+
value: "openai"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
key: "openaiEndpointing",
|
|
528
|
+
value: true
|
|
529
|
+
},
|
|
530
|
+
]
|
|
531
|
+
}
|
|
532
|
+
},
|
|
407
533
|
{
|
|
408
534
|
key: "googleModel",
|
|
409
535
|
type: "select",
|
|
@@ -464,6 +590,13 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
464
590
|
"deepgramEndpointing",
|
|
465
591
|
"deepgramEndpointingValue",
|
|
466
592
|
"deepgramSmartFormatting",
|
|
593
|
+
"deepgramfluxEndpointing",
|
|
594
|
+
"deepgramfluxEndOfTurnThreshold",
|
|
595
|
+
"deepgramfluxEndOfTurnTimeoutMs",
|
|
596
|
+
"speechmaticsEndpointing",
|
|
597
|
+
"speechmaticsEndpointingValue",
|
|
598
|
+
"openaiEndpointing",
|
|
599
|
+
"openaiEndpointingValue",
|
|
467
600
|
"googleModel",
|
|
468
601
|
"dialTranscriptionWebhook",
|
|
469
602
|
"recognitionChannel"
|
|
@@ -553,7 +686,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
553
686
|
summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
|
|
554
687
|
function: async ({ cognigy, config, }) => {
|
|
555
688
|
const { api, input } = cognigy;
|
|
556
|
-
const { transferType, transferTarget, referredBy, mediaPath, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, enableTimeLimit, timeLimit, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel,
|
|
689
|
+
const { transferType, transferTarget, referredBy, mediaPath, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, enableTimeLimit, timeLimit, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, deepgramfluxEndpointing, deepgramfluxEndOfTurnThreshold, deepgramfluxEndOfTurnTimeoutMs, speechmaticsEndpointing, speechmaticsEndpointingValue, openaiEndpointing, openaiEndpointingValue, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue, anchorMedia } = config;
|
|
557
690
|
const transferParams = {
|
|
558
691
|
transferType,
|
|
559
692
|
transferReason,
|
|
@@ -627,7 +760,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
627
760
|
transferParams.useTransferSipHeaders = false;
|
|
628
761
|
api.log("error", "Invalid JSON in Transfer SIP Headers");
|
|
629
762
|
}
|
|
630
|
-
const payload = transfer_mapper_1.transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel,
|
|
763
|
+
const payload = transfer_mapper_1.transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, deepgramfluxEndpointing, deepgramfluxEndOfTurnThreshold, deepgramfluxEndOfTurnTimeoutMs, speechmaticsEndpointing, speechmaticsEndpointingValue, openaiEndpointing, openaiEndpointingValue, media, anchorMedia);
|
|
631
764
|
await api.say(null, {
|
|
632
765
|
_cognigy: payload,
|
|
633
766
|
});
|
|
@@ -6,9 +6,10 @@ var ErrorCode;
|
|
|
6
6
|
ErrorCode[ErrorCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
7
7
|
ErrorCode[ErrorCode["UNAUTHORIZED_ERROR"] = 401] = "UNAUTHORIZED_ERROR";
|
|
8
8
|
ErrorCode[ErrorCode["PAYMENT_REQUIRED_ERROR"] = 402] = "PAYMENT_REQUIRED_ERROR";
|
|
9
|
+
ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
|
|
10
|
+
ErrorCode[ErrorCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
9
11
|
ErrorCode[ErrorCode["PAYLOAD_TOO_LARGE_ERROR"] = 413] = "PAYLOAD_TOO_LARGE_ERROR";
|
|
10
12
|
ErrorCode[ErrorCode["TOO_MANY_REQUESTS_ERROR"] = 429] = "TOO_MANY_REQUESTS_ERROR";
|
|
11
|
-
ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
|
|
12
13
|
ErrorCode[ErrorCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
13
14
|
ErrorCode[ErrorCode["SERVICE_UNAVAILABLE_ERROR"] = 503] = "SERVICE_UNAVAILABLE_ERROR";
|
|
14
15
|
ErrorCode[ErrorCode["GATEWAY_TIMEOUT_ERROR"] = 504] = "GATEWAY_TIMEOUT_ERROR";
|
|
@@ -51,6 +51,7 @@ exports.ErrorCollection = {
|
|
|
51
51
|
[ErrorCode_1.ErrorCode.METHOD_NOT_ALLOWED_ERROR]: MethodNotAllowedError_1.MethodNotAllowedError,
|
|
52
52
|
[ErrorCode_1.ErrorCode.MISSING_ARGUMENT_ERROR]: missingArgument_1.MissingArgumentError,
|
|
53
53
|
[ErrorCode_1.ErrorCode.NETWORK_ERROR]: NetworkError_1.NetworkError,
|
|
54
|
+
[ErrorCode_1.ErrorCode.NOT_FOUND]: resourceNotFound_1.ResourceNotFoundError,
|
|
54
55
|
[ErrorCode_1.ErrorCode.NOT_IMPLEMENTED_ERROR]: notImplementedError_1.NotImplementedError,
|
|
55
56
|
[ErrorCode_1.ErrorCode.PAYLOAD_TOO_LARGE_ERROR]: PayloadTooLargeError_1.PayloadTooLargeError,
|
|
56
57
|
[ErrorCode_1.ErrorCode.PROCESS_ERROR]: process_1.ProcessError,
|
|
@@ -51,7 +51,7 @@ class BaseContext {
|
|
|
51
51
|
const validObjectSize = (0, objectSizeValidator_1.validateObjectSize)(merged, (process.env.MAX_MEMORY_OBJECT_SIZE && parseInt(process.env.MAX_MEMORY_OBJECT_SIZE)) || 64000);
|
|
52
52
|
if (validObjectSize.valid === false) {
|
|
53
53
|
const errorMessage = `Cannot add value to context for key ${prop.toString()}: exceeded maximum context size.`;
|
|
54
|
-
logger_1.logger.log('error', { traceId:
|
|
54
|
+
logger_1.logger.log('error', { traceId: this.traceId }, errorMessage, {
|
|
55
55
|
organisationId: this.organisationId,
|
|
56
56
|
projectId: this.projectId
|
|
57
57
|
});
|
|
@@ -122,6 +122,7 @@ exports.handoverSettingsSchema = {
|
|
|
122
122
|
redactTranscriptTileMessages: { type: "boolean" },
|
|
123
123
|
enableAgentCopilotAuthentication: { type: "boolean" },
|
|
124
124
|
agentCopilotAuthentication: { type: "string" },
|
|
125
|
+
blockNonJWTRequests: { type: "boolean" },
|
|
125
126
|
oAuth2Connection: { type: "string" },
|
|
126
127
|
}
|
|
127
128
|
}
|
|
@@ -155,6 +155,9 @@ const callFailoverSettingsSchema = {
|
|
|
155
155
|
deepgramEndpointing: { type: "boolean" },
|
|
156
156
|
deepgramEndpointingValue: { type: "number" },
|
|
157
157
|
dialTranscribeDeepgramTier: { type: "string" },
|
|
158
|
+
deepgramfluxEndpointing: { type: "boolean" },
|
|
159
|
+
deepgramfluxEndOfTurnThreshold: { type: "number" },
|
|
160
|
+
deepgramfluxEndOfTurnTimeoutMs: { type: "number" },
|
|
158
161
|
mediaPath: { type: "string", enum: [...mediaPathTypes] },
|
|
159
162
|
anchorMedia: { type: "boolean" }
|
|
160
163
|
}
|
|
@@ -718,7 +721,7 @@ exports.anyEndpointSettingsSchema = {
|
|
|
718
721
|
title: "anyEndpointSettingsSchema",
|
|
719
722
|
type: "object",
|
|
720
723
|
additionalProperties: true,
|
|
721
|
-
properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
|
|
724
|
+
properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enableMocking: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
|
|
722
725
|
type: "string",
|
|
723
726
|
enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
|
|
724
727
|
}, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
|
|
@@ -16,7 +16,16 @@ exports.chartNodeExcerptSchema = {
|
|
|
16
16
|
analyticsLabel: { type: ["null", "string"], format: "analytics-label" },
|
|
17
17
|
type: { type: "string", maxLength: 200 },
|
|
18
18
|
extension: { type: "string", format: "package-name" },
|
|
19
|
-
localeReference: { type: "string", format: "mongo-id" }
|
|
19
|
+
localeReference: { type: "string", format: "mongo-id" },
|
|
20
|
+
mock: {
|
|
21
|
+
type: "object",
|
|
22
|
+
properties: {
|
|
23
|
+
isEnabled: { type: "boolean" },
|
|
24
|
+
code: { type: "string" },
|
|
25
|
+
transpiled: { type: "string" },
|
|
26
|
+
hasError: { type: "boolean" }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
20
29
|
},
|
|
21
30
|
};
|
|
22
31
|
exports.chartNodeRelationDataSchema = {
|
|
@@ -16,7 +16,8 @@ exports.defaultNodeFields = [
|
|
|
16
16
|
"isDisabled",
|
|
17
17
|
"isEntryPoint",
|
|
18
18
|
"preview",
|
|
19
|
-
"analyticsLabel"
|
|
19
|
+
"analyticsLabel",
|
|
20
|
+
"mock"
|
|
20
21
|
];
|
|
21
22
|
exports.searchableNodeFields = [
|
|
22
23
|
"comment",
|
|
@@ -63,7 +64,16 @@ exports.nodeInDBSchema = {
|
|
|
63
64
|
resourceReference: { format: "mongo-id" },
|
|
64
65
|
projectReference: { format: "mongo-id" },
|
|
65
66
|
organisationReference: { format: "mongo-id" },
|
|
66
|
-
analyticsLabel: { format: "analytics-label" }
|
|
67
|
+
analyticsLabel: { format: "analytics-label" },
|
|
68
|
+
mock: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: {
|
|
71
|
+
isEnabled: { type: "boolean" },
|
|
72
|
+
code: { type: "string" },
|
|
73
|
+
transpiled: { type: "string" },
|
|
74
|
+
hasError: { type: "boolean" }
|
|
75
|
+
}
|
|
76
|
+
},
|
|
67
77
|
}
|
|
68
78
|
};
|
|
69
79
|
exports.nodeDataSchema = {
|
|
@@ -100,7 +110,16 @@ exports.nodeDataSchema = {
|
|
|
100
110
|
}
|
|
101
111
|
}
|
|
102
112
|
}
|
|
103
|
-
}
|
|
113
|
+
},
|
|
114
|
+
mock: {
|
|
115
|
+
type: "object",
|
|
116
|
+
properties: {
|
|
117
|
+
isEnabled: { type: "boolean" },
|
|
118
|
+
code: { type: "string" },
|
|
119
|
+
transpiled: { type: "string" },
|
|
120
|
+
hasError: { type: "boolean" }
|
|
121
|
+
}
|
|
122
|
+
},
|
|
104
123
|
}
|
|
105
124
|
};
|
|
106
125
|
exports.updateNodeDataSchema = {
|
|
@@ -123,7 +142,16 @@ exports.updateNodeDataSchema = {
|
|
|
123
142
|
config: {
|
|
124
143
|
type: "object",
|
|
125
144
|
additionalProperties: { propertyNames: { type: "string" } }
|
|
126
|
-
}
|
|
145
|
+
},
|
|
146
|
+
mock: {
|
|
147
|
+
type: "object",
|
|
148
|
+
properties: {
|
|
149
|
+
isEnabled: { type: "boolean" },
|
|
150
|
+
code: { type: "string" },
|
|
151
|
+
transpiled: { type: "string" },
|
|
152
|
+
hasError: { type: "boolean" }
|
|
153
|
+
}
|
|
154
|
+
},
|
|
127
155
|
}
|
|
128
156
|
};
|
|
129
157
|
exports.nodeSchema = {
|
|
@@ -101,6 +101,7 @@ exports.nodeFieldTypes = [
|
|
|
101
101
|
"checkAgentAvailabilityConfig",
|
|
102
102
|
"chipInput",
|
|
103
103
|
"code",
|
|
104
|
+
"mockCode",
|
|
104
105
|
"cognigyLLMText",
|
|
105
106
|
"cognigyText",
|
|
106
107
|
"cognigyTextArray",
|
|
@@ -445,6 +446,13 @@ exports.nodeDescriptorSchema = {
|
|
|
445
446
|
additionalItems: false,
|
|
446
447
|
maxLength: 25,
|
|
447
448
|
items: exports.nodeFieldAndSectionFormElementSchema
|
|
449
|
+
},
|
|
450
|
+
mocking: {
|
|
451
|
+
type: "object",
|
|
452
|
+
additionalProperties: false,
|
|
453
|
+
properties: {
|
|
454
|
+
defaultMockCode: { type: "string" }
|
|
455
|
+
}
|
|
448
456
|
}
|
|
449
457
|
}
|
|
450
458
|
};
|
|
@@ -51,7 +51,16 @@ exports.chartExecutableNodeSchema = {
|
|
|
51
51
|
type: { type: "string", minLength: 1 },
|
|
52
52
|
label: IChartNode_1.nodeDataSchema.properties.label,
|
|
53
53
|
extension: { type: "string" },
|
|
54
|
-
analyticsLabel: { type: ["string", "null"], format: "analytics-label" }
|
|
54
|
+
analyticsLabel: { type: ["string", "null"], format: "analytics-label" },
|
|
55
|
+
mock: {
|
|
56
|
+
type: "object",
|
|
57
|
+
properties: {
|
|
58
|
+
isEnabled: { type: "boolean" },
|
|
59
|
+
code: { type: "string" },
|
|
60
|
+
transpiled: { type: "string" },
|
|
61
|
+
hasError: { type: "boolean" },
|
|
62
|
+
}
|
|
63
|
+
}
|
|
55
64
|
},
|
|
56
65
|
};
|
|
57
66
|
//# sourceMappingURL=IChartExecutableNode.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.knowledgeConnectorSchema = exports.knowledgeConnectorDataSchema = exports.knowledgeConnectorExecutionStatus = void 0;
|
|
4
|
+
const IEntityMeta_1 = require("../IEntityMeta");
|
|
5
|
+
exports.knowledgeConnectorExecutionStatus = ["none", "queued", "active", "done", "error"];
|
|
6
|
+
exports.knowledgeConnectorDataSchema = {
|
|
7
|
+
title: "knowledgeConnectorDataSchema",
|
|
8
|
+
type: "object",
|
|
9
|
+
additionalProperties: false,
|
|
10
|
+
required: ["extension", "type", "config", "name", "version"],
|
|
11
|
+
properties: {
|
|
12
|
+
extension: { type: "string" },
|
|
13
|
+
type: { type: "string" },
|
|
14
|
+
version: { type: "string" },
|
|
15
|
+
config: {
|
|
16
|
+
type: "object",
|
|
17
|
+
additionalProperties: true
|
|
18
|
+
},
|
|
19
|
+
name: { type: "string", format: "resource-name" },
|
|
20
|
+
schedule: {
|
|
21
|
+
type: "object",
|
|
22
|
+
additionalProperties: false,
|
|
23
|
+
properties: {
|
|
24
|
+
enabled: { type: "boolean" },
|
|
25
|
+
start: { type: "integer", format: "timestamp" },
|
|
26
|
+
hour: { type: "integer", minimum: 0, maximum: 23 },
|
|
27
|
+
minute: { type: "integer", minimum: 0, maximum: 59 },
|
|
28
|
+
weekDays: { type: "array", items: { type: "integer", minimum: 0, maximum: 6 } }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.knowledgeConnectorSchema = {
|
|
34
|
+
title: "knowledgeConnectorDataSchema",
|
|
35
|
+
type: "object",
|
|
36
|
+
additionalProperties: false,
|
|
37
|
+
required: [
|
|
38
|
+
"extension",
|
|
39
|
+
"type",
|
|
40
|
+
"config",
|
|
41
|
+
"name",
|
|
42
|
+
"version"
|
|
43
|
+
],
|
|
44
|
+
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.knowledgeConnectorDataSchema.properties), { referenceId: { type: "string" }, storeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, lastExecution: { type: "integer", format: "timestamp" }, lastExecutionStatus: {
|
|
45
|
+
type: "string",
|
|
46
|
+
enum: [...exports.knowledgeConnectorExecutionStatus]
|
|
47
|
+
} })
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=IKnowledgeConnector.js.map
|