@cognigy/rest-api-client 0.14.0 → 0.16.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.
Files changed (334) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/GenericTusFn.js +64 -0
  3. package/build/RestAPIClient.js +7 -0
  4. package/build/apigroups/AdministrationAPIGroup_2_0.js +7 -2
  5. package/build/apigroups/AdministrationAPIGroup_2_1.js +13 -0
  6. package/build/apigroups/ResourcesAPIGroup_2_0.js +78 -13
  7. package/build/apigroups/TTusAPIOperation.js +3 -0
  8. package/build/apigroups/index.js +5 -1
  9. package/build/connector/AxiosAdapter.js +6 -5
  10. package/build/shared/api/eightByEight/eightByEightInterfaces.js +3 -0
  11. package/build/shared/charts/descriptors/agentAssist/constants/constants.js +7 -0
  12. package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +41 -0
  13. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +54 -0
  14. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +187 -0
  15. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +93 -0
  16. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +81 -0
  17. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +84 -0
  18. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage2.js +97 -0
  19. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +85 -0
  20. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +41 -0
  21. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/stylesPartial.js +15 -0
  22. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +53 -0
  23. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +135 -0
  24. package/build/shared/charts/descriptors/agentAssist/index.js +24 -0
  25. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +625 -0
  26. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +77 -0
  27. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +86 -0
  28. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +74 -0
  29. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +105 -0
  30. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +98 -0
  31. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +86 -0
  32. package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +171 -0
  33. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +72 -0
  34. package/build/shared/charts/descriptors/allFields.js +6 -0
  35. package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -1
  36. package/build/shared/charts/descriptors/analytics/blindMode.js +5 -5
  37. package/build/shared/charts/descriptors/analytics/completeGoal.js +2 -2
  38. package/build/shared/charts/descriptors/analytics/deactivateProfile.js +2 -2
  39. package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -1
  40. package/build/shared/charts/descriptors/analytics/mergeProfile.js +2 -2
  41. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +34 -27
  42. package/build/shared/charts/descriptors/analytics/requestRating.js +5 -5
  43. package/build/shared/charts/descriptors/analytics/setRating.js +4 -4
  44. package/build/shared/charts/descriptors/analytics/updateProfile.js +3 -3
  45. package/build/shared/charts/descriptors/apps/getAppSessionPin.js +7 -14
  46. package/build/shared/charts/descriptors/apps/initAppSession.js +99 -87
  47. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +101 -19
  48. package/build/shared/charts/descriptors/apps/setAppState.js +7 -7
  49. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +141 -99
  50. package/build/shared/charts/descriptors/apps/utils/buildAppUrl.js +2 -6
  51. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/TGenerativeAIConnectionFields.js +3 -0
  52. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/alephAlphaProviderConnection.js +11 -0
  53. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/anthropicProviderConnection.js +11 -0
  54. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -1
  55. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +11 -0
  56. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/googleVertexAIProviderConnection.js +16 -0
  57. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +18 -2
  58. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +2 -2
  59. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +5 -5
  60. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +4 -4
  61. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +4 -4
  62. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +13 -13
  63. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +18 -18
  64. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +17 -17
  65. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +13 -13
  66. package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +2 -2
  67. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +13 -13
  68. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +15 -15
  69. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +15 -15
  70. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +28 -28
  71. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +3 -1
  72. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2Connection.js +18 -0
  73. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +102 -70
  74. package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +3 -3
  75. package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +6 -6
  76. package/build/shared/charts/descriptors/connectionNodes/speechProviders/awsSpeechProviderConnection.js +14 -0
  77. package/build/shared/charts/descriptors/connectionNodes/speechProviders/googleSpeechProviderConnection.js +16 -0
  78. package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +23 -0
  79. package/build/shared/charts/descriptors/connectionNodes/speechProviders/microsoftSpeechProviderConnection.js +12 -0
  80. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +11 -11
  81. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +13 -13
  82. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +11 -11
  83. package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +6 -6
  84. package/build/shared/charts/descriptors/connectionNodes/translationProviders/deeplTranslationProviderConnection.js +15 -0
  85. package/build/shared/charts/descriptors/connectionNodes/translationProviders/googleTranslationProviderConnection.js +15 -0
  86. package/build/shared/charts/descriptors/connectionNodes/translationProviders/index.js +23 -0
  87. package/build/shared/charts/descriptors/connectionNodes/translationProviders/microsoftTranslationProviderConnection.js +21 -0
  88. package/build/shared/charts/descriptors/data/addToContext.js +7 -7
  89. package/build/shared/charts/descriptors/data/code.js +3 -3
  90. package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -1
  91. package/build/shared/charts/descriptors/data/copySlotsToContext.js +9 -9
  92. package/build/shared/charts/descriptors/data/log.js +7 -7
  93. package/build/shared/charts/descriptors/data/removeFromContext.js +7 -7
  94. package/build/shared/charts/descriptors/data/resetContext.js +2 -2
  95. package/build/shared/charts/descriptors/index.js +47 -12
  96. package/build/shared/charts/descriptors/knowledgeSearch/constants/constants.js +6 -0
  97. package/build/shared/charts/descriptors/knowledgeSearch/index.js +10 -0
  98. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearch.js +154 -0
  99. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearchV2.js +151 -0
  100. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +985 -0
  101. package/build/shared/charts/descriptors/liveAgent/assistInfo.js +25 -25
  102. package/build/shared/charts/descriptors/logic/disableSlotFillers.js +4 -4
  103. package/build/shared/charts/descriptors/logic/enableSlotFillers.js +3 -3
  104. package/build/shared/charts/descriptors/logic/executeFlow.js +9 -9
  105. package/build/shared/charts/descriptors/logic/goTo.js +20 -18
  106. package/build/shared/charts/descriptors/logic/if/if.js +3 -3
  107. package/build/shared/charts/descriptors/logic/interval/interval.js +3 -3
  108. package/build/shared/charts/descriptors/logic/once/once.js +1 -1
  109. package/build/shared/charts/descriptors/logic/resetState.js +1 -1
  110. package/build/shared/charts/descriptors/logic/setState.js +4 -4
  111. package/build/shared/charts/descriptors/logic/setTranslation.js +15 -15
  112. package/build/shared/charts/descriptors/logic/sleep.js +2 -2
  113. package/build/shared/charts/descriptors/logic/stop.js +1 -1
  114. package/build/shared/charts/descriptors/logic/switch/case.js +1 -1
  115. package/build/shared/charts/descriptors/logic/switch/default.js +1 -1
  116. package/build/shared/charts/descriptors/logic/switch/switch.js +28 -19
  117. package/build/shared/charts/descriptors/logic/switchLocale.js +5 -5
  118. package/build/shared/charts/descriptors/logic/think.js +11 -11
  119. package/build/shared/charts/descriptors/logic/thinkV2.js +11 -11
  120. package/build/shared/charts/descriptors/logic/wait.js +1 -1
  121. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +4 -4
  122. package/build/shared/charts/descriptors/message/datePicker.js +1 -1
  123. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +68 -36
  124. package/build/shared/charts/descriptors/message/question/question.js +796 -210
  125. package/build/shared/charts/descriptors/message/question/utils/cleanTextUtils.js +191 -0
  126. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +40 -40
  127. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +37 -27
  128. package/build/shared/charts/descriptors/message/say.js +37 -4
  129. package/build/shared/charts/descriptors/message/sendImage.js +1 -1
  130. package/build/shared/charts/descriptors/message/sendText.js +2 -2
  131. package/build/shared/charts/descriptors/microsoft/getToken.js +1 -1
  132. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
  133. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +1 -1
  134. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +5 -5
  135. package/build/shared/charts/descriptors/nlu/cleanText.js +104 -0
  136. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +15 -15
  137. package/build/shared/charts/descriptors/nlu/extractAnswer.js +11 -11
  138. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +33 -33
  139. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFiller.js +270 -0
  140. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerFallback.js +27 -0
  141. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerSuccess.js +27 -0
  142. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +174 -0
  143. package/build/shared/charts/descriptors/nlu/index.js +9 -1
  144. package/build/shared/charts/descriptors/nlu/matchPattern.js +16 -16
  145. package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +5 -5
  146. package/build/shared/charts/descriptors/placeholder.js +3 -3
  147. package/build/shared/charts/descriptors/service/GPTConversation.js +780 -0
  148. package/build/shared/charts/descriptors/service/GPTPrompt.js +394 -0
  149. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +48 -33
  150. package/build/shared/charts/descriptors/service/closeHandover.js +34 -0
  151. package/build/shared/charts/descriptors/service/conversationSummary.js +148 -0
  152. package/build/shared/charts/descriptors/service/handover.js +18 -17
  153. package/build/shared/charts/descriptors/service/handoverInactivityTimer.js +37 -0
  154. package/build/shared/charts/descriptors/service/handoverV2.js +179 -51
  155. package/build/shared/charts/descriptors/service/httpRequest.js +52 -52
  156. package/build/shared/charts/descriptors/service/index.js +11 -3
  157. package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +3 -3
  158. package/build/shared/charts/descriptors/voice/index.js +5 -1
  159. package/build/shared/{interfaces/twilioInterface.js → charts/descriptors/voice/interface/IBandwidth.js} +1 -1
  160. package/build/shared/charts/descriptors/voice/mappers/base.mapper.js +97 -0
  161. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +32 -9
  162. package/build/shared/charts/descriptors/voice/mappers/muteSpeechInput.mapper.js +67 -0
  163. package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +73 -19
  164. package/build/shared/charts/descriptors/voice/mappers/record.mapper.js +103 -0
  165. package/build/shared/charts/descriptors/voice/mappers/sendMetadata.mapper.js +68 -0
  166. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +158 -66
  167. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +68 -16
  168. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +14 -20
  169. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +7 -7
  170. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +10 -18
  171. package/build/shared/charts/descriptors/voice/nodes/hangup.js +2 -2
  172. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +52 -0
  173. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +15 -14
  174. package/build/shared/charts/descriptors/voice/nodes/play.js +13 -9
  175. package/build/shared/charts/descriptors/voice/nodes/sendMetadata.js +51 -0
  176. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +199 -21
  177. package/build/shared/charts/descriptors/voice/nodes/transfer.js +21 -13
  178. package/build/shared/charts/descriptors/voice/utils/vgConstants.js +14 -0
  179. package/build/shared/charts/descriptors/voicegateway/index.js +14 -11
  180. package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +10 -10
  181. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +64 -62
  182. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +14 -14
  183. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +2 -2
  184. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +18 -15
  185. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +41 -41
  186. package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +15 -19
  187. package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +3 -3
  188. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +113 -97
  189. package/build/shared/charts/descriptors/voicegateway2/index.js +5 -1
  190. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +5 -5
  191. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +3 -4
  192. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +60 -0
  193. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +42 -18
  194. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +108 -0
  195. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +9 -10
  196. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +14 -29
  197. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +424 -74
  198. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +410 -45
  199. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +33 -7
  200. package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +4 -0
  201. package/build/shared/charts/helpers/generativeAI/getRephraseWithAIFields.js +8 -8
  202. package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +1 -1
  203. package/build/shared/constants.js +18 -1
  204. package/build/shared/errors/ErrorCode.js +1 -0
  205. package/build/shared/errors/TooManyRequestsError.js +59 -0
  206. package/build/shared/errors/baseError.js +6 -2
  207. package/build/shared/errors/codes.js +2 -1
  208. package/build/shared/errors/index.js +3 -1
  209. package/build/shared/handoverClients/interfaces/THandoverEventType.js +3 -1
  210. package/build/shared/helper/BaseContext.js +43 -3
  211. package/build/shared/helper/nlu/dicts/dicts.js +691 -0
  212. package/build/shared/helper/nlu/textCleaner.js +413 -0
  213. package/build/shared/interfaces/IApiKey.js +2 -7
  214. package/build/shared/interfaces/IEndpointTranslationSettings.js +9 -0
  215. package/build/shared/interfaces/IOrganisation.js +4 -8
  216. package/build/shared/interfaces/IProfileSchema.js +1 -7
  217. package/build/shared/interfaces/agentAssist/ISendConfigUpdateParams.js +3 -0
  218. package/build/shared/interfaces/agentAssist/ISendTileUpdateParams.js +3 -0
  219. package/build/shared/interfaces/agentAssist/ISendUpdateReferenceParams.js +3 -0
  220. package/build/shared/interfaces/agentAssist/index.js +3 -0
  221. package/build/shared/interfaces/ai.js +0 -16
  222. package/build/shared/interfaces/amqpInterface.js +25 -23
  223. package/build/shared/interfaces/channels/genesysBotConnector.js +21 -0
  224. package/build/shared/interfaces/channels/niceCXOne.js +8 -0
  225. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +80 -0
  226. package/build/shared/interfaces/generativeAI/IGenerativeAIPrompts.js +3 -0
  227. package/build/shared/interfaces/generativeAI/IRunGenerativeAIPromptOptions.js +3 -0
  228. package/build/shared/interfaces/handover.js +70 -4
  229. package/build/shared/interfaces/journeys/IJourney.js +6 -0
  230. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +2 -0
  231. package/build/shared/interfaces/knowledgesearch/search.js +3 -0
  232. package/build/shared/interfaces/messageAPI/ai.js +2 -1
  233. package/build/shared/interfaces/messageAPI/endpoints.js +177 -5
  234. package/build/shared/interfaces/messageAPI/handover.js +4 -1
  235. package/build/shared/interfaces/resources/IAgentAssistConfig.js +26 -20
  236. package/build/shared/interfaces/resources/IAuditEvent.js +9 -1
  237. package/build/shared/interfaces/resources/IChart.js +1 -10
  238. package/build/shared/interfaces/resources/IConnection.js +7 -1
  239. package/build/shared/interfaces/resources/IConnectionSchema.js +3 -0
  240. package/build/shared/interfaces/resources/IEndpoint.js +3 -14
  241. package/build/shared/interfaces/resources/IExtension.js +3 -0
  242. package/build/shared/interfaces/resources/IFlow.js +15 -10
  243. package/build/shared/interfaces/resources/IFunction.js +1 -7
  244. package/build/shared/interfaces/resources/IGenerateNodeOutput.js +3 -0
  245. package/build/shared/interfaces/resources/ILargeLanguageModel.js +73 -0
  246. package/build/shared/interfaces/resources/ILexicon.js +2 -7
  247. package/build/shared/interfaces/resources/INodeDescriptorSet.js +55 -30
  248. package/build/shared/interfaces/resources/IPackage.js +1 -7
  249. package/build/shared/interfaces/resources/IPlaybookRun.js +2 -1
  250. package/build/shared/interfaces/resources/IProject.js +1 -7
  251. package/build/shared/interfaces/resources/ISnapshot.js +2 -14
  252. package/build/shared/interfaces/resources/TNLUConnectorType.js +2 -2
  253. package/build/shared/interfaces/resources/TResourceType.js +16 -5
  254. package/build/shared/interfaces/resources/TRestChannelType.js +16 -11
  255. package/build/shared/interfaces/resources/TWebhookChannelType.js +6 -1
  256. package/build/shared/interfaces/resources/chart/IChartExecutable.js +1 -7
  257. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +50 -0
  258. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +42 -0
  259. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeStore.js +26 -0
  260. package/build/shared/interfaces/resources/settings/IAgentSettings.js +7 -70
  261. package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +36 -0
  262. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +25 -88
  263. package/build/shared/interfaces/resources/settings/IGenerativeAIUseCase.js +3 -0
  264. package/build/shared/interfaces/resources/settings/ISharedSettings.js +2 -2
  265. package/build/shared/interfaces/resources/settings/ITranslationSettings.js +63 -0
  266. package/build/shared/interfaces/resources/settings/index.js +7 -5
  267. package/build/shared/interfaces/restAPI/administration/user/v2.1/IApiKeyIndexItem_2_1.js +3 -0
  268. package/build/shared/interfaces/restAPI/administration/user/v2.1/IApiKey_2_1.js +3 -0
  269. package/build/shared/interfaces/restAPI/administration/user/v2.1/ICreateApiKeyRest_2_1.js +3 -0
  270. package/build/shared/interfaces/restAPI/administration/user/v2.1/IIndexApiKeysMeRest_2_1.js +3 -0
  271. package/build/shared/interfaces/restAPI/administration/user/v2.1/index.js +3 -0
  272. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/IReadVoiceGatewayAccountRest_2_0.js +3 -0
  273. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/ISetupVoiceGatewayAccountRest_2_0.js +3 -0
  274. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/index.js +3 -0
  275. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +0 -2
  276. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterOrganisationRest_2_0.js +3 -0
  277. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterRest_2_0.js +3 -0
  278. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IKnowlegeQueryCounterAggregatedValue_2_0.js +3 -0
  279. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/index.js +3 -0
  280. package/build/shared/interfaces/restAPI/resources/agentAssist/v2.0/IReadAgentAssistSessionDataRest_2_0.js +3 -0
  281. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IGenerateNodeOutputRest_2_0.js +3 -0
  282. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/ICreateKnowledgeSearchIndexRest_2_0.js +3 -0
  283. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/IDeleteKnowledgeSearchIndexRest_2_0.js +3 -0
  284. package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/index.js +3 -0
  285. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/ICreateKnowledgeStoreRest_2_0.js +3 -0
  286. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IDeleteKnowledgeStoreRest_2_0.js +3 -0
  287. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IIndexKnowledgeStoresRest_2_0.js +3 -0
  288. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IIngestKnowledgeStoreRest_2_0.js +3 -0
  289. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IKnowledgeStore_2_0.js +3 -0
  290. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IReadKnowledgeStoreRest_2_0.js +3 -0
  291. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/IUpdateKnowledgeStoreRest_2_0.js +3 -0
  292. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/index.js +3 -0
  293. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/ICreateKnowledgeSourceRest_2_0.js +3 -0
  294. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IDeleteKnowledgeSourceRest_2_0.js +3 -0
  295. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IIndexKnowledgeSourcesRest_2_0.js +3 -0
  296. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IKnowledgeSource_2_0.js +3 -0
  297. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IReadKnowledgeSourceRest_2_0.js +3 -0
  298. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IUpdateKnowledgeSourceRest_2_0.js +3 -0
  299. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/IUploadKnowledgeSourceFileRest_2_0.js +4 -0
  300. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/ICreateKnowledgeChunkRest_2_0.js +3 -0
  301. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IDeleteKnowledgeChunkRest_2_0.js +3 -0
  302. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IIndexKnowledgeChunksRest_2_0.js +3 -0
  303. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IKnowledgeChunk_2_0.js +3 -0
  304. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IReadKnowledgeChunkRest_2_0.js +3 -0
  305. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/source/chunk/IUpdateKnowledgeChunkRest_2_0.js +3 -0
  306. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ICloneLargeLanguageModelRest_2_0.js +4 -0
  307. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ICreateLargeLanguageModelRest_2_0.js +3 -0
  308. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IDeleteLargeLanguageModelRest_2_0.js +3 -0
  309. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IIndexLargeLanguageModelsRest_2_0.js +3 -0
  310. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ILargeLanguageModelIndexItem_2_0.js +3 -0
  311. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ILargeLanguageModel_2_0.js +3 -0
  312. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IReadLargeLanguageModelRest_2_0.js +3 -0
  313. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/ITestLargeLanguageModelRest_2_0.js +3 -0
  314. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IUpdateLargeLanguageModelRest_2_0.js +3 -0
  315. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/index.js +3 -0
  316. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +3 -3
  317. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISetupCognigyGenerativeAIRest_2_0.js +4 -0
  318. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +17 -0
  319. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/index.js +3 -0
  320. package/build/shared/interfaces/security/IACL.js +1 -7
  321. package/build/shared/interfaces/security/IIdentityProvider.js +1 -7
  322. package/build/shared/interfaces/security/IKnowledgeQueryCounterAggregatedValue.js +3 -0
  323. package/build/shared/interfaces/security/IPermission.js +8 -2
  324. package/build/shared/interfaces/security/IRole.js +6 -2
  325. package/build/shared/interfaces/security/index.js +1 -2
  326. package/build/shared/interfaces/taskmanager/ITask.js +1 -0
  327. package/build/shared/interfaces/trainer/ITrainerRecord.js +1 -1
  328. package/build/shared/interfaces/user.js +1 -9
  329. package/build/test.js +27 -0
  330. package/package.json +19 -17
  331. package/types/index.d.ts +10428 -8487
  332. package/build/shared/charts/descriptors/service/completeText.js +0 -316
  333. package/build/shared/charts/descriptors/voice/utils/constants.js +0 -8
  334. package/build/shared/charts/descriptors/voicegateway2/utils/constants.js +0 -7
