@cognigy/rest-api-client 0.11.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.
Files changed (362) hide show
  1. package/.eslintignore +15 -0
  2. package/.eslintrc.json +28 -0
  3. package/.prettierrc.json +7 -0
  4. package/.snyk +1 -1
  5. package/build/GenericAPIFn.js +3 -3
  6. package/build/GenericUploadFn.js +8 -5
  7. package/build/PluginBase.js +1 -1
  8. package/build/RestAPIClient.js +15 -1
  9. package/build/apigroups/AdministrationAPIGroup_2_0.js +68 -40
  10. package/build/apigroups/AnalyticsAPIGroup_2_0.js +12 -0
  11. package/build/apigroups/ExternalAPIGroup_2_0.js +5 -5
  12. package/build/apigroups/InsightsAPIGroup_2_0.js +58 -0
  13. package/build/apigroups/ManagementAPIGroup_2_0.js +19 -15
  14. package/build/apigroups/MetricsAPIGroup_2_0.js +29 -29
  15. package/build/apigroups/ResourcesAPIGroup_2_0.js +250 -177
  16. package/build/apigroups/SessionsAPIGroup_2_0.js +7 -7
  17. package/build/apigroups/index.js +5 -1
  18. package/build/authentication/ApiKey/ApiKeyAuthentication.js +1 -1
  19. package/build/authentication/AuthenticationAPI.js +2 -2
  20. package/build/authentication/BasicAuthentication/BasicAuthentication.js +9 -2
  21. package/build/authentication/OAuth2/ILoginByClientCredentialsParameters.js +3 -0
  22. package/build/authentication/OAuth2/IOAuth2ClientCredentialsGrantAccessTokenRequest.js +11 -0
  23. package/build/authentication/OAuth2/IOAuth2ErrorResponse.js +1 -1
  24. package/build/authentication/OAuth2/OAuth2Authentication.js +67 -34
  25. package/build/connector/AxiosAdapter.js +28 -24
  26. package/build/connector/isRetryAllowed.js +0 -1
  27. package/build/connector/retryAfterDelay.js +3 -3
  28. package/build/shared/{interfaces/restAPI/administration/user/v2.0/IDeleteUserMeRest_2_0.js → api/liveAgent/liveAgentInterfaces.js} +1 -1
  29. package/build/shared/charts/createNodeDescriptor.js +1 -1
  30. package/build/shared/charts/descriptors/allFields.js +1 -1
  31. package/build/shared/charts/descriptors/{profile → analytics}/activateProfile.js +2 -2
  32. package/build/shared/charts/descriptors/{profile → analytics}/blindMode.js +11 -4
  33. package/build/shared/charts/descriptors/{profile → analytics}/completeGoal.js +2 -2
  34. package/build/shared/charts/descriptors/{profile → analytics}/deactivateProfile.js +2 -2
  35. package/build/shared/charts/descriptors/{profile → analytics}/deleteProfile.js +2 -2
  36. package/build/shared/charts/descriptors/{profile → analytics}/index.js +5 -1
  37. package/build/shared/charts/descriptors/{profile → analytics}/mergeProfile.js +2 -2
  38. package/build/shared/charts/descriptors/{profile → analytics}/overwriteAnalytics.js +59 -4
  39. package/build/shared/charts/descriptors/analytics/requestRating.js +57 -0
  40. package/build/shared/charts/descriptors/analytics/setRating.js +39 -0
  41. package/build/shared/charts/descriptors/{profile → analytics}/updateProfile.js +2 -2
  42. package/build/shared/charts/descriptors/apps/getAppSessionPin.js +46 -0
  43. package/build/shared/charts/descriptors/apps/index.js +14 -0
  44. package/build/shared/charts/descriptors/apps/initAppSession.js +488 -0
  45. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +79 -0
  46. package/build/shared/charts/descriptors/apps/setAppState.js +44 -0
  47. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +108 -0
  48. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +14 -0
  49. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +13 -0
  50. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +13 -0
  51. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/index.js +23 -0
  52. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +1 -1
  53. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +1 -1
  54. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +1 -1
  55. package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.js +1 -1
  56. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +1 -1
  57. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +1 -1
  58. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +1 -1
  59. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +1 -1
  60. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +8 -6
  61. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +1 -1
  62. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +4 -4
  63. package/build/shared/charts/descriptors/connectionNodes/sql/index.js +1 -1
  64. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +1 -1
  65. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +1 -1
  66. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +1 -1
  67. package/build/shared/charts/descriptors/data/addToContext.js +1 -1
  68. package/build/shared/charts/descriptors/data/code.js +1 -1
  69. package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -1
  70. package/build/shared/charts/descriptors/data/copySlotsToContext.js +1 -1
  71. package/build/shared/charts/descriptors/data/log.js +1 -1
  72. package/build/shared/charts/descriptors/data/removeFromContext.js +1 -1
  73. package/build/shared/charts/descriptors/data/resetContext.js +1 -1
  74. package/build/shared/charts/descriptors/end.js +2 -1
  75. package/build/shared/charts/descriptors/index.js +98 -70
  76. package/build/shared/charts/descriptors/liveAgent/assistInfo.js +195 -0
  77. package/build/shared/charts/descriptors/liveAgent/index.js +6 -0
  78. package/build/shared/charts/descriptors/liveAgent/utils/buildCognigyWhisperAssistResponse.js +135 -0
  79. package/build/shared/charts/descriptors/liveAgent/utils/index.js +6 -0
  80. package/build/shared/charts/descriptors/logic/disableSlotFillers.js +1 -1
  81. package/build/shared/charts/descriptors/logic/enableSlotFillers.js +1 -1
  82. package/build/shared/charts/descriptors/logic/executeFlow.js +1 -1
  83. package/build/shared/charts/descriptors/logic/goTo.js +2 -1
  84. package/build/shared/charts/descriptors/logic/if/else.js +3 -1
  85. package/build/shared/charts/descriptors/logic/if/if.js +3 -2
  86. package/build/shared/charts/descriptors/logic/if/then.js +3 -1
  87. package/build/shared/charts/descriptors/logic/index.js +5 -3
  88. package/build/shared/charts/descriptors/logic/interval/elseInterval.js +2 -1
  89. package/build/shared/charts/descriptors/logic/interval/interval.js +1 -1
  90. package/build/shared/charts/descriptors/logic/interval/onInterval.js +2 -1
  91. package/build/shared/charts/descriptors/logic/once/afterwards.js +2 -1
  92. package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +2 -1
  93. package/build/shared/charts/descriptors/logic/once/once.js +1 -1
  94. package/build/shared/charts/descriptors/logic/resetState.js +1 -1
  95. package/build/shared/charts/descriptors/logic/setState.js +1 -1
  96. package/build/shared/charts/descriptors/logic/setTranslation.js +88 -0
  97. package/build/shared/charts/descriptors/logic/sleep.js +1 -1
  98. package/build/shared/charts/descriptors/logic/stop.js +1 -1
  99. package/build/shared/charts/descriptors/logic/switch/case.js +3 -1
  100. package/build/shared/charts/descriptors/logic/switch/default.js +3 -1
  101. package/build/shared/charts/descriptors/logic/switch/switch.js +74 -12
  102. package/build/shared/charts/descriptors/logic/switchLocale.js +31 -3
  103. package/build/shared/charts/descriptors/logic/think.js +8 -4
  104. package/build/shared/charts/descriptors/logic/thinkV2.js +104 -0
  105. package/build/shared/charts/descriptors/logic/wait.js +3 -10
  106. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +2 -1
  107. package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +4 -2
  108. package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +4 -2
  109. package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +4 -2
  110. package/build/shared/charts/descriptors/message/datePicker.js +5 -5
  111. package/build/shared/charts/descriptors/message/question/onAnswer.js +4 -2
  112. package/build/shared/charts/descriptors/message/question/onQuestion.js +4 -2
  113. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +2 -2
  114. package/build/shared/charts/descriptors/message/question/question.js +655 -60
  115. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +32 -2
  116. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +12 -3
  117. package/build/shared/charts/descriptors/message/question/utils/generateAnswerShortForm.js +37 -0
  118. package/build/shared/charts/descriptors/message/question/utils/getQuestionText.js +36 -0
  119. package/build/shared/charts/descriptors/message/question/utils/questionHandover.js +13 -0
  120. package/build/shared/charts/descriptors/message/question/utils/resetNodeState.js +12 -0
  121. package/build/shared/charts/descriptors/message/question/utils/storeQuestionAnswer.js +30 -0
  122. package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +22 -0
  123. package/build/shared/charts/descriptors/message/say.js +10 -4
  124. package/build/shared/charts/descriptors/message/sendImage.js +1 -1
  125. package/build/shared/charts/descriptors/message/sendText.js +1 -1
  126. package/build/shared/charts/descriptors/microsoft/getToken.js +34 -0
  127. package/build/shared/charts/descriptors/microsoft/index.js +22 -0
  128. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +29 -0
  129. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +51 -0
  130. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +24 -0
  131. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +24 -0
  132. package/build/shared/charts/descriptors/microsoft/utils/design.js +5 -0
  133. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +1 -1
  134. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +23 -3
  135. package/build/shared/charts/descriptors/nlu/extractAnswer.js +115 -0
  136. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +270 -0
  137. package/build/shared/charts/descriptors/nlu/index.js +7 -1
  138. package/build/shared/charts/descriptors/nlu/matchPattern.js +113 -0
  139. package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +1 -1
  140. package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +265 -0
  141. package/build/shared/charts/descriptors/placeholder.js +1 -1
  142. package/build/shared/charts/descriptors/requiredFields.js +1 -1
  143. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +203 -0
  144. package/build/shared/charts/descriptors/service/handover.js +30 -3
  145. package/build/shared/charts/descriptors/service/handoverV2.js +192 -0
  146. package/build/shared/charts/descriptors/service/httpRequest.js +40 -10
  147. package/build/shared/charts/descriptors/service/index.js +5 -1
  148. package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +3 -1
  149. package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +3 -1
  150. package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +1 -1
  151. package/build/shared/charts/descriptors/start.js +2 -1
  152. package/build/shared/charts/descriptors/voice/index.js +20 -0
  153. package/build/shared/charts/descriptors/voice/interface/IAudioCodes.js +3 -0
  154. package/build/shared/charts/descriptors/voice/interface/IVoiceGateway2.js +3 -0
  155. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +59 -0
  156. package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +99 -0
  157. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +296 -0
  158. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +86 -0
  159. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +60 -0
  160. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +72 -0
  161. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +86 -0
  162. package/build/shared/charts/descriptors/voice/nodes/hangup.js +48 -0
  163. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +105 -0
  164. package/build/shared/charts/descriptors/voice/nodes/play.js +95 -0
  165. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +105 -0
  166. package/build/shared/charts/descriptors/voice/nodes/transfer.js +114 -0
  167. package/build/shared/charts/descriptors/voice/utils/constants.js +8 -0
  168. package/build/shared/charts/descriptors/voice/utils/design.js +5 -0
  169. package/build/shared/charts/descriptors/voice/utils/helper.js +11 -0
  170. package/build/shared/charts/descriptors/voicegateway/index.js +1 -1
  171. package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +1 -1
  172. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +37 -17
  173. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +20 -34
  174. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +11 -20
  175. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +23 -29
  176. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +5 -5
  177. package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +1 -1
  178. package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +4 -4
  179. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +34 -6
  180. package/build/shared/charts/descriptors/voicegateway2/index.js +25 -0
  181. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +60 -0
  182. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +46 -0
  183. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +113 -0
  184. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +103 -0
  185. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +64 -0
  186. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +354 -0
  187. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +99 -0
  188. package/build/shared/charts/descriptors/voicegateway2/utils/constants.js +7 -0
  189. package/build/shared/charts/descriptors/voicegateway2/utils/design.js +5 -0
  190. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +39 -0
  191. package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +19 -0
  192. package/build/shared/constants.js +11 -1
  193. package/build/shared/errors/baseError.js +35 -2
  194. package/build/shared/handoverClients/interfaces/TAnyProviderResponse.js +3 -0
  195. package/build/shared/handoverClients/interfaces/THandoverEventType.js +12 -0
  196. package/build/shared/helper/BaseContext.js +1 -1
  197. package/build/shared/helper/defaultDatepickerFunction.js +13 -0
  198. package/build/shared/helper/rest/array.js +19 -0
  199. package/build/shared/helper/rest/boolean.js +5 -1
  200. package/build/shared/helper/rest/index.js +4 -1
  201. package/build/shared/helper/rest/query-string/index.js +5 -5
  202. package/build/shared/helper/rest/query.js +0 -0
  203. package/build/shared/interfaces/IApiKey.js +1 -1
  204. package/build/shared/interfaces/IEndpointTranslationSettings.js +32 -0
  205. package/build/shared/interfaces/IHandoverRequestStatus.js +3 -0
  206. package/build/shared/interfaces/IHttpRequest.js +3 -0
  207. package/build/shared/interfaces/IOrganisation.js +22 -3
  208. package/build/shared/interfaces/IProfile.js +1 -1
  209. package/build/shared/interfaces/ISayNodeSettings.js +3 -0
  210. package/build/shared/interfaces/TEntrypointType.js +2 -0
  211. package/build/shared/interfaces/ai.js +0 -1
  212. package/build/shared/interfaces/amazonLexV2Interface.js +3 -0
  213. package/build/shared/interfaces/amqpInterface.js +4 -1
  214. package/build/shared/interfaces/analytics/IAnalyticsFlowHistoryData.js +3 -0
  215. package/build/shared/interfaces/analytics/IAnalyticsRating.js +13 -0
  216. package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +196 -45
  217. package/build/shared/interfaces/analytics/IStepEvent.js +4 -1
  218. package/build/shared/interfaces/analytics/TAnalyticsMode.js +10 -0
  219. package/build/shared/interfaces/analytics/TAnalyticsType.js +5 -0
  220. package/build/shared/interfaces/debugEvents/IErrorEventPayload.js +3 -0
  221. package/build/shared/interfaces/debugEvents/TDebugEndpointEvent.js +1 -0
  222. package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -1
  223. package/build/shared/interfaces/fileStorage.js +23 -0
  224. package/build/shared/interfaces/handover.js +151 -3
  225. package/build/shared/interfaces/journeys/IJourney.js +1 -1
  226. package/build/shared/interfaces/license.js +34 -0
  227. package/build/shared/interfaces/license.js.map +1 -0
  228. package/build/shared/interfaces/management/deleteOrganisation/deleteOrganisationTypes.js +3 -0
  229. package/build/shared/interfaces/messageAPI/ai.js +15 -1
  230. package/build/shared/interfaces/messageAPI/analytics.js +3 -0
  231. package/build/shared/interfaces/messageAPI/endpoints.js +361 -11
  232. package/build/shared/interfaces/messageAPI/handover.js +270 -0
  233. package/build/shared/interfaces/resources/IAppTemplate.js +24 -0
  234. package/build/shared/interfaces/resources/IAuditEvent.js +39 -3
  235. package/build/shared/interfaces/resources/IChart.js +2 -1
  236. package/build/shared/interfaces/resources/IChartNode.js +58 -11
  237. package/build/shared/interfaces/resources/IConnection.js +1 -1
  238. package/build/shared/interfaces/resources/IConnectionSchema.js +1 -1
  239. package/build/shared/interfaces/resources/IEndpoint.js +7 -2
  240. package/build/shared/interfaces/resources/IExtension.js +17 -0
  241. package/build/shared/interfaces/resources/IFile.js +1 -1
  242. package/build/shared/interfaces/resources/IFlow.js +10 -2
  243. package/build/shared/interfaces/resources/IFlowState.js +1 -1
  244. package/build/shared/interfaces/resources/IFunctionInstance.js +1 -1
  245. package/build/shared/interfaces/resources/IHandoverConfiguration.js +13 -0
  246. package/build/shared/interfaces/resources/ILexicon.js +9 -3
  247. package/build/shared/interfaces/resources/ILexiconEntry.js +1 -1
  248. package/build/shared/interfaces/resources/INLUConnector.js +15 -2
  249. package/build/shared/interfaces/resources/INodeDescriptorSet.js +169 -53
  250. package/build/shared/interfaces/resources/IOptionsResolverFunction.js +18 -0
  251. package/build/shared/interfaces/resources/IOrganisationDeletion.js +10 -0
  252. package/build/shared/interfaces/resources/IPlaybookRun.js +61 -0
  253. package/build/shared/interfaces/resources/IProject.js +20 -1
  254. package/build/shared/interfaces/resources/IRemoveDuplicatedSlotsAndUpdateLexionEntries.js +3 -0
  255. package/build/shared/interfaces/resources/ISlotFiller.js +38 -21
  256. package/build/shared/interfaces/resources/ISnapshot.js +1 -1
  257. package/build/shared/interfaces/resources/ITrackAnalyticsStepsArguments.js +3 -0
  258. package/build/shared/interfaces/resources/TNLUConnectorType.js +3 -1
  259. package/build/shared/interfaces/resources/TResourceType.js +1 -0
  260. package/build/shared/interfaces/resources/TRestChannelType.js +10 -0
  261. package/build/shared/interfaces/resources/TSocketChannelType.js +9 -5
  262. package/build/shared/interfaces/resources/TWebhookChannelType.js +10 -0
  263. package/build/shared/interfaces/resources/chart/IChartExecutable.js +3 -2
  264. package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +1 -0
  265. package/build/shared/interfaces/resources/intent/IIntent.js +26 -6
  266. package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +22 -2
  267. package/build/shared/interfaces/resources/intent/ISentence.js +32 -8
  268. package/build/shared/interfaces/resources/settings/IAgentSettings.js +81 -2
  269. package/build/shared/interfaces/resources/settings/IFlowSettings.js +20 -2
  270. package/build/shared/interfaces/resources/settings/ISharedSettings.js +5 -1
  271. package/build/shared/interfaces/resources/yesNoIntent/IYesNoItem.js +9 -0
  272. package/build/shared/interfaces/resources/yesNoIntent/index.js +3 -0
  273. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadLiveAgentAccountRest_2_0.js +3 -0
  274. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadProjectInboxRest_2_0.js +3 -0
  275. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentInboxRest_2_0.js +3 -0
  276. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentRest_2_0.js +3 -0
  277. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IUpdateCognigyLiveAgentInboxRest_2_0.js +3 -0
  278. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/index.js +3 -0
  279. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +21 -0
  280. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IRequestOrganisationDeletionRest_2_0.js +3 -0
  281. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/index.js +3 -0
  282. package/build/shared/interfaces/restAPI/analytics/IDeleteAnalyticsRecordsRest_2_0.js +3 -0
  283. package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordProperties_2_0.js +3 -0
  284. package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordsRest_2_0.js +3 -0
  285. package/build/shared/interfaces/restAPI/audio/v2.0/IAudioPreviewLanguages_2_0.js +3 -0
  286. package/build/shared/interfaces/restAPI/audio/v2.0/IAudioPreviewRest_2_0.js +3 -0
  287. package/build/shared/interfaces/restAPI/audio/v2.0/IIndexAudioPreviewLanguages_2_0.js +4 -0
  288. package/build/shared/interfaces/restAPI/audio/v2.0/ITestVoiceProviderRest_2_0.js +3 -0
  289. package/build/shared/interfaces/restAPI/audio/v2.0/ITestVoiceProvider_2_0.js +3 -0
  290. package/build/shared/interfaces/restAPI/audio/v2.0/IVGCallSettings_2_0.js +4 -0
  291. package/build/shared/interfaces/restAPI/audio/v2.0/IVoicePrepareCallRest_2_0.js +3 -0
  292. package/build/shared/interfaces/restAPI/audio/v2.0/IVoicePrepareCall_2_0.js +4 -0
  293. package/build/shared/interfaces/restAPI/audio/v2.0/index.js +3 -0
  294. package/build/shared/interfaces/restAPI/insights/IAnalyticsQueryFilter_2_0.js +3 -0
  295. package/build/shared/interfaces/restAPI/insights/TAnalyticsQueryFilterOperator_2_0.js +3 -0
  296. package/build/shared/interfaces/restAPI/insights/messages/IGenerateMessagesRest_2_0.js +5 -0
  297. package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashResponse_2_0.js +3 -0
  298. package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashRestData_2_0.js +3 -0
  299. package/build/shared/interfaces/restAPI/insights/messages/ITopNMessages_2_0.js +3 -0
  300. package/build/shared/interfaces/restAPI/insights/publish/IPublishAnalyticsRestDataBody.js +4 -0
  301. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportResponse_2_0.js +3 -0
  302. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +41 -0
  303. package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashResponse_2_0.js +3 -0
  304. package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashRest_2_0.js +3 -0
  305. package/build/shared/interfaces/restAPI/insights/steps/IGenerateStepReportRest_2_0.js +3 -0
  306. package/build/shared/interfaces/restAPI/insights/steps/IIndexStepsRest_2_0.js +3 -0
  307. package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashResponse_2_0.js +3 -0
  308. package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashRestData_2_0.js +3 -0
  309. package/build/shared/interfaces/restAPI/insights/steps/IStepIndexItem_2_0.js +3 -0
  310. package/build/shared/interfaces/restAPI/insights/steps/IStepReport_2_0.js +3 -0
  311. package/build/shared/interfaces/restAPI/insights/steps/IStep_2_0.js +3 -0
  312. package/build/shared/interfaces/restAPI/insights/transcripts/IGenerateTranscriptsRest_2_0.js +3 -0
  313. package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashResponse_2_0.js +3 -0
  314. package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashRestData_2_0.js +3 -0
  315. package/build/shared/interfaces/restAPI/insights/transcripts/IStepPath_2_0.js +3 -0
  316. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IDeleteOrganisationRest_2_0.js +4 -0
  317. package/build/shared/interfaces/restAPI/resources/chart/v2.0/ISearchChartNodesRest_2_0.js +3 -0
  318. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionPackageRest_2_0.js +4 -0
  319. package/build/shared/interfaces/restAPI/resources/file/v2.0/IUploadFileRest_2_0.js +3 -0
  320. package/build/shared/interfaces/restAPI/resources/file/v2.0/index.js +3 -0
  321. package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICloneFlowRest_2_0.js +4 -0
  322. package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowFromChildrenRest_2_0.js +4 -0
  323. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IYesNoSentence_2_0.js +3 -0
  324. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ILocaleSettings_2_0.js +16 -0
  325. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IComposeLexiconDownloadLinkRest_2_0.js +3 -0
  326. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IDeleteYesNoIntentRest_2_0.js +3 -0
  327. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IReadYesNoIntentsRest_2_0.js +3 -0
  328. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/ITrainYesNoIntentsRest_2_0.js +3 -0
  329. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IUpdateYesNoIntentRest_2_0.js +3 -0
  330. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntentItem_2_0.js +3 -0
  331. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntentMetaData_2_0.js +4 -0
  332. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntents_2_0.js +8 -0
  333. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/index.js +3 -0
  334. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/ICreateYesNoSentenceRest_2_0.js +3 -0
  335. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IDeleteYesNoSentenceRest_2_0.js +3 -0
  336. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IIndexYesNoSentencesRest_2_0.js +3 -0
  337. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IReadYesNoSentenceRest_2_0.js +3 -0
  338. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IUpdateYesNoSentenceRest_2_0.js +3 -0
  339. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/index.js +3 -0
  340. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +5 -1
  341. package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IOptionsResolverRest_2_0.js +3 -0
  342. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRunRest_2_0.js +3 -0
  343. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybookRunsRest_2_0.js +3 -0
  344. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRunIndexItem_2_0.js +3 -0
  345. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRun_2_0.js +7 -0
  346. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRunRest_2_0.js +3 -0
  347. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ISchedulePlaybookRunRest_2_0.js +3 -0
  348. package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectRest_2_0.js +1 -0
  349. package/build/shared/interfaces/restAPI/resources/project/v2.0/ITrainAllProjectFlowsRest_2_0.js +3 -0
  350. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ITestTranslationSettingsRest_2_0.js +3 -0
  351. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ITestTranslationSettings_2_0.js +3 -0
  352. package/build/shared/interfaces/security/IACL.js +1 -1
  353. package/build/shared/interfaces/security/IPermission.js +10 -0
  354. package/build/shared/interfaces/security/IRole.js +21 -3
  355. package/build/shared/interfaces/sessionstate/ISessionState.js +3 -0
  356. package/build/shared/interfaces/sessionstate/index.js +3 -0
  357. package/build/shared/interfaces/trainer/ITrainerRecord.js +5 -1
  358. package/build/shared/interfaces/translation.js +11 -0
  359. package/build/shared/interfaces/user.js +1 -1
  360. package/package.json +40 -31
  361. package/types/index.d.ts +12527 -8567
  362. package/build/shared/charts/descriptors/logic/checkFrustration.js +0 -82
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slotFillerSchema = exports.slotFillerDataSchema = exports.slotFillerGenericDataSchema = exports.slotFillerRegexDataSchema = exports.slotFillerKeyphraseDataSchema = exports.slotFillerBaseDataSchema = void 0;
3
+ exports.slotFillerSchema = exports.slotFillerDataSchema = exports.slotFillerBaseDataSchema = void 0;
4
4
  const IEntityMeta_1 = require("./IEntityMeta");
