@cognigy/rest-api-client 0.9.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1217) hide show
  1. package/.snyk +4 -0
  2. package/CHANGELOG.md +17 -0
  3. package/README.md +49 -2
  4. package/build/GenericAPIFn.js +7 -7
  5. package/build/GenericUploadFn.js +22 -12
  6. package/build/PluginBase.js +1 -0
  7. package/build/RestAPIClient.js +34 -9
  8. package/build/apigroups/AdministrationAPIGroup_2_0.js +98 -8
  9. package/build/apigroups/AnalyticsAPIGroup_2_0.js +12 -0
  10. package/build/apigroups/ExternalAPIGroup_2_0.js +7 -6
  11. package/build/apigroups/InsightsAPIGroup_2_0.js +53 -0
  12. package/build/apigroups/ManagementAPIGroup_2_0.js +44 -0
  13. package/build/apigroups/MetricsAPIGroup_2_0.js +44 -29
  14. package/build/apigroups/ResourcesAPIGroup_2_0.js +321 -213
  15. package/build/apigroups/SessionsAPIGroup_2_0.js +11 -10
  16. package/build/apigroups/TRestAPIGroupsTypeByConfiguration.js +0 -1
  17. package/build/apigroups/TRestAPIOperation.js +3 -0
  18. package/build/apigroups/index.js +12 -7
  19. package/build/authentication/ApiKey/ApiKeyAuthentication.js +23 -0
  20. package/build/authentication/{IApiKeyAuthentication.js → ApiKey/IApiKeyAuthentication.js} +0 -0
  21. package/build/authentication/AuthenticationAPI.js +36 -6
  22. package/build/authentication/BasicAuthentication/BasicAuthentication.js +31 -0
  23. package/build/authentication/BasicAuthentication/IBasicAuthentication.js +3 -0
  24. package/build/authentication/OAuth2/IGetAuthorizationCodeParameters.js +3 -0
  25. package/build/authentication/OAuth2/ILoginByAuthorizationCodeParameters.js +3 -0
  26. package/build/authentication/OAuth2/ILoginByClientCredentialsParameters.js +3 -0
  27. package/build/authentication/OAuth2/ILoginByPasswordParameters.js +3 -0
  28. package/build/authentication/OAuth2/ILoginByRefreshTokenParameters.js +3 -0
  29. package/build/authentication/{IOAuth2Authentication.js → OAuth2/IOAuth2Authentication.js} +0 -0
  30. package/build/authentication/OAuth2/IOAuth2AuthorizationCodeGrantRequest.js +11 -0
  31. package/build/authentication/OAuth2/IOAuth2ClientCredentialsGrantAccessTokenRequest.js +11 -0
  32. package/build/authentication/OAuth2/IOAuth2ClientPassword.js +3 -0
  33. package/build/authentication/OAuth2/IOAuth2ErrorResponse.js +41 -0
  34. package/build/authentication/OAuth2/IOAuth2GetAuthorizationCodeRequest.js +11 -0
  35. package/build/authentication/OAuth2/IOAuth2PasswordGrantAccessTokenRequest.js +11 -0
  36. package/build/authentication/OAuth2/IOAuth2RefreshAccessTokenRequest.js +12 -0
  37. package/build/authentication/OAuth2/IOAuth2SuccessResponse.js +3 -0
  38. package/build/authentication/OAuth2/OAuth2Authentication.js +238 -0
  39. package/build/authentication/OAuth2/OAuth2Error.js +10 -0
  40. package/build/authentication/OAuth2/TOAuth2AccessTokenType.js +3 -0
  41. package/build/authentication/{IAuthenticationAdapter.js → interfaces/IAuthenticationAdapter.js} +0 -0
  42. package/build/authentication/{IAuthenticationConstructor.js → interfaces/IAuthenticationConstructor.js} +0 -0
  43. package/build/authentication/{TAuthenticationParameter.js → interfaces/TAuthenticationParameter.js} +0 -0
  44. package/build/connector/AxiosAdapter.js +105 -13
  45. package/build/connector/IHttpProgressEvent.js +3 -0
  46. package/build/connector/exponentialDelay.js +22 -0
  47. package/build/connector/index.js +10 -1
  48. package/build/connector/isRetryAllowed.js +60 -0
  49. package/build/connector/isRetryableStatus.js +14 -0
  50. package/build/connector/retryAfterDelay.js +34 -0
  51. package/build/index.js +18 -2
  52. package/build/shared/cache/index.js +3 -0
  53. package/build/shared/charts/createNodeDescriptor.js +12 -9
  54. package/build/shared/charts/descriptors/allFields.js +1 -0
  55. package/build/shared/charts/descriptors/apps/index.js +8 -0
  56. package/build/shared/charts/descriptors/apps/initAppSession.js +33 -0
  57. package/build/shared/charts/descriptors/apps/setAppState.js +46 -0
  58. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +1 -0
  59. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +2 -1
  60. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +1 -0
  61. package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.js +1 -0
  62. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +1 -0
  63. package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +1 -0
  64. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +1 -0
  65. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +1 -0
  66. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +1 -0
  67. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +221 -0
  68. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +9 -2
  69. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +431 -15
  70. package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +12 -0
  71. package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +2 -1
  72. package/build/shared/charts/descriptors/connectionNodes/sql/index.js +1 -0
  73. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +1 -0
  74. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +1 -0
  75. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +1 -0
  76. package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +1 -0
  77. package/build/shared/charts/descriptors/data/addToContext.js +1 -0
  78. package/build/shared/charts/descriptors/data/code.js +1 -0
  79. package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -0
  80. package/build/shared/charts/descriptors/data/copySlotsToContext.js +1 -0
  81. package/build/shared/charts/descriptors/data/index.js +9 -6
  82. package/build/shared/charts/descriptors/data/log.js +62 -0
  83. package/build/shared/charts/descriptors/data/removeFromContext.js +1 -0
  84. package/build/shared/charts/descriptors/data/resetContext.js +1 -0
  85. package/build/shared/charts/descriptors/end.js +2 -0
  86. package/build/shared/charts/descriptors/index.js +92 -58
  87. package/build/shared/charts/descriptors/logic/disableSlotFillers.js +52 -0
  88. package/build/shared/charts/descriptors/logic/enableSlotFillers.js +46 -0
  89. package/build/shared/charts/descriptors/logic/executeFlow.js +21 -0
  90. package/build/shared/charts/descriptors/logic/goTo.js +110 -8
  91. package/build/shared/charts/descriptors/logic/if/else.js +3 -0
  92. package/build/shared/charts/descriptors/logic/if/if.js +3 -1
  93. package/build/shared/charts/descriptors/logic/if/then.js +3 -0
  94. package/build/shared/charts/descriptors/logic/index.js +31 -22
  95. package/build/shared/charts/descriptors/logic/interval/elseInterval.js +2 -0
  96. package/build/shared/charts/descriptors/logic/interval/interval.js +1 -0
  97. package/build/shared/charts/descriptors/logic/interval/onInterval.js +2 -0
  98. package/build/shared/charts/descriptors/logic/once/afterwards.js +2 -0
  99. package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +2 -0
  100. package/build/shared/charts/descriptors/logic/once/once.js +1 -0
  101. package/build/shared/charts/descriptors/logic/resetState.js +1 -0
  102. package/build/shared/charts/descriptors/logic/setState.js +1 -0
  103. package/build/shared/charts/descriptors/logic/setTranslation.js +88 -0
  104. package/build/shared/charts/descriptors/logic/sleep.js +1 -0
  105. package/build/shared/charts/descriptors/logic/stop.js +2 -5
  106. package/build/shared/charts/descriptors/logic/switch/case.js +3 -0
  107. package/build/shared/charts/descriptors/logic/switch/default.js +3 -0
  108. package/build/shared/charts/descriptors/logic/switch/switch.js +108 -13
  109. package/build/shared/charts/descriptors/logic/switchLocale.js +64 -0
  110. package/build/shared/charts/descriptors/logic/think.js +71 -7
  111. package/build/shared/charts/descriptors/logic/thinkV2.js +104 -0
  112. package/build/shared/charts/descriptors/logic/wait.js +3 -9
  113. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +3 -1
  114. package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +4 -1
  115. package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +4 -1
  116. package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +4 -1
  117. package/build/shared/charts/descriptors/message/datePicker.js +1 -0
  118. package/build/shared/charts/descriptors/message/index.js +13 -12
  119. package/build/shared/charts/descriptors/message/question/onAnswer.js +4 -1
  120. package/build/shared/charts/descriptors/message/question/onQuestion.js +4 -1
  121. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +65 -8
  122. package/build/shared/charts/descriptors/message/question/question.js +1143 -58
  123. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +79 -11
  124. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +23 -3
  125. package/build/shared/charts/descriptors/message/question/utils/generateAnswerShortForm.js +37 -0
  126. package/build/shared/charts/descriptors/message/question/utils/getQuestionText.js +36 -0
  127. package/build/shared/charts/descriptors/message/question/utils/resetNodeState.js +12 -0
  128. package/build/shared/charts/descriptors/message/question/utils/storeQuestionAnswer.js +30 -0
  129. package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +22 -0
  130. package/build/shared/charts/descriptors/message/say.js +16 -6
  131. package/build/shared/charts/descriptors/message/sendImage.js +4 -3
  132. package/build/shared/charts/descriptors/message/sendText.js +1 -0
  133. package/build/shared/charts/descriptors/microsoft/getToken.js +34 -0
  134. package/build/shared/charts/descriptors/microsoft/index.js +22 -0
  135. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +29 -0
  136. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +51 -0
  137. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +24 -0
  138. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +24 -0
  139. package/build/shared/charts/descriptors/microsoft/utils/design.js +5 -0
  140. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +1 -0
  141. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +8 -2
  142. package/build/shared/charts/descriptors/nlu/extractAnswer.js +115 -0
  143. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +270 -0
  144. package/build/shared/charts/descriptors/nlu/index.js +10 -3
  145. package/build/shared/charts/descriptors/nlu/matchPattern.js +104 -0
  146. package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +1 -0
  147. package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +197 -0
  148. package/build/shared/charts/descriptors/placeholder.js +38 -0
  149. package/build/shared/charts/descriptors/profile/activateProfile.js +1 -0
  150. package/build/shared/charts/descriptors/profile/blindMode.js +6 -2
  151. package/build/shared/charts/descriptors/profile/completeGoal.js +5 -0
  152. package/build/shared/charts/descriptors/profile/deactivateProfile.js +1 -0
  153. package/build/shared/charts/descriptors/profile/deleteProfile.js +1 -0
  154. package/build/shared/charts/descriptors/profile/index.js +14 -7
  155. package/build/shared/charts/descriptors/profile/mergeProfile.js +1 -0
  156. package/build/shared/charts/descriptors/profile/overwriteAnalytics.js +223 -0
  157. package/build/shared/charts/descriptors/profile/requestRating.js +57 -0
  158. package/build/shared/charts/descriptors/profile/setRating.js +39 -0
  159. package/build/shared/charts/descriptors/profile/updateProfile.js +8 -3
  160. package/build/shared/charts/descriptors/requiredFields.js +1 -0
  161. package/build/shared/charts/descriptors/service/handover.js +64 -7
  162. package/build/shared/charts/descriptors/service/handoverV2.js +129 -0
  163. package/build/shared/charts/descriptors/service/httpRequest.js +119 -8
  164. package/build/shared/charts/descriptors/service/index.js +15 -6
  165. package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +27 -0
  166. package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +27 -0
  167. package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +66 -0
  168. package/build/shared/charts/descriptors/start.js +2 -0
  169. package/build/shared/charts/descriptors/voicegateway/index.js +28 -0
  170. package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +87 -0
  171. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +118 -0
  172. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +156 -0
  173. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +57 -0
  174. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +146 -0
  175. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +273 -0
  176. package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +50 -0
  177. package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +73 -0
  178. package/build/shared/charts/descriptors/voicegateway/utils/design.js +5 -0
  179. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +501 -0
  180. package/build/shared/charts/descriptors/voicegateway2/index.js +21 -0
  181. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +56 -0
  182. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +48 -0
  183. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +199 -0
  184. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +44 -0
  185. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +584 -0
  186. package/build/shared/charts/descriptors/voicegateway2/utils/design.js +5 -0
  187. package/build/shared/charts/descriptors/voicegateway2/utils/strip-nulls.js +19 -0
  188. package/build/shared/constants.js +13 -1
  189. package/build/shared/errors/BadGatewayError.js +1 -0
  190. package/build/shared/errors/BadRequestError.js +1 -0
  191. package/build/shared/errors/ErrorCode.js +2 -0
  192. package/build/shared/errors/ErrorCollection.js +5 -2
  193. package/build/shared/errors/ForbiddenError.js +1 -0
  194. package/build/shared/errors/GatewayTimeoutError.js +1 -0
  195. package/build/shared/errors/ILoggerStack.js +1 -0
  196. package/build/shared/errors/MethodNotAllowedError.js +1 -0
  197. package/build/shared/errors/NetworkError.js +22 -0
  198. package/build/shared/errors/PayloadTooLargeError.js +1 -0
  199. package/build/shared/errors/PaymentRequiredError.js +1 -0
  200. package/build/shared/errors/ServiceUnavailableError.js +1 -0
  201. package/build/shared/errors/UnauthorizedError.js +1 -0
  202. package/build/shared/errors/baseError.js +35 -1
  203. package/build/shared/errors/codes.js +1 -0
  204. package/build/shared/errors/conflict.js +1 -0
  205. package/build/shared/errors/databaseConnectError.js +1 -0
  206. package/build/shared/errors/databaseQueryError.js +1 -0
  207. package/build/shared/errors/databaseRead.js +1 -0
  208. package/build/shared/errors/databaseWrite.js +1 -0
  209. package/build/shared/errors/exportError.js +1 -0
  210. package/build/shared/errors/fileRead.js +1 -0
  211. package/build/shared/errors/fileWrite.js +1 -0
  212. package/build/shared/errors/importError.js +1 -0
  213. package/build/shared/errors/index.js +34 -27
  214. package/build/shared/errors/inputOutputError.js +1 -0
  215. package/build/shared/errors/internalServerError.js +1 -0
  216. package/build/shared/errors/invalidArgument.js +1 -0
  217. package/build/shared/errors/missingArgument.js +1 -0
  218. package/build/shared/errors/notImplementedError.js +1 -0
  219. package/build/shared/errors/process.js +1 -0
  220. package/build/shared/errors/resourceNotFound.js +1 -0
  221. package/build/shared/errors/smtpConnectError.js +1 -0
  222. package/build/shared/errors/timeoutError.js +1 -0
  223. package/build/shared/helper/BaseContext.js +1 -0
  224. package/build/shared/helper/HttpStatusCode.js +1 -0
  225. package/build/shared/helper/createQuerySchema.js +1 -0
  226. package/build/shared/helper/logger/ILogEntry.js +1 -0
  227. package/build/shared/helper/logger/TLogLevel.js +1 -0
  228. package/build/shared/helper/logger/index.js +4 -2
  229. package/build/shared/helper/objectSizeValidator.js +3 -1
  230. package/build/shared/helper/rest/NumberRange.js +1 -0
  231. package/build/shared/helper/rest/array.js +19 -0
  232. package/build/shared/helper/rest/boolean.js +8 -2
  233. package/build/shared/helper/rest/index.js +13 -9
  234. package/build/shared/helper/rest/limit.js +3 -1
  235. package/build/shared/helper/rest/operations.js +4 -3
  236. package/build/shared/helper/rest/query-string/decode-uri-component.js +82 -0
  237. package/build/shared/helper/rest/query-string/index.js +308 -0
  238. package/build/shared/helper/rest/query-string/splitOnFirst.js +21 -0
  239. package/build/shared/helper/rest/query-string/strictUriEncode.js +7 -0
  240. package/build/shared/helper/rest/query.js +0 -0
  241. package/build/shared/helper/rest/skip.js +3 -1
  242. package/build/shared/helper/rest/sort.js +5 -2
  243. package/build/shared/interfaces/BatchOperation.js +13 -5
  244. package/build/shared/interfaces/IApiKey.js +28 -0
  245. package/build/shared/interfaces/IEndpointTranslationSettings.js +32 -0
  246. package/build/shared/interfaces/IFunctionInstanceParameters.js +15 -0
  247. package/build/shared/interfaces/IHandoverRequestStatus.js +3 -0
  248. package/build/shared/interfaces/IHttpRequest.js +3 -0
  249. package/build/shared/interfaces/IOrganisation.js +51 -0
  250. package/build/shared/interfaces/IProfile.js +5 -1
  251. package/build/shared/interfaces/IProfileSchema.js +10 -2
  252. package/build/shared/interfaces/ISessionScope.js +3 -0
  253. package/build/shared/interfaces/TEntrypointType.js +5 -0
  254. package/build/shared/interfaces/TFunctionInstanceStatus.js +10 -0
  255. package/build/shared/interfaces/TFunctionInstanceTrigger.js +8 -0
  256. package/build/shared/interfaces/alexa/ISkill.js +1 -0
  257. package/build/shared/interfaces/alexa/index.js +2 -1
  258. package/build/shared/interfaces/amqpInterface.js +28 -6
  259. package/build/shared/interfaces/analytics/IAnalyticsEndpointMeta.js +3 -0
  260. package/build/shared/interfaces/analytics/IAnalyticsFlowHistoryData.js +3 -0
  261. package/build/shared/interfaces/analytics/IAnalyticsFlowMeta.js +3 -0
  262. package/build/shared/interfaces/analytics/IAnalyticsLocaleMeta.js +3 -0
  263. package/build/shared/interfaces/analytics/IAnalyticsSnapshotMeta.js +3 -0
  264. package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +196 -44
  265. package/build/shared/interfaces/analytics/IAnalyticsStepData.js +3 -0
  266. package/build/shared/interfaces/analytics/IStepEvent.js +46 -0
  267. package/build/shared/interfaces/analytics/TAnalyticsMode.js +10 -0
  268. package/build/shared/interfaces/analytics/TAnalyticsSource.js +7 -0
  269. package/build/shared/interfaces/analytics/TAnalyticsType.js +5 -0
  270. package/build/shared/interfaces/analytics/index.js +2 -1
  271. package/build/shared/interfaces/cognigySlots.js +1 -0
  272. package/build/shared/interfaces/debugEvents/IErrorEventPayload.js +3 -0
  273. package/build/shared/interfaces/debugEvents/INluWarningEventPayload.js +3 -0
  274. package/build/shared/interfaces/debugEvents/TDebugEndpointEvent.js +21 -0
  275. package/build/shared/interfaces/debugEvents/TDebugEventType.js +4 -3
  276. package/build/shared/interfaces/debugEvents/TSessionStateEmitParams.js +3 -0
  277. package/build/shared/interfaces/handover.js +126 -3
  278. package/build/shared/interfaces/journeys/IJourney.js +5 -3
  279. package/build/shared/interfaces/journeys/IJourneyProgress.js +4 -4
  280. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +1 -0
  281. package/build/shared/interfaces/journeys/index.js +8 -7
  282. package/build/shared/interfaces/license.js +34 -0
  283. package/build/shared/interfaces/license.js.map +1 -0
  284. package/build/shared/interfaces/management/IVendor.js +3 -0
  285. package/build/shared/interfaces/messageAPI/ai.js +15 -0
  286. package/build/shared/interfaces/messageAPI/endpoints.js +328 -14
  287. package/build/shared/interfaces/messageAPI/nlp.js +3 -0
  288. package/build/shared/interfaces/resources/IAuditEvent.js +67 -27
  289. package/build/shared/interfaces/resources/IChart.js +14 -3
  290. package/build/shared/interfaces/resources/IChartNode.js +105 -5
  291. package/build/shared/interfaces/resources/IConnection.js +2 -1
  292. package/build/shared/interfaces/resources/IConnectionSchema.js +2 -0
  293. package/build/shared/interfaces/resources/IEndpoint.js +23 -7
  294. package/build/shared/interfaces/resources/IEntityMeta.js +1 -0
  295. package/build/shared/interfaces/resources/IExtension.js +5 -1
  296. package/build/shared/interfaces/resources/IFile.js +1 -0
  297. package/build/shared/interfaces/resources/IFlow.js +26 -5
  298. package/build/shared/interfaces/resources/IFlowState.js +14 -2
  299. package/build/shared/interfaces/resources/IFunction.js +28 -0
  300. package/build/shared/interfaces/resources/IFunctionInstance.js +30 -0
  301. package/build/shared/interfaces/resources/IGraphResource.js +3 -0
  302. package/build/shared/interfaces/resources/ILexicon.js +9 -2
  303. package/build/shared/interfaces/resources/ILexiconEntry.js +2 -1
  304. package/build/shared/interfaces/resources/ILexiconKeyphrase.js +2 -1
  305. package/build/shared/interfaces/resources/ILexiconSlot.js +3 -2
  306. package/build/shared/interfaces/resources/ILocale.js +3 -3
  307. package/build/shared/interfaces/resources/INLUConnector.js +17 -4
  308. package/build/shared/interfaces/resources/INLUTransformerFunction.js +1 -0
  309. package/build/shared/interfaces/resources/INodeDescriptorSet.js +190 -51
  310. package/build/shared/interfaces/resources/IOptionsResolverFunction.js +18 -0
  311. package/build/shared/interfaces/resources/IPackage.js +25 -0
  312. package/build/shared/interfaces/resources/IPlaybook.js +3 -1
  313. package/build/shared/interfaces/resources/IPlaybookRun.js +61 -0
  314. package/build/shared/interfaces/resources/IProject.js +14 -0
  315. package/build/shared/interfaces/resources/IProjectGraph.js +3 -0
  316. package/build/shared/interfaces/resources/ISlotFiller.js +85 -0
  317. package/build/shared/interfaces/resources/ISnapshot.js +16 -3
  318. package/build/shared/interfaces/resources/ISnippet.js +14 -5
  319. package/build/shared/interfaces/resources/ITemplateConfiguration.js +1 -0
  320. package/build/shared/interfaces/resources/ITrackAnalyticsStepsArguments.js +3 -0
  321. package/build/shared/interfaces/resources/TNLUConnectorType.js +3 -1
  322. package/build/shared/interfaces/resources/TResourceType.js +94 -45
  323. package/build/shared/interfaces/resources/TRestChannelType.js +29 -2
  324. package/build/shared/interfaces/resources/TSlotFillerType.js +24 -0
  325. package/build/shared/interfaces/resources/TSocketChannelType.js +6 -1
  326. package/build/shared/interfaces/resources/TWebhookChannelType.js +18 -7
  327. package/build/shared/interfaces/resources/chart/IChartExecutable.js +12 -4
  328. package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +11 -5
  329. package/build/shared/interfaces/resources/chart/IUndoRedoAction.js +0 -34
  330. package/build/shared/interfaces/resources/endpoints/sunshineConversations/ISunshineConversationsV2.js +3 -0
  331. package/build/shared/interfaces/resources/intent/IDefaultReply.js +10 -4
  332. package/build/shared/interfaces/resources/intent/IIntent.js +45 -4
  333. package/build/shared/interfaces/resources/intent/IIntentFeedbackReport.js +76 -0
  334. package/build/shared/interfaces/resources/intent/IIntentRelation.js +2 -1
  335. package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +30 -1
  336. package/build/shared/interfaces/resources/intent/ILearningSentence.js +2 -1
  337. package/build/shared/interfaces/resources/intent/ISentence.js +37 -13
  338. package/build/shared/interfaces/resources/intent/ISentenceFeedbackReport.js +67 -0
  339. package/build/shared/interfaces/resources/intent/ITrainGroupFeedbackReport.js +55 -0
  340. package/build/shared/interfaces/resources/projectTemplates.js +1 -0
  341. package/build/shared/interfaces/resources/settings/IAgentSettings.js +56 -0
  342. package/build/shared/interfaces/resources/settings/IFlowSettings.js +19 -0
  343. package/build/shared/interfaces/resources/settings/IFullSettings.js +3 -0
  344. package/build/shared/interfaces/resources/settings/ISharedSettings.js +50 -0
  345. package/build/shared/interfaces/resources/settings/index.js +13 -0
  346. package/build/shared/interfaces/restAPI/administration/identityProviders/v2.0/IConfigureIdentityProviderRest_2_0.js +3 -0
  347. package/build/shared/interfaces/restAPI/administration/identityProviders/v2.0/IResetIdentityProviderRest_2_0.js +3 -0
  348. package/build/shared/interfaces/restAPI/administration/identityProviders/v2.0/index.js +3 -0
  349. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadLiveAgentAccountRest_2_0.js +3 -0
  350. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IReadProjectInboxRest_2_0.js +3 -0
  351. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentInboxRest_2_0.js +3 -0
  352. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/ISetupCognigyLiveAgentRest_2_0.js +3 -0
  353. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/index.js +3 -0
  354. package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IChangePasswordRest_2_0.js +3 -0
  355. package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddProjectMemberRest_2_0.js +3 -0
  356. package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddProjectToUserRest_2_0.js +3 -0
  357. package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddRoleToMemberRest_2_0.js +3 -0
  358. package/build/shared/interfaces/restAPI/administration/user/v2.0/IAddRoleToUserRest_2_0.js +3 -0
  359. package/build/shared/interfaces/restAPI/administration/user/v2.0/IApiKeyIndexItem_2_0.js +3 -0
  360. package/build/shared/interfaces/restAPI/administration/user/v2.0/IApiKey_2_0.js +3 -0
  361. package/build/shared/interfaces/restAPI/administration/user/v2.0/ICreateApiKeyRest_2_0.js +3 -0
  362. package/build/shared/interfaces/restAPI/administration/user/v2.0/ICreateUserRest_2_0.js +3 -0
  363. package/build/shared/interfaces/restAPI/administration/user/v2.0/IDeleteApiKeyMeRest_2_0.js +3 -0
  364. package/build/shared/interfaces/restAPI/administration/user/v2.0/IDeleteUserRest_2_0.js +3 -0
  365. package/build/shared/interfaces/restAPI/administration/user/v2.0/IDeprecatePasswordRest_2_0.js +3 -0
  366. package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexApiKeysMeRest_2_0.js +3 -0
  367. package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexLoginAttemptsRest_2_0.js +3 -0
  368. package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexProjectMembers_2_0.js +3 -0
  369. package/build/shared/interfaces/restAPI/administration/user/v2.0/IIndexUsersRest_2_0.js +3 -0
  370. package/build/shared/interfaces/restAPI/administration/user/v2.0/ILoginAttemptIndexItem_2_0.js +3 -0
  371. package/build/shared/interfaces/restAPI/administration/user/v2.0/ILoginAttempt_2_0.js +3 -0
  372. package/build/shared/interfaces/restAPI/administration/user/v2.0/ILogoutUserRest_2_0.js +3 -0
  373. package/build/shared/interfaces/restAPI/administration/user/v2.0/IProjectMemberIndexItem_2_0.js +3 -0
  374. package/build/shared/interfaces/restAPI/administration/user/v2.0/IProjectMember_2_0.js +3 -0
  375. package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadLastLoginAttemptRest_2_0.js +3 -0
  376. package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadProjectMemberRest_2_0.js +3 -0
  377. package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadUserAclMeRest_2_0.js +3 -0
  378. package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadUserMeRest_2_0.js +3 -0
  379. package/build/shared/interfaces/restAPI/administration/user/v2.0/IReadUserRest_2_0.js +3 -0
  380. package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveProjectFromUserRest_2_0.js +3 -0
  381. package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveProjectMemberRest_2_0.js +3 -0
  382. package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveRoleFromMemberRest_2_0.js +3 -0
  383. package/build/shared/interfaces/restAPI/administration/user/v2.0/IRemoveRoleFromUserRest_2_0.js +3 -0
  384. package/build/shared/interfaces/restAPI/administration/user/v2.0/IResetFailedLoginAttemptsRest_2_0.js +3 -0
  385. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUpdateProjectMemberRest_2_0.js +3 -0
  386. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUpdateUserMeRest_2_0.js +3 -0
  387. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUpdateUserRest_2_0.js +3 -0
  388. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUserAcl_2_0.js +3 -0
  389. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUserIndexItem_2_0.js +3 -0
  390. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUserUpdate_2_0.js +3 -0
  391. package/build/shared/interfaces/restAPI/administration/user/v2.0/IUser_2_0.js +3 -0
  392. package/build/shared/interfaces/restAPI/administration/user/v2.0/index.js +3 -0
  393. package/build/shared/interfaces/restAPI/analytics/IDeleteAnalyticsRecordsRest_2_0.js +3 -0
  394. package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordProperties_2_0.js +3 -0
  395. package/build/shared/interfaces/restAPI/analytics/IUpdateAnalyticsRecordsRest_2_0.js +3 -0
  396. package/build/shared/interfaces/restAPI/authentication/IGetRealtimeTokenRest.js +3 -0
  397. package/build/shared/interfaces/restAPI/authentication/IHandleAmazonAccessTokenFromAuthCodeRest.js +3 -0
  398. package/build/shared/interfaces/restAPI/authentication/IRedirectToAmazonLoginRest.js +3 -0
  399. package/build/shared/interfaces/restAPI/authentication/IWebfingerRest.js +4 -0
  400. package/build/shared/interfaces/restAPI/authentication/index.js +3 -0
  401. package/build/shared/interfaces/restAPI/insights/IAnalyticsQueryFilter_2_0.js +3 -0
  402. package/build/shared/interfaces/restAPI/insights/TAnalyticsQueryFilterOperator_2_0.js +3 -0
  403. package/build/shared/interfaces/restAPI/insights/messages/IGenerateMessagesRest_2_0.js +5 -0
  404. package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashResponse_2_0.js +3 -0
  405. package/build/shared/interfaces/restAPI/insights/messages/ILoadMessagesReportByQueryHashRestData_2_0.js +3 -0
  406. package/build/shared/interfaces/restAPI/insights/messages/ITopNMessages_2_0.js +3 -0
  407. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportResponse_2_0.js +3 -0
  408. package/build/shared/interfaces/restAPI/insights/reports/IGenerateReportRest_2_0.js +41 -0
  409. package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashResponse_2_0.js +3 -0
  410. package/build/shared/interfaces/restAPI/insights/reports/ILoadReportByQueryHashRest_2_0.js +3 -0
  411. package/build/shared/interfaces/restAPI/insights/steps/IGenerateStepReportRest_2_0.js +3 -0
  412. package/build/shared/interfaces/restAPI/insights/steps/IIndexStepsRest_2_0.js +3 -0
  413. package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashResponse_2_0.js +3 -0
  414. package/build/shared/interfaces/restAPI/insights/steps/ILoadStepReportByQueryHashRestData_2_0.js +3 -0
  415. package/build/shared/interfaces/restAPI/insights/steps/IStepIndexItem_2_0.js +3 -0
  416. package/build/shared/interfaces/restAPI/insights/steps/IStepReport_2_0.js +3 -0
  417. package/build/shared/interfaces/restAPI/insights/steps/IStep_2_0.js +3 -0
  418. package/build/shared/interfaces/restAPI/insights/transcripts/IGenerateTranscriptsRest_2_0.js +3 -0
  419. package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashResponse_2_0.js +3 -0
  420. package/build/shared/interfaces/restAPI/insights/transcripts/ILoadTranscriptsReportByQueryHashRestData_2_0.js +3 -0
  421. package/build/shared/interfaces/restAPI/insights/transcripts/IStepPath_2_0.js +3 -0
  422. package/build/shared/interfaces/restAPI/management/organisations/v2.0/ICreateApiKeyRestManagement_2_0.js +3 -0
  423. package/build/shared/interfaces/restAPI/management/organisations/v2.0/ICreateOrganisationRest_2_0.js +4 -0
  424. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IEnforcePasswordPolicyRest_2_0.js +3 -0
  425. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IIndexOrganisationsRest_2_0.js +3 -0
  426. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IOrganisationIndexItem_2_0.js +3 -0
  427. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IOrganisation_2_0.js +3 -0
  428. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IReadOrganisationRest_2_0.js +3 -0
  429. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IUpdateOrganisationRest_2_0.js +3 -0
  430. package/build/shared/interfaces/restAPI/management/organisations/v2.0/index.js +3 -0
  431. package/build/shared/interfaces/restAPI/management/system/v2.0/ICreateSystemMessage_2_0.js +3 -0
  432. package/build/shared/interfaces/restAPI/management/system/v2.0/index.js +3 -0
  433. package/build/shared/interfaces/restAPI/management/user/v2.0/ICreateUserRestManagement_2_0.js +3 -0
  434. package/build/shared/interfaces/restAPI/management/user/v2.0/IDeleteUserRestManagement_2_0.js +3 -0
  435. package/build/shared/interfaces/restAPI/management/user/v2.0/IImpersonateUserRestManagement_2_0.js +3 -0
  436. package/build/shared/interfaces/restAPI/management/user/v2.0/IIndexUsersRestManagement_2_0.js +3 -0
  437. package/build/shared/interfaces/restAPI/management/user/v2.0/IReadUserRestManagement_2_0.js +3 -0
  438. package/build/shared/interfaces/restAPI/management/user/v2.0/IUpdateUserRestManagement_2_0.js +3 -0
  439. package/build/shared/interfaces/restAPI/management/user/v2.0/IUserManagementIndexItem_2_0.js +3 -0
  440. package/build/shared/interfaces/restAPI/management/user/v2.0/IUserManagement_2_0.js +3 -0
  441. package/build/shared/interfaces/restAPI/management/user/v2.0/index.js +3 -0
  442. package/build/shared/interfaces/restAPI/management/vendor/v2.0/IGetBillingInformationRest_2_0.js +3 -0
  443. package/build/shared/interfaces/restAPI/management/vendor/v2.0/IReadVendorRest_2_0.js +3 -0
  444. package/build/shared/interfaces/restAPI/management/vendor/v2.0/IVendor_2_0.js +3 -0
  445. package/build/shared/interfaces/restAPI/management/vendor/v2.0/index.js +3 -0
  446. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/IConversationCounterAggregatedValue_2_0.js +3 -0
  447. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/IGetConversationCounterOrganisationRest_2_0.js +3 -0
  448. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/IGetConversationCounterRest_2_0.js +3 -0
  449. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v2.0/index.js +3 -0
  450. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IConversationData_2_0.js +3 -0
  451. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IConversationSession_2_0.js +3 -0
  452. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IDeleteConversationRest_2_0.js +3 -0
  453. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IIndexConversationsRest_2_0.js +3 -0
  454. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/IReadConversationRest_2_0.js +3 -0
  455. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/TAnalyticsSource_2_0.js +3 -0
  456. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/TAnalyticsType_2_0.js +3 -0
  457. package/build/shared/interfaces/restAPI/metrics/conversations/v2.0/index.js +3 -0
  458. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/TAbstractTaskData_2_0.js +3 -0
  459. package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/ICancelTaskRest_2_1.js +3 -0
  460. package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/IIndexTasksRest_2_1.js +3 -0
  461. package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/IReadTaskRest_2_1.js +3 -0
  462. package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/ITaskIndexItem_2_1.js +3 -0
  463. package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/ITask_2_1.js +3 -0
  464. package/build/shared/interfaces/restAPI/metrics/tasks/v2.1/index.js +3 -0
  465. package/build/shared/interfaces/restAPI/resources/chart/v2.0/ISearchChartNodesRest_2_0.js +3 -0
  466. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IBatchConnectionsRest_2_0.js +4 -0
  467. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IBatchEndpointsRest_2_0.js +4 -0
  468. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/ICreateEndpointRest_2_0.js +0 -1
  469. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionPackageRest_2_0.js +4 -0
  470. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUpdateExtensionRest_2_0.js +3 -0
  471. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IBatchFlowsRest_2_0.js +4 -0
  472. package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowFromChildrenRest_2_0.js +4 -0
  473. package/build/shared/interfaces/restAPI/resources/flow/v2.0/feedbackReports/IIntentFeedbackReport_2_0.js +15 -0
  474. package/build/shared/interfaces/restAPI/resources/flow/v2.0/feedbackReports/ISentenceFeedbackReport_2_0.js +10 -0
  475. package/build/shared/interfaces/restAPI/resources/flow/v2.0/feedbackReports/ITrainGroupFeedbackReport_2_0.js +8 -0
  476. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IBatchIntentsRest_2_0.js +4 -0
  477. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ITrainYesNoIntentsRest_2_0.js +3 -0
  478. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ICreateSentenceRest_2_0.js +0 -1
  479. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IIndexSentencesRest_2_0.js +3 -0
  480. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IFlowSettings_2_0.js +3 -0
  481. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IReadFlowSettingsRest_2_0.js +4 -0
  482. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IUpdateFlowSettingsRest_2_0.js +4 -0
  483. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IBatchSlotFillersRest_2_0.js +4 -0
  484. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/ICreateSlotFillerRest_2_0.js +3 -0
  485. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IDeleteSlotFillerRest_2_0.js +4 -0
  486. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IIndexSlotFillersRest_2_0.js +3 -0
  487. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IReadSlotFillerRest_2_0.js +3 -0
  488. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/ISlotFillerIndexItem_2_0.js +3 -0
  489. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/ISlotFiller_2_0.js +3 -0
  490. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/IUpdateSlotFillerRest_2_0.js +4 -0
  491. package/build/shared/interfaces/restAPI/resources/flow/v2.0/slotFiller/index.js +3 -0
  492. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IBatchFlowStatesRest_2_0.js +4 -0
  493. package/build/shared/interfaces/restAPI/resources/function/v2.0/ICreateFunctionRest_2_0.js +3 -0
  494. package/build/shared/interfaces/restAPI/resources/function/v2.0/IDeleteFunctionRest_2_0.js +3 -0
  495. package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunctionIndexItem_2_0.js +3 -0
  496. package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunctionInstanceIndexItem_2_0.js +3 -0
  497. package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunctionInstance_2_0.js +3 -0
  498. package/build/shared/interfaces/restAPI/resources/function/v2.0/IFunction_2_0.js +3 -0
  499. package/build/shared/interfaces/restAPI/resources/function/v2.0/IIndexFunctionInstancesRest_2_0.js +3 -0
  500. package/build/shared/interfaces/restAPI/resources/function/v2.0/IIndexFunctionsRest_2_0.js +3 -0
  501. package/build/shared/interfaces/restAPI/resources/function/v2.0/IReadFunctionInstanceRest_2_0.js +3 -0
  502. package/build/shared/interfaces/restAPI/resources/function/v2.0/IReadFunctionRest_2_0.js +3 -0
  503. package/build/shared/interfaces/restAPI/resources/function/v2.0/IStopFunctionInstanceRest_2_0.js +3 -0
  504. package/build/shared/interfaces/restAPI/resources/function/v2.0/ITriggerFunctionRest_2_0.js +3 -0
  505. package/build/shared/interfaces/restAPI/resources/function/v2.0/IUpdateFunctionRest_2_0.js +3 -0
  506. package/build/shared/interfaces/restAPI/resources/function/v2.0/TFunctionInstanceStatus_2_0.js +3 -0
  507. package/build/shared/interfaces/restAPI/resources/function/v2.0/TFunctionInstanceTrigger_2_0.js +3 -0
  508. package/build/shared/interfaces/restAPI/resources/function/v2.0/index.js +3 -0
  509. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IBatchLexiconSlotsRest_2_0.js +4 -0
  510. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IBatchLexiconsRest_2_0.js +4 -0
  511. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IComposeLexiconDownloadLinkRest_2_0.js +3 -0
  512. package/build/shared/interfaces/restAPI/resources/locales/v2.0/TNLULanguage_2_0.js +9 -1
  513. package/build/shared/interfaces/restAPI/resources/locales/v2.0/index.js +3 -0
  514. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IBatchNLUConnectorsRest_2_0.js +4 -0
  515. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +4 -1
  516. package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IOptionsResolverRest_2_0.js +3 -0
  517. package/build/shared/interfaces/restAPI/resources/package/v2.0/IComposePackageDownloadLinkRest_2_0.js +3 -0
  518. package/build/shared/interfaces/restAPI/resources/package/v2.0/IConflict_2_0.js +3 -0
  519. package/build/shared/interfaces/restAPI/resources/package/v2.0/ICreatePackageRest_2_0.js +4 -0
  520. package/build/shared/interfaces/restAPI/resources/package/v2.0/IDeletePackageRest_2_0.js +3 -0
  521. package/build/shared/interfaces/restAPI/resources/package/v2.0/IIndexPackagesRest_2_0.js +3 -0
  522. package/build/shared/interfaces/restAPI/resources/package/v2.0/IMergePackageRest_2_0.js +3 -0
  523. package/build/shared/interfaces/restAPI/resources/package/v2.0/IPackageIndexItem_2_0.js +3 -0
  524. package/build/shared/interfaces/restAPI/resources/package/v2.0/IPackage_2_0.js +3 -0
  525. package/build/shared/interfaces/restAPI/resources/package/v2.0/IReadPackageRest_2_0.js +3 -0
  526. package/build/shared/interfaces/restAPI/resources/package/v2.0/IStrategy_2_0.js +3 -0
  527. package/build/shared/interfaces/restAPI/resources/package/v2.0/IUploadPackageRest_2_0.js +3 -0
  528. package/build/shared/interfaces/restAPI/resources/package/v2.0/index.js +3 -0
  529. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IBatchPlaybooksRest_2_0.js +4 -0
  530. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRunRest_2_0.js +3 -0
  531. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybookRunsRest_2_0.js +3 -0
  532. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRunIndexItem_2_0.js +3 -0
  533. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookRun_2_0.js +7 -0
  534. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRunRest_2_0.js +3 -0
  535. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ISchedulePlaybookRunRest_2_0.js +3 -0
  536. package/build/shared/interfaces/restAPI/resources/project/v2.0/IGraphProjectRest_2_0.js +4 -0
  537. package/build/shared/interfaces/restAPI/resources/project/v2.0/IGraph_2_0.js +4 -0
  538. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IAgentSettings_2_0.js +3 -0
  539. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IReadAgentSettingsRest_2_0.js +4 -0
  540. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISharedSettings_2_0.js +3 -0
  541. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IUpdateAgentSettingsRest_2_0.js +4 -0
  542. package/build/shared/interfaces/rule.js +1 -0
  543. package/build/shared/interfaces/security/IACL.js +17 -0
  544. package/build/shared/interfaces/security/IConversationCounterAggregatedValue.js +3 -0
  545. package/build/shared/interfaces/security/IIdentityProvider.js +129 -0
  546. package/build/shared/interfaces/security/ILoginAttempt.js +3 -0
  547. package/build/shared/interfaces/security/IOperation.js +10 -0
  548. package/build/shared/interfaces/security/IOrganisactionScope.js +3 -0
  549. package/build/shared/interfaces/security/IPermission.js +100 -0
  550. package/build/shared/interfaces/security/IProjectMember.js +3 -0
  551. package/build/shared/interfaces/security/IProjectScope.js +3 -0
  552. package/build/shared/interfaces/security/IProjectsScope.js +3 -0
  553. package/build/shared/interfaces/security/IRole.js +112 -0
  554. package/build/shared/interfaces/security/IUserMeta.js +3 -0
  555. package/build/shared/interfaces/security/IUserRole.js +3 -0
  556. package/build/shared/interfaces/security/index.js +19 -0
  557. package/build/shared/interfaces/sessionstate/ISessionState.js +3 -0
  558. package/build/shared/interfaces/sessionstate/index.js +3 -0
  559. package/build/shared/interfaces/sunshineConversations.js +3 -0
  560. package/build/shared/interfaces/taskmanager/ITask.js +5 -16
  561. package/build/shared/interfaces/taskmanager/TTaskProgress.js +3 -0
  562. package/build/shared/interfaces/taskmanager/TTaskStatus.js +1 -0
  563. package/build/shared/interfaces/taskmanager/TTerminatedTaskStatus.js +5 -0
  564. package/build/shared/interfaces/taskmanager/index.js +5 -0
  565. package/build/shared/interfaces/trainer/ITrainerRecord.js +45 -2
  566. package/build/shared/interfaces/trainer/THandleAction.js +1 -0
  567. package/build/shared/interfaces/trainer/index.js +4 -3
  568. package/build/shared/interfaces/transformers/ITransformerFunction.js +2 -1
  569. package/build/shared/interfaces/transformers/index.js +2 -1
  570. package/build/shared/interfaces/translation.js +11 -0
  571. package/build/shared/interfaces/types/ICreateChartNodeBasicNodesData.js +3 -0
  572. package/build/shared/interfaces/types/TAbstractTaskData.js +3 -0
  573. package/build/shared/interfaces/types/TCSSColorName.js +1 -0
  574. package/build/shared/interfaces/types/TCognigyColorName.js +1 -0
  575. package/build/shared/interfaces/types/TNLULanguage.js +16 -12
  576. package/build/shared/interfaces/types/TTimezone.js +1200 -0
  577. package/build/shared/interfaces/user.js +29 -0
  578. package/build/shared/json-schema.js +20 -0
  579. package/build/shared/typescriptHelper.js +3 -0
  580. package/package.json +16 -27
  581. package/tsconfig.types.json +25 -0
  582. package/types/index.d.ts +16149 -0
  583. package/build/GenericAPIFn.d.ts +0 -3
  584. package/build/GenericUploadFn.d.ts +0 -5
  585. package/build/IRestApiClientConfig.d.ts +0 -9
  586. package/build/PluginBase.d.ts +0 -34
  587. package/build/RestAPIClient.d.ts +0 -13
  588. package/build/apigroups/AdministrationAPIGroup_2_0.d.ts +0 -15
  589. package/build/apigroups/ExternalAPIGroup_2_0.d.ts +0 -10
  590. package/build/apigroups/HandoverAPIGroup_2_0.d.ts +0 -4
  591. package/build/apigroups/HandoverAPIGroup_2_0.js +0 -8
  592. package/build/apigroups/IAPIGroupVersionConfiguration.d.ts +0 -8
  593. package/build/apigroups/MetricsAPIGroup_2_0.d.ts +0 -31
  594. package/build/apigroups/ResourcesAPIGroup_2_0.d.ts +0 -168
  595. package/build/apigroups/SessionsAPIGroup_2_0.d.ts +0 -12
  596. package/build/apigroups/TRestAPIGroupsTypeByConfiguration.d.ts +0 -39
  597. package/build/apigroups/index.d.ts +0 -8
  598. package/build/authentication/ApiKeyAuthentication.d.ts +0 -3
  599. package/build/authentication/ApiKeyAuthentication.js +0 -22
  600. package/build/authentication/AuthenticationAPI.d.ts +0 -6
  601. package/build/authentication/IApiKeyAuthentication.d.ts +0 -4
  602. package/build/authentication/IAuthenticationAdapter.d.ts +0 -5
  603. package/build/authentication/IAuthenticationConstructor.d.ts +0 -6
  604. package/build/authentication/IOAuth2Authentication.d.ts +0 -6
  605. package/build/authentication/IOAuth2InjectionAuthentication.d.ts +0 -4
  606. package/build/authentication/IOAuth2InjectionAuthentication.js +0 -3
  607. package/build/authentication/IOauth2TokenData.d.ts +0 -7
  608. package/build/authentication/IOauth2TokenData.js +0 -3
  609. package/build/authentication/OAuth2Authentication.d.ts +0 -3
  610. package/build/authentication/OAuth2Authentication.js +0 -28
  611. package/build/authentication/OAuth2InjectionAuthentication.d.ts +0 -3
  612. package/build/authentication/OAuth2InjectionAuthentication.js +0 -22
  613. package/build/authentication/TAuthenticationParameter.d.ts +0 -4
  614. package/build/authentication/TAuthenticationType.d.ts +0 -1
  615. package/build/authentication/TAuthenticationType.js +0 -3
  616. package/build/connector/AxiosAdapter.d.ts +0 -16
  617. package/build/connector/IHttpAdapter.d.ts +0 -10
  618. package/build/connector/IHttpRequest.d.ts +0 -18
  619. package/build/connector/IHttpResponse.d.ts +0 -6
  620. package/build/connector/THttpLib.d.ts +0 -1
  621. package/build/connector/TMethod.d.ts +0 -1
  622. package/build/connector/index.d.ts +0 -6
  623. package/build/index.d.ts +0 -4
  624. package/build/shared/charts/createNodeDescriptor.d.ts +0 -12
  625. package/build/shared/charts/descriptors/allFields.d.ts +0 -1
  626. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.d.ts +0 -15
  627. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.d.ts +0 -19
  628. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.d.ts +0 -18
  629. package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.d.ts +0 -4
  630. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.d.ts +0 -15
  631. package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.d.ts +0 -10
  632. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.d.ts +0 -15
  633. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.d.ts +0 -17
  634. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.d.ts +0 -17
  635. package/build/shared/charts/descriptors/connectionNodes/smtp/index.d.ts +0 -4
  636. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.d.ts +0 -14
  637. package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.d.ts +0 -14
  638. package/build/shared/charts/descriptors/connectionNodes/sql/index.d.ts +0 -4
  639. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.d.ts +0 -1
  640. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.d.ts +0 -1
  641. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.d.ts +0 -1
  642. package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.d.ts +0 -14
  643. package/build/shared/charts/descriptors/data/addToContext.d.ts +0 -7
  644. package/build/shared/charts/descriptors/data/code.d.ts +0 -13
  645. package/build/shared/charts/descriptors/data/copyDataToContext.d.ts +0 -7
  646. package/build/shared/charts/descriptors/data/copySlotsToContext.d.ts +0 -11
  647. package/build/shared/charts/descriptors/data/index.d.ts +0 -6
  648. package/build/shared/charts/descriptors/data/removeFromContext.d.ts +0 -7
  649. package/build/shared/charts/descriptors/data/resetContext.d.ts +0 -7
  650. package/build/shared/charts/descriptors/end.d.ts +0 -1
  651. package/build/shared/charts/descriptors/index.d.ts +0 -7
  652. package/build/shared/charts/descriptors/logic/checkFrustration.d.ts +0 -7
  653. package/build/shared/charts/descriptors/logic/checkFrustration.js +0 -81
  654. package/build/shared/charts/descriptors/logic/executeFlow.d.ts +0 -16
  655. package/build/shared/charts/descriptors/logic/goTo.d.ts +0 -7
  656. package/build/shared/charts/descriptors/logic/if/else.d.ts +0 -1
  657. package/build/shared/charts/descriptors/logic/if/if.d.ts +0 -1
  658. package/build/shared/charts/descriptors/logic/if/then.d.ts +0 -1
  659. package/build/shared/charts/descriptors/logic/index.d.ts +0 -21
  660. package/build/shared/charts/descriptors/logic/interval/elseInterval.d.ts +0 -1
  661. package/build/shared/charts/descriptors/logic/interval/interval.d.ts +0 -1
  662. package/build/shared/charts/descriptors/logic/interval/onInterval.d.ts +0 -1
  663. package/build/shared/charts/descriptors/logic/once/afterwards.d.ts +0 -1
  664. package/build/shared/charts/descriptors/logic/once/onFirstExecution.d.ts +0 -1
  665. package/build/shared/charts/descriptors/logic/once/once.d.ts +0 -1
  666. package/build/shared/charts/descriptors/logic/resetState.d.ts +0 -7
  667. package/build/shared/charts/descriptors/logic/setState.d.ts +0 -7
  668. package/build/shared/charts/descriptors/logic/sleep.d.ts +0 -7
  669. package/build/shared/charts/descriptors/logic/stop.d.ts +0 -1
  670. package/build/shared/charts/descriptors/logic/switch/case.d.ts +0 -1
  671. package/build/shared/charts/descriptors/logic/switch/default.d.ts +0 -1
  672. package/build/shared/charts/descriptors/logic/switch/switch.d.ts +0 -2
  673. package/build/shared/charts/descriptors/logic/think.d.ts +0 -7
  674. package/build/shared/charts/descriptors/logic/wait.d.ts +0 -1
  675. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.d.ts +0 -7
  676. package/build/shared/charts/descriptors/message/checkChannelChange/onNo.d.ts +0 -1
  677. package/build/shared/charts/descriptors/message/checkChannelChange/onYes.d.ts +0 -1
  678. package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.d.ts +0 -1
  679. package/build/shared/charts/descriptors/message/datePicker.d.ts +0 -35
  680. package/build/shared/charts/descriptors/message/index.d.ts +0 -12
  681. package/build/shared/charts/descriptors/message/question/onAnswer.d.ts +0 -1
  682. package/build/shared/charts/descriptors/message/question/onQuestion.d.ts +0 -1
  683. package/build/shared/charts/descriptors/message/question/optionalQuestion.d.ts +0 -1
  684. package/build/shared/charts/descriptors/message/question/question.d.ts +0 -1
  685. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.d.ts +0 -15
  686. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.d.ts +0 -4
  687. package/build/shared/charts/descriptors/message/say.d.ts +0 -1
  688. package/build/shared/charts/descriptors/message/sendImage.d.ts +0 -1
  689. package/build/shared/charts/descriptors/message/sendText.d.ts +0 -1
  690. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.d.ts +0 -7
  691. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.d.ts +0 -7
  692. package/build/shared/charts/descriptors/nlu/index.d.ts +0 -3
  693. package/build/shared/charts/descriptors/nlu/regexSlotFiller.d.ts +0 -16
  694. package/build/shared/charts/descriptors/profile/activateProfile.d.ts +0 -7
  695. package/build/shared/charts/descriptors/profile/blindMode.d.ts +0 -7
  696. package/build/shared/charts/descriptors/profile/completeGoal.d.ts +0 -8
  697. package/build/shared/charts/descriptors/profile/deactivateProfile.d.ts +0 -7
  698. package/build/shared/charts/descriptors/profile/deleteProfile.d.ts +0 -7
  699. package/build/shared/charts/descriptors/profile/index.d.ts +0 -7
  700. package/build/shared/charts/descriptors/profile/mergeProfile.d.ts +0 -7
  701. package/build/shared/charts/descriptors/profile/updateProfile.d.ts +0 -7
  702. package/build/shared/charts/descriptors/requiredFields.d.ts +0 -1
  703. package/build/shared/charts/descriptors/sendEmail.d.ts +0 -7
  704. package/build/shared/charts/descriptors/sendEmail.js +0 -117
  705. package/build/shared/charts/descriptors/service/handover.d.ts +0 -17
  706. package/build/shared/charts/descriptors/service/httpRequest.d.ts +0 -76
  707. package/build/shared/charts/descriptors/service/index.d.ts +0 -2
  708. package/build/shared/charts/descriptors/start.d.ts +0 -1
  709. package/build/shared/charts/interfaces/IChart.d.ts +0 -5
  710. package/build/shared/charts/interfaces/IEdge.d.ts +0 -4
  711. package/build/shared/charts/interfaces/index.d.ts +0 -2
  712. package/build/shared/constants.d.ts +0 -6
  713. package/build/shared/errorHandler.d.ts +0 -13
  714. package/build/shared/errors/BadGatewayError.d.ts +0 -43
  715. package/build/shared/errors/BadRequestError.d.ts +0 -44
  716. package/build/shared/errors/ErrorCode.d.ts +0 -29
  717. package/build/shared/errors/ErrorCollection.d.ts +0 -5
  718. package/build/shared/errors/ForbiddenError.d.ts +0 -43
  719. package/build/shared/errors/GatewayTimeoutError.d.ts +0 -43
  720. package/build/shared/errors/IErrorResponse.d.ts +0 -43
  721. package/build/shared/errors/ILoggerStack.d.ts +0 -6
  722. package/build/shared/errors/MethodNotAllowedError.d.ts +0 -43
  723. package/build/shared/errors/PayloadTooLargeError.d.ts +0 -43
  724. package/build/shared/errors/PaymentRequiredError.d.ts +0 -44
  725. package/build/shared/errors/ServiceUnavailableError.d.ts +0 -43
  726. package/build/shared/errors/UnauthorizedError.d.ts +0 -43
  727. package/build/shared/errors/baseError.d.ts +0 -43
  728. package/build/shared/errors/codes.d.ts +0 -25
  729. package/build/shared/errors/conflict.d.ts +0 -43
  730. package/build/shared/errors/databaseConnectError.d.ts +0 -8
  731. package/build/shared/errors/databaseQueryError.d.ts +0 -8
  732. package/build/shared/errors/databaseRead.d.ts +0 -8
  733. package/build/shared/errors/databaseWrite.d.ts +0 -8
  734. package/build/shared/errors/exportError.d.ts +0 -8
  735. package/build/shared/errors/fileRead.d.ts +0 -8
  736. package/build/shared/errors/fileWrite.d.ts +0 -8
  737. package/build/shared/errors/importError.d.ts +0 -14
  738. package/build/shared/errors/index.d.ts +0 -28
  739. package/build/shared/errors/inputOutputError.d.ts +0 -8
  740. package/build/shared/errors/internalServerError.d.ts +0 -43
  741. package/build/shared/errors/invalidArgument.d.ts +0 -8
  742. package/build/shared/errors/missingArgument.d.ts +0 -8
  743. package/build/shared/errors/notImplementedError.d.ts +0 -43
  744. package/build/shared/errors/process.d.ts +0 -8
  745. package/build/shared/errors/resourceNotFound.d.ts +0 -43
  746. package/build/shared/errors/smtpConnectError.d.ts +0 -8
  747. package/build/shared/errors/timeoutError.d.ts +0 -8
  748. package/build/shared/helper/BaseContext.d.ts +0 -98
  749. package/build/shared/helper/HttpStatusCode.d.ts +0 -319
  750. package/build/shared/helper/createQuerySchema.d.ts +0 -1
  751. package/build/shared/helper/logger/ILogEntry.d.ts +0 -18
  752. package/build/shared/helper/logger/ISuggestedMetaInfo.d.ts +0 -12
  753. package/build/shared/helper/logger/TLogLevel.d.ts +0 -2
  754. package/build/shared/helper/logger/index.d.ts +0 -8
  755. package/build/shared/helper/objectSizeValidator.d.ts +0 -9
  756. package/build/shared/helper/rest/NumberRange.d.ts +0 -15
  757. package/build/shared/helper/rest/boolean.d.ts +0 -1
  758. package/build/shared/helper/rest/index.d.ts +0 -7
  759. package/build/shared/helper/rest/limit.d.ts +0 -1
  760. package/build/shared/helper/rest/operations.d.ts +0 -2
  761. package/build/shared/helper/rest/query.d.ts +0 -7
  762. package/build/shared/helper/rest/skip.d.ts +0 -1
  763. package/build/shared/helper/rest/sort.d.ts +0 -4
  764. package/build/shared/interfaces/BatchOperation.d.ts +0 -77
  765. package/build/shared/interfaces/IProfile.d.ts +0 -26
  766. package/build/shared/interfaces/IProfileSchema.d.ts +0 -41
  767. package/build/shared/interfaces/ai.d.ts +0 -303
  768. package/build/shared/interfaces/alexa/IAccumulatedAlexaResponse.d.ts +0 -13
  769. package/build/shared/interfaces/alexa/IAlexaCard.d.ts +0 -20
  770. package/build/shared/interfaces/alexa/IAlexaDirective.d.ts +0 -4
  771. package/build/shared/interfaces/alexa/IAlexaDisplayDirective.d.ts +0 -5
  772. package/build/shared/interfaces/alexa/IAlexaDisplayImage.d.ts +0 -5
  773. package/build/shared/interfaces/alexa/IAlexaDisplayImageSource.d.ts +0 -6
  774. package/build/shared/interfaces/alexa/IAlexaDisplayListItem.d.ts +0 -8
  775. package/build/shared/interfaces/alexa/IAlexaDisplayTemplate.d.ts +0 -13
  776. package/build/shared/interfaces/alexa/IAlexaDisplayText.d.ts +0 -4
  777. package/build/shared/interfaces/alexa/IAlexaDisplayTextContent.d.ts +0 -6
  778. package/build/shared/interfaces/alexa/IAlexaEntity.d.ts +0 -7
  779. package/build/shared/interfaces/alexa/IAlexaNLUConnector.d.ts +0 -11
  780. package/build/shared/interfaces/alexa/IAlexaObject.d.ts +0 -15
  781. package/build/shared/interfaces/alexa/IAlexaOutputSpeech.d.ts +0 -14
  782. package/build/shared/interfaces/alexa/IAlexaRequest.d.ts +0 -11
  783. package/build/shared/interfaces/alexa/IAlexaRequestBody.d.ts +0 -21
  784. package/build/shared/interfaces/alexa/IAlexaResponse.d.ts +0 -29
  785. package/build/shared/interfaces/alexa/IAlexaSlots.d.ts +0 -10
  786. package/build/shared/interfaces/alexa/IAmazonUser.d.ts +0 -24
  787. package/build/shared/interfaces/alexa/IRenewTokenError.d.ts +0 -10
  788. package/build/shared/interfaces/alexa/IRenewTokenSuccess.d.ts +0 -18
  789. package/build/shared/interfaces/alexa/ISimulationResult.d.ts +0 -35
  790. package/build/shared/interfaces/alexa/ISkill.d.ts +0 -30
  791. package/build/shared/interfaces/alexa/ISkillList.d.ts +0 -12
  792. package/build/shared/interfaces/alexa/IVendor.d.ts +0 -14
  793. package/build/shared/interfaces/alexa/IVendorList.d.ts +0 -7
  794. package/build/shared/interfaces/alexa/index.d.ts +0 -26
  795. package/build/shared/interfaces/amqpInterface.d.ts +0 -129
  796. package/build/shared/interfaces/analytics/IAnalyticsSourceData.d.ts +0 -9
  797. package/build/shared/interfaces/analytics/IAnalyticsUserInputData.d.ts +0 -5
  798. package/build/shared/interfaces/analytics/IBaseAnalyticsData.d.ts +0 -25
  799. package/build/shared/interfaces/analytics/IBaseAnalyticsSourceData.d.ts +0 -17
  800. package/build/shared/interfaces/analytics/TAnalyticsSource.d.ts +0 -1
  801. package/build/shared/interfaces/analytics/TAnalyticsType.d.ts +0 -1
  802. package/build/shared/interfaces/analytics/index.d.ts +0 -6
  803. package/build/shared/interfaces/cognigySlots.d.ts +0 -95
  804. package/build/shared/interfaces/debugEvents/IActiveEntrypointsChangedEventPayload.d.ts +0 -7
  805. package/build/shared/interfaces/debugEvents/IContextChangedEventPayload.d.ts +0 -5
  806. package/build/shared/interfaces/debugEvents/IFinalPingEventPayload.d.ts +0 -5
  807. package/build/shared/interfaces/debugEvents/IInputChangedEventPayload.d.ts +0 -5
  808. package/build/shared/interfaces/debugEvents/INodeErrorEventPayload.d.ts +0 -5
  809. package/build/shared/interfaces/debugEvents/INodeExecutedEventPayload.d.ts +0 -4
  810. package/build/shared/interfaces/debugEvents/IOutputEventPayload.d.ts +0 -7
  811. package/build/shared/interfaces/debugEvents/IProfileChangedEventPayload.d.ts +0 -5
  812. package/build/shared/interfaces/debugEvents/ISwitchedFlowEventPayload.d.ts +0 -4
  813. package/build/shared/interfaces/debugEvents/TDebugEventPayload.d.ts +0 -10
  814. package/build/shared/interfaces/debugEvents/TDebugEventType.d.ts +0 -2
  815. package/build/shared/interfaces/dialogflowInterface.d.ts +0 -236
  816. package/build/shared/interfaces/endpointInterface.d.ts +0 -888
  817. package/build/shared/interfaces/handover.d.ts +0 -198
  818. package/build/shared/interfaces/journeys/IJourney.d.ts +0 -32
  819. package/build/shared/interfaces/journeys/IJourneyProgress.d.ts +0 -26
  820. package/build/shared/interfaces/journeys/IJourneyTrackEvent.d.ts +0 -122
  821. package/build/shared/interfaces/journeys/index.d.ts +0 -3
  822. package/build/shared/interfaces/messageAPI/ai.d.ts +0 -566
  823. package/build/shared/interfaces/messageAPI/endpoints.d.ts +0 -644
  824. package/build/shared/interfaces/resources/IAuditEvent.d.ts +0 -129
  825. package/build/shared/interfaces/resources/IChart.d.ts +0 -36
  826. package/build/shared/interfaces/resources/IChartNode.d.ts +0 -48
  827. package/build/shared/interfaces/resources/IConnection.d.ts +0 -34
  828. package/build/shared/interfaces/resources/IConnectionSchema.d.ts +0 -25
  829. package/build/shared/interfaces/resources/IEndpoint.d.ts +0 -68
  830. package/build/shared/interfaces/resources/IEndpointDisplayName.d.ts +0 -5
  831. package/build/shared/interfaces/resources/IEntity.d.ts +0 -6
  832. package/build/shared/interfaces/resources/IEntityMeta.d.ts +0 -48
  833. package/build/shared/interfaces/resources/IExtension.d.ts +0 -40
  834. package/build/shared/interfaces/resources/IFile.d.ts +0 -26
  835. package/build/shared/interfaces/resources/IFlow.d.ts +0 -40
  836. package/build/shared/interfaces/resources/IFlowLogicSettingsV2.d.ts +0 -35
  837. package/build/shared/interfaces/resources/IFlowState.d.ts +0 -20
  838. package/build/shared/interfaces/resources/IIntent.d.ts +0 -28
  839. package/build/shared/interfaces/resources/ILexicon.d.ts +0 -13
  840. package/build/shared/interfaces/resources/ILexiconEntry.d.ts +0 -18
  841. package/build/shared/interfaces/resources/ILexiconKeyphrase.d.ts +0 -15
  842. package/build/shared/interfaces/resources/ILexiconSlot.d.ts +0 -13
  843. package/build/shared/interfaces/resources/ILocale.d.ts +0 -17
  844. package/build/shared/interfaces/resources/IMongoStoredBuffer.d.ts +0 -7
  845. package/build/shared/interfaces/resources/INLUConnector.d.ts +0 -130
  846. package/build/shared/interfaces/resources/INLUTransformerFunction.d.ts +0 -37
  847. package/build/shared/interfaces/resources/INodeDescriptorSet.d.ts +0 -153
  848. package/build/shared/interfaces/resources/IPlaybook.d.ts +0 -91
  849. package/build/shared/interfaces/resources/IProject.d.ts +0 -14
  850. package/build/shared/interfaces/resources/IResourceInSnapshotItem.d.ts +0 -9
  851. package/build/shared/interfaces/resources/ISerializedBuffer.d.ts +0 -4
  852. package/build/shared/interfaces/resources/ISettings.d.ts +0 -59
  853. package/build/shared/interfaces/resources/ISettings.js +0 -72
  854. package/build/shared/interfaces/resources/ISnapshot.d.ts +0 -16
  855. package/build/shared/interfaces/resources/ISnippet.d.ts +0 -26
  856. package/build/shared/interfaces/resources/ITemplateConfiguration.d.ts +0 -10
  857. package/build/shared/interfaces/resources/TNLUConnectorType.d.ts +0 -5
  858. package/build/shared/interfaces/resources/TResourceType.d.ts +0 -59
  859. package/build/shared/interfaces/resources/TRestChannelType.d.ts +0 -5
  860. package/build/shared/interfaces/resources/TSocketChannelType.d.ts +0 -5
  861. package/build/shared/interfaces/resources/TWebhookChannelType.d.ts +0 -5
  862. package/build/shared/interfaces/resources/chart/IChartExecutable.d.ts +0 -10
  863. package/build/shared/interfaces/resources/chart/IChartExecutableNode.d.ts +0 -35
  864. package/build/shared/interfaces/resources/chart/INodeExecutionAPI.d.ts +0 -74
  865. package/build/shared/interfaces/resources/chart/INodeExecutionCognigyObject.d.ts +0 -5
  866. package/build/shared/interfaces/resources/chart/INodeToExecute.d.ts +0 -8
  867. package/build/shared/interfaces/resources/chart/IPartialChart.d.ts +0 -7
  868. package/build/shared/interfaces/resources/chart/IUndoRedoAction.d.ts +0 -20
  869. package/build/shared/interfaces/resources/chart/nodeFunctions/IIfNodeParams.d.ts +0 -7
  870. package/build/shared/interfaces/resources/chart/nodeFunctions/INodeFunction.d.ts +0 -10
  871. package/build/shared/interfaces/resources/chart/nodeFunctions/ISayParams.d.ts +0 -18
  872. package/build/shared/interfaces/resources/chart/nodeFunctions/ISendTextNodeParams.d.ts +0 -9
  873. package/build/shared/interfaces/resources/flow.d.ts +0 -172
  874. package/build/shared/interfaces/resources/flow.js +0 -3
  875. package/build/shared/interfaces/resources/intent/IDefaultReply.d.ts +0 -22
  876. package/build/shared/interfaces/resources/intent/IIntent.d.ts +0 -39
  877. package/build/shared/interfaces/resources/intent/IIntentRelation.d.ts +0 -13
  878. package/build/shared/interfaces/resources/intent/IIntentTrainGroup.d.ts +0 -19
  879. package/build/shared/interfaces/resources/intent/ILearningSentence.d.ts +0 -17
  880. package/build/shared/interfaces/resources/intent/ISentence.d.ts +0 -38
  881. package/build/shared/interfaces/resources/intents.d.ts +0 -77
  882. package/build/shared/interfaces/resources/oauth.d.ts +0 -47
  883. package/build/shared/interfaces/resources/projectTemplates.d.ts +0 -71
  884. package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IAuditEventIndexItem_2_0.d.ts +0 -43
  885. package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IAuditEvent_2_0.d.ts +0 -52
  886. package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IIndexAuditEventsRest_2_0.d.ts +0 -9
  887. package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/IReadAuditEventRest_2_0.d.ts +0 -8
  888. package/build/shared/interfaces/restAPI/administration/auditevent/v2.0/index.d.ts +0 -4
  889. package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IRequestPasswordResetRest_2_0.d.ts +0 -7
  890. package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IResetPasswordRest_2_0.d.ts +0 -9
  891. package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/IValidatePasswordResetTokenRest_2_0.d.ts +0 -7
  892. package/build/shared/interfaces/restAPI/administration/passwordreset/v2.0/index.d.ts +0 -3
  893. package/build/shared/interfaces/restAPI/administration/system/v2.0/IGetSystemLicenseState_2_0.d.ts +0 -5
  894. package/build/shared/interfaces/restAPI/administration/system/v2.0/IGetSystemMessage_2_0.d.ts +0 -6
  895. package/build/shared/interfaces/restAPI/administration/system/v2.0/ISetSystemLicense_2_0.d.ts +0 -9
  896. package/build/shared/interfaces/restAPI/administration/system/v2.0/index.d.ts +0 -3
  897. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IAlexaSkill_2_0.d.ts +0 -58
  898. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IAmazonUser_2_0.d.ts +0 -36
  899. package/build/shared/interfaces/restAPI/external/alexa/v2.0/ICreateAuthenticatedAmazonUserRest_2_0.d.ts +0 -9
  900. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IDeleteAmazonAccountRest_2_0.d.ts +0 -4
  901. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IDeployAlexaEndpointRest_2_0.d.ts +0 -11
  902. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IGetAlexaSkillsRest_2_0.d.ts +0 -4
  903. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IGetAmazonAccountRest_2_0.d.ts +0 -3
  904. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IHandleAmazonAccessTokenFromAuthCodeRest_2_0.d.ts +0 -4
  905. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IHandleAmazonAccessTokenFromAuthCodeRest_2_0.js +0 -3
  906. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IRedirectToAmazonLoginRest_2_0.d.ts +0 -5
  907. package/build/shared/interfaces/restAPI/external/alexa/v2.0/IRedirectToAmazonLoginRest_2_0.js +0 -3
  908. package/build/shared/interfaces/restAPI/external/alexa/v2.0/index.d.ts +0 -7
  909. package/build/shared/interfaces/restAPI/metrics/logs/v2.0/IIndexLogEntriesRest_2_0.d.ts +0 -11
  910. package/build/shared/interfaces/restAPI/metrics/logs/v2.0/ILogEntryIndexItem_2_0.d.ts +0 -32
  911. package/build/shared/interfaces/restAPI/metrics/logs/v2.0/ILogEntry_2_0.d.ts +0 -32
  912. package/build/shared/interfaces/restAPI/metrics/logs/v2.0/IReadLogEntryRest_2_0.d.ts +0 -10
  913. package/build/shared/interfaces/restAPI/metrics/logs/v2.0/index.d.ts +0 -2
  914. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/ICreateProfileRest_2_0.d.ts +0 -11
  915. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IDeleteProfileRest_2_0.d.ts +0 -7
  916. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IExportProfileDataRest_2_0.d.ts +0 -9
  917. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IGetProfileSchemaRest_2_0.d.ts +0 -8
  918. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IIndexProfilesRest_2_0.d.ts +0 -9
  919. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IMergeProfilesRest_2_0.d.ts +0 -12
  920. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IProfileIndexItem_2_0.d.ts +0 -31
  921. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IProfileSchema_2_0.d.ts +0 -64
  922. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IProfile_2_0.d.ts +0 -82
  923. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IReadProfileRest_2_0.d.ts +0 -9
  924. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IRemoveContactIdFromProfileRest_2_0.d.ts +0 -10
  925. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IRemoveConversationsOfProfileRest_2_0.d.ts +0 -7
  926. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IRemoveProfileDataRest_2_0.d.ts +0 -7
  927. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/ISetProfileSchemaRest_2_0.d.ts +0 -11
  928. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IUnmergeProfilesRest_2_0.d.ts +0 -11
  929. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/IUpdateProfileRest_2_0.d.ts +0 -12
  930. package/build/shared/interfaces/restAPI/metrics/profiles/v2.0/index.d.ts +0 -12
  931. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/ICancelTaskRest_2_0.d.ts +0 -8
  932. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/IIndexTasksRest_2_0.d.ts +0 -9
  933. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/IReadTaskRest_2_0.d.ts +0 -12
  934. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/ITaskIndexItem_2_0.d.ts +0 -58
  935. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/ITask_2_0.d.ts +0 -115
  936. package/build/shared/interfaces/restAPI/metrics/tasks/v2.0/index.d.ts +0 -4
  937. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IBatchTrainerRecordsRest_2_0.d.ts +0 -18
  938. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IComposeTrainerRecordsDownloadLinkRest_2_0.d.ts +0 -8
  939. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IIndexTrainerRecordsRest_2_0.d.ts +0 -9
  940. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IPackageTrainerRecordsRest_2_0.d.ts +0 -11
  941. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IReadTrainerRecordRest_2_0.d.ts +0 -10
  942. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/ITrainerRecordIndexItem_2_0.d.ts +0 -45
  943. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/ITrainerRecord_2_0.d.ts +0 -194
  944. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/IUploadTrainerRecordsPackageRest_2_0.d.ts +0 -9
  945. package/build/shared/interfaces/restAPI/metrics/trainer/v2.0/index.d.ts +0 -6
  946. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IAddChartNodeLocalizationRest_2_0.d.ts +0 -15
  947. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChartNodeIndexItem_2_0.d.ts +0 -53
  948. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChartNodeRelation_2_0.d.ts +0 -29
  949. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChartNode_2_0.d.ts +0 -61
  950. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IChart_2_0.d.ts +0 -25
  951. package/build/shared/interfaces/restAPI/resources/chart/v2.0/ICopyChartNodeRest_2_0.d.ts +0 -12
  952. package/build/shared/interfaces/restAPI/resources/chart/v2.0/ICreateChartNodeRest_2_0.d.ts +0 -21
  953. package/build/shared/interfaces/restAPI/resources/chart/v2.0/ICutChartNodeRest_2_0.d.ts +0 -12
  954. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IDeleteChartNodeRest_2_0.d.ts +0 -12
  955. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IGetUndoRedoStepsRest_2_0.d.ts +0 -12
  956. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IIndexChartNodesRest_2_0.d.ts +0 -16
  957. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IMoveChartNodeRest_2_0.d.ts +0 -18
  958. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IPasteChartNodeRest_2_0.d.ts +0 -12
  959. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IReadChartNodeRest_2_0.d.ts +0 -15
  960. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IReadChartRest_2_0.d.ts +0 -11
  961. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IRedoChartRest_2_0.d.ts +0 -9
  962. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IRemoveChartNodeLocalizationRest_2_0.d.ts +0 -14
  963. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IUndoChartRest_2_0.d.ts +0 -9
  964. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IUpdateChartNodeRestData_2_0.d.ts +0 -16
  965. package/build/shared/interfaces/restAPI/resources/chart/v2.0/index.d.ts +0 -15
  966. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IConnectionField_2_0.d.ts +0 -22
  967. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IConnectionIndexItem_2_0.d.ts +0 -43
  968. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IConnection_2_0.d.ts +0 -54
  969. package/build/shared/interfaces/restAPI/resources/connection/v2.0/ICreateConnectionFieldRest_2_0.d.ts +0 -12
  970. package/build/shared/interfaces/restAPI/resources/connection/v2.0/ICreateConnectionRest_2_0.d.ts +0 -9
  971. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IDeleteConnectionFieldRest_2_0.d.ts +0 -8
  972. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IDeleteConnectionRest_2_0.d.ts +0 -7
  973. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IIndexConnectionsRest_2_0.d.ts +0 -9
  974. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IReadConnectionRest_2_0.d.ts +0 -8
  975. package/build/shared/interfaces/restAPI/resources/connection/v2.0/IUpdateConnectionRest_2_0.d.ts +0 -10
  976. package/build/shared/interfaces/restAPI/resources/connection/v2.0/index.d.ts +0 -9
  977. package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/IConnectionSchemaIndexItem_2_0.d.ts +0 -36
  978. package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/IConnectionSchema_2_0.d.ts +0 -53
  979. package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/IIndexConnectionSchemasRest_2_0.d.ts +0 -9
  980. package/build/shared/interfaces/restAPI/resources/connectionSchema/v2.0/index.d.ts +0 -3
  981. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/ICreateEndpointRest_2_0.d.ts +0 -12
  982. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IDeleteEndpointRest_2_0.d.ts +0 -7
  983. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IEndpointIndexItem_2_0.d.ts +0 -36
  984. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IEndpoint_2_0.d.ts +0 -365
  985. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IIndexEndpointsRest_2_0.d.ts +0 -9
  986. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IReadEndpointRest_2_0.d.ts +0 -8
  987. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/IUpdateEndpointRest_2_0.d.ts +0 -11
  988. package/build/shared/interfaces/restAPI/resources/endpoint/v2.0/index.d.ts +0 -6
  989. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IDeleteExtensionRest_2_0.d.ts +0 -7
  990. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IExtensionIndexItem_2_0.d.ts +0 -38
  991. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IExtension_2_0.d.ts +0 -83
  992. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IIndexExtensionsRest_2_0.d.ts +0 -9
  993. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IReadExtensionRest_2_0.d.ts +0 -9
  994. package/build/shared/interfaces/restAPI/resources/extension/v2.0/IUploadExtensionRest_2_0.d.ts +0 -9
  995. package/build/shared/interfaces/restAPI/resources/extension/v2.0/index.d.ts +0 -4
  996. package/build/shared/interfaces/restAPI/resources/file/v2.0/IFile_2_0.d.ts +0 -26
  997. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IAddFlowLocalizationRest_2_0.d.ts +0 -11
  998. package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICreateFlowRest_2_0.d.ts +0 -9
  999. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IDeleteFlowRest_2_0.d.ts +0 -5
  1000. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IFlowIndexItem_2_0.d.ts +0 -27
  1001. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IFlow_2_0.d.ts +0 -56
  1002. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IIndexFlowsRest_2_0.d.ts +0 -11
  1003. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IReadFlowRest_2_0.d.ts +0 -11
  1004. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IRemoveFlowLocalizationRest_2_0.d.ts +0 -10
  1005. package/build/shared/interfaces/restAPI/resources/flow/v2.0/IUpdateFlowRest_2_0.d.ts +0 -12
  1006. package/build/shared/interfaces/restAPI/resources/flow/v2.0/index.d.ts +0 -8
  1007. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IAddIntentLocalizationRest_2_0.d.ts +0 -12
  1008. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ICreateIntentRest_2_0.d.ts +0 -11
  1009. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IDeleteIntentRest_2_0.d.ts +0 -8
  1010. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IExportIntentsRest_2_0.d.ts +0 -15
  1011. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IImportIntentsRest_2_0.d.ts +0 -14
  1012. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IIndexIntentsRest_2_0.d.ts +0 -17
  1013. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IIntentIndexItem_2_0.d.ts +0 -40
  1014. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IIntent_2_0.d.ts +0 -75
  1015. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IReadIntentRest_2_0.d.ts +0 -12
  1016. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IRemoveIntentLocalizationRest_2_0.d.ts +0 -11
  1017. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/ITrainIntentsRest_2_0.d.ts +0 -11
  1018. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/IUpdateIntentRest_2_0.d.ts +0 -13
  1019. package/build/shared/interfaces/restAPI/resources/flow/v2.0/intent/index.d.ts +0 -10
  1020. package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/IDeleteLearningSentenceRest_2_0.d.ts +0 -9
  1021. package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/IIndexLearningSentenceRest_2_0.d.ts +0 -13
  1022. package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/ILearningSentenceIndexItem_2_0.d.ts +0 -24
  1023. package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/ILearningSentence_2_0.d.ts +0 -35
  1024. package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/IReadLearningSentenceRest_2_0.d.ts +0 -10
  1025. package/build/shared/interfaces/restAPI/resources/flow/v2.0/learningSentence/index.d.ts +0 -3
  1026. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IBatchSentencesRest_2_0.d.ts +0 -15
  1027. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ICreateSentenceRest_2_0.d.ts +0 -13
  1028. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IDeleteSentenceRest_2_0.d.ts +0 -9
  1029. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IIndexSentenceRest_2_0.d.ts +0 -14
  1030. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IIndexSentenceRest_2_0.js +0 -3
  1031. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IReadSentenceRest_2_0.d.ts +0 -10
  1032. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ISentenceIndexItem_2_0.d.ts +0 -41
  1033. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/ISentence_2_0.d.ts +0 -68
  1034. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IUpdateSentenceRest_2_0.d.ts +0 -13
  1035. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/index.d.ts +0 -6
  1036. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ICreateSettingsRest_2_0.d.ts +0 -11
  1037. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ICreateSettingsRest_2_0.js +0 -4
  1038. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IDeleteSettingsRest_2_0.d.ts +0 -7
  1039. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IDeleteSettingsRest_2_0.js +0 -4
  1040. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IReadSettingsRest_2_0.d.ts +0 -8
  1041. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IReadSettingsRest_2_0.js +0 -4
  1042. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ISettings_2_0.d.ts +0 -1
  1043. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ISettings_2_0.js +0 -3
  1044. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IUpdateSettingsRest_2_0.d.ts +0 -11
  1045. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/IUpdateSettingsRest_2_0.js +0 -4
  1046. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/index.d.ts +0 -4
  1047. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IAddIntentToFlowStateRest_2_0.d.ts +0 -11
  1048. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/ICreateFlowStateRest_2_0.d.ts +0 -11
  1049. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IDeleteFlowStateRest_2_0.d.ts +0 -8
  1050. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IFlowStateIndexItem_2_0.d.ts +0 -42
  1051. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IFlowState_2_0.d.ts +0 -46
  1052. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IIndexFlowStatesRest_2_0.d.ts +0 -11
  1053. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IReadFlowStateRest_2_0.d.ts +0 -9
  1054. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IRemoveIntentFromFlowStateRest_2_0.d.ts +0 -11
  1055. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/IUpdateFlowStateRest_2_0.d.ts +0 -12
  1056. package/build/shared/interfaces/restAPI/resources/flow/v2.0/state/index.d.ts +0 -9
  1057. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IIndexJourneysRest_2_0.d.ts +0 -8
  1058. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyIndexItem_2_0.d.ts +0 -40
  1059. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyProgress_2_0.d.ts +0 -66
  1060. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyStep_2_0.d.ts +0 -45
  1061. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.d.ts +0 -20
  1062. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourney_2_0.d.ts +0 -41
  1063. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.d.ts +0 -5
  1064. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.d.ts +0 -8
  1065. package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.d.ts +0 -8
  1066. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.d.ts +0 -19
  1067. package/build/shared/interfaces/restAPI/resources/journey/v2.0/index.d.ts +0 -8
  1068. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IAddKeyphraseToLexiconEntryRest_2_0.d.ts +0 -11
  1069. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IAddSlotToLexiconEntryRest_2_0.d.ts +0 -11
  1070. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IBatchLexiconEntriesRest_2_0.d.ts +0 -14
  1071. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ICreateLexiconEntryRest_2_0.d.ts +0 -12
  1072. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ICreateLexiconRest_2_0.d.ts +0 -12
  1073. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ICreateLexiconSlotRest_2_0.d.ts +0 -10
  1074. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IDeleteLexiconEntryRest_2_0.d.ts +0 -9
  1075. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IDeleteLexiconRest_2_0.d.ts +0 -7
  1076. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IDeleteLexiconSlotRest_2_0.d.ts +0 -9
  1077. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IExportFromLexiconRest_2_0.d.ts +0 -11
  1078. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IImportIntoLexiconRest_2_0.d.ts +0 -12
  1079. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconEntriesRest_2_0.d.ts +0 -12
  1080. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconEntryKeyphrasesRest_2_0.d.ts +0 -14
  1081. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconKeyphrasesRest_2_0.d.ts +0 -14
  1082. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconSlotsRest_2_0.d.ts +0 -12
  1083. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IIndexLexiconsRest_2_0.d.ts +0 -11
  1084. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconEntryIndexItem_2_0.d.ts +0 -38
  1085. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconEntry_2_0.d.ts +0 -47
  1086. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconIndexItem_2_0.d.ts +0 -32
  1087. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconKeyphraseIndexItem_2_0.d.ts +0 -30
  1088. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconKeyphrase_2_0.d.ts +0 -34
  1089. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconSlotIndexItem_2_0.d.ts +0 -22
  1090. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexiconSlot_2_0.d.ts +0 -29
  1091. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/ILexicon_2_0.d.ts +0 -34
  1092. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IReadLexiconEntryRest_2_0.d.ts +0 -9
  1093. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IReadLexiconRest_2_0.d.ts +0 -8
  1094. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IRemoveKeyphraseFromLexiconEntryRest_2_0.d.ts +0 -9
  1095. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IRemoveSlotFromLexiconEntryRest_2_0.d.ts +0 -9
  1096. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconEntryRest_2_0.d.ts +0 -13
  1097. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconKeyphraseRest_2_0.d.ts +0 -13
  1098. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconRest_2_0.d.ts +0 -11
  1099. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/IUpdateLexiconSlotRest_2_0.d.ts +0 -13
  1100. package/build/shared/interfaces/restAPI/resources/lexicon/v2.0/index.d.ts +0 -26
  1101. package/build/shared/interfaces/restAPI/resources/locales/v2.0/ICreateLocaleRest_2_0.d.ts +0 -10
  1102. package/build/shared/interfaces/restAPI/resources/locales/v2.0/IDeleteLocaleRest_2_0.d.ts +0 -7
  1103. package/build/shared/interfaces/restAPI/resources/locales/v2.0/IIndexLocalesRest_2_0.d.ts +0 -9
  1104. package/build/shared/interfaces/restAPI/resources/locales/v2.0/ILocaleIndexItem_2_0.d.ts +0 -41
  1105. package/build/shared/interfaces/restAPI/resources/locales/v2.0/ILocale_2_0.d.ts +0 -44
  1106. package/build/shared/interfaces/restAPI/resources/locales/v2.0/IReadLocaleRest_2_0.d.ts +0 -8
  1107. package/build/shared/interfaces/restAPI/resources/locales/v2.0/IUpdateLocaleRest_2_0.d.ts +0 -12
  1108. package/build/shared/interfaces/restAPI/resources/locales/v2.0/TNLULanguage_2_0.d.ts +0 -37
  1109. package/build/shared/interfaces/restAPI/resources/locales/v2.0/index.d.ts +0 -7
  1110. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/ICreateNLUConnectorRest_2_0.d.ts +0 -12
  1111. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IDeleteNLUConnectorRest_2_0.d.ts +0 -7
  1112. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IIndexNLUConnectorsRest_2_0.d.ts +0 -9
  1113. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/INLUConnectorIndexItem_2_0.d.ts +0 -36
  1114. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/INLUConnector_2_0.d.ts +0 -315
  1115. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IReadINLUConnectorRest_2_0.d.ts +0 -8
  1116. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/IUpdateINLUConnectorRest_2_0.d.ts +0 -11
  1117. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.d.ts +0 -22
  1118. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/index.d.ts +0 -7
  1119. package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/IIndexNodeDescriptorsRest_2_0.d.ts +0 -9
  1120. package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/INodeDescriptor_2_0.d.ts +0 -271
  1121. package/build/shared/interfaces/restAPI/resources/nodedescriptorsets/v2.0/index.d.ts +0 -1
  1122. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IChangePlaybookStepOrderRest_2_0.d.ts +0 -11
  1123. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ICreatePlaybookRest_2_0.d.ts +0 -12
  1124. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ICreatePlaybookStepAssertRest_2_0.d.ts +0 -13
  1125. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/ICreatePlaybookStepRest_2_0.d.ts +0 -12
  1126. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookRest_2_0.d.ts +0 -7
  1127. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookStepAssertRest_2_0.d.ts +0 -10
  1128. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IDeletePlaybookStepRest_2_0.d.ts +0 -9
  1129. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IIndexPlaybooksRest_2_0.d.ts +0 -9
  1130. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookIndexItem_2_0.d.ts +0 -25
  1131. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookStepAssert_2_0.d.ts +0 -38
  1132. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybookStep_2_0.d.ts +0 -38
  1133. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IPlaybook_2_0.d.ts +0 -46
  1134. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IReadPlaybookRest_2_0.d.ts +0 -8
  1135. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IUpdatePlaybookRest_2_0.d.ts +0 -11
  1136. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IUpdatePlaybookStepAssertRest_2_0.d.ts +0 -14
  1137. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/IUpdatePlaybookStepRest_2_0.d.ts +0 -13
  1138. package/build/shared/interfaces/restAPI/resources/playbook/v2.0/index.d.ts +0 -13
  1139. package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectByTemplateRest_2_0.d.ts +0 -48
  1140. package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectRest_2_0.d.ts +0 -10
  1141. package/build/shared/interfaces/restAPI/resources/project/v2.0/IDeleteProjectRest_2_0.d.ts +0 -7
  1142. package/build/shared/interfaces/restAPI/resources/project/v2.0/IIndexProjectsRest_2_0.d.ts +0 -10
  1143. package/build/shared/interfaces/restAPI/resources/project/v2.0/IProjectIndexItem_2_0.d.ts +0 -24
  1144. package/build/shared/interfaces/restAPI/resources/project/v2.0/IProject_2_0.d.ts +0 -41
  1145. package/build/shared/interfaces/restAPI/resources/project/v2.0/IReadProjectRest_2_0.d.ts +0 -8
  1146. package/build/shared/interfaces/restAPI/resources/project/v2.0/IUpdateProjectRest_2_0.d.ts +0 -11
  1147. package/build/shared/interfaces/restAPI/resources/project/v2.0/IValidateProjectNameRest_2_0.d.ts +0 -7
  1148. package/build/shared/interfaces/restAPI/resources/project/v2.0/index.d.ts +0 -7
  1149. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IReadSettingsRest_2_0.d.ts +0 -8
  1150. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IReadSettingsRest_2_0.js +0 -4
  1151. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISettings_2_0.d.ts +0 -134
  1152. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ISettings_2_0.js +0 -3
  1153. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IUpdateSettingsRest_2_0.d.ts +0 -12
  1154. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/IUpdateSettingsRest_2_0.js +0 -4
  1155. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/index.d.ts +0 -2
  1156. package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/ICreateSnippetRest_2_0.d.ts +0 -11
  1157. package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/IDeleteSnippetRest_2_0.d.ts +0 -8
  1158. package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/IIndexSnippetsRest_2_0.d.ts +0 -11
  1159. package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/ISnippetIndexItem_2_0.d.ts +0 -24
  1160. package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/ISnippet_2_0.d.ts +0 -36
  1161. package/build/shared/interfaces/restAPI/resources/project/v2.0/snippet/index.d.ts +0 -3
  1162. package/build/shared/interfaces/restAPI/resources/search/v2.0/ISearchResourcesRest_2_0.d.ts +0 -9
  1163. package/build/shared/interfaces/restAPI/resources/search/v2.0/ISearchResultIndexItem_2_0.d.ts +0 -37
  1164. package/build/shared/interfaces/restAPI/resources/search/v2.0/index.d.ts +0 -1
  1165. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IComposeSnapshotDownloadLinkRest_2_0.d.ts +0 -8
  1166. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/ICreateSnapshotRest_2_0.d.ts +0 -12
  1167. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IDeleteSnapshotRest_2_0.d.ts +0 -8
  1168. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IIndexResourcesInSnapshotRest_2_0.d.ts +0 -11
  1169. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IIndexSnapshotsRest_2_0.d.ts +0 -9
  1170. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IPackageSnapshotRest_2_0.d.ts +0 -8
  1171. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IReadSnapshotRest_2_0.d.ts +0 -9
  1172. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IResourceInSnapshotItem_2_0.d.ts +0 -59
  1173. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IRestoreSnapshotRest_2_0.d.ts +0 -8
  1174. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/ISnapshotIndexItem_2_0.d.ts +0 -53
  1175. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/ISnapshot_2_0.d.ts +0 -59
  1176. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/IUploadSnapshotPackageRest_2_0.d.ts +0 -14
  1177. package/build/shared/interfaces/restAPI/resources/snapshot/v2.0/index.d.ts +0 -12
  1178. package/build/shared/interfaces/restAPI/sessions/endpoint/v2.0/IInjectRest_2_0.d.ts +0 -10
  1179. package/build/shared/interfaces/restAPI/sessions/endpoint/v2.0/INotifyRest_2_0.d.ts +0 -10
  1180. package/build/shared/interfaces/restAPI/sessions/endpoint/v2.0/index.d.ts +0 -2
  1181. package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IInjectContextRest_2_0.d.ts +0 -14
  1182. package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IInjectStateRest_2_0.d.ts +0 -12
  1183. package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IResetContextRest_2_0.d.ts +0 -13
  1184. package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/IResetStateRest_2_0.d.ts +0 -10
  1185. package/build/shared/interfaces/restAPI/sessions/nlu/v2.0/index.d.ts +0 -4
  1186. package/build/shared/interfaces/rule.d.ts +0 -12
  1187. package/build/shared/interfaces/security.d.ts +0 -63
  1188. package/build/shared/interfaces/security.js +0 -3
  1189. package/build/shared/interfaces/smooch.d.ts +0 -82
  1190. package/build/shared/interfaces/smooch.js +0 -3
  1191. package/build/shared/interfaces/taskmanager/ITask.d.ts +0 -39
  1192. package/build/shared/interfaces/taskmanager/ITaskReturnValue.d.ts +0 -25
  1193. package/build/shared/interfaces/taskmanager/ITaskScope.d.ts +0 -4
  1194. package/build/shared/interfaces/taskmanager/TTaskStatus.d.ts +0 -2
  1195. package/build/shared/interfaces/taskmanager/index.d.ts +0 -4
  1196. package/build/shared/interfaces/trainer/ITrainerRecord.d.ts +0 -53
  1197. package/build/shared/interfaces/trainer/THandleAction.d.ts +0 -2
  1198. package/build/shared/interfaces/trainer/index.d.ts +0 -2
  1199. package/build/shared/interfaces/transformers/ITransformerFunction.d.ts +0 -10
  1200. package/build/shared/interfaces/transformers/baseTransformers.d.ts +0 -33
  1201. package/build/shared/interfaces/transformers/index.d.ts +0 -2
  1202. package/build/shared/interfaces/twilioInterface.d.ts +0 -56
  1203. package/build/shared/interfaces/types/TCSSColorName.d.ts +0 -161
  1204. package/build/shared/interfaces/types/TCognigyColorName.d.ts +0 -19
  1205. package/build/shared/interfaces/types/TMongoId.d.ts +0 -1
  1206. package/build/shared/interfaces/types/TNLULanguage.d.ts +0 -2
  1207. package/build/shared/interfaces/types/TTimestamp.d.ts +0 -2
  1208. package/build/shared/interfaces/user.d.ts +0 -32
  1209. package/build/shared/json-schema.d.ts +0 -138
  1210. package/build/shared/mongoose/pagination/ICursorBasedPaginationReturnValue.d.ts +0 -29
  1211. package/build/shared/mongoose/pagination/IMongoosePaginationPluginReturnValue.d.ts +0 -6
  1212. package/build/shared/mongoose/pagination/IRestFilterQuery.d.ts +0 -3
  1213. package/build/shared/mongoose/pagination/IRestPagination.d.ts +0 -12
  1214. package/build/shared/mongoose/pagination/IRestPaginationQuery.d.ts +0 -54
  1215. package/build/shared/mongoose/pagination/index.d.ts +0 -5
  1216. package/build/shared/payloadValidator.d.ts +0 -5
  1217. package/build/shared/payloadValidator.js +0 -253
