@cognigy/rest-api-client 0.12.0 → 0.13.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/.eslintignore +15 -0
- package/.eslintrc.json +28 -0
- package/.prettierrc.json +7 -0
- package/build/GenericAPIFn.js +3 -3
- package/build/GenericUploadFn.js +8 -5
- package/build/PluginBase.js +1 -1
- package/build/RestAPIClient.js +1 -1
- package/build/apigroups/AdministrationAPIGroup_2_0.js +53 -47
- package/build/apigroups/AnalyticsAPIGroup_2_0.js +1 -1
- package/build/apigroups/ExternalAPIGroup_2_0.js +5 -5
- package/build/apigroups/InsightsAPIGroup_2_0.js +17 -12
- package/build/apigroups/ManagementAPIGroup_2_0.js +19 -15
- package/build/apigroups/MetricsAPIGroup_2_0.js +29 -29
- package/build/apigroups/ResourcesAPIGroup_2_0.js +238 -186
- package/build/apigroups/SessionsAPIGroup_2_0.js +7 -7
- package/build/authentication/ApiKey/ApiKeyAuthentication.js +1 -1
- package/build/authentication/AuthenticationAPI.js +2 -2
- package/build/authentication/BasicAuthentication/BasicAuthentication.js +2 -2
- package/build/authentication/OAuth2/IOAuth2ErrorResponse.js +1 -1
- package/build/authentication/OAuth2/OAuth2Authentication.js +34 -27
- package/build/connector/AxiosAdapter.js +28 -24
- package/build/connector/isRetryAllowed.js +0 -1
- package/build/connector/retryAfterDelay.js +3 -3
- package/build/shared/{interfaces/debugEvents/TSessionStateEmitParams.js → api/liveAgent/liveAgentInterfaces.js} +1 -1
- package/build/shared/charts/descriptors/allFields.js +1 -1
- package/build/shared/charts/descriptors/{profile → analytics}/activateProfile.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/blindMode.js +11 -4
- package/build/shared/charts/descriptors/{profile → analytics}/completeGoal.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/deactivateProfile.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/deleteProfile.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/index.js +0 -0
- package/build/shared/charts/descriptors/{profile → analytics}/mergeProfile.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/overwriteAnalytics.js +6 -3
- package/build/shared/charts/descriptors/{profile → analytics}/requestRating.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/setRating.js +2 -2
- package/build/shared/charts/descriptors/{profile → analytics}/updateProfile.js +2 -2
- package/build/shared/charts/descriptors/apps/getAppSessionPin.js +46 -0
- package/build/shared/charts/descriptors/apps/index.js +7 -1
- package/build/shared/charts/descriptors/apps/initAppSession.js +467 -12
- package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +79 -0
- package/build/shared/charts/descriptors/apps/setAppState.js +13 -15
- package/build/shared/charts/descriptors/apps/setHtmlAppState.js +108 -0
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +14 -0
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/index.js +23 -0
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +2 -2
- package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +2 -2
- package/build/shared/charts/descriptors/connectionNodes/sql/index.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +1 -1
- package/build/shared/charts/descriptors/data/addToContext.js +1 -1
- package/build/shared/charts/descriptors/data/code.js +1 -1
- package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -1
- package/build/shared/charts/descriptors/data/copySlotsToContext.js +1 -1
- package/build/shared/charts/descriptors/data/log.js +1 -1
- package/build/shared/charts/descriptors/data/removeFromContext.js +1 -1
- package/build/shared/charts/descriptors/data/resetContext.js +1 -1
- package/build/shared/charts/descriptors/end.js +1 -1
- package/build/shared/charts/descriptors/index.js +25 -16
- package/build/shared/charts/descriptors/liveAgent/assistInfo.js +195 -0
- package/build/shared/charts/descriptors/liveAgent/index.js +6 -0
- package/build/shared/charts/descriptors/liveAgent/utils/buildCognigyWhisperAssistResponse.js +135 -0
- package/build/shared/charts/descriptors/liveAgent/utils/index.js +6 -0
- package/build/shared/charts/descriptors/logic/disableSlotFillers.js +1 -1
- package/build/shared/charts/descriptors/logic/enableSlotFillers.js +1 -1
- package/build/shared/charts/descriptors/logic/executeFlow.js +1 -1
- package/build/shared/charts/descriptors/logic/goTo.js +1 -1
- package/build/shared/charts/descriptors/logic/if/else.js +1 -1
- package/build/shared/charts/descriptors/logic/if/if.js +1 -1
- package/build/shared/charts/descriptors/logic/if/then.js +1 -1
- package/build/shared/charts/descriptors/logic/interval/elseInterval.js +1 -1
- package/build/shared/charts/descriptors/logic/interval/interval.js +1 -1
- package/build/shared/charts/descriptors/logic/interval/onInterval.js +1 -1
- package/build/shared/charts/descriptors/logic/once/afterwards.js +1 -1
- package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +1 -1
- package/build/shared/charts/descriptors/logic/once/once.js +1 -1
- package/build/shared/charts/descriptors/logic/resetState.js +1 -1
- package/build/shared/charts/descriptors/logic/setState.js +1 -1
- package/build/shared/charts/descriptors/logic/setTranslation.js +1 -1
- package/build/shared/charts/descriptors/logic/sleep.js +1 -1
- package/build/shared/charts/descriptors/logic/stop.js +1 -1
- package/build/shared/charts/descriptors/logic/switch/case.js +1 -1
- package/build/shared/charts/descriptors/logic/switch/default.js +1 -1
- package/build/shared/charts/descriptors/logic/switch/switch.js +22 -8
- package/build/shared/charts/descriptors/logic/switchLocale.js +1 -1
- package/build/shared/charts/descriptors/logic/think.js +1 -1
- package/build/shared/charts/descriptors/logic/thinkV2.js +1 -1
- package/build/shared/charts/descriptors/logic/wait.js +1 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +1 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +1 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +1 -1
- package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +1 -1
- package/build/shared/charts/descriptors/message/datePicker.js +5 -5
- package/build/shared/charts/descriptors/message/question/onAnswer.js +1 -1
- package/build/shared/charts/descriptors/message/question/onQuestion.js +1 -1
- package/build/shared/charts/descriptors/message/question/optionalQuestion.js +2 -2
- package/build/shared/charts/descriptors/message/question/question.js +201 -24
- package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +31 -2
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +4 -1
- package/build/shared/charts/descriptors/message/question/utils/questionHandover.js +13 -0
- package/build/shared/charts/descriptors/message/say.js +10 -4
- package/build/shared/charts/descriptors/message/sendImage.js +1 -1
- package/build/shared/charts/descriptors/message/sendText.js +1 -1
- package/build/shared/charts/descriptors/microsoft/getToken.js +1 -1
- package/build/shared/charts/descriptors/microsoft/index.js +1 -1
- package/build/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
- package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +1 -1
- package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +1 -1
- package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +1 -1
- package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +1 -1
- package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +18 -3
- package/build/shared/charts/descriptors/nlu/extractAnswer.js +1 -1
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +2 -2
- package/build/shared/charts/descriptors/nlu/matchPattern.js +13 -4
- package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +1 -1
- package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +129 -61
- package/build/shared/charts/descriptors/placeholder.js +1 -1
- package/build/shared/charts/descriptors/requiredFields.js +1 -1
- package/build/shared/charts/descriptors/service/checkAgentAvailability.js +203 -0
- package/build/shared/charts/descriptors/service/handover.js +1 -1
- package/build/shared/charts/descriptors/service/handoverV2.js +66 -3
- package/build/shared/charts/descriptors/service/httpRequest.js +16 -5
- package/build/shared/charts/descriptors/service/index.js +3 -1
- package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +1 -1
- package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +1 -1
- package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +1 -1
- package/build/shared/charts/descriptors/start.js +1 -1
- package/build/shared/charts/descriptors/voice/index.js +20 -0
- package/build/shared/charts/descriptors/voice/interface/IAudioCodes.js +3 -0
- package/build/shared/charts/descriptors/voice/interface/IVoiceGateway2.js +3 -0
- package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +59 -0
- package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +99 -0
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +296 -0
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +86 -0
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +60 -0
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +72 -0
- package/build/shared/charts/descriptors/voice/nodes/dtmf.js +86 -0
- package/build/shared/charts/descriptors/voice/nodes/hangup.js +48 -0
- package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +105 -0
- package/build/shared/charts/descriptors/voice/nodes/play.js +95 -0
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +105 -0
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +114 -0
- package/build/shared/charts/descriptors/voice/utils/constants.js +8 -0
- package/build/shared/charts/descriptors/voice/utils/design.js +5 -0
- package/build/shared/charts/descriptors/voice/utils/helper.js +11 -0
- package/build/shared/charts/descriptors/voicegateway/index.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +18 -32
- package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +11 -20
- package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +14 -29
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +4 -4
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +1 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +4 -4
- package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +25 -5
- package/build/shared/charts/descriptors/voicegateway2/index.js +6 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +9 -5
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +17 -19
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +19 -105
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +73 -14
- package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +64 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +95 -325
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +99 -0
- package/build/shared/charts/descriptors/voicegateway2/utils/constants.js +7 -0
- package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +39 -0
- package/build/shared/constants.js +3 -1
- package/build/shared/errors/baseError.js +2 -2
- package/build/shared/handoverClients/interfaces/TAnyProviderResponse.js +3 -0
- package/build/shared/handoverClients/interfaces/THandoverEventType.js +12 -0
- package/build/shared/helper/BaseContext.js +1 -1
- package/build/shared/helper/defaultDatepickerFunction.js +13 -0
- package/build/shared/helper/rest/query-string/index.js +5 -5
- package/build/shared/helper/rest/query.js +0 -0
- package/build/shared/interfaces/IApiKey.js +1 -1
- package/build/shared/interfaces/IOrganisation.js +21 -2
- package/build/shared/interfaces/IProfile.js +1 -1
- package/build/shared/interfaces/ISayNodeSettings.js +3 -0
- package/build/shared/interfaces/ai.js +0 -1
- package/build/shared/interfaces/amazonLexV2Interface.js +3 -0
- package/build/shared/interfaces/amqpInterface.js +1 -1
- package/build/shared/interfaces/analytics/IAnalyticsRating.js +13 -0
- package/build/shared/interfaces/analytics/IStepEvent.js +2 -0
- package/build/shared/interfaces/fileStorage.js +23 -0
- package/build/shared/interfaces/handover.js +74 -4
- package/build/shared/interfaces/journeys/IJourney.js +1 -1
- package/build/shared/interfaces/management/deleteOrganisation/deleteOrganisationTypes.js +3 -0
- package/build/shared/interfaces/messageAPI/analytics.js +3 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +89 -3
- package/build/shared/interfaces/messageAPI/handover.js +270 -0
- package/build/shared/interfaces/resources/IAppTemplate.js +24 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +25 -2
- package/build/shared/interfaces/resources/IChart.js +2 -1
- package/build/shared/interfaces/resources/IChartNode.js +3 -2
- package/build/shared/interfaces/resources/IConnection.js +1 -1
- package/build/shared/interfaces/resources/IConnectionSchema.js +1 -1
- package/build/shared/interfaces/resources/IEndpoint.js +2 -0
- package/build/shared/interfaces/resources/IExtension.js +17 -0
- package/build/shared/interfaces/resources/IFile.js +1 -1
- package/build/shared/interfaces/resources/IFlow.js +10 -2
- package/build/shared/interfaces/resources/IFlowState.js +1 -1
- package/build/shared/interfaces/resources/IFunctionInstance.js +1 -1
- package/build/shared/interfaces/resources/IHandoverConfiguration.js +13 -0
- package/build/shared/interfaces/resources/ILexicon.js +1 -1
- package/build/shared/interfaces/resources/ILexiconEntry.js +1 -1
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +5 -1
- package/build/shared/interfaces/resources/IOrganisationDeletion.js +10 -0
- package/build/shared/interfaces/resources/IPlaybookRun.js +7 -7
- package/build/shared/interfaces/resources/IProject.js +14 -1
- package/build/shared/interfaces/resources/IRemoveDuplicatedSlotsAndUpdateLexionEntries.js +3 -0
- package/build/shared/interfaces/resources/TNLUConnectorType.js +1 -0
- package/build/shared/interfaces/resources/TRestChannelType.js +5 -0
- package/build/shared/interfaces/resources/TSocketChannelType.js +5 -5
- package/build/shared/interfaces/resources/TWebhookChannelType.js +10 -0
- package/build/shared/interfaces/resources/intent/IIntent.js +26 -8
- package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +19 -1
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +47 -6
- package/build/shared/interfaces/resources/settings/IFlowSettings.js +20 -2
- package/build/shared/interfaces/resources/settings/ISharedSettings.js +5 -1
- package/build/shared/interfaces/resources/yesNoIntent/IYesNoItem.js +9 -0
- package/build/shared/interfaces/resources/yesNoIntent/index.js +3 -0
- package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IUpdateCognigyLiveAgentInboxRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +21 -0
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IRequestOrganisationDeletionRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/IAudioPreviewLanguages_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/IAudioPreviewRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/IIndexAudioPreviewLanguages_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/ITestVoiceProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/ITestVoiceProvider_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/IVGCallSettings_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/IVoicePrepareCallRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/IVoicePrepareCall_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/audio/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/insights/publish/IPublishAnalyticsRestDataBody.js +4 -0
- package/build/shared/interfaces/restAPI/management/organisations/v2.0/IDeleteOrganisationRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/file/v2.0/IUploadFileRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/file/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICloneFlowRest_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IYesNoSentence_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ILocaleSettings_2_0.js +16 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IDeleteYesNoIntentRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IReadYesNoIntentsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/{flow/v2.0/intent → locales/v2.0/yesNoIntents}/ITrainYesNoIntentsRest_2_0.js +0 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IUpdateYesNoIntentRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntentItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntentMetaData_2_0.js +4 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntents_2_0.js +8 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/ICreateYesNoSentenceRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IDeleteYesNoSentenceRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IIndexYesNoSentencesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IReadYesNoSentenceRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IUpdateYesNoSentenceRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +2 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectRest_2_0.js +1 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/ITrainAllProjectFlowsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ITestTranslationSettingsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ITestTranslationSettings_2_0.js +3 -0
- package/build/shared/interfaces/security/IACL.js +1 -1
- package/build/shared/interfaces/security/IPermission.js +4 -0
- package/build/shared/interfaces/security/IRole.js +13 -1
- package/build/shared/interfaces/trainer/ITrainerRecord.js +1 -1
- package/build/shared/interfaces/user.js +1 -1
- package/package.json +40 -31
- package/types/index.d.ts +1734 -501
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleHandoverRpcEventSchema = exports.pollAgentRepliesEventSchema = exports.activateHandoverConversationSchema = exports.sendMessageToProviderSchema = exports.getHandoverRequestDataSchema = exports.createHandoverRequestDataSchema = void 0;
|
|
4
|
+
const handover_1 = require("../handover");
|
|
5
|
+
exports.createHandoverRequestDataSchema = {
|
|
6
|
+
title: "createHandoverRequestDataSchema",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": [
|
|
9
|
+
"projectId",
|
|
10
|
+
"organisation",
|
|
11
|
+
"userId",
|
|
12
|
+
"sessionId",
|
|
13
|
+
"flowReferenceId",
|
|
14
|
+
"URLToken"
|
|
15
|
+
],
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"projectId": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "mongo-id",
|
|
21
|
+
},
|
|
22
|
+
"organisation": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"format": "mongo-id",
|
|
25
|
+
},
|
|
26
|
+
"userId": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"sessionId": {
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
"flowReferenceId": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": "uuid"
|
|
35
|
+
},
|
|
36
|
+
"flowName": {
|
|
37
|
+
"type": ["string", "null"]
|
|
38
|
+
},
|
|
39
|
+
"profile": {
|
|
40
|
+
"type": "object"
|
|
41
|
+
},
|
|
42
|
+
// We cannot set format: endpoint-channel, since the channel can be
|
|
43
|
+
// overriden by the customer (e.g. for their website)
|
|
44
|
+
"channel": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
},
|
|
47
|
+
"requestedAt": {
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
"requestInputId": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"previousInputId": {
|
|
54
|
+
"type": ["string", "null"]
|
|
55
|
+
},
|
|
56
|
+
"previousInputMessageAmount": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"handoverRequestId": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
},
|
|
62
|
+
"URLToken": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"foreignSessionData": {
|
|
66
|
+
"type": "object"
|
|
67
|
+
},
|
|
68
|
+
"foreignSessionId": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"chatwootInboxId": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
},
|
|
74
|
+
"liveAgentInboxId": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
"liveAgentAllowAgentInject": {
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"sendTranscriptAsFirstMessage": {
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"salesforcePrechatDetails": {
|
|
84
|
+
"type": "array"
|
|
85
|
+
},
|
|
86
|
+
"salesforcePrechatEntities": {
|
|
87
|
+
"type": "array"
|
|
88
|
+
},
|
|
89
|
+
"notifySessionId": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
},
|
|
92
|
+
"disableSensitiveLogging": {
|
|
93
|
+
"type": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"traceId": {
|
|
96
|
+
"type": "string"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
const getHandoverRequestFlowQuerySchema = {
|
|
101
|
+
title: "getHandoverRequestFlowQuerySchema",
|
|
102
|
+
additionalProperties: false,
|
|
103
|
+
type: "object",
|
|
104
|
+
required: ["userId", "organisation"],
|
|
105
|
+
properties: {
|
|
106
|
+
userId: { type: "string" },
|
|
107
|
+
organisation: { type: "string", format: "mongo-id" },
|
|
108
|
+
flowId: { type: "string", format: "mongo-id" }
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const getHandoverRequestSessionQuerySchema = {
|
|
112
|
+
title: "getHandoverRequestSessionQuerySchema",
|
|
113
|
+
additionalProperties: false,
|
|
114
|
+
type: "object",
|
|
115
|
+
required: ["sessionId"],
|
|
116
|
+
properties: {
|
|
117
|
+
sessionId: { type: "string" },
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const getHandoverRequestForeignSessionQuerySchema = {
|
|
121
|
+
title: "getHandoverRequestForeignSessionQuerySchema",
|
|
122
|
+
additionalProperties: false,
|
|
123
|
+
type: "object",
|
|
124
|
+
required: ["foreignSessionId"],
|
|
125
|
+
properties: {
|
|
126
|
+
foreignSessionId: { type: "string" },
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
exports.getHandoverRequestDataSchema = {
|
|
130
|
+
title: "getHandoverRequestDataSchema",
|
|
131
|
+
type: "object",
|
|
132
|
+
additionalProperties: false,
|
|
133
|
+
properties: {
|
|
134
|
+
disableSensitiveLogging: { type: "boolean" },
|
|
135
|
+
traceId: { type: "string" },
|
|
136
|
+
query: {
|
|
137
|
+
// @ts-ignore
|
|
138
|
+
oneOf: [getHandoverRequestFlowQuerySchema, getHandoverRequestSessionQuerySchema, getHandoverRequestForeignSessionQuerySchema]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
exports.sendMessageToProviderSchema = {
|
|
143
|
+
title: "sendMessageToProviderSchema",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"required": [
|
|
146
|
+
"organisation",
|
|
147
|
+
"sessionId",
|
|
148
|
+
"messages",
|
|
149
|
+
"URLToken"
|
|
150
|
+
],
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"properties": {
|
|
153
|
+
"organisation": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"format": "mongo-id",
|
|
156
|
+
},
|
|
157
|
+
"userId": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"sessionId": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"messages": {
|
|
164
|
+
"type": "array",
|
|
165
|
+
"items": {
|
|
166
|
+
"required": [
|
|
167
|
+
"source",
|
|
168
|
+
"userId",
|
|
169
|
+
"message"
|
|
170
|
+
],
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"properties": {
|
|
173
|
+
"source": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"enum": ["bot", "user"]
|
|
176
|
+
},
|
|
177
|
+
"userId": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
"message": {
|
|
181
|
+
"type": ["null", "string"],
|
|
182
|
+
},
|
|
183
|
+
"data": {
|
|
184
|
+
"type": ["object", "null"],
|
|
185
|
+
},
|
|
186
|
+
"settings": {
|
|
187
|
+
"type": ["object", "null"]
|
|
188
|
+
},
|
|
189
|
+
"timestamp": {
|
|
190
|
+
"type": ["object", "null"]
|
|
191
|
+
},
|
|
192
|
+
"attachments": {
|
|
193
|
+
"type": ["array", "null"]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"URLToken": {
|
|
199
|
+
"type": "string"
|
|
200
|
+
},
|
|
201
|
+
"disableSensitiveLogging": {
|
|
202
|
+
"type": "boolean"
|
|
203
|
+
},
|
|
204
|
+
"traceId": {
|
|
205
|
+
"type": "string"
|
|
206
|
+
},
|
|
207
|
+
"message_type": {
|
|
208
|
+
"type": ["null", "string"]
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
exports.activateHandoverConversationSchema = {
|
|
213
|
+
title: "activateHandoverConversationSchema",
|
|
214
|
+
"type": "object",
|
|
215
|
+
"required": [
|
|
216
|
+
"userId",
|
|
217
|
+
"sessionId",
|
|
218
|
+
],
|
|
219
|
+
"additionalProperties": false,
|
|
220
|
+
"properties": {
|
|
221
|
+
"userId": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"sessionId": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
"disableSensitiveLogging": {
|
|
228
|
+
"type": "boolean"
|
|
229
|
+
},
|
|
230
|
+
"traceId": {
|
|
231
|
+
"type": "string"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
exports.pollAgentRepliesEventSchema = {
|
|
236
|
+
title: "pollAgentRepliesEventSchema",
|
|
237
|
+
type: "object",
|
|
238
|
+
additionalProperties: false,
|
|
239
|
+
required: ["handoverSettings", "traceId", "disableSensitiveLogging"],
|
|
240
|
+
properties: {
|
|
241
|
+
handoverSettings: handover_1.handoverSettingsSchema,
|
|
242
|
+
foreignSessionData: handover_1.foreignSessionDataSchema,
|
|
243
|
+
foreignSessionId: { type: "string" },
|
|
244
|
+
traceId: { type: "string" },
|
|
245
|
+
disableSensitiveLogging: { type: "boolean" }
|
|
246
|
+
},
|
|
247
|
+
};
|
|
248
|
+
exports.handleHandoverRpcEventSchema = {
|
|
249
|
+
title: "handleHandoverRpcEventSchema",
|
|
250
|
+
type: "object",
|
|
251
|
+
additionalProperties: false,
|
|
252
|
+
required: [
|
|
253
|
+
"providerId",
|
|
254
|
+
"eventType",
|
|
255
|
+
"message",
|
|
256
|
+
"traceId",
|
|
257
|
+
"disableSensitiveLogging"
|
|
258
|
+
],
|
|
259
|
+
properties: {
|
|
260
|
+
providerId: { type: "string" },
|
|
261
|
+
eventType: { type: "string", enum: ["agentReply", "conversationClosed", "conversationFailed", "unknown"] },
|
|
262
|
+
foreignSessionData: handover_1.foreignSessionDataSchema,
|
|
263
|
+
foreignSessionId: { type: "string" },
|
|
264
|
+
message: { type: ["string", "null"] },
|
|
265
|
+
data: { type: "object" },
|
|
266
|
+
traceId: { type: "string" },
|
|
267
|
+
disableSensitiveLogging: { type: "boolean" }
|
|
268
|
+
},
|
|
269
|
+
};
|
|
270
|
+
//# sourceMappingURL=handover.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.appTemplateSchema = exports.appTemplateDataSchema = void 0;
|
|
4
|
+
const IEntityMeta_1 = require("./IEntityMeta");
|
|
5
|
+
exports.appTemplateDataSchema = {
|
|
6
|
+
title: "appTemplateDataSchema",
|
|
7
|
+
type: "object",
|
|
8
|
+
additionalProperties: false,
|
|
9
|
+
required: ["type", "extension", "label", "path"],
|
|
10
|
+
properties: {
|
|
11
|
+
type: { type: "string", format: "resource-name" },
|
|
12
|
+
extension: { type: "string", format: "package-name" },
|
|
13
|
+
label: { type: "string", format: "resource-name" },
|
|
14
|
+
isCognigy: { type: "boolean" },
|
|
15
|
+
path: { type: "string" }
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.appTemplateSchema = {
|
|
19
|
+
title: "appTemplateSchema",
|
|
20
|
+
type: "object",
|
|
21
|
+
additionalProperties: false,
|
|
22
|
+
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.appTemplateDataSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=IAppTemplate.js.map
|
|
@@ -34,6 +34,7 @@ exports.actionTypes = [
|
|
|
34
34
|
"batchTrainerRecords",
|
|
35
35
|
"cancelTask",
|
|
36
36
|
"changePlaybookStepOrder",
|
|
37
|
+
"cloneFlow",
|
|
37
38
|
"configureIdentityProvider",
|
|
38
39
|
"createPackage",
|
|
39
40
|
"createProjectByTemplate",
|
|
@@ -48,6 +49,7 @@ exports.actionTypes = [
|
|
|
48
49
|
"moveChartNode",
|
|
49
50
|
"packageSnapshot",
|
|
50
51
|
"packageTrainerRecords",
|
|
52
|
+
"prepareCall",
|
|
51
53
|
"redoChart",
|
|
52
54
|
"removeContactIdFromProfile",
|
|
53
55
|
"removeFlowLocalization",
|
|
@@ -59,22 +61,43 @@ exports.actionTypes = [
|
|
|
59
61
|
"removeProjectMember",
|
|
60
62
|
"removeRoleFromUser",
|
|
61
63
|
"removeSlotFromLexiconEntry",
|
|
62
|
-
"
|
|
64
|
+
"requestOrganisationDeletion",
|
|
63
65
|
"resetFailedLoginAttempts",
|
|
64
66
|
"resetIdentityProvider",
|
|
65
67
|
"restoreSnapshot",
|
|
66
68
|
"stopFunctionInstance",
|
|
67
69
|
"setupCognigyLiveAgent",
|
|
68
70
|
"setupCognigyLiveAgentInbox",
|
|
71
|
+
"updateCognigyLiveAgentInbox",
|
|
72
|
+
"trainAllProjectFlows",
|
|
69
73
|
"trainIntents",
|
|
74
|
+
"trainYesNoIntents",
|
|
70
75
|
"triggerFunction",
|
|
71
76
|
"undoChart",
|
|
77
|
+
"updateExtensionPackage",
|
|
72
78
|
"updateProjectMember",
|
|
73
79
|
"uploadExtension",
|
|
74
80
|
"uploadFile",
|
|
75
81
|
"uploadPackage",
|
|
76
82
|
"uploadSnapshotPackage",
|
|
77
83
|
"uploadTrainerRecordsPackage",
|
|
84
|
+
"createAuthenticatedAmazonUser",
|
|
85
|
+
"deleteAmazonAccount",
|
|
86
|
+
"deployAlexaEndpoint",
|
|
87
|
+
"deleteOrganisation",
|
|
88
|
+
"enforcePasswordPolicy",
|
|
89
|
+
"createApiKey",
|
|
90
|
+
"updateOrganisation",
|
|
91
|
+
"createUser",
|
|
92
|
+
"deleteUser",
|
|
93
|
+
"updateUser",
|
|
94
|
+
"changePassword",
|
|
95
|
+
"resetPassword",
|
|
96
|
+
"exportProfileData",
|
|
97
|
+
"mergeProfiles",
|
|
98
|
+
"unmergeProfiles",
|
|
99
|
+
"updateFlowSettings",
|
|
100
|
+
"optionsResolver"
|
|
78
101
|
];
|
|
79
102
|
exports.auditEventSchema = {
|
|
80
103
|
title: "auditEventSchema",
|
|
@@ -114,7 +137,7 @@ exports.auditEventSchema = {
|
|
|
114
137
|
},
|
|
115
138
|
expiresAt: { type: "object", format: "date-time" },
|
|
116
139
|
payload: { type: "string" },
|
|
117
|
-
projectReference: { type: "string", format: "mongo-id" }
|
|
140
|
+
projectReference: { type: "string", format: "mongo-id" }
|
|
118
141
|
}
|
|
119
142
|
};
|
|
120
143
|
//# sourceMappingURL=IAuditEvent.js.map
|
|
@@ -6,7 +6,7 @@ const IChartExecutable_1 = require("./chart/IChartExecutable");
|
|
|
6
6
|
const generateChartRedisKeys = (data) => {
|
|
7
7
|
return [
|
|
8
8
|
`organisationId:${data.organisationReference}:projectId:${data.projectReference}:flowId:${data.resourceReference}:chart`,
|
|
9
|
-
...IChartExecutable_1.generateChartExecutableRedisKeys(data)
|
|
9
|
+
...(0, IChartExecutable_1.generateChartExecutableRedisKeys)(data)
|
|
10
10
|
];
|
|
11
11
|
};
|
|
12
12
|
exports.generateChartRedisKeys = generateChartRedisKeys;
|
|
@@ -22,6 +22,7 @@ exports.chartNodeExcerptSchema = {
|
|
|
22
22
|
isDisabled: { type: "boolean" },
|
|
23
23
|
isEntryPoint: { type: "boolean" },
|
|
24
24
|
label: { type: "string", maxLength: 200 },
|
|
25
|
+
analyticsLabel: { type: ["null", "string"], format: "analytics-label" },
|
|
25
26
|
type: { type: "string", maxLength: 200 },
|
|
26
27
|
extension: { type: "string", format: "package-name" },
|
|
27
28
|
localeReference: { type: "string", format: "mongo-id" }
|
|
@@ -19,7 +19,8 @@ exports.searchableNodeFields = [
|
|
|
19
19
|
"_id",
|
|
20
20
|
"referenceId",
|
|
21
21
|
"extension",
|
|
22
|
-
"config"
|
|
22
|
+
"config",
|
|
23
|
+
"analyticsLabel"
|
|
23
24
|
];
|
|
24
25
|
exports.nodeInDBSchema = {
|
|
25
26
|
title: "nodeInDBSchema",
|
|
@@ -125,5 +126,5 @@ exports.nodeSchema = {
|
|
|
125
126
|
additionalProperties: false,
|
|
126
127
|
properties: Object.assign(Object.assign({ _id: { format: "mongo-id" }, referenceId: { type: "string", format: "uuid" } }, exports.nodeDataSchema.properties), { type: { type: "string", minLength: 1, maxLength: 200 }, extension: { type: "string", format: "package-name" }, chartReference: { format: "mongo-id" }, resourceReference: { format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { format: "mongo-id" }, organisationReference: { format: "mongo-id" } })
|
|
127
128
|
};
|
|
128
|
-
exports.nodeQuerySchema = createQuerySchema_1.createQuerySchema("nodeQuerySchema", exports.nodeSchema);
|
|
129
|
+
exports.nodeQuerySchema = (0, createQuerySchema_1.createQuerySchema)("nodeQuerySchema", exports.nodeSchema);
|
|
129
130
|
//# sourceMappingURL=IChartNode.js.map
|
|
@@ -56,5 +56,5 @@ exports.connectionSchema = {
|
|
|
56
56
|
additionalProperties: false,
|
|
57
57
|
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.connectionDataSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" } }),
|
|
58
58
|
};
|
|
59
|
-
exports.connectionQuerySchema = createQuerySchema_1.createQuerySchema("connectionQuerySchema", exports.connectionSchema);
|
|
59
|
+
exports.connectionQuerySchema = (0, createQuerySchema_1.createQuerySchema)("connectionQuerySchema", exports.connectionSchema);
|
|
60
60
|
//# sourceMappingURL=IConnection.js.map
|
|
@@ -43,5 +43,5 @@ exports.connectionSchemaSchema = {
|
|
|
43
43
|
additionalProperties: false,
|
|
44
44
|
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.connectionSchemaCompleteDataSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
45
45
|
};
|
|
46
|
-
exports.connectionSchemaQuerySchema = createQuerySchema_1.createQuerySchema("connectionSchemaQuerySchema", exports.connectionSchemaSchema);
|
|
46
|
+
exports.connectionSchemaQuerySchema = (0, createQuerySchema_1.createQuerySchema)("connectionSchemaQuerySchema", exports.connectionSchemaSchema);
|
|
47
47
|
//# sourceMappingURL=IConnectionSchema.js.map
|
|
@@ -6,6 +6,7 @@ const ITransformerFunction_1 = require("../transformers/ITransformerFunction");
|
|
|
6
6
|
const handover_1 = require("../handover");
|
|
7
7
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
8
8
|
const IEndpointTranslationSettings_1 = require("../IEndpointTranslationSettings");
|
|
9
|
+
const fileStorage_1 = require("../fileStorage");
|
|
9
10
|
/**
|
|
10
11
|
* This cache-key factory does not work the "normal" way as it does not accept
|
|
11
12
|
* projectId and organisationId. When caching the endpoint configuration, we don't
|
|
@@ -63,6 +64,7 @@ exports.endpointDataSchema = {
|
|
|
63
64
|
useConversations: { type: "boolean" },
|
|
64
65
|
useDashbotAnalytics: { type: "boolean" },
|
|
65
66
|
overrideSnapshotConnections: { type: "boolean" },
|
|
67
|
+
fileStorageSettings: fileStorage_1.fileStorageSettingsSchema,
|
|
66
68
|
},
|
|
67
69
|
};
|
|
68
70
|
exports.endpointSchema = {
|
|
@@ -42,6 +42,23 @@ exports.extensionNodePackageDataSchema = {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
+
},
|
|
46
|
+
appTemplates: {
|
|
47
|
+
type: "array",
|
|
48
|
+
additionalItems: false,
|
|
49
|
+
items: {
|
|
50
|
+
type: "object",
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
required: [
|
|
53
|
+
"type",
|
|
54
|
+
"path"
|
|
55
|
+
],
|
|
56
|
+
properties: {
|
|
57
|
+
label: { type: "string", format: "resource-name" },
|
|
58
|
+
type: { type: "string", format: "resource-name" },
|
|
59
|
+
path: { type: "string" }
|
|
60
|
+
}
|
|
61
|
+
}
|
|
45
62
|
}
|
|
46
63
|
},
|
|
47
64
|
};
|
|
@@ -4,7 +4,7 @@ exports.fileSchema = exports.fileDataSchema = exports.allowedMimeTypes = void 0;
|
|
|
4
4
|
/* Interfaces */
|
|
5
5
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
6
6
|
// use TMimeType.ts from service-api, move to shared
|
|
7
|
-
exports.allowedMimeTypes = ["image/png", "image/jpeg"];
|
|
7
|
+
exports.allowedMimeTypes = ["image/png", "image/jpeg", "application/json"];
|
|
8
8
|
exports.fileDataSchema = {
|
|
9
9
|
title: "fileDataSchema",
|
|
10
10
|
type: "object",
|
|
@@ -46,7 +46,15 @@ exports.flowSchema = {
|
|
|
46
46
|
title: "flowSchema",
|
|
47
47
|
type: "object",
|
|
48
48
|
additionalProperties: false,
|
|
49
|
-
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.flowDataSchema.properties), { feedbackReport: ITrainGroupFeedbackReport_1.trainGroupFeedbackReportDataSchema, isTrainingOutOfDate: { type: "boolean" }, lastTrainedAt: { type: "number" }, localeReference: { format: "mongo-id" }, chartReference: { type: "string", format: "mongo-id" }, intentTrainGroupReference: { type: "string", format: "mongo-id" }, intentTrainGroupReferenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }
|
|
49
|
+
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.flowDataSchema.properties), { feedbackReport: ITrainGroupFeedbackReport_1.trainGroupFeedbackReportDataSchema, isTrainingOutOfDate: { type: "boolean" }, lastTrainedAt: { type: "number" }, localeReference: { format: "mongo-id" }, chartReference: { type: "string", format: "mongo-id" }, intentTrainGroupReference: { type: "string", format: "mongo-id" }, intentTrainGroupReferenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, nluOptions: {
|
|
50
|
+
type: "object",
|
|
51
|
+
additionalProperties: false,
|
|
52
|
+
properties: {
|
|
53
|
+
intentModelVersion: {
|
|
54
|
+
type: "string"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
} }),
|
|
50
58
|
};
|
|
51
|
-
exports.flowQuerySchema = createQuerySchema_1.createQuerySchema("flowQuerySchema", exports.flowSchema);
|
|
59
|
+
exports.flowQuerySchema = (0, createQuerySchema_1.createQuerySchema)("flowQuerySchema", exports.flowSchema);
|
|
52
60
|
//# sourceMappingURL=IFlow.js.map
|
|
@@ -27,5 +27,5 @@ exports.flowStateSchema = {
|
|
|
27
27
|
additionalProperties: false,
|
|
28
28
|
properties: Object.assign(Object.assign({ _id: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }, IEntityMeta_1.entityMetaSchema.properties), exports.flowStateDataSchema.properties),
|
|
29
29
|
};
|
|
30
|
-
exports.flowStateQuerySchema = createQuerySchema_1.createQuerySchema("flowStateQuerySchema", exports.flowStateSchema);
|
|
30
|
+
exports.flowStateQuerySchema = (0, createQuerySchema_1.createQuerySchema)("flowStateQuerySchema", exports.flowStateSchema);
|
|
31
31
|
//# sourceMappingURL=IFlowState.js.map
|
|
@@ -26,5 +26,5 @@ exports.functionInstanceSchema = {
|
|
|
26
26
|
minProperties: 1,
|
|
27
27
|
properties: Object.assign(Object.assign(Object.assign({}, exports.functionInstanceDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { functionReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
28
28
|
};
|
|
29
|
-
exports.functionInstanceQuerySchema = createQuerySchema_1.createQuerySchema("functionInstanceQuerySchema", exports.functionInstanceSchema);
|
|
29
|
+
exports.functionInstanceQuerySchema = (0, createQuerySchema_1.createQuerySchema)("functionInstanceQuerySchema", exports.functionInstanceSchema);
|
|
30
30
|
//# sourceMappingURL=IFunctionInstance.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handoverConfigurationSchema = void 0;
|
|
4
|
+
exports.handoverConfigurationSchema = {
|
|
5
|
+
title: "templateConfigurationSchema",
|
|
6
|
+
type: "object",
|
|
7
|
+
additionalProperties: false,
|
|
8
|
+
properties: {
|
|
9
|
+
setupLiveAgentInbox: { type: "boolean" },
|
|
10
|
+
whisperAssistConfiguration: { type: "string", format: "whisper-assist-config" },
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=IHandoverConfiguration.js.map
|
|
@@ -21,7 +21,7 @@ exports.lexiconSchema = {
|
|
|
21
21
|
minProperties: 1,
|
|
22
22
|
properties: Object.assign(Object.assign(Object.assign({}, exports.lexiconDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
23
23
|
};
|
|
24
|
-
exports.lexiconQuerySchema = createQuerySchema_1.createQuerySchema("lexiconQuerySchema", exports.lexiconSchema);
|
|
24
|
+
exports.lexiconQuerySchema = (0, createQuerySchema_1.createQuerySchema)("lexiconQuerySchema", exports.lexiconSchema);
|
|
25
25
|
const generateExportFromLexiconRedisKeys = (data) => {
|
|
26
26
|
return [
|
|
27
27
|
`organisationId:${data.organisationReference}:projectId:${data.projectReference}:lexiconId:${data._id}:exportfromlexicon`
|
|
@@ -19,5 +19,5 @@ exports.lexiconEntrySchema = {
|
|
|
19
19
|
additionalProperties: false,
|
|
20
20
|
properties: Object.assign(Object.assign(Object.assign({}, exports.lexiconEntryDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { referenceId: { type: "string", format: "uuid" }, lexiconReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" } }),
|
|
21
21
|
};
|
|
22
|
-
exports.lexiconEntryQuerySchema = createQuerySchema_1.createQuerySchema("lexiconEntryQuerySchema", exports.lexiconEntrySchema);
|
|
22
|
+
exports.lexiconEntryQuerySchema = (0, createQuerySchema_1.createQuerySchema)("lexiconEntryQuerySchema", exports.lexiconEntrySchema);
|
|
23
23
|
//# sourceMappingURL=ILexiconEntry.js.map
|
|
@@ -94,6 +94,7 @@ exports.nodeFieldTypes = [
|
|
|
94
94
|
"typescript",
|
|
95
95
|
"xml",
|
|
96
96
|
"textArray",
|
|
97
|
+
"cognigyTextArray",
|
|
97
98
|
"keyValuePairs",
|
|
98
99
|
"chipInput",
|
|
99
100
|
"cognigyText",
|
|
@@ -172,8 +173,11 @@ exports.nodeFieldORConditionSchema = {
|
|
|
172
173
|
or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
173
174
|
}
|
|
174
175
|
};
|
|
176
|
+
// @ts-ignore
|
|
175
177
|
exports.nodeFieldConditionSchema = {
|
|
178
|
+
title: "nodeFieldConditionSchema",
|
|
176
179
|
$id: "nodeFieldConditionSchema",
|
|
180
|
+
// @ts-ignore
|
|
177
181
|
oneOf: [
|
|
178
182
|
// @ts-ignore
|
|
179
183
|
exports.nodeFieldSingleConditionSchema,
|
|
@@ -275,7 +279,7 @@ exports.nodeSectionSchema = {
|
|
|
275
279
|
defaultCollapsed: { type: "boolean" },
|
|
276
280
|
fields: {
|
|
277
281
|
type: "array",
|
|
278
|
-
maxItems:
|
|
282
|
+
maxItems: 25,
|
|
279
283
|
additionalItems: false,
|
|
280
284
|
uniqueItems: true,
|
|
281
285
|
items: {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EOrganisationDeletionStatus = void 0;
|
|
4
|
+
var EOrganisationDeletionStatus;
|
|
5
|
+
(function (EOrganisationDeletionStatus) {
|
|
6
|
+
EOrganisationDeletionStatus["TOKEN_REQUESTED"] = "TOKEN_REQUESTED";
|
|
7
|
+
EOrganisationDeletionStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
8
|
+
EOrganisationDeletionStatus["COMPLETED"] = "COMPLETED";
|
|
9
|
+
})(EOrganisationDeletionStatus = exports.EOrganisationDeletionStatus || (exports.EOrganisationDeletionStatus = {}));
|
|
10
|
+
//# sourceMappingURL=IOrganisationDeletion.js.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.playbookRunSchema = exports.playbookRunDataSchema = exports.playbookRunStepResultSchema = exports.playbookRunStepResultAssertSchema = exports.playbookRunStatus = void 0;
|
|
3
|
+
exports.playbookRunQuerySchema = exports.playbookRunSchema = exports.playbookRunDataSchema = exports.playbookRunStepResultSchema = exports.playbookRunStepResultAssertSchema = exports.playbookRunStatus = void 0;
|
|
4
|
+
/* Custom modules */
|
|
5
|
+
const createQuerySchema_1 = require("../../helper/createQuerySchema");
|
|
4
6
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
5
|
-
exports.playbookRunStatus = [
|
|
6
|
-
"successful",
|
|
7
|
-
"failed"
|
|
8
|
-
];
|
|
7
|
+
exports.playbookRunStatus = ["successful", "failed"];
|
|
9
8
|
exports.playbookRunStepResultAssertSchema = {
|
|
10
9
|
title: "playbookRunStepResultAssertSchema",
|
|
11
10
|
type: "object",
|
|
@@ -15,7 +14,7 @@ exports.playbookRunStepResultAssertSchema = {
|
|
|
15
14
|
type: { type: "string", maxLength: 200 },
|
|
16
15
|
params: { type: "object" },
|
|
17
16
|
actual: { type: "object" },
|
|
18
|
-
status: { type: "string", enum: [...exports.playbookRunStatus] }
|
|
17
|
+
status: { type: "string", enum: [...exports.playbookRunStatus] }
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
exports.playbookRunStepResultSchema = {
|
|
@@ -56,6 +55,7 @@ exports.playbookRunSchema = {
|
|
|
56
55
|
title: "playbookRunSchema",
|
|
57
56
|
type: "object",
|
|
58
57
|
additionalProperties: true,
|
|
59
|
-
properties: Object.assign(Object.assign(Object.assign({}, exports.playbookRunDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
58
|
+
properties: Object.assign(Object.assign(Object.assign({}, exports.playbookRunDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { entrypoint: { type: "string", format: "mongo-id" }, localeId: { type: "string", format: "uuid" }, flowId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
60
59
|
};
|
|
60
|
+
exports.playbookRunQuerySchema = (0, createQuerySchema_1.createQuerySchema)("playbookRunQuerySchema", exports.playbookRunSchema);
|
|
61
61
|
//# sourceMappingURL=IPlaybookRun.js.map
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateProjectRedisKeys = exports.projectSchema = exports.projectPropertiesSchema = exports.projectDataSchema = void 0;
|
|
3
|
+
exports.generateProjectRedisKeys = exports.projectSchema = exports.projectPropertiesSchema = exports.projectDataSchema = exports.handoverConfigurationSchema = void 0;
|
|
4
4
|
/* Interfaces & Types */
|
|
5
5
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
6
|
+
const whisperAssistConfigurationTypes = [
|
|
7
|
+
"none", "basic", "template"
|
|
8
|
+
];
|
|
9
|
+
exports.handoverConfigurationSchema = {
|
|
10
|
+
title: "handoverConfigurationSchema",
|
|
11
|
+
type: "object",
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
properties: {
|
|
14
|
+
setupLiveAgentInbox: { type: "boolean" },
|
|
15
|
+
whisperAssistConfiguration: { type: "string", enum: [...whisperAssistConfigurationTypes] },
|
|
16
|
+
},
|
|
17
|
+
};
|
|
6
18
|
exports.projectDataSchema = {
|
|
7
19
|
title: "projectDataSchema",
|
|
8
20
|
type: "object",
|
|
@@ -10,6 +22,7 @@ exports.projectDataSchema = {
|
|
|
10
22
|
properties: {
|
|
11
23
|
name: { type: "string", format: "resource-name" },
|
|
12
24
|
color: { type: "string", format: "color" },
|
|
25
|
+
handoverConfiguration: Object.assign({ required: ["setupLiveAgentInbox", "whisperAssistConfiguration"] }, exports.handoverConfigurationSchema)
|
|
13
26
|
},
|
|
14
27
|
};
|
|
15
28
|
exports.projectPropertiesSchema = {
|