@@ -10,7 +10,7 @@ exports.SEND_IMAGE = (0, createNodeDescriptor_1.createNodeDescriptor)({
10
10
  {
11
11
  key: "url",
12
12
  type: "cognigyText",
13
- label: "Image URL",
13
+ label: "UI__NODE_EDITOR__MESSAGE__SEND_IMAGE__FIELDS__URL__LABEL",
14
14
  defaultValue: "",
15
15
  },
16
16
  ],
@@ -13,8 +13,8 @@ exports.SEND_TEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
13
  {
14
14
  key: "text",
15
15
  type: "cognigyText",
16
- label: "Text Message",
17
- defaultValue: 'Hello World!'
16
+ label: "UI__NODE_EDITOR__MESSAGE__SEND_TEXT__FIELDS__TEXT__LABEL",
17
+ defaultValue: "Hello World!"
18
18
  },
19
19
  ],
20
20
  preview: {
@@ -13,7 +13,7 @@ const design_1 = require("./utils/design");
13
13
  exports.microsoftGetTokenNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
14
14
  type: "microsoftGetToken",
15
15
  defaultLabel: "Get Token",
16
- summary: "Get or renew a token for SSO",
16
+ summary: "UI__NODE_EDITOR__MICROSOFT__GET_TOKEN__SUMMARY",
17
17
  appearance: {
18
18
  showIcon: true,
19
19
  color: design_1.nodeColor
@@ -13,7 +13,7 @@ const design_1 = require("./utils/design");
13
13
  exports.microsoftInvalidateTokenNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
14
14
  type: "microsoftInvalidateToken",
15
15
  defaultLabel: "Invalidate Token",
16
- summary: "Remove the SSO Token",
16
+ summary: "UI__NODE_EDITOR__MICROSOFT__INVALID_TOKEN__SUMMARY",
17
17
  appearance: {
18
18
  showIcon: true,
19
19
  color: design_1.nodeColor
@@ -13,7 +13,7 @@ const design_1 = require("../utils/design");
13
13
  exports.microsoftTokenStatusNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
14
14
  type: "microsoftTokenStatus",
15
15
  defaultLabel: "Token Status",
16
- summary: "Verify the token status for SSO",
16
+ summary: "UI__NODE_EDITOR__MICROSOFT__TOKEN_STATUS__SUMMARY",
17
17
  appearance: {
18
18
  showIcon: true,
19
19
  color: design_1.nodeColor,
@@ -12,7 +12,7 @@ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
12
12
  exports.ADD_LEXICON_KEYPHRASE = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
13
  type: "addLexiconKeyphrase",
14
14
  defaultLabel: "Add Lexicon Keyphrase",
15
- summary: "Adds a keyphrase to a lexicon",
15
+ summary: "UI__NODE_EDITOR__NLU__ADD_LEXICON_KEY_PHRASE__SUMMARY",
16
16
  appearance: {
17
17
  showIcon: false
18
18
  },
@@ -20,7 +20,7 @@ exports.ADD_LEXICON_KEYPHRASE = (0, createNodeDescriptor_1.createNodeDescriptor)
20
20
  {
21
21
  key: "lexiconId",
22
22
  type: "cognigyText",
23
- label: "Lexicon ID",
23
+ label: "UI__NODE_EDITOR__NLU__ADD_LEXICON_KEY_PHRASE__FIELDS__LEXICONID__LABEL",
24
24
  params: {
25
25
  required: true
26
26
  }
@@ -28,7 +28,7 @@ exports.ADD_LEXICON_KEYPHRASE = (0, createNodeDescriptor_1.createNodeDescriptor)
28
28
  {
29
29
  key: "keyphrase",
30
30
  type: "cognigyText",
31
- label: "Keyphrase",
31
+ label: "UI__NODE_EDITOR__NLU__ADD_LEXICON_KEY_PHRASE__FIELDS__KEYPHRASE__LABEL",
32
32
  params: {
33
33
  required: true
34
34
  }
@@ -36,12 +36,12 @@ exports.ADD_LEXICON_KEYPHRASE = (0, createNodeDescriptor_1.createNodeDescriptor)
36
36
  {
37
37
  key: "slots",
38
38
  type: "textArray",
39
- label: "Slot Tags"
39
+ label: "UI__NODE_EDITOR__NLU__ADD_LEXICON_KEY_PHRASE__FIELDS__SLOTS__LABEL"
40
40
  },
41
41
  {
42
42
  key: "synonyms",
43
43
  type: "textArray",
44
- label: "Synonyms"
44
+ label: "UI__NODE_EDITOR__NLU__ADD_LEXICON_KEY_PHRASE__FIELDS__SYNONYMS__LABEL"
45
45
  }
46
46
  ],
47
47
  tags: ["data", "nlu"],
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CLEAN_TEXT = void 0;
4
+ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
5
+ const textCleaner_1 = require("../../../helper/nlu/textCleaner");
6
+ const cleanTextUtils_1 = require("../message/question/utils/cleanTextUtils");
7
+ exports.CLEAN_TEXT = (0, createNodeDescriptor_1.createNodeDescriptor)({
8
+ type: "cleanText",
9
+ defaultLabel: "Clean Text",
10
+ summary: "UI__NODE_EDITOR__NLU__CLEAN_TEXT__DEFAULT_SUMMARY",
11
+ tags: ["nlu", "clean", "cleaning", "parser", "parsing"],
12
+ preview: {
13
+ key: "textToClean",
14
+ type: "text"
15
+ },
16
+ fields: [].concat((0, cleanTextUtils_1.getCleanTextFields)()),
17
+ sections: [
18
+ {
19
+ key: "storageOption",
20
+ label: "UI__NODE_EDITOR__NLU__CLEAN_TEXT__STORAGE_OPTION__LABEL",
21
+ defaultCollapsed: true,
22
+ fields: [
23
+ "storeLocation",
24
+ "inputKey",
25
+ "contextKeyToStoreResult"
26
+ ]
27
+ },
28
+ {
29
+ key: "advanced",
30
+ label: "UI__NODE_EDITOR__NLU__CLEAN_TEXT__ADVANCED__LABEL",
31
+ defaultCollapsed: true,
32
+ fields: [
33
+ "cleanTextLocale"
34
+ ]
35
+ }
36
+ ],
37
+ form: [
38
+ { type: "field", key: "textToClean" },
39
+ { type: "field", key: "cleanDisallowedSymbols" },
40
+ { type: "field", key: "additionalAllowedCharacters" },
41
+ { type: "field", key: "additionalMappedSymbols" },
42
+ { type: "field", key: "resolveSpelledOutNumbers" },
43
+ { type: "field", key: "resolvePhoneticAlphabet" },
44
+ { type: "field", key: "additionalPhoneticAlphabet" },
45
+ { type: "field", key: "replaceSpecialWords" },
46
+ { type: "field", key: "additionalSpecialPhrases" },
47
+ { type: "field", key: "resolveSpelledOutAlphabet" },
48
+ { type: "field", key: "resolvePhoneticCounters" },
49
+ { type: "field", key: "contractSingleCharacters" },
50
+ { type: "field", key: "contractNumberGroups" },
51
+ { type: "field", key: "trimResult" },
52
+ { type: "section", key: "storageOption" },
53
+ { type: "section", key: "advanced" }
54
+ ],
55
+ function: async ({ cognigy, config }) => {
56
+ var _a, _b;
57
+ const { api, input } = cognigy;
58
+ const { textToClean, cleanTextLocale, cleanDisallowedSymbols, contractSingleCharacters, contractNumberGroups, replaceSpecialWords, resolveSpelledOutNumbers, resolvePhoneticAlphabet, resolvePhoneticCounters, resolveSpelledOutAlphabet, trimResult, additionalAllowedCharacters, additionalSpecialPhrases, additionalMappedSymbols, additionalPhoneticAlphabet, storeLocation, inputKey, contextKeyToStoreResult } = config;
59
+ if (!textToClean)
60
+ throw new Error("No text provided.");
61
+ try {
62
+ const options = {
63
+ cleanDisallowedSymbols,
64
+ contractSingleCharacters,
65
+ replaceSpecialWords,
66
+ replaceSpecialPhrases: replaceSpecialWords,
67
+ resolveSpelledOutNumbers,
68
+ resolvePhoneticAlphabet,
69
+ resolvePhoneticCounters,
70
+ resolveSpelledOutAlphabet,
71
+ contractNumberGroups,
72
+ trimResult
73
+ };
74
+ // set locale for CleanText class
75
+ // Fallback is always "en"
76
+ let localeToUse = "en";
77
+ if (!cleanTextLocale || cleanTextLocale === "infer") {
78
+ const flowLocale = ((_a = input === null || input === void 0 ? void 0 : input.language) === null || _a === void 0 ? void 0 : _a.substring(0, 2)) || "en";
79
+ if (flowLocale === "en" || flowLocale === "de") {
80
+ localeToUse = flowLocale;
81
+ }
82
+ }
83
+ else {
84
+ localeToUse = cleanTextLocale;
85
+ }
86
+ const result = new textCleaner_1.TextCleaner(localeToUse, additionalAllowedCharacters, additionalMappedSymbols, additionalSpecialPhrases, additionalPhoneticAlphabet).cleanAll(textToClean, options, (_b = input === null || input === void 0 ? void 0 : input.nlu) === null || _b === void 0 ? void 0 : _b.detailedSlots);
87
+ if (storeLocation === "context") {
88
+ api.addToContext(contextKeyToStoreResult, result, "simple");
89
+ }
90
+ else {
91
+ api.addToInput(inputKey, result);
92
+ }
93
+ }
94
+ catch (error) {
95
+ if (storeLocation === "context") {
96
+ api.addToContext(contextKeyToStoreResult, error, "simple");
97
+ }
98
+ else {
99
+ api.addToInput(inputKey, error);
100
+ }
101
+ }
102
+ }
103
+ });
104
+ //# sourceMappingURL=cleanText.js.map
@@ -14,7 +14,7 @@ const logger_1 = require("../../../helper/logger");
14
14
  exports.EXECUTE_COGNIGY_NLU = (0, createNodeDescriptor_1.createNodeDescriptor)({
15
15
  type: "executeCognigyNLU",
16
16
  defaultLabel: "Execute Cognigy NLU",
17
- summary: "Executes the built-in Cognigy NLU",
17
+ summary: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__DEFAULT_SUMMARY",
18
18
  appearance: {
19
19
  showIcon: false
20
20
  },
@@ -22,7 +22,7 @@ exports.EXECUTE_COGNIGY_NLU = (0, createNodeDescriptor_1.createNodeDescriptor)({
22
22
  {
23
23
  key: "text",
24
24
  type: "cognigyText",
25
- label: "Text",
25
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__TEXT__LABEL",
26
26
  params: {
27
27
  required: true
28
28
  }
@@ -30,27 +30,27 @@ exports.EXECUTE_COGNIGY_NLU = (0, createNodeDescriptor_1.createNodeDescriptor)({
30
30
  {
31
31
  key: "data",
32
32
  type: "json",
33
- label: "Data",
33
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__DATA__LABEL",
34
34
  defaultValue: "{}"
35
35
  },
36
36
  {
37
37
  key: "mode",
38
38
  type: "select",
39
- label: "Mode",
39
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__MODE__LABEL",
40
40
  defaultValue: "context",
41
41
  params: {
42
42
  required: true,
43
43
  options: [
44
44
  {
45
- label: "Write to Context",
45
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__MODE__OPTIONS__CONTEXT__LABEL",
46
46
  value: "context",
47
47
  },
48
48
  {
49
- label: "Write to Input",
49
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__MODE__OPTIONS__INPUT__LABEL",
50
50
  value: "input",
51
51
  },
52
52
  {
53
- label: "Overwrite Input",
53
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__MODE__OPTIONS__OVERWRITE__LABEL",
54
54
  value: "overwrite"
55
55
  }
56
56
  ],
@@ -59,7 +59,7 @@ exports.EXECUTE_COGNIGY_NLU = (0, createNodeDescriptor_1.createNodeDescriptor)({
59
59
  {
60
60
  key: "contextKey",
61
61
  type: "cognigyText",
62
- label: "Context Key to write to",
62
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__CONTEXT_KEY__LABEL",
63
63
  condition: {
64
64
  key: "mode",
65
65
  value: "context"
@@ -68,7 +68,7 @@ exports.EXECUTE_COGNIGY_NLU = (0, createNodeDescriptor_1.createNodeDescriptor)({
68
68
  {
69
69
  key: "inputKey",
70
70
  type: "cognigyText",
71
- label: "Input Key to write to",
71
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__INPUT_KEY__LABEL",
72
72
  condition: {
73
73
  key: "mode",
74
74
  value: "input"
@@ -77,38 +77,38 @@ exports.EXECUTE_COGNIGY_NLU = (0, createNodeDescriptor_1.createNodeDescriptor)({
77
77
  {
78
78
  key: "parseIntents",
79
79
  type: "toggle",
80
- label: "Parse Intents",
80
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__PARSE_INTENTS__LABEL",
81
81
  defaultValue: true
82
82
  },
83
83
  {
84
84
  key: "parseSlots",
85
85
  type: "toggle",
86
- label: "Parse Slots",
86
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__PARSE_SLOTS__LABEL",
87
87
  defaultValue: true
88
88
  },
89
89
  {
90
90
  key: "parseSystemSlots",
91
91
  type: "toggle",
92
- label: "Parse System Slots",
92
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__PARSE_SYSTEM_SLOTS__LABEL",
93
93
  defaultValue: true
94
94
  },
95
95
  {
96
96
  key: "findType",
97
97
  type: "toggle",
98
- label: "Find Type",
98
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__FIND_TYPE__LABEL",
99
99
  defaultValue: true
100
100
  },
101
101
  {
102
102
  key: "processDefaultReply",
103
103
  type: "toggle",
104
- label: "Process Intent Default Reply",
104
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__FIELDS__PARSE_DEFAULT_REPLAY__LABEL",
105
105
  defaultValue: false
106
106
  }
107
107
  ],
108
108
  sections: [
109
109
  {
110
110
  key: "advanced",
111
- label: "Advanced",
111
+ label: "UI__NODE_EDITOR__NLU__EXECUTE_COGNIGY_NLU__SECTIONS__ADVANCED__LABEL",
112
112
  defaultCollapsed: true,
113
113
  fields: [
114
114
  "parseIntents",
@@ -12,7 +12,7 @@ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
12
12
  exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
13
  type: "extractAnswer",
14
14
  defaultLabel: "Extract Answer",
15
- summary: "Answers a question based on a given context with the built-in question answering module",
15
+ summary: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__SUMMARY",
16
16
  appearance: {
17
17
  showIcon: false
18
18
  },
@@ -20,13 +20,13 @@ exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
20
20
  {
21
21
  key: "text",
22
22
  type: "cognigyText",
23
- label: "Text",
23
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__TEXT__LABEL",
24
24
  defaultValue: ""
25
25
  },
26
26
  {
27
27
  key: "question",
28
28
  type: "cognigyText",
29
- label: "Question",
29
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__QUESTION__LABEL",
30
30
  params: {
31
31
  required: true
32
32
  }
@@ -34,15 +34,15 @@ exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
34
34
  {
35
35
  key: "storeLocation",
36
36
  type: "select",
37
- label: "Where to store the result",
37
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__STORE_LOCATION__LABEL",
38
38
  params: {
39
39
  options: [
40
40
  {
41
- label: "Input",
41
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__STORE_LOCATION__OPTIONS__INPUT__LABEL",
42
42
  value: "input"
43
43
  },
44
44
  {
45
- label: "Context",
45
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__STORE_LOCATION__OPTIONS__CONTEXT__LABEL",
46
46
  value: "context"
47
47
  }
48
48
  ],
@@ -53,8 +53,8 @@ exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
53
53
  {
54
54
  key: "inputKey",
55
55
  type: "cognigyText",
56
- label: "Input Key to store Result",
57
- description: "Where to store the result in the Input object. E.g. input.extractAnswer",
56
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__INPUT_KEY__LABEL",
57
+ description: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__INPUT_KEY__DESCRIPTION",
58
58
  defaultValue: "extractAnswer",
59
59
  condition: {
60
60
  key: "storeLocation",
@@ -64,8 +64,8 @@ exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
64
64
  {
65
65
  key: "contextKey",
66
66
  type: "cognigyText",
67
- label: "Context Key to store Result",
68
- description: "Where to store the result in the Context object. E.g. context.extractAnswer",
67
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__CONETEXT_KEY__LABEL",
68
+ description: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__FIELDS__CONETEXT_KEY__DESCRIPTION",
69
69
  defaultValue: "extractAnswer",
70
70
  condition: {
71
71
  key: "storeLocation",
@@ -76,7 +76,7 @@ exports.EXTRACT_ANSWER = (0, createNodeDescriptor_1.createNodeDescriptor)({
76
76
  sections: [
77
77
  {
78
78
  key: "storage",
79
- label: "Storage Options",
79
+ label: "UI__NODE_EDITOR__NLU__EXTRACT_ANSWER__SECTIONS__STORAGE__LABEL",
80
80
  defaultCollapsed: true,
81
81
  fields: [
82
82
  "storeLocation",
@@ -9,7 +9,7 @@ const getFuzzySearchMaxObjectSizeInBytes = () => {
9
9
  exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
10
10
  type: "fuzzySearch",
11
11
  defaultLabel: "Fuzzy Search",
12
- summary: "Performs a fuzzy search on a given collection of source data",
12
+ summary: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__SUMMARY",
13
13
  preview: {
14
14
  key: "searchPattern",
15
15
  type: "text"
@@ -18,8 +18,8 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
18
18
  fields: [
19
19
  {
20
20
  key: "searchPattern",
21
- label: "Search Pattern",
22
- description: "The pattern to search for",
21
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__SEARCH_PATTERN__LABEL",
22
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__SEARCH_PATTERN__DESCRIPTION",
23
23
  type: "cognigyText",
24
24
  params: {
25
25
  required: true
@@ -27,8 +27,8 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
27
27
  },
28
28
  {
29
29
  key: "items",
30
- label: "Source Data",
31
- description: "An array of type string or object to search through..",
30
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__ITEMS__LABEL",
31
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__ITEMS__DESCRIPTION",
32
32
  type: "json",
33
33
  params: {
34
34
  required: true
@@ -42,31 +42,31 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
42
42
  },
43
43
  {
44
44
  key: "isCaseSensitive",
45
- label: "Is Case Sensitive",
45
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__IN_CASE_SENSITIVE__LABEL",
46
46
  defaultValue: false,
47
47
  type: "toggle",
48
- description: "Indicates whether comparisons should be case sensitive"
48
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__IN_CASE_SENSITIVE__DESCRIPTION"
49
49
  },
50
50
  {
51
51
  key: "includeScore",
52
- label: "Include Score",
52
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__INCLUDE_STORE__LABEL",
53
53
  defaultValue: true,
54
54
  type: "toggle",
55
- description: "Whether the score should be included in the result set. A score of 1 indicates a perfect match, while a score of 0 indicates a complete mismatch"
55
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__INCLUDE_STORE__DESCRIPTION"
56
56
  },
57
57
  {
58
58
  key: "includeMatches",
59
- label: "Include Matches",
59
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__INCLUDE_MATCHES__LABEL",
60
60
  defaultValue: false,
61
61
  type: "toggle",
62
- description: "Whether the matches should be included in the result set. When true, each record in the result set will include the indices of the matched characters."
62
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__INCLUDE_MATCHES__DESCRIPTION"
63
63
  },
64
64
  {
65
65
  key: "minMatchCharLength",
66
- label: "Minimum Characters",
66
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__MIN_MATCH_CHAR_LENGTH__LABEL",
67
67
  defaultValue: 1,
68
68
  type: "number",
69
- description: "Only the matches whose length exceeds this value will be returned.",
69
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__MIN_MATCH_CHAR_LENGTH__DESCRIPTION",
70
70
  params: {
71
71
  min: 1,
72
72
  max: 100
@@ -74,24 +74,24 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
74
74
  },
75
75
  {
76
76
  key: "shouldSort",
77
- label: "Should Sort",
77
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__SHOULD_SORT__LABEL",
78
78
  defaultValue: true,
79
79
  type: "toggle",
80
- description: "Whether to sort the result list, by score."
80
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__SHOULD_SORT__DESCRIPTION"
81
81
  },
82
82
  {
83
83
  key: "findAllMatches",
84
- label: "Find All Matches",
84
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__FIND_ALL_MATCHES__LABEL",
85
85
  defaultValue: true,
86
86
  type: "toggle",
87
- description: "When activated, the matching function will continue to the end of a search pattern even if a perfect match has already been located in the string."
87
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__FIND_ALL_MATCHES__DESCRIPTION"
88
88
  },
89
89
  {
90
90
  key: "location",
91
- label: "Location",
91
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__LOCATION__LABEL",
92
92
  defaultValue: 0,
93
93
  type: "number",
94
- description: "Determines approximately where in the text is the pattern expected to be found.",
94
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__LOCATION__DESCRIPTION",
95
95
  params: {
96
96
  min: 0,
97
97
  max: 100
@@ -99,10 +99,10 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
99
99
  },
100
100
  {
101
101
  key: "threshold",
102
- label: "Threshold",
102
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__THRESHOLD__LABEL",
103
103
  defaultValue: 0.1,
104
104
  type: "slider",
105
- description: "At what point does the match algorithm give up. A threshold of 1.0 requires a perfect match (of both letters and location), a threshold of 0.0 would match anything.",
105
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__THRESHOLD__DESCRIPTION",
106
106
  params: {
107
107
  min: 0,
108
108
  max: 1,
@@ -111,10 +111,10 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
111
111
  },
112
112
  {
113
113
  key: "distance",
114
- label: "Distance",
114
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__DISTANCE__LABEL",
115
115
  defaultValue: 100,
116
116
  type: "number",
117
- description: "Determines how close the match must be to the fuzzy location (specified by location).",
117
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__DISTANCE__DESCRIPTION",
118
118
  params: {
119
119
  min: 0,
120
120
  max: 1000
@@ -122,23 +122,23 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
122
122
  },
123
123
  {
124
124
  key: "ignoreLocation",
125
- label: "Ignore Location",
125
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__IGNORE_LOCATION__LABEL",
126
126
  defaultValue: true,
127
127
  type: "toggle",
128
- description: "When activated, search will ignore location and distance, so it won't matter where in the string the pattern appears."
128
+ description: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__IGNORE_LOCATION__DESCRIPTION"
129
129
  },
130
130
  {
131
131
  key: "storeLocation",
132
132
  type: "select",
133
- label: "Where to store the result",
133
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__STORE_LOCATION__LABEL",
134
134
  params: {
135
135
  options: [
136
136
  {
137
- label: "Input",
137
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__STORE_LOCATION__OPTIONS__INPUT__LABEL",
138
138
  value: "input"
139
139
  },
140
140
  {
141
- label: "Context",
141
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__STORE_LOCATION__OPTIONS__CONTEXT__LABEL",
142
142
  value: "context"
143
143
  }
144
144
  ],
@@ -149,7 +149,7 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
149
149
  {
150
150
  key: "inputKey",
151
151
  type: "cognigyText",
152
- label: "Input Key to store Result",
152
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__INPUT_KEY__LABEL",
153
153
  defaultValue: "search",
154
154
  condition: {
155
155
  key: "storeLocation",
@@ -159,7 +159,7 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
159
159
  {
160
160
  key: "contextKey",
161
161
  type: "cognigyText",
162
- label: "Context Key to store Result",
162
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__FIELDS__CONTEXT_KEY__LABEL",
163
163
  defaultValue: "search",
164
164
  condition: {
165
165
  key: "storeLocation",
@@ -170,7 +170,7 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
170
170
  sections: [
171
171
  {
172
172
  key: "storageOption",
173
- label: "Storage Option",
173
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__SECTIONS__STORAGE_OPTION__LABEL",
174
174
  defaultCollapsed: true,
175
175
  fields: [
176
176
  "storeLocation",
@@ -180,7 +180,7 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
180
180
  },
181
181
  {
182
182
  key: "basicOptions",
183
- label: "Basic Options",
183
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__SECTIONS__BASIC_OPTIONS__LABEL",
184
184
  defaultCollapsed: true,
185
185
  fields: [
186
186
  "isCaseSensitive",
@@ -193,7 +193,7 @@ exports.FUZZY_SEARCH = (0, createNodeDescriptor_1.createNodeDescriptor)({
193
193
  },
194
194
  {
195
195
  key: "fuzzyOptions",
196
- label: "Fuzzy Matching Options",
196
+ label: "UI__NODE_EDITOR__NLU__FUZZY_SEARCH__SECTIONS__FUZZY_OPTIONS__LABEL",
197
197
  defaultCollapsed: true,
198
198
  fields: [
199
199
  "location",