@@ -1,12 +1,55 @@
1
1
  "use strict";
2
+ /**
3
+ * This Question Node asks the user a question and expects a certain type of answer back.
4
+ * The answer is evaluated by the Node and if it's invalid, the user is guided towards
5
+ * giving a correct answer.
6
+ *
7
+ * The Node executes the following steps, all of which have been marked as #regions in the code below
8
+ *
9
+ * 0. Check if we're currently in a reconfirmation of a valid answer and if yes, handle it
10
+ *
11
+ * 1. Check if answer exists in context and stop if it does
12
+ *
13
+ * 2. Check if this is the first time the node is hit and if yes, ask the question and stop (return); if not
14
+ *
15
+ * 3. - doesnt exist anymore -
16
+ *
17
+ * 4. Run actual evaluation of the answer using evaluateQuestionAnswer
18
+ * 4.1 If result location was specified, try to get the result from there
19
+ *
20
+ * 5. If answer is:
21
+ * 5.1 VALID
22
+ * 5.1.1 If reconfirmation is needed, start reconfirmation process and stop
23
+ * 5.1.2 Store the answer either in Context or Input
24
+ * 5.1.3 Store the answer also in the profile
25
+ * 5.1.4 Reset markers and activeQuestion in system Context and return
26
+ *
27
+ * 5.2 INVALID
28
+ * 5.2.1 Check if we should escalate on intent and if yes, do so
29
+ * 5.2.2 Otherwise (!) check if we should escalate on multiple wrong answers and if yes, do so
30
+ * 5.2.3 Check if we should say the reprompt an if yes, say it, plus the question again
31
+ * 5.2.4 Sets itself as the next Node and stops execution
32
+ */
2
33
  Object.defineProperty(exports, "__esModule", { value: true });