5
5
  const TSlotFillerType_1 = require("./TSlotFillerType");
6
6
  exports.slotFillerBaseDataSchema = {
@@ -21,48 +21,65 @@ exports.slotFillerBaseDataSchema = {
21
21
  resultLocation: { type: "string" },
22
22
  }
23
23
  };
24
- exports.slotFillerKeyphraseDataSchema = {
24
+ const slotFillerKeyphraseDataSchema = {
25
25
  title: "slotFillerKeyphraseDataSchema",
26
26
  type: "object",
27
27
  additionalProperties: false,
28
- properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), { type: { type: "string", enum: ["slot"] }, slot: { type: "string", format: "resource-name" } })
28
+ properties: {
29
+ type: { type: "string", enum: ["slot"] },
30
+ slot: { type: "string", format: "resource-name" },
31
+ }
32
+ };
33
+ const slotFillerKeyphraseSchema = {
34
+ title: "slotFillerKeyphraseSchema",
35
+ type: "object",
36
+ additionalProperties: false,
37
+ properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerKeyphraseDataSchema.properties)
29
38
  };
30
- exports.slotFillerRegexDataSchema = {
39
+ const slotFillerRegexDataSchema = {
31
40
  title: "slotFillerRegexDataSchema",
32
41
  type: "object",
33
42
  additionalProperties: false,
34
43
  required: ["regex"],
35
- properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), { type: { type: "string", enum: ["regex"] }, regex: { type: "string", format: "regex" } })
44
+ properties: {
45
+ type: { type: "string", enum: ["regex"] },
46
+ regex: { type: "string", format: "regex" },
47
+ }
48
+ };
49
+ const slotFillerRegexSchema = {
50
+ title: "slotFillerRegexSchema",
51
+ type: "object",
52
+ additionalProperties: false,
53
+ required: ["regex"],
54
+ properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerRegexDataSchema.properties)
36
55
  };
