@cognigy/rest-api-client 2025.24.0 → 2026.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +14 -0
- package/build/apigroups/SimulationAPIGroup_2_0.js +15 -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/sendEmail.js +9 -0
- package/build/shared/charts/descriptors/index.js +7 -1
- package/build/shared/charts/descriptors/message/question/question.js +5 -0
- package/build/shared/charts/descriptors/message/say.js +3 -0
- package/build/shared/charts/descriptors/placeholder.js +3 -0
- package/build/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +239 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToAiAgentTool.js +192 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +783 -0
- package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +272 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +23 -20
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +4 -2
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +3 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +26 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehub.js +198 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubConnection.js +16 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubForm.js +300 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubProviderModule.js +16 -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 +11 -4
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +29 -27
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +5 -5
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +13 -4
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +4 -4
- package/build/shared/constants.js +2 -1
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/amqpInterface.js +1 -0
- package/build/shared/interfaces/cxone/knowledgehub/CXoneKnowledgehubAPI.js +3 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +1 -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/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.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/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/simulationRun/ISimulationRunRest_2_0.js +15 -1
- package/build/shared/interfaces/restAPI/simulation/simulationRunBatch/ISimulationRunBatchRest_2_0.js +6 -1
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +14 -0
- package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +15 -1
- 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/sendEmail.js +9 -0
- package/dist/esm/shared/charts/descriptors/index.js +6 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +5 -0
- package/dist/esm/shared/charts/descriptors/message/say.js +3 -0
- package/dist/esm/shared/charts/descriptors/placeholder.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +237 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToAiAgentTool.js +190 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +770 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +270 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +23 -20
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +4 -2
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +3 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +25 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehub.js +196 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubConnection.js +13 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubForm.js +297 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubProviderModule.js +13 -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 +11 -4
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +29 -27
- package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +5 -5
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +13 -4
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +4 -4
- package/dist/esm/shared/constants.js +1 -0
- package/dist/esm/shared/interfaces/IOrganisation.js +1 -0
- package/dist/esm/shared/interfaces/amqpInterface.js +1 -0
- package/dist/esm/shared/interfaces/cxone/knowledgehub/CXoneKnowledgehubAPI.js +2 -0
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +1 -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/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.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/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/simulationRun/ISimulationRunRest_2_0.js +14 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationRunBatch/ISimulationRunBatchRest_2_0.js +5 -0
- package/package.json +1 -1
- package/types/index.d.ts +727 -29
|
@@ -162,28 +162,23 @@ class SessionConfigMapper extends BaseMapper {
|
|
|
162
162
|
const { vendor: spVendor, language: spLanguage, voice: spVoice, label: spLabel, model: spModel, azureServiceEndpoint: spAzureServiceEndpoint } = sessionParamsTts || {};
|
|
163
163
|
const { azureServiceEndpoint, ttsLabel, ttsLanguage, ttsModel, ttsVendor, ttsVoice } = tts || {};
|
|
164
164
|
const synthesizer = {};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
if (spModel || ttsModel) {
|
|
175
|
-
synthesizer.options = {
|
|
176
|
-
model_id: spModel || ttsModel
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
return synthesizer;
|
|
165
|
+
synthesizer.vendor = spVendor || ttsVendor || undefined;
|
|
166
|
+
synthesizer.language = spLanguage || ttsLanguage || undefined;
|
|
167
|
+
synthesizer.voice = spVoice || ttsVoice || undefined;
|
|
168
|
+
synthesizer.label = spLabel || ttsLabel || undefined;
|
|
169
|
+
synthesizer.azureServiceEndpoint = spAzureServiceEndpoint || azureServiceEndpoint || "";
|
|
170
|
+
if (spModel || ttsModel) {
|
|
171
|
+
synthesizer.options = {
|
|
172
|
+
model_id: spModel || ttsModel
|
|
173
|
+
};
|
|
180
174
|
}
|
|
175
|
+
return synthesizer;
|
|
181
176
|
}
|
|
182
177
|
buildRecognizer(sessionParams, stt, vad, azureConfig) {
|
|
183
|
-
var _a, _b, _c;
|
|
178
|
+
var _a, _b, _c, _d;
|
|
184
179
|
const { recognizer: sessionParamsRecognizer } = sessionParams || {};
|
|
185
180
|
const { vendor: spVendor, language: spLanguage, hints: spHints, label: spLabel, model: spModel, azureSttEndpointId: spAzureSttEndpointId, audioLogging: spAudioLogging, hintsBoost: spHintsBoost, punctuation: spPunctuation, altLanguages: spAltLanguages = [], deepgramOptions: spDeepgramOptions, vad: spVad, profanityOption: spProfanityOption } = sessionParamsRecognizer || {};
|
|
186
|
-
const { sttVendor, sttLanguage, sttHints, sttLabel, sttHintsBoost, sttDisablePunctuation, googleModel, deepgramEndpointing, deepgramEndpointingValue,
|
|
181
|
+
const { sttVendor, sttLanguage, sttHints, sttLabel, sttHintsBoost, sttDisablePunctuation, googleModel, deepgramEndpointing, deepgramEndpointingValue, sttModel, deepgramSmartFormatting, deepgramShortUtterance, altLanguages = [] } = stt || {};
|
|
187
182
|
const recognizer = {};
|
|
188
183
|
recognizer.language = spLanguage || sttLanguage || undefined;
|
|
189
184
|
recognizer.hints = spHints || sttHints || undefined;
|
|
@@ -218,7 +213,7 @@ class SessionConfigMapper extends BaseMapper {
|
|
|
218
213
|
* ssc node: 'deepgramEndpointing' => boolean, 'deepgramEndpointingValue' => number
|
|
219
214
|
*/
|
|
220
215
|
const isDeepgramEndpointingEnabled = (_a = (typeof spEndpointing === "number" || deepgramEndpointing)) !== null && _a !== void 0 ? _a : false;
|
|
221
|
-
recognizer.model = spModel ||
|
|
216
|
+
recognizer.model = spModel || sttModel;
|
|
222
217
|
const deepgramOptions = {
|
|
223
218
|
endpointing: false,
|
|
224
219
|
punctuate: recognizer.punctuation,
|
|
@@ -231,6 +226,12 @@ class SessionConfigMapper extends BaseMapper {
|
|
|
231
226
|
}
|
|
232
227
|
recognizer.deepgramOptions = deepgramOptions;
|
|
233
228
|
}
|
|
229
|
+
if (recognizer.vendor === 'openai') {
|
|
230
|
+
const openaiModel = spModel || sttModel;
|
|
231
|
+
if (openaiModel) {
|
|
232
|
+
recognizer.openaiOptions = Object.assign(Object.assign({}, ((_d = recognizer.openaiOptions) !== null && _d !== void 0 ? _d : {})), { model: openaiModel });
|
|
233
|
+
}
|
|
234
|
+
}
|
|
234
235
|
}
|
|
235
236
|
if (this.has(spVad) || this.has(vad)) {
|
|
236
237
|
const { enable: spEnable, mode: spMode, voiceMs: spVoiceMs } = spVad || {};
|
|
@@ -297,7 +298,7 @@ class SessionConfigMapper extends BaseMapper {
|
|
|
297
298
|
}
|
|
298
299
|
const mapper = new SessionConfigMapper("voiceGateway2");
|
|
299
300
|
export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
300
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m
|
|
301
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
301
302
|
let voiceSettings = {};
|
|
302
303
|
if (config.sttVendor === 'none') {
|
|
303
304
|
delete config.sttVendor;
|
|
@@ -349,10 +350,10 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
349
350
|
/* by default we enable endpointing - it is only undefined via SAP */
|
|
350
351
|
deepgramEndpointing,
|
|
351
352
|
deepgramEndpointingValue: (_g = config.deepgramEndpointingValue) !== null && _g !== void 0 ? _g : 250,
|
|
352
|
-
|
|
353
|
-
deepgramSmartFormatting: (
|
|
353
|
+
sttModel: config.sttModel || "",
|
|
354
|
+
deepgramSmartFormatting: (_h = config.deepgramSmartFormatting) !== null && _h !== void 0 ? _h : undefined,
|
|
354
355
|
deepgramShortUtterance,
|
|
355
|
-
listenDuringPrompt: (
|
|
356
|
+
listenDuringPrompt: (_j = config.sttListenDuringPrompt) !== null && _j !== void 0 ? _j : undefined,
|
|
356
357
|
};
|
|
357
358
|
// tts (synthesizer)
|
|
358
359
|
voiceSettings.tts = {
|
|
@@ -397,7 +398,7 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
397
398
|
voiceSettings.stt.altLanguages = [];
|
|
398
399
|
}
|
|
399
400
|
}
|
|
400
|
-
if (config.ttsVendor === "elevenlabs") {
|
|
401
|
+
if (config.ttsVendor === "elevenlabs" || config.ttsVendor === "openai") {
|
|
401
402
|
voiceSettings.tts.ttsModel = config.ttsModel;
|
|
402
403
|
}
|
|
403
404
|
// userNoInput
|
|
@@ -419,7 +420,7 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
419
420
|
flowNoInputFail: config.flowNoInputFail
|
|
420
421
|
};
|
|
421
422
|
// Check if userNoInputTimeout has a value and userNoInputTimeoutEnable is null or undefined to cover generic nodes
|
|
422
|
-
if (((
|
|
423
|
+
if (((_k = voiceSettings === null || voiceSettings === void 0 ? void 0 : voiceSettings.userNoInput) === null || _k === void 0 ? void 0 : _k.userNoInputTimeout) && (voiceSettings.userNoInput.userNoInputTimeoutEnable === null || voiceSettings.userNoInput.userNoInputTimeoutEnable === undefined)) {
|
|
423
424
|
voiceSettings.userNoInput.userNoInputTimeoutEnable = true;
|
|
424
425
|
}
|
|
425
426
|
voiceSettings.dtmf = {
|
|
@@ -427,7 +428,7 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
427
428
|
dtmfInterDigitTimeout: config.dtmfInterDigitTimeout,
|
|
428
429
|
dtmfMaxDigits: config.dtmfMaxDigits,
|
|
429
430
|
dtmfMinDigits: config.dtmfMinDigits,
|
|
430
|
-
dtmfSubmitDigit: (
|
|
431
|
+
dtmfSubmitDigit: (_l = config.dtmfSubmitDigit) === null || _l === void 0 ? void 0 : _l.trim(),
|
|
431
432
|
};
|
|
432
433
|
if (config === null || config === void 0 ? void 0 : config.dtmfEnable) {
|
|
433
434
|
if (voiceSettings.dtmf.dtmfSubmitDigit &&
|
|
@@ -464,7 +465,7 @@ export function voiceConfigParamsToVoiceSettings(config, api) {
|
|
|
464
465
|
}
|
|
465
466
|
// atmosphere sounds
|
|
466
467
|
if (config.atmosphereAction) {
|
|
467
|
-
if ((
|
|
468
|
+
if ((_m = config.atmosphereUrl) === null || _m === void 0 ? void 0 : _m.length) {
|
|
468
469
|
if (!isValidUrl(config.atmosphereUrl)) {
|
|
469
470
|
throw new Error(`Audio file URL is invalid ${config.atmosphereUrl}`);
|
|
470
471
|
}
|
|
@@ -513,11 +514,12 @@ export const setSessionConfig = {
|
|
|
513
514
|
var _a;
|
|
514
515
|
const { bargeIn, continuousAsr, stt, tts, userNoInput, dtmf, vad, azureConfig, atmosphereNoise, silenceOverlay, flowNoInput } = voiceSettings;
|
|
515
516
|
try {
|
|
517
|
+
const synthesizer = mapper.buildSynthesizer(sessionParams, tts) || undefined;
|
|
516
518
|
const recognizer = mapper.buildRecognizer(sessionParams, stt, vad, azureConfig) || undefined;
|
|
517
519
|
mapper.recognizerApplyContinuousAsr(sessionParams, recognizer, continuousAsr);
|
|
518
520
|
// Check if there are configs for synthesizer, recognizer and bargeIn
|
|
519
521
|
const voiceConfig = {
|
|
520
|
-
synthesizer
|
|
522
|
+
synthesizer,
|
|
521
523
|
recognizer,
|
|
522
524
|
bargeIn: mapper.buildBarge(sessionParams, dtmf, bargeIn) || undefined,
|
|
523
525
|
fillerNoise: mapper.buildFillerNoise(sessionParams, silenceOverlay) || undefined,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { cleanTarget } from "../../../descriptors/voicegateway2/utils/helper";
|
|
3
3
|
import { isValidUrl, isValidPhoneNumber } from "../utils/helper";
|
|
4
4
|
export const transfer = {
|
|
5
|
-
handleInput(endpointType, params, isGenericNode = false, recognitionChannel, sttVendor, sttLanguage, googleModel,
|
|
5
|
+
handleInput(endpointType, params, isGenericNode = false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, mediaPath, anchorMedia) {
|
|
6
6
|
try {
|
|
7
7
|
switch (endpointType) {
|
|
8
8
|
case "bandwidth":
|
|
@@ -21,14 +21,14 @@ export const transfer = {
|
|
|
21
21
|
return this.handleAudioCodesInput(prepareTransferParams(params), endpointType);
|
|
22
22
|
case "voiceGateway2":
|
|
23
23
|
default:
|
|
24
|
-
return this.handleVGInput(prepareTransferParams(params), recognitionChannel, sttVendor, sttLanguage, googleModel,
|
|
24
|
+
return this.handleVGInput(prepareTransferParams(params), recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, mediaPath, anchorMedia);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
|
28
28
|
throw Error(error.message);
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
handleVGInput(transferParam, recognitionChannel, sttVendor, sttLanguage, googleModel,
|
|
31
|
+
handleVGInput(transferParam, recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, mediaPath, anchorMedia) {
|
|
32
32
|
const { transferType, transferTarget, transferReason, referredBy, useTransferSipHeaders, transferSipHeaders, dialMusic, dialTranscriptionWebhook, dialCallerId, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, dialTimeout, timeLimit, sttLabel } = transferParam;
|
|
33
33
|
const payload = {
|
|
34
34
|
_voiceGateway2: {
|
|
@@ -119,9 +119,9 @@ export const transfer = {
|
|
|
119
119
|
recognizer.model = googleModel;
|
|
120
120
|
}
|
|
121
121
|
if (recognizer.vendor === 'deepgram') {
|
|
122
|
-
recognizer.model =
|
|
122
|
+
recognizer.model = sttModel;
|
|
123
123
|
recognizer.deepgramOptions = {
|
|
124
|
-
model:
|
|
124
|
+
model: sttModel,
|
|
125
125
|
punctuate: !sttDisablePunctuation,
|
|
126
126
|
endpointing: deepgramEndpointing ? deepgramEndpointingValue : false,
|
|
127
127
|
smartFormatting: deepgramSmartFormatting !== null && deepgramSmartFormatting !== void 0 ? deepgramSmartFormatting : false
|
|
@@ -262,7 +262,7 @@ export const voiceConfigFields = [
|
|
|
262
262
|
defaultValue: "",
|
|
263
263
|
params: {
|
|
264
264
|
languageKey: "config.sttLanguage",
|
|
265
|
-
modelKey: "config.
|
|
265
|
+
modelKey: "config.sttModel",
|
|
266
266
|
}
|
|
267
267
|
},
|
|
268
268
|
{
|
|
@@ -273,7 +273,7 @@ export const voiceConfigFields = [
|
|
|
273
273
|
defaultValue: "",
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
|
-
key: "
|
|
276
|
+
key: "sttModel",
|
|
277
277
|
type: "sttSelect",
|
|
278
278
|
label: "_unused_",
|
|
279
279
|
description: "_unused_",
|
|
@@ -246,7 +246,7 @@ export const voiceConfigFields = [
|
|
|
246
246
|
defaultValue: "",
|
|
247
247
|
params: {
|
|
248
248
|
languageKey: "config.sttLanguage",
|
|
249
|
-
modelKey: "config.
|
|
249
|
+
modelKey: "config.sttModel",
|
|
250
250
|
}
|
|
251
251
|
},
|
|
252
252
|
{
|
|
@@ -257,14 +257,22 @@ export const voiceConfigFields = [
|
|
|
257
257
|
defaultValue: "",
|
|
258
258
|
},
|
|
259
259
|
{
|
|
260
|
-
key: "
|
|
260
|
+
key: "sttModel",
|
|
261
261
|
type: "sttSelect",
|
|
262
262
|
label: "_unused_",
|
|
263
263
|
description: "_unused_",
|
|
264
264
|
defaultValue: "",
|
|
265
265
|
condition: {
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
and: [
|
|
267
|
+
{
|
|
268
|
+
key: "sttVendor",
|
|
269
|
+
value: "deepgram"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
key: "sttVendor",
|
|
273
|
+
value: "openai"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
268
276
|
}
|
|
269
277
|
},
|
|
270
278
|
{
|
|
@@ -1094,6 +1102,7 @@ export const setSessionConfigNode = createNodeDescriptor({
|
|
|
1094
1102
|
try {
|
|
1095
1103
|
const voiceSettings = voiceConfigParamsToVoiceSettings(config, api);
|
|
1096
1104
|
const payload = setSessionConfig.handleVGInput(voiceSettings, sessionParams, api);
|
|
1105
|
+
api.log("error", JSON.stringify(payload));
|
|
1097
1106
|
yield api.say(null, {
|
|
1098
1107
|
_cognigy: payload,
|
|
1099
1108
|
});
|
|
@@ -313,7 +313,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
313
313
|
defaultValue: "",
|
|
314
314
|
params: {
|
|
315
315
|
languageKey: "config.sttLanguage",
|
|
316
|
-
modelKey: "config.
|
|
316
|
+
modelKey: "config.sttModel"
|
|
317
317
|
},
|
|
318
318
|
condition: {
|
|
319
319
|
key: "transferType",
|
|
@@ -321,7 +321,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
321
321
|
}
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
|
-
key: "
|
|
324
|
+
key: "sttModel",
|
|
325
325
|
type: "sttSelect",
|
|
326
326
|
label: "_unused_",
|
|
327
327
|
description: "_unused_",
|
|
@@ -551,7 +551,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
551
551
|
summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
|
|
552
552
|
function: ({ cognigy, config, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
553
553
|
const { api, input } = cognigy;
|
|
554
|
-
const { transferType, transferTarget, referredBy, mediaPath, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, enableTimeLimit, timeLimit, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel,
|
|
554
|
+
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, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue, anchorMedia } = config;
|
|
555
555
|
const transferParams = {
|
|
556
556
|
transferType,
|
|
557
557
|
transferReason,
|
|
@@ -625,7 +625,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
625
625
|
transferParams.useTransferSipHeaders = false;
|
|
626
626
|
api.log("error", "Invalid JSON in Transfer SIP Headers");
|
|
627
627
|
}
|
|
628
|
-
const payload = transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel,
|
|
628
|
+
const payload = transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, media, anchorMedia);
|
|
629
629
|
yield api.say(null, {
|
|
630
630
|
_cognigy: payload,
|
|
631
631
|
});
|
|
@@ -21,6 +21,7 @@ export const GENERATIVE_AI_PROVIDER_EXTENSION = "@cognigy/generative-ai-provider
|
|
|
21
21
|
export const AUDIO_PREVIEW_PROVIDER_EXTENSION = "@cognigy/audio-preview-provider";
|
|
22
22
|
export const TRANSLATION_PROVIDER_EXTENSION = "@cognigy/translation-provider";
|
|
23
23
|
export const DOCUMENT_PARSER_PROVIDER_EXTENSION = "@cognigy/document-parser-provider";
|
|
24
|
+
export const NICE_CXONE_KNOWLEDGEHUB_EXTENSION = "@cognigy/nice-cxone-knowledgehub";
|
|
24
25
|
export const COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = {
|
|
25
26
|
ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID: "escalateIntentsHandoverLiveAgentInboxId",
|
|
26
27
|
ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE: "escalateIntentsAgentAssistInitMessage",
|
|
@@ -57,6 +57,7 @@ export const organisationDataSchema = {
|
|
|
57
57
|
disabled: { type: "boolean" },
|
|
58
58
|
name: { type: "string", minLength: 1, format: "resource-name" },
|
|
59
59
|
businessUnitId: { type: "string" },
|
|
60
|
+
tenantId: { type: "string" },
|
|
60
61
|
passwordPolicy: organisationPasswordPolicySchema,
|
|
61
62
|
quotaMaxChannelsPerProject: { type: "integer", minimum: 0 },
|
|
62
63
|
quotaMaxMessagesPerDay: { type: "integer", minimum: 0 },
|
|
@@ -715,7 +715,7 @@ export const anyEndpointSettingsSchema = {
|
|
|
715
715
|
title: "anyEndpointSettingsSchema",
|
|
716
716
|
type: "object",
|
|
717
717
|
additionalProperties: true,
|
|
718
|
-
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: {
|
|
718
|
+
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: {
|
|
719
719
|
type: "string",
|
|
720
720
|
enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
|
|
721
721
|
}, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
|
|
@@ -13,7 +13,16 @@ export const chartNodeExcerptSchema = {
|
|
|
13
13
|
analyticsLabel: { type: ["null", "string"], format: "analytics-label" },
|
|
14
14
|
type: { type: "string", maxLength: 200 },
|
|
15
15
|
extension: { type: "string", format: "package-name" },
|
|
16
|
-
localeReference: { type: "string", format: "mongo-id" }
|
|
16
|
+
localeReference: { type: "string", format: "mongo-id" },
|
|
17
|
+
mock: {
|
|
18
|
+
type: "object",
|
|
19
|
+
properties: {
|
|
20
|
+
isEnabled: { type: "boolean" },
|
|
21
|
+
code: { type: "string" },
|
|
22
|
+
transpiled: { type: "string" },
|
|
23
|
+
hasError: { type: "boolean" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
17
26
|
},
|
|
18
27
|
};
|
|
19
28
|
export const chartNodeRelationDataSchema = {
|
|
@@ -13,7 +13,8 @@ export const defaultNodeFields = [
|
|
|
13
13
|
"isDisabled",
|
|
14
14
|
"isEntryPoint",
|
|
15
15
|
"preview",
|
|
16
|
-
"analyticsLabel"
|
|
16
|
+
"analyticsLabel",
|
|
17
|
+
"mock"
|
|
17
18
|
];
|
|
18
19
|
export const searchableNodeFields = [
|
|
19
20
|
"comment",
|
|
@@ -60,7 +61,16 @@ export const nodeInDBSchema = {
|
|
|
60
61
|
resourceReference: { format: "mongo-id" },
|
|
61
62
|
projectReference: { format: "mongo-id" },
|
|
62
63
|
organisationReference: { format: "mongo-id" },
|
|
63
|
-
analyticsLabel: { format: "analytics-label" }
|
|
64
|
+
analyticsLabel: { format: "analytics-label" },
|
|
65
|
+
mock: {
|
|
66
|
+
type: "object",
|
|
67
|
+
properties: {
|
|
68
|
+
isEnabled: { type: "boolean" },
|
|
69
|
+
code: { type: "string" },
|
|
70
|
+
transpiled: { type: "string" },
|
|
71
|
+
hasError: { type: "boolean" }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
64
74
|
}
|
|
65
75
|
};
|
|
66
76
|
export const nodeDataSchema = {
|
|
@@ -97,7 +107,16 @@ export const nodeDataSchema = {
|
|
|
97
107
|
}
|
|
98
108
|
}
|
|
99
109
|
}
|
|
100
|
-
}
|
|
110
|
+
},
|
|
111
|
+
mock: {
|
|
112
|
+
type: "object",
|
|
113
|
+
properties: {
|
|
114
|
+
isEnabled: { type: "boolean" },
|
|
115
|
+
code: { type: "string" },
|
|
116
|
+
transpiled: { type: "string" },
|
|
117
|
+
hasError: { type: "boolean" }
|
|
118
|
+
}
|
|
119
|
+
},
|
|
101
120
|
}
|
|
102
121
|
};
|
|
103
122
|
export const updateNodeDataSchema = {
|
|
@@ -120,7 +139,16 @@ export const updateNodeDataSchema = {
|
|
|
120
139
|
config: {
|
|
121
140
|
type: "object",
|
|
122
141
|
additionalProperties: { propertyNames: { type: "string" } }
|
|
123
|
-
}
|
|
142
|
+
},
|
|
143
|
+
mock: {
|
|
144
|
+
type: "object",
|
|
145
|
+
properties: {
|
|
146
|
+
isEnabled: { type: "boolean" },
|
|
147
|
+
code: { type: "string" },
|
|
148
|
+
transpiled: { type: "string" },
|
|
149
|
+
hasError: { type: "boolean" }
|
|
150
|
+
}
|
|
151
|
+
},
|
|
124
152
|
}
|
|
125
153
|
};
|
|
126
154
|
export const nodeSchema = {
|
|
@@ -98,6 +98,7 @@ export const nodeFieldTypes = [
|
|
|
98
98
|
"checkAgentAvailabilityConfig",
|
|
99
99
|
"chipInput",
|
|
100
100
|
"code",
|
|
101
|
+
"mockCode",
|
|
101
102
|
"cognigyLLMText",
|
|
102
103
|
"cognigyText",
|
|
103
104
|
"cognigyTextArray",
|
|
@@ -442,6 +443,13 @@ export const nodeDescriptorSchema = {
|
|
|
442
443
|
additionalItems: false,
|
|
443
444
|
maxLength: 25,
|
|
444
445
|
items: nodeFieldAndSectionFormElementSchema
|
|
446
|
+
},
|
|
447
|
+
mocking: {
|
|
448
|
+
type: "object",
|
|
449
|
+
additionalProperties: false,
|
|
450
|
+
properties: {
|
|
451
|
+
defaultMockCode: { type: "string" }
|
|
452
|
+
}
|
|
445
453
|
}
|
|
446
454
|
}
|
|
447
455
|
};
|
|
@@ -48,7 +48,16 @@ export const chartExecutableNodeSchema = {
|
|
|
48
48
|
type: { type: "string", minLength: 1 },
|
|
49
49
|
label: nodeDataSchema.properties.label,
|
|
50
50
|
extension: { type: "string" },
|
|
51
|
-
analyticsLabel: { type: ["string", "null"], format: "analytics-label" }
|
|
51
|
+
analyticsLabel: { type: ["string", "null"], format: "analytics-label" },
|
|
52
|
+
mock: {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
isEnabled: { type: "boolean" },
|
|
56
|
+
code: { type: "string" },
|
|
57
|
+
transpiled: { type: "string" },
|
|
58
|
+
hasError: { type: "boolean" },
|
|
59
|
+
}
|
|
60
|
+
}
|
|
52
61
|
},
|
|
53
62
|
};
|
|
54
63
|
//# sourceMappingURL=IChartExecutableNode.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { entityMetaSchema } from "../IEntityMeta";
|
|
2
|
+
export const knowledgeConnectorExecutionStatus = ["none", "queued", "active", "done", "error"];
|
|
3
|
+
export const knowledgeConnectorDataSchema = {
|
|
4
|
+
title: "knowledgeConnectorDataSchema",
|
|
5
|
+
type: "object",
|
|
6
|
+
additionalProperties: false,
|
|
7
|
+
required: ["extension", "type", "config", "name", "version"],
|
|
8
|
+
properties: {
|
|
9
|
+
extension: { type: "string" },
|
|
10
|
+
type: { type: "string" },
|
|
11
|
+
version: { type: "string" },
|
|
12
|
+
config: {
|
|
13
|
+
type: "object",
|
|
14
|
+
additionalProperties: true
|
|
15
|
+
},
|
|
16
|
+
name: { type: "string", format: "resource-name" },
|
|
17
|
+
schedule: {
|
|
18
|
+
type: "object",
|
|
19
|
+
additionalProperties: false,
|
|
20
|
+
properties: {
|
|
21
|
+
enabled: { type: "boolean" },
|
|
22
|
+
start: { type: "integer", format: "timestamp" },
|
|
23
|
+
hour: { type: "integer", minimum: 0, maximum: 23 },
|
|
24
|
+
minute: { type: "integer", minimum: 0, maximum: 59 },
|
|
25
|
+
weekDays: { type: "array", items: { type: "integer", minimum: 0, maximum: 6 } }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export const knowledgeConnectorSchema = {
|
|
31
|
+
title: "knowledgeConnectorDataSchema",
|
|
32
|
+
type: "object",
|
|
33
|
+
additionalProperties: false,
|
|
34
|
+
required: [
|
|
35
|
+
"extension",
|
|
36
|
+
"type",
|
|
37
|
+
"config",
|
|
38
|
+
"name",
|
|
39
|
+
"version"
|
|
40
|
+
],
|
|
41
|
+
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), 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: {
|
|
42
|
+
type: "string",
|
|
43
|
+
enum: [...knowledgeConnectorExecutionStatus]
|
|
44
|
+
} })
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=IKnowledgeConnector.js.map
|
|
@@ -34,6 +34,6 @@ export const knowledgeSourceSchema = {
|
|
|
34
34
|
title: "knowledgeSourceSchema",
|
|
35
35
|
type: "object",
|
|
36
36
|
additionalProperties: false,
|
|
37
|
-
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), knowledgeSourceDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, storeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
37
|
+
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), knowledgeSourceDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, storeReference: { type: "string", format: "mongo-id" }, connectorReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=IKnowledgeSource.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var ESchedulerFrequencyRest_2_0;
|
|
2
|
+
(function (ESchedulerFrequencyRest_2_0) {
|
|
3
|
+
ESchedulerFrequencyRest_2_0["DAILY"] = "daily";
|
|
4
|
+
ESchedulerFrequencyRest_2_0["EVERY_THREE_DAYS"] = "every three days";
|
|
5
|
+
ESchedulerFrequencyRest_2_0["WEEKLY"] = "weekly";
|
|
6
|
+
ESchedulerFrequencyRest_2_0["BIWEEKLY"] = "biweekly";
|
|
7
|
+
ESchedulerFrequencyRest_2_0["MONTHLY"] = "monthly";
|
|
8
|
+
})(ESchedulerFrequencyRest_2_0 || (ESchedulerFrequencyRest_2_0 = {}));
|
|
9
|
+
//# sourceMappingURL=ISchedulerRest_2_0.js.map
|
package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js
CHANGED
|
@@ -18,4 +18,18 @@ export var ESentimentTypeRest_2_0;
|
|
|
18
18
|
ESentimentTypeRest_2_0["NEUTRAL"] = "NEUTRAL";
|
|
19
19
|
ESentimentTypeRest_2_0["NEGATIVE"] = "NEGATIVE";
|
|
20
20
|
})(ESentimentTypeRest_2_0 || (ESentimentTypeRest_2_0 = {}));
|
|
21
|
+
export var ESimulationStatusRest_2_0;
|
|
22
|
+
(function (ESimulationStatusRest_2_0) {
|
|
23
|
+
ESimulationStatusRest_2_0["SUCCESS"] = "success";
|
|
24
|
+
ESimulationStatusRest_2_0["FAILED"] = "failed";
|
|
25
|
+
ESimulationStatusRest_2_0["ERROR"] = "error";
|
|
26
|
+
})(ESimulationStatusRest_2_0 || (ESimulationStatusRest_2_0 = {}));
|
|
27
|
+
export var ESimulationErrorCategoryRest_2_0;
|
|
28
|
+
(function (ESimulationErrorCategoryRest_2_0) {
|
|
29
|
+
ESimulationErrorCategoryRest_2_0["NONE"] = "none";
|
|
30
|
+
ESimulationErrorCategoryRest_2_0["AI_AGENT_TIMEOUT"] = "ai_agent_timeout";
|
|
31
|
+
ESimulationErrorCategoryRest_2_0["LLM_PROVIDER_ERROR"] = "llm_provider_error";
|
|
32
|
+
ESimulationErrorCategoryRest_2_0["AI_AGENT_ERROR"] = "ai_agent_error";
|
|
33
|
+
ESimulationErrorCategoryRest_2_0["UNKNOWN"] = "unknown";
|
|
34
|
+
})(ESimulationErrorCategoryRest_2_0 || (ESimulationErrorCategoryRest_2_0 = {}));
|
|
21
35
|
//# sourceMappingURL=ISimulationRunRest_2_0.js.map
|
|
@@ -3,4 +3,9 @@ export const SimulationRunBatchStatus = [
|
|
|
3
3
|
"COMPLETED",
|
|
4
4
|
"FAILED"
|
|
5
5
|
];
|
|
6
|
+
export var SuccessCriterionTypeRest_2_0;
|
|
7
|
+
(function (SuccessCriterionTypeRest_2_0) {
|
|
8
|
+
SuccessCriterionTypeRest_2_0["TEXT"] = "text";
|
|
9
|
+
SuccessCriterionTypeRest_2_0["GOAL_COMPLETED"] = "goalCompleted";
|
|
10
|
+
})(SuccessCriterionTypeRest_2_0 || (SuccessCriterionTypeRest_2_0 = {}));
|
|
6
11
|
//# sourceMappingURL=ISimulationRunBatchRest_2_0.js.map
|