34
+ exports.QUESTION = void 0;
35
+ //#region Imports
3
36
  /* Custom modules */
4
37
  const createNodeDescriptor_1 = require("../../../createNodeDescriptor");
5
38
  const evaluateQuestionAnswer_1 = require("./utils/evaluateQuestionAnswer");
6
39
  const say_1 = require("../say");
40
+ const goTo_1 = require("../../logic/goTo");
41
+ const executeFlow_1 = require("../../logic/executeFlow");
7
42
  const BaseContext_1 = require("../../../../helper/BaseContext");
43
+ const getQuestionText_1 = require("./utils/getQuestionText");
44
+ const storeQuestionAnswer_1 = require("./utils/storeQuestionAnswer");
45
+ const generateAnswerShortForm_1 = require("./utils/generateAnswerShortForm");
46
+ const validateQuestionAnswer_1 = require("./utils/validateQuestionAnswer");
47
+ const service_1 = require("../../service");
8
48
  const datepickerUtils_1 = require("./utils/datepickerUtils");
49
+ const resetNodeState_1 = require("./utils/resetNodeState");
50
+ //#endregion Interfaces
9
51
  exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
52
+ //#region DescriptorFields
10
53
  type: "question",
11
54
  defaultLabel: "Question",
12
55
  summary: "Ask a question and waits for a valid answer",
