@cognigy/rest-api-client 0.11.0 → 0.12.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/.snyk +1 -1
- package/build/GenericUploadFn.js +1 -1
- package/build/RestAPIClient.js +14 -0
- package/build/apigroups/AdministrationAPIGroup_2_0.js +25 -3
- package/build/apigroups/AnalyticsAPIGroup_2_0.js +12 -0
- package/build/apigroups/InsightsAPIGroup_2_0.js +53 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +23 -2
- package/build/apigroups/index.js +5 -1
- package/build/authentication/BasicAuthentication/BasicAuthentication.js +8 -1
- package/build/authentication/OAuth2/ILoginByClientCredentialsParameters.js +3 -0
- package/build/authentication/OAuth2/IOAuth2ClientCredentialsGrantAccessTokenRequest.js +11 -0
- package/build/authentication/OAuth2/OAuth2Authentication.js +41 -15
- package/build/shared/charts/createNodeDescriptor.js +1 -1
- package/build/shared/charts/descriptors/apps/index.js +8 -0
- package/build/shared/charts/descriptors/apps/initAppSession.js +33 -0
- package/build/shared/charts/descriptors/apps/setAppState.js +46 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +6 -4
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +2 -2
- package/build/shared/charts/descriptors/end.js +1 -0
- package/build/shared/charts/descriptors/index.js +86 -67
- package/build/shared/charts/descriptors/logic/goTo.js +1 -0
- package/build/shared/charts/descriptors/logic/if/else.js +2 -0
- package/build/shared/charts/descriptors/logic/if/if.js +2 -1
- package/build/shared/charts/descriptors/logic/if/then.js +2 -0
- package/build/shared/charts/descriptors/logic/index.js +5 -3
- package/build/shared/charts/descriptors/logic/interval/elseInterval.js +1 -0
- package/build/shared/charts/descriptors/logic/interval/onInterval.js +1 -0
- package/build/shared/charts/descriptors/logic/once/afterwards.js +1 -0
- package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +1 -0
- package/build/shared/charts/descriptors/logic/setTranslation.js +88 -0
- package/build/shared/charts/descriptors/logic/switch/case.js +2 -0
- package/build/shared/charts/descriptors/logic/switch/default.js +2 -0
- package/build/shared/charts/descriptors/logic/switch/switch.js +52 -4
- package/build/shared/charts/descriptors/logic/switchLocale.js +30 -2
- package/build/shared/charts/descriptors/logic/think.js +7 -3
- package/build/shared/charts/descriptors/logic/thinkV2.js +104 -0
- package/build/shared/charts/descriptors/logic/wait.js +2 -9
- package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +1 -0
- package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +3 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +3 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +3 -1
- package/build/shared/charts/descriptors/message/question/onAnswer.js +3 -1
- package/build/shared/charts/descriptors/message/question/onQuestion.js +3 -1
- package/build/shared/charts/descriptors/message/question/question.js +474 -56
- package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +1 -0
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +9 -3
- package/build/shared/charts/descriptors/message/question/utils/generateAnswerShortForm.js +37 -0
- package/build/shared/charts/descriptors/message/question/utils/getQuestionText.js +36 -0
- package/build/shared/charts/descriptors/message/question/utils/resetNodeState.js +12 -0
- package/build/shared/charts/descriptors/message/question/utils/storeQuestionAnswer.js +30 -0
- package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +22 -0
- package/build/shared/charts/descriptors/microsoft/getToken.js +34 -0
- package/build/shared/charts/descriptors/microsoft/index.js +22 -0
- package/build/shared/charts/descriptors/microsoft/invalidateToken.js +29 -0
- package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +51 -0
- package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +24 -0
- package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +24 -0
- package/build/shared/charts/descriptors/microsoft/utils/design.js +5 -0
- package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +5 -0
- package/build/shared/charts/descriptors/nlu/extractAnswer.js +115 -0
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +270 -0
- package/build/shared/charts/descriptors/nlu/index.js +7 -1
- package/build/shared/charts/descriptors/nlu/matchPattern.js +104 -0
- package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +197 -0
- package/build/shared/charts/descriptors/profile/index.js +5 -1
- package/build/shared/charts/descriptors/profile/overwriteAnalytics.js +54 -2
- package/build/shared/charts/descriptors/profile/requestRating.js +57 -0
- package/build/shared/charts/descriptors/profile/setRating.js +39 -0
- package/build/shared/charts/descriptors/service/handover.js +29 -2
- package/build/shared/charts/descriptors/service/handoverV2.js +129 -0
- package/build/shared/charts/descriptors/service/httpRequest.js +26 -7
- package/build/shared/charts/descriptors/service/index.js +3 -1
- package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +2 -0
- package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +2 -0
- package/build/shared/charts/descriptors/start.js +1 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +36 -16
- package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +2 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +9 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +9 -1
- package/build/shared/charts/descriptors/voicegateway2/index.js +21 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +56 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +48 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +199 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +44 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +584 -0
- package/build/shared/charts/descriptors/voicegateway2/utils/design.js +5 -0
- package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +19 -0
- package/build/shared/constants.js +9 -1
- package/build/shared/errors/baseError.js +34 -1
- package/build/shared/helper/rest/array.js +19 -0
- package/build/shared/helper/rest/boolean.js +5 -1
- package/build/shared/helper/rest/index.js +4 -1
- package/build/shared/interfaces/IEndpointTranslationSettings.js +32 -0
- package/build/shared/interfaces/IHandoverRequestStatus.js +3 -0
- package/build/shared/interfaces/{restAPI/administration/user/v2.0/IDeleteUserMeRest_2_0.js → IHttpRequest.js} +1 -1
- package/build/shared/interfaces/IOrganisation.js +1 -1
- package/build/shared/interfaces/TEntrypointType.js +2 -0
- package/build/shared/interfaces/amqpInterface.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsFlowHistoryData.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +196 -45
- package/build/shared/interfaces/analytics/IStepEvent.js +2 -1
- package/build/shared/interfaces/analytics/TAnalyticsMode.js +10 -0
- package/build/shared/interfaces/analytics/TAnalyticsType.js +5 -0
- package/build/shared/interfaces/debugEvents/IErrorEventPayload.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEndpointEvent.js +1 -0
- package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -1
- package/build/shared/interfaces/debugEvents/TSessionStateEmitParams.js +3 -0
- package/build/shared/interfaces/handover.js +81 -3
- package/build/shared/interfaces/license.js +34 -0
- package/build/shared/interfaces/license.js.map +1 -0
- package/build/shared/interfaces/messageAPI/ai.js +15 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +273 -9
- package/build/shared/interfaces/resources/IAuditEvent.js +15 -2
- package/build/shared/interfaces/resources/IChartNode.js +56 -10
- package/build/shared/interfaces/resources/IEndpoint.js +5 -2
- package/build/shared/interfaces/resources/IFlow.js +1 -1
- package/build/shared/interfaces/resources/ILexicon.js +8 -2
- package/build/shared/interfaces/resources/INLUConnector.js +15 -2
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +164 -52
- package/build/shared/interfaces/resources/IOptionsResolverFunction.js +18 -0
- package/build/shared/interfaces/resources/IPlaybookRun.js +61 -0
- package/build/shared/interfaces/resources/IProject.js +7 -1
- package/build/shared/interfaces/resources/ISlotFiller.js +38 -21
- package/build/shared/interfaces/resources/ISnapshot.js +1 -1
- package/build/shared/interfaces/resources/ITrackAnalyticsStepsArguments.js +3 -0
- package/build/shared/interfaces/resources/TNLUConnectorType.js +2 -1
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/build/shared/interfaces/resources/TRestChannelType.js +5 -0
- package/build/shared/interfaces/resources/TSocketChannelType.js +5 -1
- package/build/shared/interfaces/resources/chart/IChartExecutable.js +3 -2
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +1 -0
- package/build/shared/interfaces/resources/intent/IIntent.js +4 -2
- package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +3 -1
- package/build/shared/interfaces/resources/intent/ISentence.js +32 -8
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +40 -2
- package/build/shared/interfaces/resources/settings/IFlowSettings.js +1 -1
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadLiveAgentAccountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadProjectInboxRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentInboxRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IDeleteAnalyticsRecordsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordProperties_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/IAnalyticsQueryFilter_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/TAnalyticsQueryFilterOperator_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/messages/IGenerateMessagesRest_2_0.js +5 -0
- package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/messages/ITopNMessages_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +41 -0
- package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IGenerateStepReportRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IIndexStepsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IStepIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IStepReport_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/steps/IStep_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/IGenerateTranscriptsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashResponse_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashRestData_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/insights/transcripts/IStepPath_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/chart/v2.0/ISearchChartNodesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionPackageRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowFromChildrenRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ITrainYesNoIntentsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IComposeLexiconDownloadLinkRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +3 -1
- package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IOptionsResolverRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRunRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybookRunsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRunIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRun_2_0.js +7 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRunRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ISchedulePlaybookRunRest_2_0.js +3 -0
- package/build/shared/interfaces/security/IACL.js +1 -1
- package/build/shared/interfaces/security/IPermission.js +6 -0
- package/build/shared/interfaces/security/IRole.js +8 -2
- package/build/shared/interfaces/sessionstate/ISessionState.js +3 -0
- package/build/shared/interfaces/sessionstate/index.js +3 -0
- package/build/shared/interfaces/trainer/ITrainerRecord.js +4 -0
- package/build/shared/interfaces/translation.js +11 -0
- package/package.json +5 -5
- package/types/index.d.ts +3905 -1178
- package/build/shared/charts/descriptors/logic/checkFrustration.js +0 -82
|
@@ -5,14 +5,14 @@ exports.chartExecutableSchema = exports.generateChartExecutableRedisKeys = void
|
|
|
5
5
|
const IChartExecutableNode_1 = require("./IChartExecutableNode");
|
|
6
6
|
const generateChartExecutableRedisKeys = (data) => {
|
|
7
7
|
return [
|
|
8
|
-
`organisationId:${data.organisationReference}:projectId:${data.projectReference}:flowId:${data.flowReferenceId}:chartExecutable`
|
|
8
|
+
`organisationId:${data.organisationReference}:projectId:${data.projectReference}:flowId:${data.flowReferenceId}:chartExecutable:v2`
|
|
9
9
|
];
|
|
10
10
|
};
|
|
11
11
|
exports.generateChartExecutableRedisKeys = generateChartExecutableRedisKeys;
|
|
12
12
|
exports.chartExecutableSchema = {
|
|
13
13
|
title: "chartExecutableSchema",
|
|
14
14
|
type: "object",
|
|
15
|
-
required: ["entrypointIds", "nodes", "startEntrypointId"],
|
|
15
|
+
required: ["entrypointIds", "nodes", "startEntrypointId", "flowName"],
|
|
16
16
|
additionalProperties: false,
|
|
17
17
|
properties: {
|
|
18
18
|
entrypointIds: {
|
|
@@ -24,6 +24,7 @@ exports.chartExecutableSchema = {
|
|
|
24
24
|
additionalProperties: IChartExecutableNode_1.chartExecutableNodeSchema,
|
|
25
25
|
},
|
|
26
26
|
startEntrypointId: { type: "string", format: "uuid" },
|
|
27
|
+
flowName: { type: "string" },
|
|
27
28
|
},
|
|
28
29
|
};
|
|
29
30
|
//# sourceMappingURL=IChartExecutable.js.map
|
|
@@ -10,6 +10,7 @@ exports.chartExecutableNodeSchema = {
|
|
|
10
10
|
required: ["id", "behavior", "children", "config", "isCognigy", "next", "projectId", "organisationId", "trustedCode", "type"],
|
|
11
11
|
properties: {
|
|
12
12
|
id: { type: "string", format: "uuid" },
|
|
13
|
+
_id: { type: "string", format: "mongo-id" },
|
|
13
14
|
behavior: {
|
|
14
15
|
type: "object",
|
|
15
16
|
properties: {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.intentSchema = exports.intentDataSchema = exports.intentInDBDataSchema = exports.localizedIntentDataSchema = void 0;
|
|
3
|
+
exports.intentSchema = exports.intentDataSchema = exports.intentInDBDataSchema = exports.localizedIntentDataSchema = exports.overrideIntentDefaultRepliesAsExamplesTypes = void 0;
|
|
4
4
|
const IEntityMeta_1 = require("../IEntityMeta");
|
|
5
5
|
const IIntentFeedbackReport_1 = require("./IIntentFeedbackReport");
|
|
6
|
+
exports.overrideIntentDefaultRepliesAsExamplesTypes = ["useFlowSettings", "on", "off"];
|
|
6
7
|
exports.localizedIntentDataSchema = {
|
|
7
8
|
title: "localizedIntentDataSchema",
|
|
8
9
|
type: "object",
|
|
@@ -36,7 +37,7 @@ exports.intentInDBDataSchema = {
|
|
|
36
37
|
{ type: "boolean" },
|
|
37
38
|
{ type: "array", items: { type: "string", format: "mongo-id" } }
|
|
38
39
|
]
|
|
39
|
-
}, flowReferenceId: { type: "string", format: "uuid" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, analyticsLabel: { type: "string", format: "analytics-label" } }),
|
|
40
|
+
}, flowReferenceId: { type: "string", format: "uuid" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, analyticsLabel: { type: "string", format: "analytics-label" }, overrideIntentDefaultRepliesAsExamples: { type: ["string", "null"], enum: [...exports.overrideIntentDefaultRepliesAsExamplesTypes] } }),
|
|
40
41
|
};
|
|
41
42
|
exports.intentDataSchema = {
|
|
42
43
|
title: "intentDataSchema",
|
|
@@ -76,6 +77,7 @@ exports.intentDataSchema = {
|
|
|
76
77
|
flowReferenceId: { type: "string", format: "uuid" },
|
|
77
78
|
feedbackReport: IIntentFeedbackReport_1.intentFeedbackReportDataSchema,
|
|
78
79
|
analyticsLabel: { type: "string", format: "analytics-label" },
|
|
80
|
+
overrideIntentDefaultRepliesAsExamples: { type: ["string", "null"], enum: [...exports.overrideIntentDefaultRepliesAsExamplesTypes] }
|
|
79
81
|
},
|
|
80
82
|
};
|
|
81
83
|
exports.intentSchema = {
|
|
@@ -21,6 +21,7 @@ exports.intentTrainGroupInDBDataSchema = {
|
|
|
21
21
|
lastTrainedBy: { type: ["string", "null"], format: "mongo-id" },
|
|
22
22
|
lastRelevantChangeAt: { type: ["integer", "null"], format: "timestamp" },
|
|
23
23
|
lastRelevantChangeBy: { type: ["string", "null"], format: "mongo-id" },
|
|
24
|
+
lexiconsInServiceMatcher: { type: "boolean" },
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
27
|
exports.intentTrainGroupDataSchema = {
|
|
@@ -33,7 +34,8 @@ exports.intentTrainGroupDataSchema = {
|
|
|
33
34
|
lastRelevantChangeAt: { type: ["integer", "null"], format: "timestamp" },
|
|
34
35
|
lastRelevantChangeBy: { type: ["string", "null"], format: "mongo-id" },
|
|
35
36
|
feedbackReport: ITrainGroupFeedbackReport_1.trainGroupFeedbackReportDataSchema,
|
|
36
|
-
isTrainingOutOfDate: { type: "boolean" }
|
|
37
|
+
isTrainingOutOfDate: { type: "boolean" },
|
|
38
|
+
lexiconsInServiceMatcher: { type: "boolean" },
|
|
37
39
|
}
|
|
38
40
|
};
|
|
39
41
|
exports.intentTrainGroupSchema = {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sentenceSchema = exports.sentenceDataSchema = void 0;
|
|
4
4
|
const IEntityMeta_1 = require("../IEntityMeta");
|
|
5
|
-
const
|
|
6
|
-
title: "
|
|
5
|
+
const anySlotDataSchema = {
|
|
6
|
+
title: "anySlotDataSchema",
|
|
7
7
|
type: "object",
|
|
8
8
|
required: ["type", "name", "start", "end"],
|
|
9
9
|
additionalProperties: false,
|
|
@@ -14,8 +14,15 @@ const anySlotSchema = {
|
|
|
14
14
|
end: { type: "integer", minimum: 0 },
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
const
|
|
18
|
-
title: "
|
|
17
|
+
const anySlotSchema = {
|
|
18
|
+
title: "anySlotSchema",
|
|
19
|
+
type: "object",
|
|
20
|
+
required: ["type", "name", "start", "end"],
|
|
21
|
+
additionalProperties: false,
|
|
22
|
+
properties: Object.assign({ _id: { type: "string", format: "mongo-id" } }, anySlotDataSchema.properties)
|
|
23
|
+
};
|
|
24
|
+
const lexiconSlotDataSchema = {
|
|
25
|
+
title: "lexiconSlotDataSchema",
|
|
19
26
|
type: "object",
|
|
20
27
|
additionalProperties: false,
|
|
21
28
|
properties: {
|
|
@@ -27,8 +34,14 @@ const lexiconSlotSchema = {
|
|
|
27
34
|
name: { type: "string", minLength: 1 },
|
|
28
35
|
},
|
|
29
36
|
};
|
|
30
|
-
const
|
|
31
|
-
title: "
|
|
37
|
+
const lexiconSlotSchema = {
|
|
38
|
+
title: "lexiconSlotSchema",
|
|
39
|
+
type: "object",
|
|
40
|
+
additionalProperties: false,
|
|
41
|
+
properties: Object.assign({ _id: { type: "string", format: "mongo-id" } }, lexiconSlotDataSchema.properties),
|
|
42
|
+
};
|
|
43
|
+
const systemSlotDataSchema = {
|
|
44
|
+
title: "systemSlotDataSchema",
|
|
32
45
|
type: "object",
|
|
33
46
|
additionalProperties: false,
|
|
34
47
|
properties: {
|
|
@@ -38,6 +51,17 @@ const systemSlotSchema = {
|
|
|
38
51
|
end: { type: "integer", minimum: 0 },
|
|
39
52
|
}
|
|
40
53
|
};
|
|
54
|
+
const systemSlotSchema = {
|
|
55
|
+
title: "systemSlotSchema",
|
|
56
|
+
type: "object",
|
|
57
|
+
additionalProperties: false,
|
|
58
|
+
properties: Object.assign({ _id: { type: "string", format: "mongo-id" } }, systemSlotDataSchema.properties)
|
|
59
|
+
};
|
|
60
|
+
const slotDataSchema = {
|
|
61
|
+
title: "slotDataSchema",
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
oneOf: [lexiconSlotDataSchema, anySlotDataSchema, systemSlotDataSchema],
|
|
64
|
+
};
|
|
41
65
|
const slotSchema = {
|
|
42
66
|
title: "slotSchema",
|
|
43
67
|
// @ts-ignore
|
|
@@ -50,7 +74,7 @@ exports.sentenceDataSchema = {
|
|
|
50
74
|
properties: {
|
|
51
75
|
doc: { type: "string" },
|
|
52
76
|
text: { type: "string", minLength: 1 },
|
|
53
|
-
slots: { type: "array", items:
|
|
77
|
+
slots: { type: "array", items: slotDataSchema },
|
|
54
78
|
hasAnySlot: { type: "boolean" },
|
|
55
79
|
}
|
|
56
80
|
};
|
|
@@ -58,6 +82,6 @@ exports.sentenceSchema = {
|
|
|
58
82
|
title: "sentenceSchema",
|
|
59
83
|
type: "object",
|
|
60
84
|
additionalProperties: false,
|
|
61
|
-
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.sentenceDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, intentReference: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
85
|
+
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.sentenceDataSchema.properties), { slots: { type: "array", items: slotSchema }, referenceId: { type: "string", format: "uuid" }, intentReference: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
62
86
|
};
|
|
63
87
|
//# sourceMappingURL=ISentence.js.map
|
|
@@ -1,13 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.agentSettingsSchema = exports.agentSettingsDataSchema = void 0;
|
|
3
|
+
exports.agentSettingsSchema = exports.agentSettingsDataSchema = exports.generateAgentSettingsRedisKey = void 0;
|
|
4
4
|
const IEntityMeta_1 = require("../IEntityMeta");
|
|
5
5
|
const ISharedSettings_1 = require("./ISharedSettings");
|
|
6
|
+
const arrayTranslationProviders = ["none", "microsoft", "google", "deepl"];
|
|
7
|
+
const arrayAudioPreviewProviders = ["none", "microsoft"];
|
|
8
|
+
const generateAgentSettingsRedisKey = (data) => {
|
|
9
|
+
return [
|
|
10
|
+
`organisationId:${data.organisationReference}:projectId:${data.projectReference}:agentsettings:v2`
|
|
11
|
+
];
|
|
12
|
+
};
|
|
13
|
+
exports.generateAgentSettingsRedisKey = generateAgentSettingsRedisKey;
|
|
6
14
|
exports.agentSettingsDataSchema = {
|
|
7
15
|
title: "agentSettingsDataSchema",
|
|
8
16
|
type: "object",
|
|
9
17
|
additionalProperties: false,
|
|
10
|
-
properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { trackDataOnlyInputs: { type: "boolean" }, collectAnalytics: { type: "boolean" }, timezone: { type: "string", format: "timezone" }, useCaseSensitiveIntentMapping: { type: "boolean" }
|
|
18
|
+
properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { trackDataOnlyInputs: { type: "boolean" }, collectAnalytics: { type: "boolean" }, timezone: { type: "string", format: "timezone" }, useCaseSensitiveIntentMapping: { type: "boolean" }, translationSettings: {
|
|
19
|
+
type: "object",
|
|
20
|
+
additionalProperties: false,
|
|
21
|
+
properties: {
|
|
22
|
+
translationProvider: {
|
|
23
|
+
type: "string",
|
|
24
|
+
enum: [...arrayTranslationProviders]
|
|
25
|
+
},
|
|
26
|
+
translationAPIKey: { type: "string", maxLength: 255 },
|
|
27
|
+
translationProviderCustomBaseUrl: { type: "string", maxLength: 255 },
|
|
28
|
+
translationRetries: { type: "integer", minimum: 0, maximum: 3 },
|
|
29
|
+
translationTimeout: { type: "integer", minimum: 0, maximum: 8000 },
|
|
30
|
+
translationCacheExpiry: { type: "integer", enum: [0, 3600, 84600] },
|
|
31
|
+
translationRegion: { type: "string", maxLength: 255, default: undefined },
|
|
32
|
+
}
|
|
33
|
+
}, audioPreviewSettings: {
|
|
34
|
+
type: "object",
|
|
35
|
+
additionalProperties: false,
|
|
36
|
+
properties: {
|
|
37
|
+
audioPreviewProvider: {
|
|
38
|
+
type: "string",
|
|
39
|
+
enum: [...arrayAudioPreviewProviders]
|
|
40
|
+
},
|
|
41
|
+
audioPreviewAPIKey: { type: "string", maxLength: 255 },
|
|
42
|
+
audioPreviewProviderCustomBaseUrl: { type: "string", maxLength: 255 },
|
|
43
|
+
audioPreviewRetries: { type: "integer", minimum: 0, maximum: 3 },
|
|
44
|
+
audioPreviewTimeout: { type: "integer", minimum: 0, maximum: 8000 },
|
|
45
|
+
audioPreviewCacheExpiry: { type: "integer", enum: [0, 3600, 84600] },
|
|
46
|
+
audioPreviewRegion: { type: "string", maxLength: 255, default: undefined },
|
|
47
|
+
}
|
|
48
|
+
} })
|
|
11
49
|
};
|
|
12
50
|
exports.agentSettingsSchema = {
|
|
13
51
|
title: "agentSettingsSchema",
|
|
@@ -8,7 +8,7 @@ exports.flowSettingsDataSchema = {
|
|
|
8
8
|
title: "flowSettingsDataSchema",
|
|
9
9
|
type: "object",
|
|
10
10
|
additionalProperties: false,
|
|
11
|
-
properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { continueExecutionAfterAttachedFlow: { type: "boolean" }, continueExecutionAfterDefaultReply: { type: "boolean" }, continueExecutionAfterNegativeConfirmation: { type: "boolean" }, passDefaultRepliesIntoFlow: { type: "boolean" }, flowIntentMappingOrder: { type: "string", enum: [...exports.flowIntentMappingOrderType] }, useAttachedFlowThresholds: { type: "boolean" }, useAttachedFlowContinueAfterDefaultReply: { type: "boolean" }, useAttachedFlowPassDefaultRepliesIntoFlow: { type: "boolean" }, implicitSlotParsing: { type: "string", enum: [...exports.implicitSlotParsingType] }, useAttachedFlowImplicitSlotParsing: { type: "boolean" } })
|
|
11
|
+
properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { continueExecutionAfterAttachedFlow: { type: "boolean" }, continueExecutionAfterDefaultReply: { type: "boolean" }, continueExecutionAfterNegativeConfirmation: { type: "boolean" }, passDefaultRepliesIntoFlow: { type: "boolean" }, flowIntentMappingOrder: { type: "string", enum: [...exports.flowIntentMappingOrderType] }, useAttachedFlowThresholds: { type: "boolean" }, useAttachedFlowContinueAfterDefaultReply: { type: "boolean" }, useAttachedFlowPassDefaultRepliesIntoFlow: { type: "boolean" }, implicitSlotParsing: { type: "string", enum: [...exports.implicitSlotParsingType] }, useAttachedFlowImplicitSlotParsing: { type: "boolean" }, lexiconSlotsWithSubMatches: { type: "boolean" }, useIntentDefaultRepliesAsExamples: { type: ["boolean", "null"] } })
|
|
12
12
|
};
|
|
13
13
|
exports.flowSettingsSchema = {
|
|
14
14
|
title: "flowSettingsSchema",
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.quantitativeReportQueryName = exports.timeGrain = void 0;
|
|
4
|
+
exports.timeGrain = [
|
|
5
|
+
"hour",
|
|
6
|
+
"day",
|
|
7
|
+
"week",
|
|
8
|
+
"month",
|
|
9
|
+
"year"
|
|
10
|
+
];
|
|
11
|
+
exports.quantitativeReportQueryName = [
|
|
12
|
+
"sessions",
|
|
13
|
+
"users",
|
|
14
|
+
"messageHandled",
|
|
15
|
+
"channelUsage",
|
|
16
|
+
"sessionLengthAverage",
|
|
17
|
+
"sessionLengthMinimum",
|
|
18
|
+
"sessionLengthMaximum",
|
|
19
|
+
"numberOfLiveChatEscalations",
|
|
20
|
+
"intentScoreDevelopment",
|
|
21
|
+
"intentsOverallTimeline",
|
|
22
|
+
"topExitMessages",
|
|
23
|
+
"topMessages",
|
|
24
|
+
"topIntents",
|
|
25
|
+
"topSlots",
|
|
26
|
+
"topGoals",
|
|
27
|
+
"usagePerLocale",
|
|
28
|
+
"numberOfGoalsHit",
|
|
29
|
+
"numberOfConversationsTimeline",
|
|
30
|
+
"usersPerChannel",
|
|
31
|
+
"usersPerLocale",
|
|
32
|
+
"sessionsByChannel",
|
|
33
|
+
"averageExecutionTime",
|
|
34
|
+
"orderOfIntentsByAverageNluScore",
|
|
35
|
+
"numberOfMessagesProcessedTimeline",
|
|
36
|
+
"npsTimeline",
|
|
37
|
+
"understoodVsMisunderstoodMessages",
|
|
38
|
+
"thumbsUpTimeline",
|
|
39
|
+
"liveChatEscalationsTimeline"
|
|
40
|
+
];
|
|
41
|
+
//# sourceMappingURL=IGenerateReportRest_2_0.js.map
|
package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js
CHANGED
|
@@ -20,6 +20,7 @@ exports.arrayNLUConnectorType_2_0 = void 0;
|
|
|
20
20
|
* - noNlu
|
|
21
21
|
* - cognigy
|
|
22
22
|
* - code
|
|
23
|
+
* - lex
|
|
23
24
|
*/
|
|
24
25
|
exports.arrayNLUConnectorType_2_0 = [
|
|
25
26
|
"alexa",
|
|
@@ -30,6 +31,7 @@ exports.arrayNLUConnectorType_2_0 = [
|
|
|
30
31
|
"watson",
|
|
31
32
|
"noNlu",
|
|
32
33
|
"cognigy",
|
|
33
|
-
"code"
|
|
34
|
+
"code",
|
|
35
|
+
"lex"
|
|
34
36
|
];
|
|
35
37
|
//# sourceMappingURL=TNLUConnectorType_2_0.js.map
|
|
@@ -10,7 +10,7 @@ var CrudOperation;
|
|
|
10
10
|
})(CrudOperation = exports.CrudOperation || (exports.CrudOperation = {}));
|
|
11
11
|
const generateUserAclRedisKeys = (data) => {
|
|
12
12
|
return [
|
|
13
|
-
`organisationId:${data.organisationId}:userId:${data.userId}:acl`,
|
|
13
|
+
`organisationId:${data.organisationId}:userId:${data.userId}:acl:v3`,
|
|
14
14
|
];
|
|
15
15
|
};
|
|
16
16
|
exports.generateUserAclRedisKeys = generateUserAclRedisKeys;
|
|
@@ -11,6 +11,7 @@ exports.availablePermissions = exports.projectWidePermissions = exports.organisa
|
|
|
11
11
|
* enum:
|
|
12
12
|
* - analyticsOdata
|
|
13
13
|
* - apiKeys
|
|
14
|
+
* - liveAgentAccount
|
|
14
15
|
* - livechat
|
|
15
16
|
* - projects
|
|
16
17
|
* - userDetails
|
|
@@ -19,6 +20,7 @@ exports.availablePermissions = exports.projectWidePermissions = exports.organisa
|
|
|
19
20
|
exports.organisationWidePermissions = [
|
|
20
21
|
"analyticsOdata",
|
|
21
22
|
"apiKeys",
|
|
23
|
+
"liveAgentAccount",
|
|
22
24
|
"livechat",
|
|
23
25
|
"projects",
|
|
24
26
|
"userDetails",
|
|
@@ -42,8 +44,10 @@ exports.organisationWidePermissions = [
|
|
|
42
44
|
* - flowNodeDescription
|
|
43
45
|
* - flowNodes
|
|
44
46
|
* - flows
|
|
47
|
+
* - followUser
|
|
45
48
|
* - intents
|
|
46
49
|
* - lexicons
|
|
50
|
+
* - liveAgentInbox
|
|
47
51
|
* - locales
|
|
48
52
|
* - logs
|
|
49
53
|
* - memberDetails
|
|
@@ -71,8 +75,10 @@ exports.projectWidePermissions = [
|
|
|
71
75
|
"flowNodes",
|
|
72
76
|
"functions",
|
|
73
77
|
"flows",
|
|
78
|
+
"followUser",
|
|
74
79
|
"intents",
|
|
75
80
|
"lexicons",
|
|
81
|
+
"liveAgentInbox",
|
|
76
82
|
"locales",
|
|
77
83
|
"logs",
|
|
78
84
|
"memberDetails",
|
|
@@ -12,19 +12,25 @@ exports.availableRoles = exports.projectWideRoles = exports.organisationWideRole
|
|
|
12
12
|
* - admin
|
|
13
13
|
* - apiKeys
|
|
14
14
|
* - base_role
|
|
15
|
+
* - liveAgentAdmin
|
|
16
|
+
* - liveAgentAgent
|
|
15
17
|
* - livechat
|
|
16
18
|
* - odata
|
|
17
19
|
* - projectManager
|
|
18
20
|
* - userManager
|
|
21
|
+
* - userDetailsViewer
|
|
19
22
|
*/
|
|
20
23
|
exports.organisationWideRoles = [
|
|
21
24
|
"admin",
|
|
22
25
|
"apiKeys",
|
|
23
26
|
"base_role",
|
|
27
|
+
"liveAgentAdmin",
|
|
28
|
+
"liveAgentAgent",
|
|
24
29
|
"livechat",
|
|
25
30
|
"odata",
|
|
26
31
|
"projectManager",
|
|
27
32
|
"userManager",
|
|
33
|
+
"userDetailsViewer"
|
|
28
34
|
];
|
|
29
35
|
/**
|
|
30
36
|
* @openapi
|
|
@@ -48,6 +54,7 @@ exports.organisationWideRoles = [
|
|
|
48
54
|
* - flowEditor
|
|
49
55
|
* - flowNodeComments
|
|
50
56
|
* - flowNodeDescriptions
|
|
57
|
+
* - followUser
|
|
51
58
|
* - intents
|
|
52
59
|
* - lexicon_admin
|
|
53
60
|
* - lexicon_editor
|
|
@@ -60,7 +67,6 @@ exports.organisationWideRoles = [
|
|
|
60
67
|
* - playbook_editor
|
|
61
68
|
* - projectAdmin
|
|
62
69
|
* - snapshot_admin
|
|
63
|
-
* - snapshots
|
|
64
70
|
* - tokenAdmin
|
|
65
71
|
* - tokenEditor
|
|
66
72
|
* - function_admin
|
|
@@ -81,6 +87,7 @@ exports.projectWideRoles = [
|
|
|
81
87
|
"flowEditor",
|
|
82
88
|
"flowNodeComments",
|
|
83
89
|
"flowNodeDescriptions",
|
|
90
|
+
"followUser",
|
|
84
91
|
"function_admin",
|
|
85
92
|
"function_editor",
|
|
86
93
|
"intents",
|
|
@@ -95,7 +102,6 @@ exports.projectWideRoles = [
|
|
|
95
102
|
"playbook_editor",
|
|
96
103
|
"projectAdmin",
|
|
97
104
|
"snapshot_admin",
|
|
98
|
-
"snapshots",
|
|
99
105
|
"tokenAdmin",
|
|
100
106
|
"tokenEditor",
|
|
101
107
|
];
|