37
- exports.slotFillerGenericDataSchema = {
56
+ const slotFillerGenericDataSchema = {
38
57
  title: "slotFillerGenericDataSchema",
39
58
  type: "object",
40
59
  additionalProperties: false,
41
- properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), { type: { type: "string", enum: [...TSlotFillerType_1.slotFillerTypes.filter(value => ["regex", "slot"].includes(value) === false)] } })
60
+ properties: {
61
+ type: { type: "string", enum: [...TSlotFillerType_1.slotFillerTypes.filter(value => ["regex", "slot"].includes(value) === false)] },
62
+ }
63
+ };
64
+ const slotFillerGenericSchema = {
65
+ title: "slotFillerGenericSchema",
66
+ type: "object",
67
+ additionalProperties: false,
68
+ properties: Object.assign(Object.assign({}, exports.slotFillerBaseDataSchema.properties), slotFillerGenericDataSchema.properties)
42
69
  };
43
70
  exports.slotFillerDataSchema = {
44
71
  title: "slotFillerDataSchema",
45
72
  type: "object",
46
73
  oneOf: [
47
- { properties: exports.slotFillerGenericDataSchema.properties },
48
- { properties: exports.slotFillerKeyphraseDataSchema.properties },
49
- { properties: exports.slotFillerRegexDataSchema.properties },
74
+ { properties: slotFillerGenericSchema.properties },
75
+ { properties: slotFillerKeyphraseSchema.properties },
76
+ { properties: slotFillerRegexSchema.properties },
50
77
  ]
51
78
  };