@@ -17,7 +60,6 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
17
60
  appearance: {
18
61
  showIcon: false
19
62
  },
20
- // @ts-ignore
21
63
  fields: [
22
64
  {
23
65
  key: "type",
@@ -70,6 +112,10 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
70
112
  label: "Money",
71
113
  value: "money"
72
114
  },
115
+ {
116
+ label: "URL",
117
+ value: "url"
118
+ },
73
119
  {
74
120
  label: "Percentage",
75
121
  value: "percentage"
@@ -78,6 +124,14 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
78
124
  label: "Regex",
79
125
  value: "regex",
80
126
  },
127
+ {
128
+ label: "Data",
129
+ value: "data",
130
+ },
131
+ {
132
+ label: "Custom",
133
+ value: "custom",
134
+ },
81
135
  ],
82
136
  },
83
137
  defaultValue: 'yesNo'
@@ -100,7 +154,17 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
100
154
  type: "cognigyText",
101
155
  label: "Reprompt Message",
102
156
  description: "Message to output if the given answer is invalid",
103
- defaultValue: "Not sure I understood this correctly."
157
+ defaultValue: "Not sure I understood this correctly.",
158
+ params: {
159
+ multiline: true
160
+ }
161
+ },
162
+ {
163
+ key: "repromptCondition",
164
+ type: "cognigyText",
165
+ label: "Reprompt Condition",
166
+ description: "Condition to check before outputting Reprompt Message",
167
+ defaultValue: ""
104
168
  },
