@cognigy/rest-api-client 4.97.0 → 4.99.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 +14 -0
- package/build/RestAPIClient.js +7 -0
- package/build/apigroups/AIOpsCenterAPIGroup_2_0.js +22 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +8 -8
- package/build/apigroups/index.js +3 -1
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +0 -44
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +0 -45
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +0 -43
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +0 -45
- package/build/shared/charts/descriptors/analytics/completeGoal.js +2 -2
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/mistralProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/index.js +2 -0
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +10 -1
- package/build/shared/charts/descriptors/logic/think.js +2 -4
- package/build/shared/charts/descriptors/message/say.js +6 -3
- package/build/shared/charts/descriptors/service/GPTPrompt.js +14 -4
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +226 -66
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +180 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +196 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +5 -1
- package/build/shared/charts/descriptors/service/index.js +5 -1
- package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +9 -8
- package/build/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +24 -2
- package/build/shared/constants.js +8 -1
- package/build/shared/interfaces/IProfileSchema.js +1 -1
- package/build/shared/interfaces/amqpInterface.js +3 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +10 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +6 -1
- package/build/shared/interfaces/messageAPI/handover.js +6 -1
- package/build/shared/interfaces/resources/IAiAgent.js +3 -1
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +10 -1
- package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
- package/build/shared/interfaces/restAPI/opsCenter/alerts/IIndexOpsCenterAlertsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/alerts/IOpsCenterAlert.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/component/IOpsCenterComponents.js +34 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IDeleteOpsCenterErrorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IGetOpsCenterErrorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IIndexOpsCenterErrorsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/errors/IOpsCenterError.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetrics.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRangeRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/metrics/IOpsCenterMetricsConfig.js +6 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IGetOpsCenterObservationConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +4 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IPatchOpsCenterObservationConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/opsCenter/observationConfig/ISetupOpsCenterObservationConfigRest_2_0.js +3 -0
- package/build/shared/interfaces/security/IIdentityProvider.js +1 -0
- package/dist/esm/RestAPIClient.js +7 -0
- package/dist/esm/apigroups/AIOpsCenterAPIGroup_2_0.js +18 -0
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +8 -8
- package/dist/esm/apigroups/index.js +1 -0
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +0 -44
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +0 -45
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +0 -43
- package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +0 -45
- package/dist/esm/shared/charts/descriptors/analytics/completeGoal.js +2 -2
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +4 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/mistralProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/index.js +3 -1
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +12 -3
- package/dist/esm/shared/charts/descriptors/logic/think.js +2 -4
- package/dist/esm/shared/charts/descriptors/message/say.js +6 -3
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +18 -8
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +226 -66
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +178 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +193 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +5 -1
- package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/hangup.mapper.js +9 -8
- package/dist/esm/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/hangup.js +24 -2
- package/dist/esm/shared/constants.js +7 -0
- package/dist/esm/shared/interfaces/IProfileSchema.js +1 -1
- package/dist/esm/shared/interfaces/amqpInterface.js +3 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +10 -1
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +6 -1
- package/dist/esm/shared/interfaces/messageAPI/handover.js +6 -1
- package/dist/esm/shared/interfaces/resources/IAiAgent.js +3 -1
- package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +9 -0
- package/dist/esm/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/alerts/IIndexOpsCenterAlertsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/alerts/IOpsCenterAlert.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/component/IOpsCenterComponents.js +31 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IDeleteOpsCenterErrorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IGetOpsCenterErrorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IIndexOpsCenterErrorsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IOpsCenterError.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetrics.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRangeRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IOpsCenterMetricsConfig.js +5 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IGetOpsCenterObservationConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +3 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IPatchOpsCenterObservationConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/ISetupOpsCenterObservationConfigRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/security/IIdentityProvider.js +1 -0
- package/package.json +2 -2
- package/types/index.d.ts +336 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAICompatibleMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
|
|
3
|
+
exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAICompatibleMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.mistralMetaSchema = exports.anthropicMetaSchema = void 0;
|
|
4
4
|
/* Custom Modules */
|
|
5
5
|
const createQuerySchema_1 = require("../../helper/createQuerySchema");
|
|
6
6
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
@@ -14,6 +14,14 @@ exports.anthropicMetaSchema = {
|
|
|
14
14
|
customModel: { type: ["string", "null"] }
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
+
exports.mistralMetaSchema = {
|
|
18
|
+
title: "mistralMetaSchema",
|
|
19
|
+
type: "object",
|
|
20
|
+
additionalProperties: false,
|
|
21
|
+
properties: {
|
|
22
|
+
customModel: { type: ["string", "null"] }
|
|
23
|
+
}
|
|
24
|
+
};
|
|
17
25
|
exports.awsBedrockMetaSchema = {
|
|
18
26
|
title: "awsBedrockMetaSchema",
|
|
19
27
|
type: "object",
|
|
@@ -132,6 +140,7 @@ exports.largeLanguageModelDataSchema = {
|
|
|
132
140
|
googleGemini: exports.googleGeminiMetaSchema,
|
|
133
141
|
alephAlpha: exports.alephAlphaMetaSchema,
|
|
134
142
|
anthropic: exports.anthropicMetaSchema,
|
|
143
|
+
mistral: exports.mistralMetaSchema,
|
|
135
144
|
awsBedrock: exports.awsBedrockMetaSchema,
|
|
136
145
|
fallbacks: exports.llmFallbackSchema,
|
|
137
146
|
resourceLevel: { type: "string", enum: ["organisation", "project"] },
|
|
@@ -30,6 +30,10 @@ exports.generativeAISettingsDataSchema = {
|
|
|
30
30
|
type: "object",
|
|
31
31
|
additionalProperties: false,
|
|
32
32
|
properties: {
|
|
33
|
+
designTimeGeneration: {
|
|
34
|
+
type: "object",
|
|
35
|
+
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
36
|
+
},
|
|
33
37
|
intentSentenceGeneration: {
|
|
34
38
|
type: "object",
|
|
35
39
|
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.arrayOfTSubComponent = exports.arrayOfTHandoverProviderSubComponent = exports.arrayOfTFlowSubComponent = exports.arrayOfTEndpointSubComponent = exports.arrayOfTVoiceGatewaySubComponent = exports.arrayOfTMainComponent = void 0;
|
|
4
|
+
// This is a copy of the Component in the service-sentinel/opsCenter
|
|
5
|
+
exports.arrayOfTMainComponent = ["VoiceGateway", "Endpoint", "Flow", "HandoverProvider"];
|
|
6
|
+
/**
|
|
7
|
+
* Each main component has a set of subcomponents and Errors and Alerts
|
|
8
|
+
* are also tagged with a respective subcomponents.
|
|
9
|
+
*/
|
|
10
|
+
exports.arrayOfTVoiceGatewaySubComponent = ["SpeechToText", "TextToSpeech"];
|
|
11
|
+
exports.arrayOfTEndpointSubComponent = [
|
|
12
|
+
"InputTransformer",
|
|
13
|
+
"OutputTransformer",
|
|
14
|
+
"ExecutionFinishedTransformer",
|
|
15
|
+
"InjectTransformer",
|
|
16
|
+
"NotifyTransformer",
|
|
17
|
+
"RealtimeTranslation",
|
|
18
|
+
"MessageRoundtrip",
|
|
19
|
+
];
|
|
20
|
+
exports.arrayOfTFlowSubComponent = [
|
|
21
|
+
"FlowNodeExecution",
|
|
22
|
+
"NaturalLanguageUnderstanding",
|
|
23
|
+
"OutboundHTTPCalls",
|
|
24
|
+
"LargeLanguageModelCalls",
|
|
25
|
+
"KnowledgeAIQueries",
|
|
26
|
+
];
|
|
27
|
+
exports.arrayOfTHandoverProviderSubComponent = ["OutboundHTTPCalls"];
|
|
28
|
+
exports.arrayOfTSubComponent = [
|
|
29
|
+
...exports.arrayOfTVoiceGatewaySubComponent,
|
|
30
|
+
...exports.arrayOfTEndpointSubComponent,
|
|
31
|
+
...exports.arrayOfTFlowSubComponent,
|
|
32
|
+
...exports.arrayOfTHandoverProviderSubComponent,
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=IOpsCenterComponents.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const chartTypes = ["bar-chart", "heat-map", "line-chart", "alerts-errors", "health-status-monitor"];
|
|
4
|
+
const segmentConfigArray = ["voice-gateway", "endpoints", "flows", "overview", "handover-provider"];
|
|
5
|
+
const availableColorsArray = ["default", "blue", "yellow", "green", "purple", "red"];
|
|
6
|
+
//# sourceMappingURL=IOpsCenterMetricsConfig.js.map
|
|
@@ -25,6 +25,7 @@ exports.samlIdentityProviderDataSchema = {
|
|
|
25
25
|
idpLoginEndpoint: { type: "string", minLength: 1, maxLength: 5000 },
|
|
26
26
|
idpLogoutEndpoint: { type: "string", minLength: 1, maxLength: 5000 },
|
|
27
27
|
idpCertificate: { type: "string", minLength: 1, maxLength: 15000 },
|
|
28
|
+
wantAuthnResponseSigned: { type: "boolean" },
|
|
28
29
|
decryptionPrivateKey: { type: "string", minLength: 1, maxLength: 15000 },
|
|
29
30
|
idpDisableRequestedAuthnContext: { type: "boolean" },
|
|
30
31
|
}
|
|
@@ -14,6 +14,7 @@ import { MetricsAPIGroup_2_0 } from "./apigroups/MetricsAPIGroup_2_0";
|
|
|
14
14
|
import { ResourcesAPIGroup_2_0 } from "./apigroups/ResourcesAPIGroup_2_0";
|
|
15
15
|
import { SessionsAPIGroup_2_0 } from "./apigroups/SessionsAPIGroup_2_0";
|
|
16
16
|
import { setLogger } from "./shared/helper/logger";
|
|
17
|
+
import { AIOpsCenterAPIGroup_2_0 } from "./apigroups/AIOpsCenterAPIGroup_2_0";
|
|
17
18
|
export const RestAPIClient = function (config) {
|
|
18
19
|
var _a;
|
|
19
20
|
if (!(this instanceof RestAPIClient)) {
|
|
@@ -82,6 +83,12 @@ export const RestAPIClient = function (config) {
|
|
|
82
83
|
plugins.push(AnalyticsAPIGroup_2_0);
|
|
83
84
|
break;
|
|
84
85
|
}
|
|
86
|
+
switch (config.versions.opsCenter) {
|
|
87
|
+
default:
|
|
88
|
+
case "2.0":
|
|
89
|
+
plugins.push(AIOpsCenterAPIGroup_2_0);
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
85
92
|
const Client = Base.plugin(plugins);
|
|
86
93
|
Client.config = config;
|
|
87
94
|
Client.prototype.getHttpAdapter = () => {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { GenericAPIFn } from "../GenericAPIFn";
|
|
2
|
+
import { stringifyQuery } from "../shared/helper/rest/query";
|
|
3
|
+
export function AIOpsCenterAPIGroup_2_0(instance) {
|
|
4
|
+
const self = instance;
|
|
5
|
+
return {
|
|
6
|
+
indexOpsCenterErrors: (args, options) => GenericAPIFn(`/beta/errors?${stringifyQuery(args)}`, "GET", self)(args, options),
|
|
7
|
+
getOpsCenterErrorById: (args, options) => GenericAPIFn(`/beta/errors/${args.errorId}`, "GET", self)(args, options),
|
|
8
|
+
deleteOpsCenterErrorById: (args, options) => GenericAPIFn(`/beta/errors/${args.errorId}`, "DELETE", self)(args, options),
|
|
9
|
+
getOpsCenterMetrics: (args, options) => GenericAPIFn(`/beta/v2/metrics?${stringifyQuery(args)}`, "GET", self)(args, options),
|
|
10
|
+
getOpsCenterMetricsConfig: (options) => GenericAPIFn("/beta/metrics/config", "GET", self)({}, options),
|
|
11
|
+
getOpsCenterMetricsRange: (args, options) => GenericAPIFn(`/beta/v2/metrics/range?${stringifyQuery(args)}`, "GET", self)(args, options),
|
|
12
|
+
getOpsCenterObservationConfig: (options) => GenericAPIFn("/beta/organisations/observationconfig", "GET", self)({}, options),
|
|
13
|
+
setupOpsCenterObservationConfig: (args, options) => GenericAPIFn("/beta/organisations/setupobservationconfig", "POST", self)(args, options),
|
|
14
|
+
patchOpsCenterObservationConfig: (args, options) => GenericAPIFn("/beta/organisations/observationconfig", "PATCH", self)(args, options),
|
|
15
|
+
indexOpsCenterAlerts: (args, options) => GenericAPIFn(`/beta/alerts?${stringifyQuery(args)}`, "GET", self)(args, options)
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=AIOpsCenterAPIGroup_2_0.js.map
|
|
@@ -533,17 +533,17 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
|
|
|
533
533
|
return GenericAPIFn(`/new/v2.0/aicopilotconfigs/${configId}`, "PATCH", self)(args, options);
|
|
534
534
|
},
|
|
535
535
|
deleteAgentAssistConfig: ({ configId }, options) => GenericAPIFn(`/new/v2.0/aicopilotconfigs/${configId}`, "DELETE", self)(undefined, options),
|
|
536
|
-
createAiAgent: (args, options) => GenericAPIFn("/new/
|
|
537
|
-
indexAiAgents: (args, options) => GenericAPIFn(`/new/
|
|
538
|
-
readAiAgent: ({ aiAgentId }, options) => GenericAPIFn(`/new/
|
|
536
|
+
createAiAgent: (args, options) => GenericAPIFn("/new/v2.0/aiagents", "POST", self)(args, options),
|
|
537
|
+
indexAiAgents: (args, options) => GenericAPIFn(`/new/v2.0/aiagents?${stringifyQuery(args)}`, "GET", self)(undefined, options),
|
|
538
|
+
readAiAgent: ({ aiAgentId }, options) => GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}`, "GET", self)(undefined, options),
|
|
539
539
|
updateAiAgent: (_a, options) => {
|
|
540
540
|
var { aiAgentId } = _a, args = __rest(_a, ["aiAgentId"]);
|
|
541
|
-
return GenericAPIFn(`/new/
|
|
541
|
+
return GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}`, "PATCH", self)(args, options);
|
|
542
542
|
},
|
|
543
|
-
deleteAiAgent: ({ aiAgentId }, options) => GenericAPIFn(`/new/
|
|
544
|
-
validateAiAgentName: (args, options) => GenericAPIFn("/new/
|
|
545
|
-
getAiAgentHiringTemplates: (args, options) => GenericAPIFn("/new/
|
|
546
|
-
hireAiAgent: (args, options) => GenericAPIFn("/new/
|
|
543
|
+
deleteAiAgent: ({ aiAgentId }, options) => GenericAPIFn(`/new/v2.0/aiagents/${aiAgentId}`, "DELETE", self)(undefined, options),
|
|
544
|
+
validateAiAgentName: (args, options) => GenericAPIFn("/new/v2.0/aiagents/validatename", "POST", self)(args, options),
|
|
545
|
+
getAiAgentHiringTemplates: (args, options) => GenericAPIFn("/new/v2.0/aiagents/hire/templates", "GET", self)(args, options),
|
|
546
|
+
hireAiAgent: (args, options) => GenericAPIFn("/new/v2.0/aiagents/hire", "POST", self)(args, options),
|
|
547
547
|
generateNodeOutput(_a, options) {
|
|
548
548
|
var { flowId } = _a, args = __rest(_a, ["flowId"]);
|
|
549
549
|
return GenericAPIFn(`/new/v2.0/flows/${flowId}/chart/nodes/output/generate`, "POST", self)(args, options);
|
|
@@ -10,4 +10,5 @@ export { ManagementAPIGroup_2_0 } from "./ManagementAPIGroup_2_0";
|
|
|
10
10
|
export { ResourcesAPIGroup_2_0 } from "./ResourcesAPIGroup_2_0";
|
|
11
11
|
export { SessionsAPIGroup_2_0 } from "./SessionsAPIGroup_2_0";
|
|
12
12
|
export { AnalyticsAPIGroup_2_0 } from "./AnalyticsAPIGroup_2_0";
|
|
13
|
+
export { AIOpsCenterAPIGroup_2_0 } from "./AIOpsCenterAPIGroup_2_0";
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js
CHANGED
|
@@ -190,50 +190,6 @@ const sourcesElements = (fontSize, source) => {
|
|
|
190
190
|
const postbackScript = (tileId, postMessageUrl, enableCopyToClipboard) => `
|
|
191
191
|
<script>
|
|
192
192
|
(function () {
|
|
193
|
-
const u = (o) => ({ __INTER_FRAME_SOCKET_MESSAGE: !0, workspaceEvent: o }),
|
|
194
|
-
h = (o, e) => ({ type: o, payload: e }),
|
|
195
|
-
w = (o) => {
|
|
196
|
-
var e;
|
|
197
|
-
return !!((e = o.data) != null && e.__INTER_FRAME_SOCKET_MESSAGE);
|
|
198
|
-
};
|
|
199
|
-
class b {
|
|
200
|
-
constructor(e, a, d) {
|
|
201
|
-
(this.sourceWindow = e),
|
|
202
|
-
(this.targetWindow = a),
|
|
203
|
-
(this.targetOrigin = d),
|
|
204
|
-
(this.emit = (s, r) => {
|
|
205
|
-
const t = h(s, r),
|
|
206
|
-
i = u(t);
|
|
207
|
-
this.targetWindow.postMessage(i, this.targetOrigin);
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
class c {
|
|
212
|
-
constructor() {
|
|
213
|
-
console.log(document.referrer ?? window.origin);
|
|
214
|
-
|
|
215
|
-
this.socket = new b(
|
|
216
|
-
window,
|
|
217
|
-
window.parent,
|
|
218
|
-
new URL(
|
|
219
|
-
document?.referrer ||
|
|
220
|
-
window?.origin ||
|
|
221
|
-
"https://agent-assist-dev.cognigy.ai",
|
|
222
|
-
).origin,
|
|
223
|
-
);
|
|
224
|
-
c.log("initialized");
|
|
225
|
-
return this; // Return this object.
|
|
226
|
-
}
|
|
227
|
-
postback(e) {
|
|
228
|
-
this.socket.emit("postback", e); // Send the postback event immediately.
|
|
229
|
-
return this; // Return this object for chaining.
|
|
230
|
-
}
|
|
231
|
-
static log(...e) {
|
|
232
|
-
console.log("[AgentAssistWorkspaceSDK]", ...e);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
window.SDK = new c();
|
|
236
|
-
|
|
237
193
|
const triggerSearch = () => {
|
|
238
194
|
const input = document.getElementById("searchInput").value;
|
|
239
195
|
const data = { searchString: input, tileId: "${tileId}" };
|
|
@@ -18,51 +18,6 @@ const template = () => `
|
|
|
18
18
|
</button>
|
|
19
19
|
</div>
|
|
20
20
|
<script>
|
|
21
|
-
|
|
22
|
-
const u = (o) => ({ __INTER_FRAME_SOCKET_MESSAGE: !0, workspaceEvent: o }),
|
|
23
|
-
h = (o, e) => ({ type: o, payload: e }),
|
|
24
|
-
w = (o) => {
|
|
25
|
-
var e;
|
|
26
|
-
return !!((e = o.data) != null && e.__INTER_FRAME_SOCKET_MESSAGE);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
class b {
|
|
30
|
-
|
|
31
|
-
constructor(e, a, d) {
|
|
32
|
-
(this.sourceWindow = e),
|
|
33
|
-
(this.targetWindow = a),
|
|
34
|
-
(this.targetOrigin = d),
|
|
35
|
-
(this.emit = (s, r) => {
|
|
36
|
-
const t = h(s, r),
|
|
37
|
-
i = u(t);
|
|
38
|
-
this.targetWindow.postMessage(i, this.targetOrigin);
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
class c {
|
|
45
|
-
constructor() {
|
|
46
|
-
|
|
47
|
-
this.socket = new b(
|
|
48
|
-
window,
|
|
49
|
-
window.parent,
|
|
50
|
-
new URL(document?.referrer || window?.origin).origin
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
return this; // Return this object.
|
|
54
|
-
}
|
|
55
|
-
postback(e) {
|
|
56
|
-
this.socket.emit("postback", e); // Send the postback event immediately.
|
|
57
|
-
return this; // Return this object for chaining.
|
|
58
|
-
}
|
|
59
|
-
static log(...e) {
|
|
60
|
-
console.log("[AgentAssistWorkspaceSDK]", ...e);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
window.SDK = new c();
|
|
65
|
-
|
|
66
21
|
document.getElementById('postbackButton').onclick = (event) => {
|
|
67
22
|
// data to be send in postback
|
|
68
23
|
const data = '__secureForms_init__'
|
|
@@ -27,52 +27,9 @@ const template = (params) => {
|
|
|
27
27
|
</p>
|
|
28
28
|
</div>
|
|
29
29
|
<script>
|
|
30
|
-
|
|
31
|
-
const u = (o) => ({ __INTER_FRAME_SOCKET_MESSAGE: !0, workspaceEvent: o }),
|
|
32
|
-
h = (o, e) => ({ type: o, payload: e }),
|
|
33
|
-
w = (o) => {
|
|
34
|
-
var e;
|
|
35
|
-
return !!((e = o.data) != null && e.__INTER_FRAME_SOCKET_MESSAGE);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
class b {
|
|
39
|
-
|
|
40
|
-
constructor(e, a, d) {
|
|
41
|
-
(this.sourceWindow = e),
|
|
42
|
-
(this.targetWindow = a),
|
|
43
|
-
(this.targetOrigin = d),
|
|
44
|
-
(this.emit = (s, r) => {
|
|
45
|
-
const t = h(s, r),
|
|
46
|
-
i = u(t);
|
|
47
|
-
this.targetWindow.postMessage(i, this.targetOrigin);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
class c {
|
|
54
|
-
constructor() {
|
|
55
|
-
|
|
56
|
-
this.socket = new b(
|
|
57
|
-
window,
|
|
58
|
-
window.parent,
|
|
59
|
-
new URL(document?.referrer || window?.origin).origin
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
return this; // Return this object.
|
|
63
|
-
}
|
|
64
|
-
sendMessage(e) {
|
|
65
|
-
this.socket.emit("sendMessage", e); // Send text message to handover session .
|
|
66
|
-
return this; // Return this object for chaining.
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
window.SDK = new c();
|
|
71
|
-
|
|
72
30
|
if (!${appLinkSent}) {
|
|
73
31
|
window.SDK.sendMessage?.("${appUrl}");
|
|
74
32
|
}
|
|
75
|
-
|
|
76
33
|
</script>
|
|
77
34
|
</body>
|
|
78
35
|
</html>
|
package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js
CHANGED
|
@@ -21,51 +21,6 @@ const template = (params) => {
|
|
|
21
21
|
</button>
|
|
22
22
|
</div>
|
|
23
23
|
<script>
|
|
24
|
-
|
|
25
|
-
const u = (o) => ({ __INTER_FRAME_SOCKET_MESSAGE: !0, workspaceEvent: o }),
|
|
26
|
-
h = (o, e) => ({ type: o, payload: e }),
|
|
27
|
-
w = (o) => {
|
|
28
|
-
var e;
|
|
29
|
-
return !!((e = o.data) != null && e.__INTER_FRAME_SOCKET_MESSAGE);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
class b {
|
|
33
|
-
|
|
34
|
-
constructor(e, a, d) {
|
|
35
|
-
(this.sourceWindow = e),
|
|
36
|
-
(this.targetWindow = a),
|
|
37
|
-
(this.targetOrigin = d),
|
|
38
|
-
(this.emit = (s, r) => {
|
|
39
|
-
const t = h(s, r),
|
|
40
|
-
i = u(t);
|
|
41
|
-
this.targetWindow.postMessage(i, this.targetOrigin);
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
class c {
|
|
48
|
-
constructor() {
|
|
49
|
-
|
|
50
|
-
this.socket = new b(
|
|
51
|
-
window,
|
|
52
|
-
window.parent,
|
|
53
|
-
new URL(document?.referrer || window?.origin).origin
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
return this; // Return this object.
|
|
57
|
-
}
|
|
58
|
-
postback(e) {
|
|
59
|
-
this.socket.emit("postback", e); // Send the postback event immediately.
|
|
60
|
-
return this; // Return this object for chaining.
|
|
61
|
-
}
|
|
62
|
-
static log(...e) {
|
|
63
|
-
console.log("[AgentAssistWorkspaceSDK]", ...e);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
window.SDK = new c();
|
|
68
|
-
|
|
69
24
|
document.getElementById('postbackButton').onclick = (event) => {
|
|
70
25
|
// data to be send in postback
|
|
71
26
|
const data = '__secureForms_init__'
|
|
@@ -5,7 +5,7 @@ import { createNodeDescriptor } from "../../createNodeDescriptor";
|
|
|
5
5
|
* Node name: 'completeGoal'
|
|
6
6
|
*
|
|
7
7
|
* Purpose:
|
|
8
|
-
* Sets a goal as complete
|
|
8
|
+
* Sets a goal as complete (new name: tasks)
|
|
9
9
|
* @param goal the name of the goal to add to completedGoals array
|
|
10
10
|
*/
|
|
11
11
|
export const COMPLETE_GOAL = createNodeDescriptor({
|
|
@@ -37,7 +37,7 @@ export const COMPLETE_GOAL = createNodeDescriptor({
|
|
|
37
37
|
if (goal) {
|
|
38
38
|
api.completeGoal(goal);
|
|
39
39
|
input.completedGoals.push(goal);
|
|
40
|
-
(_a = api.logDebugMessage) === null || _a === void 0 ? void 0 : _a.call(api, `
|
|
40
|
+
(_a = api.logDebugMessage) === null || _a === void 0 ? void 0 : _a.call(api, `Task: ${goal}`);
|
|
41
41
|
}
|
|
42
42
|
})
|
|
43
43
|
});
|
|
@@ -9,6 +9,7 @@ import { GOOGLE_VERTEXAI_PROVIDER_CONNECTION } from "./googleVertexAIProviderCon
|
|
|
9
9
|
import { ALEPH_ALPHA_PROVIDER_CONNECTION } from "./alephAlphaProviderConnection";
|
|
10
10
|
import { AWS_BEDROCK_PROVIDER_CONNECTION } from "./awsBedrockProviderConnection";
|
|
11
11
|
import { OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION } from "./openAICompatibleProviderConnection";
|
|
12
|
+
import { MISTRAL_PROVIDER_CONNECTION } from "./mistralProviderConnection";
|
|
12
13
|
export { OPEN_AI_PROVIDER_CONNECTION } from "./openAIProviderConnection";
|
|
13
14
|
export { AZURE_OPEN_AI_PROVIDER_CONNECTION } from "./azureOpenAIProviderConnection";
|
|
14
15
|
export { AZURE_OPEN_AI_V2_PROVIDER_CONNECTION } from "./azureOpenAIProviderConnectionV2";
|
|
@@ -18,6 +19,7 @@ export { GOOGLE_VERTEXAI_PROVIDER_CONNECTION } from "./googleVertexAIProviderCon
|
|
|
18
19
|
export { ALEPH_ALPHA_PROVIDER_CONNECTION } from "./alephAlphaProviderConnection";
|
|
19
20
|
export { AWS_BEDROCK_PROVIDER_CONNECTION } from "./awsBedrockProviderConnection";
|
|
20
21
|
export { OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION } from "./openAICompatibleProviderConnection";
|
|
22
|
+
export { MISTRAL_PROVIDER_CONNECTION } from "./mistralProviderConnection";
|
|
21
23
|
export const cognigyGenerativeAIProviderModule = createExtension({
|
|
22
24
|
nodes: [],
|
|
23
25
|
connections: [
|
|
@@ -29,7 +31,8 @@ export const cognigyGenerativeAIProviderModule = createExtension({
|
|
|
29
31
|
GOOGLE_VERTEXAI_PROVIDER_CONNECTION,
|
|
30
32
|
ALEPH_ALPHA_PROVIDER_CONNECTION,
|
|
31
33
|
AWS_BEDROCK_PROVIDER_CONNECTION,
|
|
32
|
-
OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION
|
|
34
|
+
OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION,
|
|
35
|
+
MISTRAL_PROVIDER_CONNECTION
|
|
33
36
|
]
|
|
34
37
|
});
|
|
35
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export const MISTRAL_PROVIDER_CONNECTION = {
|
|
2
|
+
type: "MistralProvider",
|
|
3
|
+
label: "UI__NODE_EDITOR__MISTRAL_PROVIDER_CONNECTION__LABEL",
|
|
4
|
+
fields: [
|
|
5
|
+
{ fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
|
|
6
|
+
],
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=mistralProviderConnection.js.map
|
|
@@ -11,7 +11,7 @@ import { REGEX_SLOT_FILLER, EXECUTE_COGNIGY_NLU, ADD_LEXICON_KEYPHRASE, FUZZY_SE
|
|
|
11
11
|
import { KNOWLEDGE_SEARCH, KNOWLEDGE_SEARCH_V2, SEARCH_EXTRACT_OUTPUT } from "./knowledgeSearch";
|
|
12
12
|
import { CONTINUOUS_ASR, DTMF, HANG_UP, PLAY, TRANSFER_VOICE, SESSION_SPEECH_PARAMETERS, USER_INPUT_TIMEOUT, SEND_METADATA, BARGE_IN, MUTE_SPEECH_INPUT, } from "./voice";
|
|
13
13
|
import { ACTIVATE_PROFILE, COMPLETE_GOAL, DEACTIVATE_PROFILE, DELETE_PROFILE, MERGE_PROFILE, UPDATE_PROFILE, ADD_MEMORY, BLIND_MODE, OVERWRITE_ANALYTICS, SET_RATING, REQUEST_RATING, TRACK_GOAL, } from "./analytics";
|
|
14
|
-
import { HANDOVER, HANDOVER_V2, CHECK_AGENT_AVAILABILITY, HTTP_REQUEST, HTTP_CONNECTION_BASIC, HTTP_CONNECTION_APIKEYAUTHKEY, HTTP_CONNECTION_APIKEYXKEY, HTTP_CONNECTION_OAUTH2, JWT_SECRET_CONNECTION, TRIGGER_FUNCTION, ON_SCHEDULING_ERROR, ON_SCHEDULED, GPT_PROMPT, CLOSE_HANDOVER, HANDOVER_INACTIVITY_TIMER, GPT_CONVERSATION, GPT_CONVERSATION_SUMMARY, LLM_ENTITY_EXTRACT, AI_AGENT_JOB, AI_AGENT_JOB_DEFAULT, AI_AGENT_JOB_TOOL, AI_AGENT_TOOL_ANSWER, AI_AGENT_HANDOVER, LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM } from "./service";
|
|
14
|
+
import { HANDOVER, HANDOVER_V2, CHECK_AGENT_AVAILABILITY, HTTP_REQUEST, HTTP_CONNECTION_BASIC, HTTP_CONNECTION_APIKEYAUTHKEY, HTTP_CONNECTION_APIKEYXKEY, HTTP_CONNECTION_OAUTH2, JWT_SECRET_CONNECTION, TRIGGER_FUNCTION, ON_SCHEDULING_ERROR, ON_SCHEDULED, GPT_PROMPT, CLOSE_HANDOVER, HANDOVER_INACTIVITY_TIMER, GPT_CONVERSATION, GPT_CONVERSATION_SUMMARY, LLM_ENTITY_EXTRACT, AI_AGENT_JOB, AI_AGENT_JOB_DEFAULT, AI_AGENT_JOB_TOOL, AI_AGENT_JOB_MCP_TOOL, AI_AGENT_JOB_CALL_MCP_TOOL, AI_AGENT_TOOL_ANSWER, AI_AGENT_HANDOVER, LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM } from "./service";
|
|
15
15
|
import { INIT_APP_SESSION, GET_APP_SESSION_PIN, SET_HTML_APP_STATE, SET_ADAPTIVE_CARD_APP_STATE, } from "./apps";
|
|
16
16
|
import { SET_IFRAME_TILE, SET_HTML_TILE, SEND_TILE_DATA, SET_SECURE_FORMS_TILE, SET_ADAPTIVE_CARD_TILE, SET_AGENT_ASSIST_GRID, NEXT_ACTION_ASSIST, SENTIMENT_ASSIST, TRANSCRIPT_ASSIST, IDENTITY_ASSIST, KNOWLEDGE_ASSIST, } from "./agentAssist";
|
|
17
17
|
import { ASSIST_INFO } from "./liveAgent";
|
|
@@ -136,6 +136,8 @@ if (process.env.DISABLE_FEATURE_TRANSCRIPT_MANAGER !== "true") {
|
|
|
136
136
|
nodes.push(AI_AGENT_JOB);
|
|
137
137
|
nodes.push(AI_AGENT_JOB_DEFAULT);
|
|
138
138
|
nodes.push(AI_AGENT_JOB_TOOL);
|
|
139
|
+
nodes.push(AI_AGENT_JOB_MCP_TOOL);
|
|
140
|
+
nodes.push(AI_AGENT_JOB_CALL_MCP_TOOL);
|
|
139
141
|
nodes.push(AI_AGENT_TOOL_ANSWER);
|
|
140
142
|
nodes.push(AI_AGENT_HANDOVER);
|
|
141
143
|
}
|
|
@@ -547,7 +547,7 @@ export const SEARCH_EXTRACT_OUTPUT = createNodeDescriptor({
|
|
|
547
547
|
},
|
|
548
548
|
tags: ["ai", "knowledgeSearch", "knowledge", "search"],
|
|
549
549
|
function: (knowledgeSearchParams) => __awaiter(void 0, void 0, void 0, function* () {
|
|
550
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
550
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
551
551
|
const { cognigy, config, nodeId } = knowledgeSearchParams;
|
|
552
552
|
const { input, api } = cognigy;
|
|
553
553
|
const { topK, searchString, searchStoreLocation, searchStoreLocationContextKey, searchStoreLocationInputKey, searchSourceTags, searchSourceTagsFilterOp, temperature, maxTokens, topP, presencePenalty, frequencyPenalty, useStop, stop, storeLocation, contextKey, inputKey, timeout, timeoutMessage, outputFallback, outputMode, mode, errorHandling, errorHandlingGotoTarget, streamStopTokens, followUpDetection, debugLogTokenCount, debugLogRequestAndCompletion } = config;
|
|
@@ -632,7 +632,7 @@ New: `;
|
|
|
632
632
|
let knowledgeSearchResponseData;
|
|
633
633
|
// handle errors from external services, depending on the settings
|
|
634
634
|
const handleServiceError = (error) => __awaiter(void 0, void 0, void 0, function* () {
|
|
635
|
-
var
|
|
635
|
+
var _m;
|
|
636
636
|
const compactError = {
|
|
637
637
|
message: (error === null || error === void 0 ? void 0 : error.message) || error,
|
|
638
638
|
};
|
|
@@ -641,7 +641,7 @@ New: `;
|
|
|
641
641
|
subComponent: "KnowledgeAIQueries",
|
|
642
642
|
title: error === null || error === void 0 ? void 0 : error.message
|
|
643
643
|
});
|
|
644
|
-
if ((
|
|
644
|
+
if ((_m = error === null || error === void 0 ? void 0 : error.originalErrorDetails) === null || _m === void 0 ? void 0 : _m.code) {
|
|
645
645
|
compactError["code"] = error.originalErrorDetails.code;
|
|
646
646
|
}
|
|
647
647
|
let searchStoreDataWithError = {
|
|
@@ -1010,6 +1010,15 @@ New: `;
|
|
|
1010
1010
|
if (!streamedOutput) {
|
|
1011
1011
|
yield api.output(promptResponse, null);
|
|
1012
1012
|
}
|
|
1013
|
+
else if (mainPromptResponse.finishReason) {
|
|
1014
|
+
(_l = api.output) === null || _l === void 0 ? void 0 : _l.call(api, "", {
|
|
1015
|
+
_cognigy: {
|
|
1016
|
+
_preventTranscript: true,
|
|
1017
|
+
_messageId,
|
|
1018
|
+
_finishReason: mainPromptResponse.finishReason,
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1013
1022
|
}
|
|
1014
1023
|
}
|
|
1015
1024
|
// #endregion 3 Output Answer
|
|
@@ -3,10 +3,8 @@ import { __awaiter } from "tslib";
|
|
|
3
3
|
import { createNodeDescriptor } from "../../createNodeDescriptor";
|
|
4
4
|
import { logFullConfigToDebugMode } from "../../../helper/logFullConfigToDebugMode";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Purpose:
|
|
9
|
-
* Thinks a message into the Flow
|
|
6
|
+
* @deprecated since 4.98.0.
|
|
7
|
+
* Use THINK_V2 instead
|
|
10
8
|
*/
|
|
11
9
|
export const THINK = createNodeDescriptor({
|
|
12
10
|
type: "think",
|
|
@@ -137,11 +137,14 @@ export const SAY = createNodeDescriptor({
|
|
|
137
137
|
if ((_a = _data === null || _data === void 0 ? void 0 : _data._cognigy) === null || _a === void 0 ? void 0 : _a._default) {
|
|
138
138
|
delete _data._cognigy._default;
|
|
139
139
|
}
|
|
140
|
+
let sayData = _data;
|
|
140
141
|
if (config.preventTranscript) {
|
|
141
|
-
|
|
142
|
+
sayData = sayData || {};
|
|
143
|
+
sayData._cognigy = sayData._cognigy || {};
|
|
144
|
+
sayData._cognigy._preventTranscript = true;
|
|
142
145
|
}
|
|
143
146
|
outputText = yield rephraseSentenceWithAI(outputText, config, api, organisationId);
|
|
144
|
-
yield api.say(outputText,
|
|
147
|
+
yield api.say(outputText, sayData, settings);
|
|
145
148
|
}
|
|
146
149
|
else {
|
|
147
150
|
const _cognigyDefault = (_b = _data === null || _data === void 0 ? void 0 : _data._cognigy) === null || _b === void 0 ? void 0 : _b._default;
|
|
@@ -166,7 +169,7 @@ export const SAY = createNodeDescriptor({
|
|
|
166
169
|
}
|
|
167
170
|
const data = config.say;
|
|
168
171
|
if (config.preventTranscript) {
|
|
169
|
-
data._cognigy = Object.assign(Object.assign({}, data._cognigy), { _preventTranscript: true });
|
|
172
|
+
data._cognigy = Object.assign(Object.assign({}, (data._cognigy || {})), { _preventTranscript: true });
|
|
170
173
|
}
|
|
171
174
|
/**
|
|
172
175
|
* This is a say node which is set to a type other than 'text' -
|