52
79
  exports.slotFillerSchema = {
53
80
  title: "slotFillerSchema",
54
81
  type: "object",
55
82
  additionalProperties: false,
56
- oneOf: [
57
- {
58
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerGenericDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
59
- },
60
- {
61
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerKeyphraseDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
62
- },
63
- {
64
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerRegexDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
65
- }
66
- ]
83
+ properties: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.slotFillerBaseDataSchema.properties), slotFillerGenericDataSchema.properties), slotFillerKeyphraseDataSchema.properties), slotFillerRegexDataSchema.properties), { type: { type: "string", enum: [...new Set(TSlotFillerType_1.slotFillerTypes)] }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
67
84
  };
68
85
  //# sourceMappingURL=ISlotFiller.js.map
@@ -26,6 +26,6 @@ exports.snapshotSchema = {
26
26
  title: "snapshotSchema",
27
27
  type: "object",
28
28
  additionalProperties: false,
29
- properties: Object.assign(Object.assign({}, exports.snapshotDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, createdAt: { type: "integer", format: "timestamp" }, createdBy: { type: "string", format: "mongo-id" }, hash: { type: "string" }, isPackaged: { type: "boolean" }, packageExpiresAt: { type: ["number", "null"], format: "timestamp" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
29
+ properties: Object.assign(Object.assign({}, exports.snapshotDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, createdAt: { type: "integer", format: "timestamp" }, createdBy: { type: "string", format: "mongo-id" }, hash: { type: "string" }, isPackaged: { type: "boolean" }, runtimeVersion: { type: "number" }, packageExpiresAt: { type: ["number", "null"], format: "timestamp" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
30
30
  };
31
31
  //# sourceMappingURL=ISnapshot.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ITrackAnalyticsStepsArguments.js.map
@@ -8,11 +8,13 @@ exports.arrayNLUConnectorType = [
8
8
  "alexa",
9
9
  "dialogflow",
10
10
  "dialogflowBuiltIn",
11
+ "amazonLexBuiltIn",
11
12
  "twilioAutopilotBuiltIn",
12
13
  "luis",
13
14
  "watson",
14
15
  "noNlu",
15
16
  "cognigy",
16
- "code"
17
+ "code",
18
+ "lex"
17
19
  ];
18
20
  //# sourceMappingURL=TNLUConnectorType.js.map
@@ -69,6 +69,7 @@ exports.arrayTResourceType = [
69
69
  "nodeDescriptorSet",
70
70
  "package",
71
71
  "playbook",
72
+ "playbookRun",
72
73
  "slotFiller",
73
74
  "snapshot",
74
75
  "snippet",
@@ -14,6 +14,8 @@ exports.restChannelTypes = [
14
14
  "twilio-sms",
15
15
  "twilio",
16
16
  "userlike",
17
+ "nonConversational",
18
+ "amazonLex"
17
19
  ];
18
20
  exports.restChannelDisplayNames = [
19
21
  {
@@ -63,6 +65,14 @@ exports.restChannelDisplayNames = [
63
65
  {
64
66
  channel: "avaya",
65
67
  displayName: "Avaya"
68
+ },
69
+ {
70
+ channel: "nonConversational",
71
+ displayName: "Non Conversational"
72
+ },
73
+ {
74
+ channel: "amazonLex",
75
+ displayName: "Amazon Lex"
66
76
  }
67
77
  ];
68
78
  //# sourceMappingURL=TRestChannelType.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.socketChannelDisplayNames = exports.socketChannelTypes = void 0;
4
- exports.socketChannelTypes = ["realtime", "webchat", "webchat2", "admin-webchat", "socket"];
4
+ exports.socketChannelTypes = ["realtime", "webchat2", "admin-webchat", "socket", "voiceGateway2", "liveAgentAssist"];
5
5
  exports.socketChannelDisplayNames = [
6
6
  {
7
7
  channel: "realtime",
@@ -11,10 +11,6 @@ exports.socketChannelDisplayNames = [
11
11
  channel: "socket",
12
12
  displayName: "Socket"
13
13
  },
14
- {
15
- channel: "webchat",
16
- displayName: "Legacy Webchat"
17
- },
18
14
  {
19
15
  channel: "webchat2",
20
16
  displayName: "Webchat"
@@ -22,6 +18,14 @@ exports.socketChannelDisplayNames = [
22
18
  {
23
19
  channel: "adminconsole",
24
20
  displayName: "Interaction Panel"
21
+ },
22
+ {
23
+ channel: "voiceGateway2",
24
+ displayName: "Voicegateway v2"
25
+ },
26
+ {
27
+ channel: "liveAgentAssist",
28
+ displayName: "Live Agent Assist"
25
29
  }
26
30
  ];
27
31
  //# sourceMappingURL=TSocketChannelType.js.map
@@ -11,6 +11,8 @@ exports.webhookChannelTypes = [
11
11
  "sunshineConversations",
12
12
  "ringCentralEngage",
13
13
  "intercom",
14
+ "whatsapp",
15
+ "eightByEight"
14
16
  ];
15
17
  exports.webhookChannelDisplayNames = [
16
18
  {
@@ -49,5 +51,13 @@ exports.webhookChannelDisplayNames = [
49
51
  channel: "intercom",
50
52
  displayName: "Intercom"
51
53
  },
54
+ {
55
+ channel: "whatsapp",
56
+ displayName: "WhatsApp"
57
+ },
58
+ {
59
+ channel: "eightByEight",
60
+ displayName: "8x8"
61
+ },
52
62
  ];
53
63
  //# sourceMappingURL=TWebhookChannelType.js.map
@@ -5,14 +5,14 @@ exports.chartExecutableSchema = exports.generateChartExecutableRedisKeys = void
5
5
  const IChartExecutableNode_1 = require("./IChartExecutableNode");
6
6
  const generateChartExecutableRedisKeys = (data) => {
7
7
  return [
8
- `organisationId:${data.organisationReference}:projectId:${data.projectReference}:flowId:${data.flowReferenceId}:chartExecutable`
8
+ `organisationId:${data.organisationReference}:projectId:${data.projectReference}:flowId:${data.flowReferenceId}:chartExecutable:v2`
9
9
  ];
10
10
  };
11
11
  exports.generateChartExecutableRedisKeys = generateChartExecutableRedisKeys;
12
12
  exports.chartExecutableSchema = {
13
13
  title: "chartExecutableSchema",
14
14
  type: "object",
15
- required: ["entrypointIds", "nodes", "startEntrypointId"],
15
+ required: ["entrypointIds", "nodes", "startEntrypointId", "flowName"],
16
16
  additionalProperties: false,
17
17
  properties: {
18
18
  entrypointIds: {
@@ -24,6 +24,7 @@ exports.chartExecutableSchema = {
24
24
  additionalProperties: IChartExecutableNode_1.chartExecutableNodeSchema,
25
25
  },
26
26
  startEntrypointId: { type: "string", format: "uuid" },
27
+ flowName: { type: "string" },
27
28
  },
28
29
  };
29
30
  //# sourceMappingURL=IChartExecutable.js.map
@@ -10,6 +10,7 @@ exports.chartExecutableNodeSchema = {
10
10
  required: ["id", "behavior", "children", "config", "isCognigy", "next", "projectId", "organisationId", "trustedCode", "type"],
11
11
  properties: {
12
12
  id: { type: "string", format: "uuid" },
13
+ _id: { type: "string", format: "mongo-id" },
13
14
  behavior: {
14
15
  type: "object",
15
16
  properties: {
@@ -1,8 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.intentSchema = exports.intentDataSchema = exports.intentInDBDataSchema = exports.localizedIntentDataSchema = void 0;
3
+ exports.intentSchema = exports.intentDataSchema = exports.intentInDBDataSchema = exports.localizedIntentDataSchema = exports.overrideIntentDefaultRepliesAsExamplesTypes = exports.intentTypes = void 0;
4
4
  const IEntityMeta_1 = require("../IEntityMeta");
5
5
  const IIntentFeedbackReport_1 = require("./IIntentFeedbackReport");
6
+ exports.intentTypes = ["yesNoIntent", "default"];
7
+ exports.overrideIntentDefaultRepliesAsExamplesTypes = [
8
+ "useFlowSettings",
9
+ "on",
10
+ "off"
11
+ ];
6
12
  exports.localizedIntentDataSchema = {
7
13
  title: "localizedIntentDataSchema",
8
14
  type: "object",
@@ -20,14 +26,17 @@ exports.localizedIntentDataSchema = {
20
26
  items: { type: "string", minLength: 1, maxLength: 300 }
21
27
  },
22
28
  disambiguationSentence: { type: "string", maxLength: 300 },
23
- localeReference: { format: "mongo-id" },
29
+ localeReference: { format: "mongo-id" }
24
30
  }
25
31
  };
26
32
  exports.intentInDBDataSchema = {
27
33
  title: "intentInDBDataSchema",
28
34
  type: "object",
29
35
  additionalProperties: false,
30
- properties: Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), { feedbackReport: IIntentFeedbackReport_1.intentFeedbackInDBReportSchema, localizedData: { type: "array", items: exports.localizedIntentDataSchema }, enabledLocaleReferences: { type: "array", items: { format: "mongo-id" } }, name: { type: "string", format: "resource-name" }, intentRelationReferences: { type: "array", items: { type: "string", format: "mongo-id" } }, tags: {
36
+ properties: Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), { feedbackReport: IIntentFeedbackReport_1.intentFeedbackInDBReportSchema, localizedData: { type: "array", items: exports.localizedIntentDataSchema }, enabledLocaleReferences: { type: "array", items: { format: "mongo-id" } }, name: { type: "string", format: "resource-name" }, intentType: { type: "string", enum: [...exports.intentTypes] }, intentRelationReferences: {
37
+ type: "array",
38
+ items: { type: "string", format: "mongo-id" }
39
+ }, tags: {
31
40
  type: "array",
32
41
  maxItems: 10,
33
42
  items: { type: "string", minLength: 1, maxLength: 30 }
@@ -36,7 +45,10 @@ exports.intentInDBDataSchema = {
36
45
  { type: "boolean" },
37
46
  { type: "array", items: { type: "string", format: "mongo-id" } }
38
47
  ]
39
- }, flowReferenceId: { type: "string", format: "uuid" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, analyticsLabel: { type: "string", format: "analytics-label" } }),
48
+ }, flowReferenceId: { type: "string", format: "uuid" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, analyticsLabel: { type: "string", format: "analytics-label" }, overrideIntentDefaultRepliesAsExamples: {
49
+ type: ["string", "null"],
50
+ enum: [...exports.overrideIntentDefaultRepliesAsExamplesTypes]
51
+ } })
40
52
  };
41
53
  exports.intentDataSchema = {
42
54
  title: "intentDataSchema",
@@ -44,8 +56,12 @@ exports.intentDataSchema = {
44
56
  additionalProperties: false,
45
57
  properties: {
46
58
  name: { type: "string", format: "resource-name" },
59
+ intentType: { type: "string", enum: [...exports.intentTypes] },
47
60
  condition: { type: ["string", "null"], maxLength: 2000 },
48
- intentRelationReferences: { type: "array", items: { type: "string", format: "mongo-id" } },
61
+ intentRelationReferences: {
62
+ type: "array",
63
+ items: { type: "string", format: "mongo-id" }
64
+ },
49
65
  tags: {
50
66
  type: "array",
51
67
  maxItems: 10,
@@ -76,7 +92,11 @@ exports.intentDataSchema = {
76
92
  flowReferenceId: { type: "string", format: "uuid" },
77
93
  feedbackReport: IIntentFeedbackReport_1.intentFeedbackReportDataSchema,
78
94
  analyticsLabel: { type: "string", format: "analytics-label" },
79
- },
95
+ overrideIntentDefaultRepliesAsExamples: {
96
+ type: ["string", "null"],
97
+ enum: [...exports.overrideIntentDefaultRepliesAsExamplesTypes]
98
+ }
99
+ }
80
100
  };
81
101
  exports.intentSchema = {
82
102
  title: "intentSchema",
@@ -21,6 +21,16 @@ exports.intentTrainGroupInDBDataSchema = {
21
21
  lastTrainedBy: { type: ["string", "null"], format: "mongo-id" },
22
22
  lastRelevantChangeAt: { type: ["integer", "null"], format: "timestamp" },
23
23
  lastRelevantChangeBy: { type: ["string", "null"], format: "mongo-id" },
24
+ lexiconsInServiceMatcher: { type: "boolean" },
25
+ nluOptions: {
26
+ type: "object",
27
+ additionalProperties: false,
28
+ properties: {
29
+ intentModelVersion: {
30
+ type: "string"
31
+ }
32
+ }
33
+ }
24
34
  }
25
35
  };
26
36
  exports.intentTrainGroupDataSchema = {
@@ -33,7 +43,17 @@ exports.intentTrainGroupDataSchema = {
33
43
  lastRelevantChangeAt: { type: ["integer", "null"], format: "timestamp" },
34
44
  lastRelevantChangeBy: { type: ["string", "null"], format: "mongo-id" },
35
45
  feedbackReport: ITrainGroupFeedbackReport_1.trainGroupFeedbackReportDataSchema,
36
- isTrainingOutOfDate: { type: "boolean" }
46
+ isTrainingOutOfDate: { type: "boolean" },
47
+ lexiconsInServiceMatcher: { type: "boolean" },
48
+ nluOptions: {
49
+ type: "object",
50
+ additionalProperties: false,
51
+ properties: {
52
+ intentModelVersion: {
53
+ type: "string"
54
+ }
55
+ }
56
+ }
37
57
  }
38
58
  };
39
59
  exports.intentTrainGroupSchema = {
@@ -43,5 +63,5 @@ exports.intentTrainGroupSchema = {
43
63
  properties: Object.assign(Object.assign({}, exports.intentTrainGroupDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, referenceId: { type: "string", format: "uuid" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, lastChanged: { type: "integer", format: "timestamp" }, lastChangedBy: { type: "string", format: "mongo-id" } })
44
64
  };
45
65
  // TODO: This doesn't work since it removes the flowReference key from the schema
46
- exports.intentTrainGroupQuerySchema = createQuerySchema_1.createQuerySchema("intentTrainGroupQuerySchema", exports.intentTrainGroupSchema);
66
+ exports.intentTrainGroupQuerySchema = (0, createQuerySchema_1.createQuerySchema)("intentTrainGroupQuerySchema", exports.intentTrainGroupSchema);
47
67
  //# sourceMappingURL=IIntentTrainGroup.js.map
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sentenceSchema = exports.sentenceDataSchema = void 0;
4
4
  const IEntityMeta_1 = require("../IEntityMeta");
5
- const anySlotSchema = {
6
- title: "anySlotSchema",
5
+ const anySlotDataSchema = {
6
+ title: "anySlotDataSchema",
7
7
  type: "object",
8
8
  required: ["type", "name", "start", "end"],
9
9
  additionalProperties: false,
@@ -14,8 +14,15 @@ const anySlotSchema = {
14
14
  end: { type: "integer", minimum: 0 },
15
15
  }
16
16
  };
17
- const lexiconSlotSchema = {
18
- title: "lexiconSlotSchema",
17
+ const anySlotSchema = {
18
+ title: "anySlotSchema",
19
+ type: "object",
20
+ required: ["type", "name", "start", "end"],
21
+ additionalProperties: false,
22
+ properties: Object.assign({ _id: { type: "string", format: "mongo-id" } }, anySlotDataSchema.properties)
23
+ };
24
+ const lexiconSlotDataSchema = {
25
+ title: "lexiconSlotDataSchema",
19
26
  type: "object",
20
27
  additionalProperties: false,
21
28
  properties: {
@@ -27,8 +34,14 @@ const lexiconSlotSchema = {
27
34
  name: { type: "string", minLength: 1 },
28
35
  },
29
36
  };
30
- const systemSlotSchema = {
31
- title: "systemSlotSchema",
37
+ const lexiconSlotSchema = {
38
+ title: "lexiconSlotSchema",
39
+ type: "object",
40
+ additionalProperties: false,
41
+ properties: Object.assign({ _id: { type: "string", format: "mongo-id" } }, lexiconSlotDataSchema.properties),
42
+ };
43
+ const systemSlotDataSchema = {
44
+ title: "systemSlotDataSchema",
32
45
  type: "object",
33
46
  additionalProperties: false,
34
47
  properties: {
@@ -38,6 +51,17 @@ const systemSlotSchema = {
38
51
  end: { type: "integer", minimum: 0 },
39
52
  }
40
53
  };
54
+ const systemSlotSchema = {
55
+ title: "systemSlotSchema",
56
+ type: "object",
57
+ additionalProperties: false,
58
+ properties: Object.assign({ _id: { type: "string", format: "mongo-id" } }, systemSlotDataSchema.properties)
59
+ };
60
+ const slotDataSchema = {
61
+ title: "slotDataSchema",
62
+ // @ts-ignore
63
+ oneOf: [lexiconSlotDataSchema, anySlotDataSchema, systemSlotDataSchema],
64
+ };
41
65
  const slotSchema = {
42
66
  title: "slotSchema",
43
67
  // @ts-ignore
@@ -50,7 +74,7 @@ exports.sentenceDataSchema = {
50
74
  properties: {
51
75
  doc: { type: "string" },
52
76
  text: { type: "string", minLength: 1 },
53
- slots: { type: "array", items: slotSchema },
77
+ slots: { type: "array", items: slotDataSchema },
54
78
  hasAnySlot: { type: "boolean" },
55
79
  }
56
80
  };
@@ -58,6 +82,6 @@ exports.sentenceSchema = {
58
82
  title: "sentenceSchema",
59
83
  type: "object",
60
84
  additionalProperties: false,
61
- properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.sentenceDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, intentReference: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
85
+ properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.sentenceDataSchema.properties), { slots: { type: "array", items: slotSchema }, referenceId: { type: "string", format: "uuid" }, intentReference: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, localeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
62
86
  };
63
87
  //# sourceMappingURL=ISentence.js.map
@@ -1,13 +1,92 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.agentSettingsSchema = exports.agentSettingsDataSchema = void 0;
3
+ exports.agentSettingsSchema = exports.agentSettingsDataSchema = exports.generateAgentSettingsRedisKey = void 0;
4
4
  const IEntityMeta_1 = require("../IEntityMeta");
5
5
  const ISharedSettings_1 = require("./ISharedSettings");
6
+ const arrayTranslationProviders = [
7
+ "none",
8
+ "microsoft",
9
+ "google",
10
+ "deepl"
11
+ ];
12
+ const arrayAudioPreviewProviders = [
13
+ "none",
14
+ "microsoft",
15
+ "google",
16
+ "aws"
17
+ ];
18
+ const generateAgentSettingsRedisKey = (data) => {
19
+ return [
20
+ `organisationId:${data.organisationReference}:projectId:${data.projectReference}:agentsettings:v3`
21
+ ];
22
+ };
23
+ exports.generateAgentSettingsRedisKey = generateAgentSettingsRedisKey;
6
24
  exports.agentSettingsDataSchema = {
7
25
  title: "agentSettingsDataSchema",
8
26
  type: "object",
9
27
  additionalProperties: false,
10
- properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { trackDataOnlyInputs: { type: "boolean" }, collectAnalytics: { type: "boolean" }, timezone: { type: "string", format: "timezone" }, useCaseSensitiveIntentMapping: { type: "boolean" } })
28
+ properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { trackDataOnlyInputs: { type: "boolean" }, collectAnalytics: { type: "boolean" }, timezone: { type: "string", format: "timezone" }, useCaseSensitiveIntentMapping: { type: "boolean" }, translationSettings: {
29
+ type: "object",
30
+ additionalProperties: false,
31
+ properties: {
32
+ translationProvider: {
33
+ type: "string",
34
+ enum: [...arrayTranslationProviders]
35
+ },
36
+ translationAPIKey: { type: "string", maxLength: 255 },
37
+ translationProviderCustomBaseUrl: { type: "string", maxLength: 255 },
38
+ translationRetries: { type: "integer", minimum: 0, maximum: 3 },
39
+ translationTimeout: { type: "integer", minimum: 0, maximum: 8000 },
40
+ translationCacheExpiry: { type: "integer", enum: [0, 3600, 84600] },
41
+ translationRegion: {
42
+ type: "string",
43
+ maxLength: 255,
44
+ default: undefined
45
+ }
46
+ }
47
+ }, audioPreviewSettings: {
48
+ type: "object",
49
+ additionalProperties: false,
50
+ properties: {
51
+ audioPreviewProvider: {
52
+ type: "string",
53
+ enum: [...arrayAudioPreviewProviders]
54
+ },
55
+ microsoft: {
56
+ type: "object",
57
+ additionalProperties: false,
58
+ properties: {
59
+ apiKey: { type: "string", maxLength: 255 },
60
+ region: { type: "string", maxLength: 50 },
61
+ }
62
+ },
63
+ aws: {
64
+ type: "object",
65
+ additionalProperties: false,
66
+ properties: {
67
+ accessKeyId: { type: "string", maxLength: 255 },
68
+ secretAccessKey: { type: "string", maxLength: 255 },
69
+ sessionToken: { type: "string", default: undefined },
70
+ region: { type: "string", maxLength: 50, default: undefined },
71
+ }
72
+ },
73
+ google: {
74
+ type: "object",
75
+ additionalProperties: false,
76
+ properties: {
77
+ googleCredentialsFileName: { type: "string", maxLength: 150 },
78
+ fileToken: { type: "string", maxLength: 350 },
79
+ credentialsStringified: { type: "string", maxLength: 2000 },
80
+ clientEmail: { type: "string", maxLength: 250 },
81
+ privateKey: { type: "string", maxLength: 2000 },
82
+ }
83
+ },
84
+ audioPreviewProviderCustomBaseUrl: { type: "string", maxLength: 255 },
85
+ audioPreviewRetries: { type: "integer", minimum: 0, maximum: 3 },
86
+ audioPreviewTimeout: { type: "integer", minimum: 0, maximum: 8000 },
87
+ audioPreviewCacheExpiry: { type: "integer", enum: [0, 3600, 84600] },
88
+ }
89
+ } })
11
90
  };
12
91
  exports.agentSettingsSchema = {
13
92
  title: "agentSettingsSchema",
@@ -2,18 +2,36 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.flowSettingsSchema = exports.flowSettingsDataSchema = exports.implicitSlotParsingType = exports.flowIntentMappingOrderType = void 0;
4
4
  const ISharedSettings_1 = require("./ISharedSettings");
5
+ const localeSettingsSchema = {
6
+ title: "localizedFlowDataSchema",
7
+ type: "object",
8
+ additionalProperties: false,
9
+ required: ["localeReference", "inheritFallbackLocaleModel"],
10
+ properties: {
11
+ localeReference: { type: "string", format: "mongo-id" },
12
+ inheritFallbackLocaleModel: { type: "boolean" },
13
+ }
14
+ };
5
15
  exports.flowIntentMappingOrderType = ["joint", "main", "attached"];
6
16
  exports.implicitSlotParsingType = ["disabled", "full", "system", "lexicon"];
7
17
  exports.flowSettingsDataSchema = {
8
18
  title: "flowSettingsDataSchema",
9
19
  type: "object",
10
20
  additionalProperties: false,
11
- properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { continueExecutionAfterAttachedFlow: { type: "boolean" }, continueExecutionAfterDefaultReply: { type: "boolean" }, continueExecutionAfterNegativeConfirmation: { type: "boolean" }, passDefaultRepliesIntoFlow: { type: "boolean" }, flowIntentMappingOrder: { type: "string", enum: [...exports.flowIntentMappingOrderType] }, useAttachedFlowThresholds: { type: "boolean" }, useAttachedFlowContinueAfterDefaultReply: { type: "boolean" }, useAttachedFlowPassDefaultRepliesIntoFlow: { type: "boolean" }, implicitSlotParsing: { type: "string", enum: [...exports.implicitSlotParsingType] }, useAttachedFlowImplicitSlotParsing: { type: "boolean" } })
21
+ properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { continueExecutionAfterAttachedFlow: { type: "boolean" }, continueExecutionAfterDefaultReply: { type: "boolean" }, continueExecutionAfterNegativeConfirmation: { type: "boolean" }, passDefaultRepliesIntoFlow: { type: "boolean" }, flowIntentMappingOrder: { type: "string", enum: [...exports.flowIntentMappingOrderType] }, useAttachedFlowThresholds: { type: "boolean" }, useAttachedFlowContinueAfterDefaultReply: { type: "boolean" }, useAttachedFlowPassDefaultRepliesIntoFlow: { type: "boolean" }, implicitSlotParsing: { type: "string", enum: [...exports.implicitSlotParsingType] }, useAttachedFlowImplicitSlotParsing: { type: "boolean" }, lexiconSlotsWithSubMatches: { type: "boolean" }, useIntentDefaultRepliesAsExamples: { type: ["boolean", "null"] }, localeSettings: {
22
+ type: "object",
23
+ required: ["localeReference", "inheritFallbackLocaleModel"],
24
+ additionalProperties: false,
25
+ properties: {
26
+ localeReference: { type: "string", format: "mongo-id" },
27
+ inheritFallbackLocaleModel: { type: "boolean" },
28
+ }
29
+ } })
12
30
  };
13
31
  exports.flowSettingsSchema = {
14
32
  title: "flowSettingsSchema",
15
33
  type: "object",
16
34
  additionalProperties: false,
17
- properties: Object.assign(Object.assign({}, exports.flowSettingsDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
35
+ properties: Object.assign(Object.assign({}, exports.flowSettingsDataSchema.properties), { _id: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, localeSettings: { type: "array", items: localeSettingsSchema } })
18
36
  };
19
37
  //# sourceMappingURL=IFlowSettings.js.map
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sharedSettingsSchema = void 0;
4
+ /* Interfaces & Types */
5
+ const IYesNoItem_1 = require("../yesNoIntent/IYesNoItem");
4
6
  exports.sharedSettingsSchema = {
5
7
  title: "sharedSettingsSchema",
6
8
  type: "object",
@@ -44,7 +46,9 @@ exports.sharedSettingsSchema = {
44
46
  useTemperatureSlots: { type: ["boolean", "null"] },
45
47
  useURLSlots: { type: ["boolean", "null"] }
46
48
  }
47
- }
49
+ },
50
+ yesNoIntentsMode: { type: "string", enum: [...IYesNoItem_1.yesNoIntentsMode] },
51
+ yesNoIntentThreshold: { type: "number" }
48
52
  }
49
53
  };
50
54
  //# sourceMappingURL=ISharedSettings.js.map
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.yesNoIntentsMode = void 0;
4
+ exports.yesNoIntentsMode = [
5
+ "smartDetectYesNoIntents",
6
+ "enableYesNoIntents",
7
+ "disableYesNoIntents"
8
+ ];
9
+ //# sourceMappingURL=IYesNoItem.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IReadLiveAgentAccountRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IReadProjectInboxRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISetupCognigyLiveAgentInboxRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISetupCognigyLiveAgentRest_2_0.js.map