105
169
  {
106
170
  key: "validationRepeat",
@@ -109,6 +173,13 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
109
173
  description: "Repeat question if given answer is invalid",
110
174
  defaultValue: true
111
175
  },
176
+ {
177
+ key: "skipRepromptOnIntent",
178
+ type: "toggle",
179
+ label: "Skip on Intent",
180
+ description: "Skips the reprompt if an intent was found",
181
+ defaultValue: false
182
+ },
112
183
  {
113
184
  key: "keyphraseTag",
114
185
  type: "cognigyText",
@@ -131,6 +202,7 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
131
202
  key: "regex",
132
203
  type: "cognigyText",
133
204
  label: "Regular Expression",
205
+ description: "Provide a regular expression (e.g. /\\d{5}/)",
134
206
  condition: {
135
207
  key: "type",
136
208
  value: "regex"
@@ -139,11 +211,11 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
139
211
  {
140
212
  key: "storeInContactProfile",
141
213
  type: "toggle",
142
- label: "Write Result to Contact Profile"
214
+ label: "Store Result in Contact Profile"
143
215
  },
144
216
  {
145
217
  key: "profileKey",
146
- type: "cognigyText",
218
+ type: "profileSchemaField",
147
219
  label: "Profile Key to use",
148
220
  condition: {
149
221
  key: "storeInContactProfile",
@@ -179,35 +251,586 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
179
251
  value: true
180
252
  }
181
253
  },
254
+ {
255
+ key: "onlyAcceptEscalationIntents",
256
+ type: "toggle",
257
+ label: "Only Accept Escalation Intents",
258
+ description: "Ignore all Intents on Answer, except Escalation Intents",
259
+ condition: {
260
+ key: "type",
261
+ value: "intent",
262
+ negate: true
263
+ }
264
+ },
182
265
  {
183
266
  key: "parseResultOnEntry",
184
267
  type: "toggle",
185
268
  label: "Skip if Answer in Input",
186
269
  description: "Skips the question if it was already answered when the Node is hit"
187
- }
188
- ] // @ts-ignore
189
- .concat(datepickerUtils_1.getDatePickerFields({
190
- "key": "type",
191
- "value": "date"
192
- })),
193
- sections: [
270
+ },
194
271
  {
195
- key: "profile",
196
- label: "Profile Storage",
197
- defaultCollapsed: true,
198
- fields: [
199
- "storeInContactProfile",
200
- "profileKey"
201
- ]
272
+ key: "datepickerExplanation",
273
+ type: "description",
274
+ label: " ",
275
+ params: {
276
+ text: "Date questions can prompt the user with an interactive datepicker which is configured in the sections below"
277
+ },
278
+ condition: {
279
+ key: "type",
280
+ value: "date"
281
+ }
282
+ },
283
+ {
284
+ key: "additionalValidation",
285
+ type: "cognigyText",
286
+ label: "Additional Validation",
287
+ description: "User Input must pass this validation in addition to the inbuilt field-validation (e.g. Email) to be considered valid",
288
+ defaultValue: ""
289
+ },
290
+ {
291
+ key: "resultLocation",
292
+ type: "cognigyText",
293
+ label: "Result Location",
294
+ description: "The location to retrieve the result from (e.g. input.text)",
295
+ defaultValue: ""
296
+ },
297
+ {
298
+ key: "maxExecutionDiff",
299
+ type: "number",
300
+ label: "Forget Question Threshold",
301
+ description: "The max number of inputs between hitting the Node the first time and now where we still validate the answer. Otherwise we ask the question again.",
302
+ defaultValue: 1
303
+ },
304
+ {
305
+ key: "escalateAnswersAction",
306
+ type: "select",
307
+ label: "Escalation Action",
308
+ description: "What should happen after the threshold of wrong answers is reached?",
309
+ params: {
310
+ options: [
311
+ {
312
+ label: "No Escalation",
313
+ value: "none"
314
+ },
315
+ {
316
+ label: "Output Message",
317
+ value: "text",
318
+ },
319
+ {
320
+ label: "Skip Question",
321
+ value: "skip",
322
+ },
323
+ {
324
+ label: "Go to Node",
325
+ value: "goto"
326
+ },
327
+ {
328
+ label: "Execute Flow and return",
329
+ value: "execute"
330
+ },
331
+ {
332
+ label: "Handover to Human Agent",
333
+ value: "handover"
334
+ }
335
+ ],
336
+ },
337
+ defaultValue: 'none'
338
+ },
339
+ {
340
+ key: "escalateAnswersThreshold",
341
+ type: "slider",
342
+ label: "Wrong Answer Count Trigger",
343
+ description: "Number of incorrect answers on which escalation will be triggered.",
344
+ params: {
345
+ min: 1,
346
+ max: 10,
347
+ step: 1,
348
+ },
349
+ defaultValue: 3,
350
+ condition: {
351
+ key: "escalateAnswersAction",
352
+ value: "none",
353
+ negate: true
354
+ }
355
+ },
356
+ {
357
+ key: "escalateAnswersGotoTarget",
358
+ type: "flowNode",
359
+ label: "GoTo Target",
360
+ condition: {
361
+ key: "escalateAnswersAction",
362
+ value: "goto"
363
+ }
364
+ },
365
+ {
366
+ key: "escalateAnswersExecuteTarget",
367
+ type: "flowNode",
368
+ label: "Execute Target",
369
+ condition: {
370
+ key: "escalateAnswersAction",
371
+ value: "execute"
372
+ }
373
+ },
374
+ {
375
+ key: "escalateAnswersGotoExecutionMode",
376
+ type: "select",
377
+ description: "Go to new Node and continue execution or wait for input",
378
+ label: "GoTo Execution Mode",
379
+ defaultValue: "continue",
380
+ params: {
381
+ options: [
382
+ {
383
+ label: "Go to Node and continue",
384
+ value: "continue"
385
+ },
386
+ {
387
+ label: "Go to Node and wait for Input",
388
+ value: "wait"
389
+ },
390
+ ]
391
+ },
392
+ condition: {
393
+ key: "escalateAnswersAction",
394
+ value: "goto"
395
+ }
396
+ },
397
+ {
398
+ key: "escalateAnswersInjectedText",
399
+ label: "Optional Injected Text",
400
+ type: "cognigyText",
401
+ description: "Text to use when continuing the execution. If no text is provided, input.text is used.",
402
+ defaultValue: "",
403
+ condition: {
404
+ key: "escalateAnswersAction",
405
+ value: "goto"
406
+ }
407
+ },
408
+ {
409
+ key: "escalateAnswersInjectedData",
410
+ label: "Optional Injected Data",
411
+ type: "json",
412
+ description: "Data to use when continuing the execution. If no data is provided, input.data is used.",
413
+ defaultValue: "{}",
414
+ condition: {
415
+ key: "escalateAnswersAction",
416
+ value: "goto"
417
+ }
418
+ },
419
+ {
420
+ key: "escalateAnswersMessage",
421
+ type: "say",
422
+ label: "Escalation Message",
423
+ defaultValue: {
424
+ data: "{}",
425
+ type: "text",
426
+ linear: false,
427
+ loop: false,
428
+ text: [""],
429
+ _cognigy: {},
430
+ },
431
+ condition: {
432
+ key: "escalateAnswersAction",
433
+ value: "text"
434
+ }
435
+ },
436
+ {
437
+ key: "escalateAnswersRepromptPrevention",
438
+ type: "toggle",
439
+ label: "Prevent Reprompt on Escalation",
440
+ defaultValue: true,
441
+ condition: {
442
+ key: "escalateAnswersAction",
443
+ value: "text"
444
+ }
445
+ },
446
+ {
447
+ key: "escalateAnswersHandoverText",
448
+ type: "cognigyText",
449
+ label: "Handover Accepted Message",
450
+ description: "The message to display to the user once the handover request was accepted by the live chat provider",
451
+ condition: {
452
+ key: "escalateAnswersAction",
453
+ value: "handover"
454
+ }
455
+ },
456
+ {
457
+ key: "escalateAnswersRepeatHandoverMessage",
458
+ type: "toggle",
459
+ label: "Repeat Handover Accepted Message",
460
+ description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
461
+ defaultValue: false,
462
+ condition: {
463
+ key: "escalateAnswersAction",
464
+ value: "handover"
465
+ }
466
+ },
467
+ {
468
+ key: "escalateAnswersHandoverCancelIntent",
469
+ type: "cognigyText",
470
+ label: "Cancel Intent",
471
+ description: "Name of the intent which will cancel the handover",
472
+ condition: {
473
+ key: "escalateAnswersAction",
474
+ value: "handover"
475
+ }
476
+ },
477
+ {
478
+ key: "escalateAnswersHandoverQuickReply",
479
+ type: "cognigyText",
480
+ label: "Cancel Button Text",
481
+ description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
482
+ condition: {
483
+ key: "escalateAnswersAction",
484
+ value: "handover"
485
+ }
486
+ },
487
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
488
+ key: "escalateAnswersHandoverLiveAgentInboxId",
489
+ type: "cognigyText",
490
+ label: "Live Agent Inbox Id",
491
+ description: "Inbox Id in Live Agent",
492
+ condition: {
493
+ key: "escalateAnswersAction",
494
+ value: "handover"
495
+ }
496
+ },
497
+ {
498
+ key: "escalateAnswersHandoverChatwootInboxId",
499
+ type: "cognigyText",
500
+ label: "Chatwoot Inbox Id",
501
+ description: "Inbox Id in Chatwoot",
502
+ condition: {
503
+ key: "escalateAnswersAction",
504
+ value: "handover"
505
+ }
506
+ },
507
+ {
508
+ key: "escalateAnswersHandoverSalesforcePrechatEntities",
509
+ type: "json",
510
+ label: "Salesforce Prechat Entities",
511
+ description: "The Salesforce entity that should be used.",
512
+ defaultValue: "[]",
513
+ condition: {
514
+ key: "escalateAnswersAction",
515
+ value: "handover"
516
+ }
517
+ },
518
+ {
519
+ key: "escalateAnswersHandoverSalesforcePrechatDetails",
520
+ type: "json",
521
+ label: "Salesforce Prechat Details",
522
+ description: "The details that should be displayed to the Live Chat Agent.",
523
+ defaultValue: "[]",
524
+ condition: {
525
+ key: "escalateAnswersAction",
526
+ value: "handover"
527
+ }
528
+ },
529
+ {
530
+ key: "escalateAnswersOnce",
531
+ type: "toggle",
532
+ label: "Only escalate once",
533
+ description: "Only escalate exactly at the threshold but not after",
534
+ defaultValue: true,
535
+ condition: {
536
+ key: "escalateAnswersAction",
537
+ value: "none",
538
+ negate: true
539
+ }
540
+ },
541
+ {
542
+ key: "escalateIntentsAction",
543
+ type: "select",
544
+ label: "Escalation Action",
545
+ description: "What shall happen after an intent was found?",
546
+ params: {
547
+ options: [
548
+ {
549
+ label: "No Escalation",
550
+ value: "none"
551
+ },
552
+ {
553
+ label: "Output Message",
554
+ value: "text",
555
+ },
556
+ {
557
+ label: "Skip Question",
558
+ value: "skip",
559
+ },
560
+ {
561
+ label: "Go to Node",
562
+ value: "goto"
563
+ },
564
+ {
565
+ label: "Execute Flow and return",
566
+ value: "execute"
567
+ },
568
+ {
569
+ label: "Handover to Human Agent",
570
+ value: "handover"
571
+ }
572
+ ],
573
+ },
574
+ defaultValue: 'none'
575
+ },
576
+ {
577
+ key: "escalateIntentsValidIntents",
578
+ type: "chipInput",
579
+ label: "Valid Intents",
580
+ description: "List of intents which trigger escalation. Hit Enter to add each intent.",
581
+ condition: {
582
+ key: "escalateIntentsAction",
583
+ value: "none",
584
+ negate: true
585
+ }
586
+ },
587
+ {
588
+ key: "escalateIntentsThreshold",
589
+ type: "slider",
590
+ label: "Intent Score Threshold",
591
+ description: "The minimum score the hit intent must have to trigger an escalation.",
592
+ params: {
593
+ min: 0,
594
+ max: 1,
595
+ step: .1,
596
+ },
597
+ defaultValue: .8,
598
+ condition: {
599
+ key: "escalateIntentsAction",
600
+ value: "none",
601
+ negate: true
602
+ }
603
+ },
604
+ {
605
+ key: "escalateIntentsGotoTarget",
606
+ type: "flowNode",
607
+ label: "GoTo Target",
608
+ condition: {
609
+ key: "escalateIntentsAction",
610
+ value: "goto"
611
+ }
202
612
  },
613
+ {
614
+ key: "escalateIntentsExecuteTarget",
615
+ type: "flowNode",
616
+ label: "Execute Target",
617
+ condition: {
618
+ key: "escalateIntentsAction",
619
+ value: "execute"
620
+ }
621
+ },
622
+ {
623
+ key: "escalateIntentsGotoExecutionMode",
624
+ type: "select",
625
+ description: "Go to new Node and continue execution or wait for input",
626
+ label: "GoTo Execution Mode",
627
+ defaultValue: "continue",
628
+ params: {
629
+ options: [
630
+ {
631
+ label: "Go to Node and continue",
632
+ value: "continue"
633
+ },
634
+ {
635
+ label: "Go to Node and wait for Input",
636
+ value: "wait"
637
+ },
638
+ ]
639
+ },
640
+ condition: {
641
+ key: "escalateIntentsAction",
642
+ value: "goto"
643
+ }
644
+ },
645
+ {
646
+ key: "escalateIntentsInjectedText",
647
+ label: "Optional Injected Text",
648
+ type: "cognigyText",
649
+ description: "Text to use when continuing the execution. If no text provided, input.text is used.",
650
+ defaultValue: "",
651
+ condition: {
652
+ key: "escalateIntentsAction",
653
+ value: "goto"
654
+ }
655
+ },
656
+ {
657
+ key: "escalateIntentsInjectedData",
658
+ label: "Optional Injected Data",
659
+ type: "json",
660
+ description: "Data to use when continuing the execution. If no data provided, input.data is used.",
661
+ defaultValue: "{}",
662
+ condition: {
663
+ key: "escalateIntentsAction",
664
+ value: "goto"
665
+ }
666
+ },
667
+ {
668
+ key: "escalateIntentsMessage",
669
+ type: "say",
670
+ label: "Escalation Message",
671
+ defaultValue: {
672
+ data: "{}",
673
+ type: "text",
674
+ linear: false,
675
+ loop: false,
676
+ text: [""],
677
+ _cognigy: {},
678
+ },
679
+ condition: {
680
+ key: "escalateIntentsAction",
681
+ value: "text"
682
+ }
683
+ },
684
+ {
685
+ key: "escalateIntentsHandoverText",
686
+ type: "cognigyText",
687
+ label: "Handover Accepted Message",
688
+ description: "The message to display to the user once the handover request was accepted by the live chat provider",
689
+ condition: {
690
+ key: "escalateIntentsAction",
691
+ value: "handover"
692
+ }
693
+ },
694
+ {
695
+ key: "escalateIntentsRepeatHandoverMessage",
696
+ type: "toggle",
697
+ label: "Repeat Handover Accepted Message",
698
+ description: "Repeatedly respond with Handover Accepted Message for each user input until human agent responds",
699
+ defaultValue: false,
700
+ condition: {
701
+ key: "escalateIntentsAction",
702
+ value: "handover"
703
+ }
704
+ },
705
+ {
706
+ key: "escalateIntentsHandoverCancelIntent",
707
+ type: "cognigyText",
708
+ label: "Cancel Intent",
709
+ description: "Name of the intent which will cancel the handover",
710
+ condition: {
711
+ key: "escalateIntentsAction",
712
+ value: "handover"
713
+ }
714
+ },
715
+ {
716
+ key: "escalateIntentsHandoverQuickReply",
717
+ type: "cognigyText",
718
+ label: "Cancel Button Text",
719
+ description: "Text of the Quick Reply Button which sends the user back to the Virtual Agent",
720
+ condition: {
721
+ key: "escalateIntentsAction",
722
+ value: "handover"
723
+ }
724
+ },
725
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && {
726
+ key: "escalateIntentsHandoverLiveAgentInboxId",
727
+ type: "cognigyText",
728
+ label: "Live Agent Inbox Id",
729
+ description: "Inbox Id in Live Agent",
730
+ condition: {
731
+ key: "escalateIntentsAction",
732
+ value: "handover"
733
+ }
734
+ },
735
+ {
736
+ key: "escalateIntentsHandoverChatwootInboxId",
737
+ type: "cognigyText",
738
+ label: "Chatwoot Inbox Id",
739
+ description: "Inbox Id in Chatwoot",
740
+ condition: {
741
+ key: "escalateIntentsAction",
742
+ value: "handover"
743
+ }
744
+ },
745
+ {
746
+ key: "escalateIntentsHandoverSalesforcePrechatEntities",
747
+ type: "json",
748
+ label: "Salesforce Prechat Entities",
749
+ description: "The Salesforce entity that should be used.",
750
+ defaultValue: "[]",
751
+ condition: {
752
+ key: "escalateIntentsAction",
753
+ value: "handover"
754
+ }
755
+ },
756
+ {
757
+ key: "escalateIntentsHandoverSalesforcePrechatDetails",
758
+ type: "json",
759
+ label: "Salesforce Prechat Details",
760
+ description: "The details that should be displayed to the Live Chat Agent.",
761
+ defaultValue: "[]",
762
+ condition: {
763
+ key: "escalateIntentsAction",
764
+ value: "handover"
765
+ }
766
+ },
767
+ {
768
+ key: "escalateIntentsRepromptPrevention",
769
+ type: "toggle",
770
+ label: "Prevent Reprompt Message Once",
771
+ defaultValue: true,
772
+ condition: {
773
+ key: "escalateIntentsAction",
774
+ value: "text"
775
+ }
776
+ },
777
+ {
778
+ key: "reconfirmationBehaviour",
779
+ type: "select",
780
+ description: "How and if to reconfirm question answers",
781
+ label: "Reconfirmation Behaviour",
782
+ defaultValue: "none",
783
+ params: {
784
+ options: [
785
+ {
786
+ label: "Do not reconfirm answer",
787
+ value: "none"
788
+ },
789
+ {
790
+ label: "Reconfirm answer",
791
+ value: "reconfirm"
792
+ },
793
+ ]
794
+ }
795
+ },
796
+ {
797
+ key: "reconfirmationQuestion",
798
+ type: "cognigyText",
799
+ label: "Reconfirmation Question",
800
+ description: "The question to ask to reconfirm the answer",
801
+ defaultValue: "I heard you say [ANSWER]. Is that correct?",
802
+ condition: {
803
+ key: "reconfirmationBehaviour",
804
+ value: "reconfirm"
805
+ }
806
+ },
807
+ {
808
+ key: "reconfirmationQuestionReprompt",
809
+ type: "cognigyText",
810
+ label: "Reconfirmation Reprompt",
811
+ description: "What to say if the reconfirmation question wasn't answered with yes or no",
812
+ defaultValue: "I'm not sure I got that right.",
813
+ condition: {
814
+ key: "reconfirmationBehaviour",
815
+ value: "reconfirm"
816
+ }
817
+ },
818
+ ...datepickerUtils_1.getDatePickerFields({
819
+ "key": "type",
820
+ "value": "date"
821
+ })
822
+ ].filter(field => !!field),
823
+ sections: [
203
824
  {
204
825
  key: "context",
205
- label: "Context",
826
+ label: "Result Storage",
206
827
  defaultCollapsed: true,
207
828
  fields: [
208
829
  "storeResultInContext",
209
830
  "contextKey",
210
- "skipIfResultInContext"
831
+ "skipIfResultInContext",
832
+ "storeInContactProfile",
833
+ "profileKey"
211
834
  ]
212
835
  },
213
836
  {
@@ -217,8 +840,70 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
217
840
  fields: [
218
841
  "validationMessage",
219
842
  "validationRepeat",
843
+ "repromptCondition",
844
+ "skipRepromptOnIntent"
845
+ ]
846
+ },
847
+ {
848
+ key: "reconfirmation",
849
+ label: "Reconfirmation Options",
850
+ defaultCollapsed: true,
851
+ fields: [
852
+ "reconfirmationBehaviour",
853
+ "reconfirmationQuestion",
854
+ "reconfirmationQuestionReprompt"
220
855
  ]
221
856
  },
857
+ {
858
+ key: "escalateIntents",
859
+ label: "Escalation - Intents",
860
+ defaultCollapsed: true,
861
+ fields: [
862
+ "escalateIntentsAction",
863
+ "escalateIntentsValidIntents",
864
+ "escalateIntentsThreshold",
865
+ "escalateIntentsGotoTarget",
866
+ "escalateIntentsExecuteTarget",
867
+ "escalateIntentsGotoExecutionMode",
868
+ "escalateIntentsInjectedText",
869
+ "escalateIntentsInjectedData",
870
+ "escalateIntentsMessage",
871
+ "escalateIntentsHandoverText",
872
+ "escalateIntentsRepeatHandoverMessage",
873
+ "escalateIntentsHandoverCancelIntent",
874
+ "escalateIntentsHandoverQuickReply",
875
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateIntentsHandoverLiveAgentInboxId",
876
+ "escalateIntentsHandoverChatwootInboxId",
877
+ "escalateIntentsHandoverSalesforcePrechatEntities",
878
+ "escalateIntentsHandoverSalesforcePrechatDetails",
879
+ "escalateIntentsRepromptPrevention"
880
+ ].filter(field => !!field)
881
+ },
882
+ {
883
+ key: "escalateAnswers",
884
+ label: "Escalation - Wrong Answers",
885
+ defaultCollapsed: true,
886
+ fields: [
887
+ "escalateAnswersAction",
888
+ "escalateAnswersThreshold",
889
+ "escalateAnswersGotoTarget",
890
+ "escalateAnswersExecuteTarget",
891
+ "escalateAnswersGotoExecutionMode",
892
+ "escalateAnswersInjectedText",
893
+ "escalateAnswersInjectedData",
894
+ "escalateAnswersMessage",
895
+ "escalateAnswersHandoverText",
896
+ "escalateAnswersRepeatHandoverMessage",
897
+ "escalateAnswersHandoverCancelIntent",
898
+ "escalateAnswersHandoverQuickReply",
899
+ process.env.FEATURE_USE_COGNIGY_LIVE_AGENT && "escalateAnswersHandoverLiveAgentInboxId",
900
+ "escalateAnswersHandoverChatwootInboxId",
901
+ "escalateAnswersHandoverSalesforcePrechatEntities",
902
+ "escalateAnswersHandoverSalesforcePrechatDetails",
903
+ "escalateAnswersRepromptPrevention",
904
+ "escalateAnswersOnce",
905
+ ].filter(field => !!field)
906
+ },
222
907
  {
223
908
  key: "advanced",
224
909
  label: "Advanced",
@@ -226,22 +911,30 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
226
911
  fields: [
227
912
  "storeDetailedResults",
228
913
  "parseResultOnEntry",
914
+ "onlyAcceptEscalationIntents",
915
+ "additionalValidation",
916
+ "resultLocation",
917
+ "maxExecutionDiff",
229
918
  ]
230
919
  },
231
- ].concat(datepickerUtils_1.getDatePickerSections("Datepicker - ", {
232
- "key": "type",
233
- "value": "date"
234
- })),
920
+ ...datepickerUtils_1.getDatePickerSections("Datepicker - ", {
921
+ "key": "type",
922
+ "value": "date"
923
+ })
924
+ ],
235
925
  form: [
236
926
  { type: "field", key: "type" },
237
927
  { type: "field", key: "keyphraseTag" },
238
928
  { type: "field", key: "usePositiveOnly" },
239
929
  { type: "field", key: "regex" },
240
930
  { type: "field", key: "say" },
931
+ { type: "section", key: "context" },
241
932
  { type: "section", key: "reprompt" },
933
+ { type: "section", key: "reconfirmation" },
934
+ { type: "section", key: "escalateIntents" },
935
+ { type: "section", key: "escalateAnswers" },
242
936
  { type: "section", key: "advanced" },
243
- { type: "section", key: "context" },
244
- { type: "section", key: "profile" },
937
+ { type: "field", key: "datepickerExplanation" },
245
938
  { type: "section", key: "datepicker_config" },
246
939
  { type: "section", key: "datepicker_texts" },
247
940
  { type: "section", key: "datepicker_datesettings" },
@@ -250,15 +943,112 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
250
943
  { type: "section", key: "datepicker_advanced" }
251
944
  ],
252
945
  preview: {
253
- key: "say.text.0",
254
- type: "text",
946
+ key: "say",
947
+ type: "sayNode",
255
948
  },
256
949
  tags: ["basic", "message", "nlu"],
257
- function: async ({ cognigy, nodeId, config }) => {
258
- const { say, validationMessage, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, type, datepicker_hidePicker } = config;
950
+ //#endregion DescriptorFields
951
+ function: async ({ cognigy, nodeId, config, inputOptions }) => {
952
+ const { say, type, validationMessage, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, escalateAnswersAction, escalateAnswersThreshold, escalateAnswersGotoTarget, escalateAnswersExecuteTarget, escalateAnswersGotoExecutionMode, escalateAnswersInjectedText, escalateAnswersInjectedData, escalateAnswersMessage, escalateAnswersRepromptPrevention, escalateAnswersOnce, escalateAnswersHandoverText, escalateAnswersRepeatHandoverMessage, escalateAnswersHandoverCancelIntent, escalateAnswersHandoverQuickReply, escalateAnswersHandoverChatwootInboxId, escalateAnswersHandoverLiveAgentInboxId, escalateAnswersHandoverSalesforcePrechatEntities, escalateAnswersHandoverSalesforcePrechatDetails, escalateIntentsAction, escalateIntentsValidIntents, escalateIntentsThreshold, escalateIntentsGotoTarget, escalateIntentsExecuteTarget, escalateIntentsGotoExecutionMode, escalateIntentsInjectedText, escalateIntentsInjectedData, escalateIntentsMessage, escalateIntentsHandoverText, escalateIntentsRepeatHandoverMessage, escalateIntentsHandoverCancelIntent, escalateIntentsHandoverQuickReply, escalateIntentsHandoverChatwootInboxId, escalateIntentsHandoverLiveAgentInboxId, escalateIntentsHandoverSalesforcePrechatEntities, escalateIntentsHandoverSalesforcePrechatDetails, escalateIntentsRepromptPrevention, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt } = config;
259
953
  const { input, context, profile, api } = cognigy;
954
+ // compute how often this node was hit
260
955
  const executionAmount = api.getExecutionAmount(nodeId);
261
- const isFirstExecution = executionAmount === 1;
956
+ // compute how long ago this node was hit
957
+ const lastExecutionMarker = api.getLastExecutionMarker(nodeId);
958
+ let executionDiff = cognigy.input.execution - lastExecutionMarker;
959
+ // the intent reconfirmation message should not count for the executionDiff
960
+ if (inputOptions === null || inputOptions === void 0 ? void 0 : inputOptions.handledIntentReconfirmation) {
961
+ executionDiff -= 1;
962
+ }
963
+ // if this is the very first time the Node gets executed
964
+ // or if we have been "away" from the Node for too long (maxExecutionDiff)
965
+ // we consider it a first execution and show the question
966
+ let isFirstExecution = executionAmount === 1 || executionDiff > (maxExecutionDiff || 1);
967
+ // remember the current question in systemContext to later fill Input with it
968
+ let activeQuestion = api.getSystemContext('activeQuestion');
969
+ if (!activeQuestion || activeQuestion.nodeId !== nodeId) {
970
+ activeQuestion = {
971
+ nodeId,
972
+ type,
973
+ lastExecutedAt: input.execution,
974
+ forgetQuestionThreshold: maxExecutionDiff,
975
+ repromptCount: 0,
976
+ escalationCount: 0,
977
+ };
978
+ if (onlyAcceptEscalationIntents && config.type !== "intent") {
979
+ activeQuestion.onlyAcceptEscalationIntents = onlyAcceptEscalationIntents;
980
+ activeQuestion.escalationIntents = escalateIntentsValidIntents;
981
+ }
982
+ api.setSystemContext('activeQuestion', activeQuestion);
983
+ }
984
+ else {
985
+ activeQuestion.lastExecutedAt = input.execution;
986
+ }
987
+ // #region 0 CheckIfReconfirmationInProgress
988
+ if (api.getSystemContext("reconfirmationQuestionInProgress")) {
989
+ // if this is the case, we are now a YN question
990
+ let res = evaluateQuestionAnswer_1.evaluateQuestionAnswer({
991
+ cognigy, config: {
992
+ "type": "yesNo"
993
+ }
994
+ });
995
+ const restoredInput = api.getSystemContext("reconfirmationQuestionInput");
996
+ input.intent = restoredInput.intent;
997
+ input.intentScore = restoredInput.intentScore;
998
+ input.intentFlow = restoredInput.intentFlow;
999
+ input.nlu = restoredInput.nlu;
1000
+ input.intentLevel = restoredInput.intentLevel;
1001
+ if (res === true) { // the reconfirmation answer was yes-like
1002
+ // get the tentative answer that was given and store it
1003
+ const result = activeQuestion === null || activeQuestion === void 0 ? void 0 : activeQuestion.tentativeAnswer;
1004
+ storeQuestionAnswer_1.storeQuestionAnswer({ context, contextKey, input, result, storeResultInContext });
1005
+ // reset everything and continue to the next node
1006
+ resetNodeState_1.resetNodeState(api, nodeId);
1007
+ return;
1008
+ }
1009
+ else if (res !== false) { // the reconfirmation answer was invalid (e.g. no yes-like or no-like answer)
1010
+ // output reconfirmation reprompt
1011
+ if (reconfirmationQuestionReprompt) {
1012
+ say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1013
+ }
1014
+ // output reconfirmationQuestion
1015
+ const tentativeAnswerShortform = (activeQuestion === null || activeQuestion === void 0 ? void 0 : activeQuestion.tentativeAnswerShortform) || "";
1016
+ say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
1017
+ // set myself as next node and stop
1018
+ api.setNextNode(nodeId);
1019
+ api.stopExecution();
1020
+ return;
1021
+ }
1022
+ else { // the reconfirmation answer was no-like
1023
+ // delete all remnants of this reconfirmation
1024
+ api.deleteSystemContext('activeQuestion');
1025
+ api.deleteSystemContext('reconfirmationQuestionInProgress');
1026
+ api.deleteSystemContext("reconfirmationQuestionInput");
1027
+ // pretend the question was never asked and continue
1028
+ isFirstExecution = true;
1029
+ api.setExecutionAmount(nodeId, 1);
1030
+ }
1031
+ }
1032
+ // #endregion 0 CheckIfReconfirmationInProgress
1033
+ let currentNodeExecutionAmount = api.getExecutionAmount(nodeId) - 1;
1034
+ // Only validate if the forget question threshold is defined (gt 0)
1035
+ if (maxExecutionDiff > 0) {
1036
+ // Check if the same question node was executed before, if yes
1037
+ // calculate the question diff. last step - recent step
1038
+ let questionDiff = 0;
1039
+ if (executionAmount > 1) {
1040
+ // Calculate the question diff from the first lastExecutedAt
1041
+ questionDiff = executionDiff - lastExecutionMarker;
1042
+ }
1043
+ let validateAnswer = questionDiff <= maxExecutionDiff;
1044
+ // If we don't want to validate due to an exceeded forget question
1045
+ // threshold, we set setLastExecutionMarker to 0
1046
+ if (!validateAnswer) {
1047
+ currentNodeExecutionAmount = 0;
1048
+ api.setExecutionAmount(nodeId, 1);
1049
+ }
1050
+ }
1051
+ // #region 1 AnswerExistsInContext
262
1052
  // if the user has chose to skip the question in case the context already
263
1053
  // exists, we will just skip the question
264
1054
  if (config.storeResultInContext && config.skipIfResultInContext) {
@@ -270,50 +1060,340 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
270
1060
  location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
271
1061
  target = splits[splits.length - 1];
272
1062
  }
273
- if (location[target]) {
1063
+ if (location[target] !== null && location[target] !== undefined) {
1064
+ api.setLastExecutionMarker(nodeId, -1);
274
1065
  api.resetExecutionAmount(nodeId);
1066
+ api.deleteSystemContext('activeQuestion');
275
1067
  return;
276
1068
  }
277
1069
  }
1070
+ // #endregion 1 AnswerExistsInContext
1071
+ // #region 2 FirstTimeNodeIsHit
278
1072
  // if it's the first execution and you don't force evaluation on first execution, ask the question
279
1073
  if (isFirstExecution && !parseResultOnEntry) {
280
1074
  say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say } });
281
- // if type is date and we don't hide the picker, display it as well
282
- if (type === "date" && !datepicker_hidePicker)
1075
+ if (config.type === "date" && !config.datepicker_hidePicker) {
283
1076
  datepickerUtils_1.showDatePicker(cognigy, config);
1077
+ }
1078
+ api.setLastExecutionMarker(nodeId, cognigy.input.execution);
284
1079
  api.setNextNode(nodeId);
285
1080
  api.stopExecution();
286
1081
  return;
287
1082
  }
1083
+ // #endregion 2 FirstTimeNodeIsHit
288
1084
  // if we're in a subsequent execution or we want to parse results
289
1085
  // immediately on entry, continue with evaluation
290
1086
  let result = evaluateQuestionAnswer_1.evaluateQuestionAnswer({ cognigy, config });
1087
+ // #endregion 4 RunQuestionAnswerValidation
1088
+ // #region 4.1 ResultLocationHandling
1089
+ // if a result location was specified, try to get the result from that location
1090
+ // if the location returns a falsey value, the answer is invalid
1091
+ if (resultLocation && result) {
1092
+ result = api.parseCognigyScriptResultLocation(resultLocation);
1093
+ // If we want detailed results, augment the result object accordingly
1094
+ if (storeDetailedResults && result !== null && result !== undefined) {
1095
+ result = {
1096
+ "value": result,
1097
+ "question": getQuestionText_1.getQuestionText(config),
1098
+ "timestamp": cognigy.input.currentTime.ISODate,
1099
+ "answer": cognigy.input.text,
1100
+ "answerData": cognigy.input.data
1101
+ };
1102
+ }
1103
+ }
1104
+ // #endregion 4.1 ResultLocationHandling
1105
+ const isValid = validateQuestionAnswer_1.validateQuestionAnswer(cognigy, config);
291
1106
  // hard check against null & undefined, because result can be 0 or false
292
- if (result !== null && result !== undefined) {
293
- if (storeResultInContext && contextKey) {
294
- // check whether contextKey or inputKey is a deep query and set
295
- // storage location accordingly
296
- let location = context;
297
- let target = contextKey;
298
- // this is a deep query
299
- if (target.indexOf(".") > -1) {
300
- const splits = target.split(".");
301
- location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
302
- target = splits[splits.length - 1];
303
- }
304
- location[target] = result;
1107
+ if (result !== null && result !== undefined && isValid) {
1108
+ // #region 5.1 AnswerIsValid
1109
+ if (reconfirmationBehaviour === "reconfirm" && reconfirmationQuestion) {
1110
+ // #region 5.1.1 ReconfirmationQuestion
1111
+ // remember the given answer in the activeQuestion object
1112
+ activeQuestion.tentativeAnswer = result;
1113
+ // remember a shortform of the given answer in the activeQuestion object
1114
+ activeQuestion.tentativeAnswerShortform = generateAnswerShortForm_1.generateAnswerShortForm(type, result, cognigy.input.text);
1115
+ // Output reconfirmationQuestion
1116
+ say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
1117
+ // remember that we are in reconfirmation mode and stop
1118
+ api.setSystemContext("reconfirmationQuestionInProgress", true);
1119
+ // we need to store the input, to be able to restore it afterwards
1120
+ // since we need information like intentLevel.
1121
+ api.setSystemContext("reconfirmationQuestionInput", input);
1122
+ api.setNextNode(nodeId);
1123
+ api.stopExecution();
1124
+ // #endregion 5.1.1 ReconfirmationQuestion
305
1125
  }
306
1126
  else {
307
- input.result = result;
1127
+ // #region 5.1.2 StoreAnswerInContextOrInput
1128
+ storeQuestionAnswer_1.storeQuestionAnswer({ context, contextKey, input, result, storeResultInContext });
1129
+ // #endregion 5.1.2 StoreAnswerInContextOrInput
1130
+ // #region 5.1.3 StoreAnswerInProfile
1131
+ // if profile storage is requested, also store in contact profile
1132
+ if (storeInContactProfile && profile && profileKey) {
1133
+ profile[profileKey] = (storeDetailedResults) ? result.value : result;
1134
+ }
1135
+ // #endregion 5.1.3 StoreAnswerInProfile
1136
+ // #region 5.1.4 SetMarkersAndContinue
1137
+ api.setLastExecutionMarker(nodeId, -1);
1138
+ api.resetExecutionAmount(nodeId);
1139
+ api.deleteSystemContext('activeQuestion');
1140
+ // #endregion 5.1.4 SetMarkersAndContinue
308
1141
  }
309
- // if profile storage is requested, also store in contact profile
310
- if (storeInContactProfile && profile && profileKey)
311
- profile[profileKey] = (storeDetailedResults) ? result.value : result;
312
- api.resetExecutionAmount(nodeId);
313
1142
  return;
1143
+ // #endregion 5.1 AnswerIsValid
314
1144
  }
315
- else {
316
- if (validationMessage && !isFirstExecution) {
1145
+ else { // Answer was INVALID
1146
+ // #region 5.2 AnswerIsInvalid
1147
+ let sayReprompt = true;
1148
+ let escalatedInIntent = false;
1149
+ // #region 5.2.1 EscalationOnIntent
1150
+ // Process escalation on intents
1151
+ if (escalateIntentsAction && escalateIntentsAction !== "none") {
1152
+ const lastEscalation = api.getSystemContext(`lastEscalation-${nodeId}`);
1153
+ if (lastEscalation && lastEscalation === cognigy.input.execution) {
1154
+ // escalation already happened on this execution - don't escalate again
1155
+ sayReprompt = false;
1156
+ }
1157
+ else if (input.intent && input.intentScore >= escalateIntentsThreshold && escalateIntentsValidIntents.indexOf(input.intent) > -1) {
1158
+ // User has triggered intent escalation
1159
+ escalatedInIntent = true;
1160
+ activeQuestion.escalationCount++;
1161
+ switch (escalateIntentsAction) {
1162
+ case "goto":
1163
+ if (!escalateIntentsGotoTarget) {
1164
+ throw new Error("GoTo Target is required");
1165
+ }
1166
+ // remember when this escalation happened
1167
+ api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
1168
+ await goTo_1.GO_TO.function({
1169
+ cognigy,
1170
+ childConfigs: [],
1171
+ nodeId,
1172
+ config: {
1173
+ flowNode: escalateIntentsGotoTarget,
1174
+ absorbContext: false,
1175
+ executionMode: escalateIntentsGotoExecutionMode,
1176
+ injectedText: escalateIntentsInjectedText,
1177
+ injectedData: Object.assign({}, input.data, escalateIntentsInjectedData),
1178
+ parseIntents: false,
1179
+ parseKeyphrases: false
1180
+ }
1181
+ });
1182
+ return;
1183
+ case "execute":
1184
+ if (!escalateIntentsExecuteTarget) {
1185
+ throw new Error("Execute Flow Target is required");
1186
+ }
1187
+ // set myself as next Node on the stack, so we can return to me
1188
+ api.setNextNode(nodeId);
1189
+ // remember when this escalation happened
1190
+ api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
1191
+ // execute chosen Flow
1192
+ await executeFlow_1.EXECUTE_FLOW.function({
1193
+ cognigy,
1194
+ childConfigs: [],
1195
+ nodeId,
1196
+ config: {
1197
+ flowNode: escalateIntentsExecuteTarget,
1198
+ absorbContext: false,
1199
+ parseIntents: false,
1200
+ parseKeyphrases: false
1201
+ }
1202
+ });
1203
+ return;
1204
+ case "skip":
1205
+ input.result = {
1206
+ "skipped": true,
1207
+ "intent": input.intent,
1208
+ "reason": "Intent escalation was triggered and question was skipped"
1209
+ };
1210
+ if (storeResultInContext && contextKey) {
1211
+ // check whether contextKey or inputKey is a deep query and set
1212
+ // storage location accordingly
1213
+ let location = context;
1214
+ let target = contextKey;
1215
+ // this is a deep query
1216
+ if (target.indexOf(".") > -1) {
1217
+ const splits = target.split(".");
1218
+ location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
1219
+ target = splits[splits.length - 1];
1220
+ }
1221
+ location[target] = {
1222
+ "skipped": true,
1223
+ "intent": input.intent,
1224
+ "reason": "Intent escalation was triggered and question was skipped"
1225
+ };
1226
+ }
1227
+ api.setLastExecutionMarker(nodeId, -1);
1228
+ api.resetExecutionAmount(nodeId);
1229
+ api.deleteSystemContext('activeQuestion');
1230
+ return;
1231
+ case "text":
1232
+ say_1.SAY.function({
1233
+ cognigy,
1234
+ childConfigs: [],
1235
+ nodeId,
1236
+ config: { say: escalateIntentsMessage }
1237
+ });
1238
+ if (escalateIntentsRepromptPrevention) {
1239
+ sayReprompt = false;
1240
+ }
1241
+ break;
1242
+ case "handover":
1243
+ resetNodeState_1.resetNodeState(api, nodeId);
1244
+ await service_1.HANDOVER_V2.function({
1245
+ cognigy,
1246
+ childConfigs: [],
1247
+ nodeId,
1248
+ config: {
1249
+ text: escalateIntentsHandoverText,
1250
+ repeatHandoverMessage: escalateIntentsRepeatHandoverMessage,
1251
+ cancelIntent: escalateIntentsHandoverCancelIntent,
1252
+ quickReply: escalateIntentsHandoverQuickReply,
1253
+ chatwootInboxId: escalateIntentsHandoverChatwootInboxId,
1254
+ liveAgentInboxId: escalateIntentsHandoverLiveAgentInboxId,
1255
+ salesforcePrechatEntities: escalateIntentsHandoverSalesforcePrechatEntities,
1256
+ salesforcePrechatDetails: escalateIntentsHandoverSalesforcePrechatDetails
1257
+ }
1258
+ });
1259
+ return;
1260
+ }
1261
+ }
1262
+ }
1263
+ // #endregion 5.2.1 EscalationOnIntent
1264
+ // #region 5.2.2 EscalationOnAnswers
1265
+ if ((!escalatedInIntent && escalatedInIntent != undefined) && escalateAnswersAction && escalateAnswersAction !== "none") {
1266
+ // the user set special escalation handling in case multiple wrong answers were provided
1267
+ // this is only done if intent escalation didnt happen
1268
+ const lastEscalation = api.getSystemContext(`lastEscalation-${nodeId}`);
1269
+ let addEscalationText = false;
1270
+ if (escalateAnswersOnce) {
1271
+ addEscalationText = currentNodeExecutionAmount === escalateAnswersThreshold;
1272
+ }
1273
+ else {
1274
+ addEscalationText = currentNodeExecutionAmount >= escalateAnswersThreshold;
1275
+ }
1276
+ // either we escalate only once on the threshold or always from the threshold on, depending on what was set
1277
+ if (lastEscalation && lastEscalation === cognigy.input.execution) {
1278
+ // escalation already happened on this execution - don't escalate again
1279
+ sayReprompt = false;
1280
+ }
1281
+ else if (addEscalationText) {
1282
+ // User has given enough wrong answers to trigger the threshold
1283
+ activeQuestion.escalationCount++;
1284
+ switch (escalateAnswersAction) {
1285
+ case "goto":
1286
+ if (!escalateAnswersGotoTarget) {
1287
+ throw new Error("GoTo Target is required");
1288
+ }
1289
+ // remember when this escalation happened
1290
+ api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
1291
+ await goTo_1.GO_TO.function({
1292
+ cognigy,
1293
+ childConfigs: [],
1294
+ nodeId,
1295
+ config: {
1296
+ flowNode: escalateAnswersGotoTarget,
1297
+ absorbContext: false,
1298
+ executionMode: escalateAnswersGotoExecutionMode,
1299
+ injectedText: escalateAnswersInjectedText,
1300
+ injectedData: Object.assign({ "escalation": api.getExecutionAmount(nodeId) - escalateAnswersThreshold }, input.data, escalateAnswersInjectedData),
1301
+ parseIntents: false,
1302
+ parseKeyphrases: false
1303
+ }
1304
+ });
1305
+ return;
1306
+ case "execute":
1307
+ if (!escalateAnswersExecuteTarget) {
1308
+ throw new Error("Execute Flow Target is required");
1309
+ }
1310
+ // set myself as next Node on the stack, so we can return to me
1311
+ api.setNextNode(nodeId);
1312
+ // remember when this escalation happened
1313
+ api.setSystemContext(`lastEscalation-${nodeId}`, cognigy.input.execution);
1314
+ // execute chosen Flow
1315
+ await executeFlow_1.EXECUTE_FLOW.function({
1316
+ cognigy,
1317
+ childConfigs: [],
1318
+ nodeId,
1319
+ config: {
1320
+ flowNode: escalateAnswersExecuteTarget,
1321
+ absorbContext: false,
1322
+ parseIntents: false,
1323
+ parseKeyphrases: false
1324
+ }
1325
+ });
1326
+ return;
1327
+ case "skip":
1328
+ input.result = {
1329
+ "skipped": true,
1330
+ "reason": "Too many incorrect answers were given and question was skipped"
1331
+ };
1332
+ if (storeResultInContext && contextKey) {
1333
+ // check whether contextKey or inputKey is a deep query and set
1334
+ // storage location accordingly
1335
+ let location = context;
1336
+ let target = contextKey;
1337
+ // this is a deep query
1338
+ if (target.indexOf(".") > -1) {
1339
+ const splits = target.split(".");
1340
+ location = BaseContext_1.BaseContext.findLocationPathStateless(splits, true, location);
1341
+ target = splits[splits.length - 1];
1342
+ }
1343
+ location[target] = {
1344
+ "skipped": true,
1345
+ "reason": "Too many incorrect answers were given and question was skipped"
1346
+ };
1347
+ }
1348
+ api.setLastExecutionMarker(nodeId, -1);
1349
+ api.resetExecutionAmount(nodeId);
1350
+ api.deleteSystemContext('activeQuestion');
1351
+ return;
1352
+ case "text":
1353
+ say_1.SAY.function({
1354
+ cognigy,
1355
+ childConfigs: [],
1356
+ nodeId,
1357
+ config: { say: escalateAnswersMessage }
1358
+ });
1359
+ if (escalateAnswersRepromptPrevention) {
1360
+ sayReprompt = false;
1361
+ }
1362
+ break;
1363
+ case "handover":
1364
+ resetNodeState_1.resetNodeState(api, nodeId);
1365
+ await service_1.HANDOVER_V2.function({
1366
+ cognigy,
1367
+ childConfigs: [],
1368
+ nodeId,
1369
+ config: {
1370
+ text: escalateAnswersHandoverText,
1371
+ cancelIntent: escalateAnswersHandoverCancelIntent,
1372
+ repeatHandoverMessage: escalateAnswersRepeatHandoverMessage,
1373
+ quickReply: escalateAnswersHandoverQuickReply,
1374
+ chatwootInboxId: escalateAnswersHandoverChatwootInboxId,
1375
+ liveAgentInboxId: escalateAnswersHandoverLiveAgentInboxId,
1376
+ salesforcePrechatEntities: escalateAnswersHandoverSalesforcePrechatEntities,
1377
+ salesforcePrechatDetails: escalateAnswersHandoverSalesforcePrechatDetails
1378
+ }
1379
+ });
1380
+ return;
1381
+ }
1382
+ }
1383
+ }
1384
+ // #endregion 5.2.2 EscalationOnAnswers
1385
+ // #region 5.2.3 Reprompt
1386
+ // check if there is an extra condition defined for reprompts and check whether it was truthy
1387
+ if (sayReprompt && repromptCondition) {
1388
+ sayReprompt = !!api.parseCognigyScriptCondition(repromptCondition);
1389
+ }
1390
+ // if we decided to skip the reprompt on intent and there
1391
+ // is an intent, don't say it
1392
+ if (skipRepromptOnIntent && cognigy.input.intent) {
1393
+ sayReprompt = false;
1394
+ }
1395
+ if (validationMessage && !isFirstExecution && sayReprompt) {
1396
+ activeQuestion.repromptCount++;
317
1397
  /* Output Reprompt Message */
318
1398
  say_1.SAY.function({ cognigy, childConfigs: [], nodeId, config: { say: { type: "text", text: [validationMessage] } } });
319
1399
  /* If repeat toggle is on, also output question (and maybe datepicker) again */
@@ -324,9 +1404,9 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
324
1404
  nodeId,
325
1405
  config: { say }
326
1406
  });
327
- // if type is date and we don't hide the picker, display it
328
- if (type === "date" && !datepicker_hidePicker)
1407
+ if (config.type === "date" && !config.datepicker_hidePicker) {
329
1408
  datepickerUtils_1.showDatePicker(cognigy, config);
1409
+ }
330
1410
  }
331
1411
  }
332
1412
  else {
@@ -337,12 +1417,17 @@ exports.QUESTION = createNodeDescriptor_1.createNodeDescriptor({
337
1417
  nodeId,
338
1418
  config: { say }
339
1419
  });
340
- // if type is date and we don't hide the picker, display it
341
- if (type === "date" && !datepicker_hidePicker)
1420
+ if (config.type === "date" && !config.datepicker_hidePicker) {
342
1421
  datepickerUtils_1.showDatePicker(cognigy, config);
1422
+ }
343
1423
  }
1424
+ // #endregion 5.2.3 Reprompt
1425
+ // #region 5.2.4 SetNextNodeAndStop
1426
+ api.setLastExecutionMarker(nodeId, cognigy.input.execution);
344
1427
  api.setNextNode(nodeId);
345
1428
  api.stopExecution();
1429
+ // #endregion 5.2.4 SetNextNodeAndStop
1430
+ // #endregion 5.2 AnswerIsInvalid
346
1431
  }
347
1432
  }
348
1433
  });