@cognigy/rest-api-client 0.17.0 → 0.19.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 (191) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/GenericTusFn.js +6 -1
  3. package/build/GenericUploadFn.js +3 -5
  4. package/build/apigroups/AdministrationAPIGroup_2_0.js +3 -1
  5. package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
  6. package/build/apigroups/ResourcesAPIGroup_2_0.js +21 -7
  7. package/build/connector/AxiosAdapter.js +35 -15
  8. package/build/shared/charts/createNodeDescriptor.js +5 -5
  9. package/build/shared/charts/descriptors/agentAssist/constants/constants.js +16 -1
  10. package/build/shared/charts/descriptors/agentAssist/helpers/agentAssistTranslator.helper.js +19 -0
  11. package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
  12. package/build/shared/charts/descriptors/agentAssist/helpers/getFontSizeFieldOptions.js +84 -0
  13. package/build/shared/charts/descriptors/agentAssist/helpers/getLanguageName.helper.js +33 -0
  14. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +59 -0
  15. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/configValidator.helper.js +20 -0
  16. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +64 -0
  17. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +72 -0
  18. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/knowledgeSearch.helper.js +58 -0
  19. package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +7 -13
  20. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +17 -18
  21. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +330 -153
  22. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +212 -80
  23. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +11 -6
  24. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +15 -13
  25. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +88 -15
  26. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +192 -327
  27. package/build/shared/charts/descriptors/agentAssist/locales/cs.locale.js +11 -0
  28. package/build/shared/charts/descriptors/agentAssist/locales/de.locale.js +11 -0
  29. package/build/shared/charts/descriptors/agentAssist/locales/en.locale.js +11 -0
  30. package/build/shared/charts/descriptors/agentAssist/locales/es.locale.js +11 -0
  31. package/build/shared/charts/descriptors/agentAssist/locales/fr.locale.js +11 -0
  32. package/build/shared/charts/descriptors/agentAssist/locales/index.js +22 -0
  33. package/build/shared/charts/descriptors/agentAssist/locales/ja.locale.js +11 -0
  34. package/build/shared/charts/descriptors/agentAssist/locales/ko.locale.js +11 -0
  35. package/build/shared/charts/descriptors/agentAssist/locales/pt.locale.js +11 -0
  36. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +484 -10
  37. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +32 -9
  38. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -0
  39. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +2 -1
  40. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +5 -3
  41. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +5 -3
  42. package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +2 -2
  43. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +42 -3
  44. package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
  45. package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
  46. package/build/shared/charts/descriptors/analytics/completeGoal.js +1 -0
  47. package/build/shared/charts/descriptors/analytics/deactivateProfile.js +1 -0
  48. package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -0
  49. package/build/shared/charts/descriptors/analytics/index.js +3 -1
  50. package/build/shared/charts/descriptors/analytics/mergeProfile.js +1 -0
  51. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +9 -0
  52. package/build/shared/charts/descriptors/analytics/requestRating.js +56 -2
  53. package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
  54. package/build/shared/charts/descriptors/analytics/trackMilestone.js +95 -0
  55. package/build/shared/charts/descriptors/analytics/updateProfile.js +1 -0
  56. package/build/shared/charts/descriptors/apps/initAppSession.js +1 -0
  57. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +35 -10
  58. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +25 -2
  59. package/build/shared/charts/descriptors/apps/utils/getXAppsOverlaySettings.js +54 -0
  60. package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/azureAIDocumentIntelligenceConnection.js +12 -0
  61. package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/index.js +13 -0
  62. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockProviderConnection.js +12 -0
  63. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -3
  64. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +3 -3
  65. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +14 -0
  66. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +16 -8
  67. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +3 -3
  68. package/build/shared/charts/descriptors/data/addToContext.js +7 -0
  69. package/build/shared/charts/descriptors/data/copyDataToContext.js +3 -0
  70. package/build/shared/charts/descriptors/data/copySlotsToContext.js +3 -0
  71. package/build/shared/charts/descriptors/data/debugMessage.js +73 -0
  72. package/build/shared/charts/descriptors/data/index.js +3 -1
  73. package/build/shared/charts/descriptors/data/removeFromContext.js +9 -1
  74. package/build/shared/charts/descriptors/data/resetContext.js +1 -0
  75. package/build/shared/charts/descriptors/index.js +8 -4
  76. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +36 -11
  77. package/build/shared/charts/descriptors/logic/resetState.js +1 -0
  78. package/build/shared/charts/descriptors/logic/setState.js +2 -1
  79. package/build/shared/charts/descriptors/logic/setTranslation.js +3 -1
  80. package/build/shared/charts/descriptors/logic/switchLocale.js +1 -0
  81. package/build/shared/charts/descriptors/logic/think.js +3 -1
  82. package/build/shared/charts/descriptors/logic/thinkV2.js +2 -0
  83. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +1 -1
  84. package/build/shared/charts/descriptors/message/question/question.js +173 -7
  85. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +44 -3
  86. package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
  87. package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
  88. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +23 -1
  89. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +45 -19
  90. package/build/shared/charts/descriptors/nlu/index.js +1 -3
  91. package/build/shared/charts/descriptors/service/GPTPrompt.js +362 -29
  92. package/build/shared/charts/descriptors/service/LLMEntityExtract.js +283 -0
  93. package/build/shared/charts/descriptors/service/handoverV2.js +84 -1
  94. package/build/shared/charts/descriptors/service/httpRequest.js +68 -3
  95. package/build/shared/charts/descriptors/service/index.js +3 -1
  96. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +110 -27
  97. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -4
  98. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
  99. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +2 -0
  100. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +2 -0
  101. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -0
  102. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +2 -0
  103. package/build/shared/charts/descriptors/voice/nodes/play.js +8 -1
  104. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +46 -45
  105. package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
  106. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +2 -0
  107. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +2 -0
  108. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +3 -0
  109. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
  110. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -0
  111. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -0
  112. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -0
  113. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +329 -47
  114. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +27 -31
  115. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
  116. package/build/shared/charts/helpers/generativeAI/generativeAIPrompts.js +55 -0
  117. package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
  118. package/build/shared/constants.js +10 -1
  119. package/build/shared/handoverClients/interfaces/THandoverEventType.js +1 -0
  120. package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
  121. package/build/shared/helper/nlu/textCleaner.js +3 -1
  122. package/build/shared/interfaces/IOrganisation.js +1 -0
  123. package/build/shared/interfaces/IProfile.js +1 -0
  124. package/build/shared/interfaces/IProfileSchema.js +3 -0
  125. package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +20 -20
  126. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyProgress_2_0.js → analytics/IMilestoneAnalytics.js} +1 -1
  127. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourney_2_0.js → appsession/IAppSession.js} +1 -1
  128. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyStep_2_0.js → appsession/ISetAppState.js} +1 -1
  129. package/build/shared/interfaces/appsession/ISetAppStateOptions.js +3 -0
  130. package/build/shared/interfaces/appsession/ISetAppStateOverlaySettings.js +3 -0
  131. package/build/shared/interfaces/appsession/ISetAppStateOverlaySettingsMetaData.js +3 -0
  132. package/build/shared/interfaces/debugEvents/TDebugEventMessagePayload.js +3 -0
  133. package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -0
  134. package/build/shared/interfaces/fileStorage.js +6 -0
  135. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +45 -52
  136. package/build/shared/interfaces/handover.js +44 -2
  137. package/build/shared/interfaces/license.js +3 -2
  138. package/build/shared/interfaces/license.js.map +1 -1
  139. package/build/shared/interfaces/messageAPI/endpoints.js +17 -2
  140. package/build/shared/interfaces/messageAPI/handover.js +25 -2
  141. package/build/shared/interfaces/nlu/nlu.js +3 -0
  142. package/build/shared/interfaces/resources/IAuditEvent.js +10 -9
  143. package/build/shared/interfaces/resources/IConnection.js +1 -0
  144. package/build/shared/interfaces/resources/IEndpoint.js +1 -2
  145. package/build/shared/interfaces/resources/ILargeLanguageModel.js +56 -21
  146. package/build/shared/interfaces/resources/IMilestone.js +50 -0
  147. package/build/shared/interfaces/resources/INodeDescriptorSet.js +96 -75
  148. package/build/shared/interfaces/resources/TResourceType.js +12 -5
  149. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  150. package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
  151. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +8 -0
  152. package/build/shared/interfaces/resources/settings/IKnowledgeAISettings.js +18 -0
  153. package/build/shared/interfaces/resources/settings/index.js +4 -1
  154. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +0 -1
  155. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadOrganisationKnowledgeChunksCountRest_2_0.js +3 -0
  156. package/build/shared/interfaces/restAPI/operations/index.js +3 -0
  157. package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
  158. package/build/shared/interfaces/restAPI/operations/nlu/v2.0/index.js +3 -0
  159. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IAvailableModelsForLLMProvider_2_0 .js +18 -0
  160. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IGetAvailableModelsForLLMRest_2_0 .js +3 -0
  161. package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IJourneyIndexItem_2_0.js → milestone/v2.0/ICloneMilestoneRest_2_0.js} +1 -1
  162. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICreateMilestoneRest_2_0.js +3 -0
  163. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IDeleteMilestoneRest_2_0.js +3 -0
  164. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IIndexMilestonesRest_2_0.js +3 -0
  165. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneIndexItem_2_0.js +3 -0
  166. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStepMetric_2_0.js +3 -0
  167. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStep_2_0.js +3 -0
  168. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestone_2_0.js +3 -0
  169. package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IIndexJourneysRest_2_0.js → milestone/v2.0/IReadMilestoneRest_2_0.js} +1 -1
  170. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IUpdateMilestoneRest_2_0.js +3 -0
  171. package/build/shared/interfaces/restAPI/resources/milestone/v2.0/index.js +3 -0
  172. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +3 -1
  173. package/build/shared/interfaces/security/IPermission.js +4 -2
  174. package/build/shared/interfaces/security/IRole.js +2 -0
  175. package/build/shared/interfaces/security/ISystemCapabilities.js +3 -0
  176. package/build/shared/interfaces/security/index.js +1 -1
  177. package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -2
  178. package/build/shared/interfaces/user.js +1 -1
  179. package/package.json +2 -2
  180. package/types/index.d.ts +2194 -957
  181. package/build/shared/charts/descriptors/nlu/extractAnswer.js +0 -115
  182. package/build/shared/interfaces/journeys/IJourney.js +0 -83
  183. package/build/shared/interfaces/journeys/IJourneyProgress.js +0 -40
  184. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +0 -35
  185. package/build/shared/interfaces/journeys/index.js +0 -14
  186. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.js +0 -3
  187. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.js +0 -3
  188. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.js +0 -3
  189. package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.js +0 -3
  190. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.js +0 -3
  191. /package/build/shared/interfaces/{restAPI/resources/journey/v2.0 → appsession}/index.js +0 -0
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLLMEntityExtractSystemMessage = exports.getLLMEntityExtractPrompt = void 0;
4
+ /**
5
+ * Helper function for the LLM Entity Extract functionality
6
+ * @param entityName Name of the entity to extract
7
+ * @param entityDescription Description of the entity to extract
8
+ * @param examples Examples of the entity to extract
9
+ * @param text The text to extract the entity from
10
+ * @returns The prompt for the LLM Entity Extract functionality
11
+ */
12
+ const getLLMEntityExtractPrompt = (entityName, entityDescription, examples, text) => {
13
+ let formattedExamples = "";
14
+ examples && Object.keys(examples).forEach((key) => {
15
+ formattedExamples += `- "${key}" - { "${entityName}": "` + examples[key] + `" }\n`;
16
+ });
17
+ // add one negative example to formattedExamples
18
+ formattedExamples += `- "sdf sdf sdf" - { "${entityName}": null }\n`;
19
+ const prompt = `Your task is to parse an unstructured text and return a valid JSON with an extracted entity.
20
+ The entity you're to extract is ${entityName} - ${entityDescription}.
21
+ If you can't find a ${entityName}, return { "${entityName}": null }.
22
+ Examples:
23
+ ${formattedExamples}
24
+
25
+ The given text is: "${text}"
26
+
27
+ Answer: {"${entityName}":`;
28
+ return prompt;
29
+ };
30
+ exports.getLLMEntityExtractPrompt = getLLMEntityExtractPrompt;
31
+ /**
32
+ * Helper function for the LLM Entity Extract functionality
33
+ * @param entityName Name of the entity to extract
34
+ * @param entityDescription Description of the entity to extract
35
+ * @param examples Examples of the entity to extract
36
+ * @returns The system instrctions for the LLM Entity Extract functionality when using chat models
37
+ */
38
+ const getLLMEntityExtractSystemMessage = (entityName, entityDescription, examples) => {
39
+ let formattedExamples = "";
40
+ examples && Object.keys(examples).forEach((key) => {
41
+ formattedExamples += `- "${key}" - { "${entityName}": "` + examples[key] + `" }\n`;
42
+ });
43
+ // add one negative example to formattedExamples
44
+ formattedExamples += `- "sdf sdf sdf" - { "${entityName}": null }\n`;
45
+ const prompt = `Your task is to parse an unstructured text and return a valid JSON with an extracted entity.
46
+ The entity you're to extract is ${entityName} - ${entityDescription}.
47
+ If you can't find a ${entityName}, return { "${entityName}": null }.
48
+ Examples:
49
+ ${formattedExamples}
50
+
51
+ Answer: {"${entityName}":`;
52
+ return prompt;
53
+ };
54
+ exports.getLLMEntityExtractSystemMessage = getLLMEntityExtractSystemMessage;
55
+ //# sourceMappingURL=generativeAIPrompts.js.map
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rephraseMultipleSentencesWithAI = exports.rephraseSentenceWithAI = void 0;
4
4
  const rephraseSentenceWithAI = async (sentence, config, api, organisationId) => {
5
5
  const { generativeAI_rephraseOutputMode } = config;
6
+ let newSentence = sentence;
6
7
  if (generativeAI_rephraseOutputMode === "userInputs" || generativeAI_rephraseOutputMode === "customInputs") {
7
- sentence = await api.rephraseSentenceWithAI(sentence, createRephraseSentenceWithAIOptions(config));
8
+ newSentence = await api.rephraseSentenceWithAI(sentence, createRephraseSentenceWithAIOptions(config));
8
9
  }
9
- return sentence;
10
+ newSentence !== sentence && api.logDebugMessage(`Rephrased sentence via AI<br>From: '${sentence}'<br>To: '${newSentence}'`, "Rephrased Sentence via AI");
11
+ return newSentence;
10
12
  };
11
13
  exports.rephraseSentenceWithAI = rephraseSentenceWithAI;
12
14
  const rephraseMultipleSentencesWithAI = async (sentences, config, api, organisationId) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IP_NOT_AVAILABLE = exports.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = exports.TRANSLATION_PROVIDER_EXTENSION = exports.AUDIO_PREVIEW_PROVIDER_EXTENSION = exports.GENERATIVE_AI_PROVIDER_EXTENSION = exports.ADMIN_CONSOLE_URL_TOKEN = exports.X_COGNIGY_ORIGIN = exports.EMBEDDED_EXTENSION = exports.INTERNAL_STORAGE_PROVIDER_EXTENSION = exports.VOICE_GATEWAY_2_EXTENSION = exports.MICROSOFT_EXTENSION = exports.VOICE_GATEWAY_EXTENSION = exports.SMTP_EXTENSION = exports.SQL_EXTENSION = exports.MONGO_DB_EXTENSION = exports.BASIC_EXTENSION = exports.MAX_INT32 = exports.PASSWORD_RESET_TOKEN_TTL_IN_SECONDS = exports.SCOPED_USER = exports.SYSTEM_EMAIL = exports.SYSTEM = exports.CREATED_BY_SSO = void 0;
3
+ exports.IP_NOT_AVAILABLE = exports.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = exports.DOCUMENT_PARSER_PROVIDER_EXTENSION = exports.TRANSLATION_PROVIDER_EXTENSION = exports.AUDIO_PREVIEW_PROVIDER_EXTENSION = exports.GENERATIVE_AI_PROVIDER_EXTENSION = exports.ADMIN_CONSOLE_URL_TOKEN = exports.X_COGNIGY_ORIGIN = exports.EMBEDDED_EXTENSION = exports.INTERNAL_STORAGE_PROVIDER_EXTENSION = exports.VOICE_GATEWAY_2_EXTENSION = exports.MICROSOFT_EXTENSION = exports.VOICE_GATEWAY_EXTENSION = exports.SMTP_EXTENSION = exports.SQL_EXTENSION = exports.MONGO_DB_EXTENSION = exports.BASIC_EXTENSION = exports.MAX_INT32 = exports.PASSWORD_RESET_TOKEN_TTL_IN_SECONDS = exports.SCOPED_USER = exports.SYSTEM_EMAIL = exports.SYSTEM = exports.CREATED_BY_SSO = void 0;
4
4
  exports.CREATED_BY_SSO = "000000000000000000000550";
5
5
  exports.SYSTEM = "000000000000000000000000";
6
6
  exports.SYSTEM_EMAIL = "system@mail.com";
@@ -23,6 +23,7 @@ exports.ADMIN_CONSOLE_URL_TOKEN = "ffffffffffffffffffff55555555555555555eeeeeeee
23
23
  exports.GENERATIVE_AI_PROVIDER_EXTENSION = "@cognigy/generative-ai-provider";
24
24
  exports.AUDIO_PREVIEW_PROVIDER_EXTENSION = "@cognigy/audio-preview-provider";
25
25
  exports.TRANSLATION_PROVIDER_EXTENSION = "@cognigy/translation-provider";
26
+ exports.DOCUMENT_PARSER_PROVIDER_EXTENSION = "@cognigy/document-parser-provider";
26
27
  exports.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = {
27
28
  ESCALATE_INTENTS_HANDOVER_LIVE_AGENT_INBOX_ID: "escalateIntentsHandoverLiveAgentInboxId",
28
29
  ESCALATE_INTENTS_AGENT_ASSIST_INIT_MESSAGE: "escalateIntentsAgentAssistInitMessage",
@@ -36,6 +37,14 @@ exports.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = {
36
37
  LIVE_AGENT_PRIORITY: "liveAgentPriority",
37
38
  AGENT_ASSIST_INIT_MESSAGE: "agentAssistInitMessage",
38
39
  ALLOW_AGENT_INJECT: "allowAgentInject",
40
+ GET_QUEUE_POSITION: "getQueuePosition",
41
+ GET_ESTIMATED_WAIT_TIME: "getEstimatedWaitTime",
42
+ UPDATE_INTERVAL_QUEUE_POSITION: "updateIntervalQueuePosition",
43
+ UPDATE_INTERVAL_ESTIMATED_WAIT_TIME: "updateIntervalEstimatedWaitTime",
44
+ ALTERNATIVE_UPDATE: "alternativeUpdate",
45
+ MAXIMUM_QUEUE_POSITION: "maximumQueuePosition",
46
+ MAXIMUM_ESTIMATED_WAIT_TIME: "maximumEstimatedWaitTime",
47
+ ALTERNATIVE_TEXT: "alternativeText",
39
48
  };
40
49
  exports.IP_NOT_AVAILABLE = "not available";
41
50
  //# sourceMappingURL=constants.js.map
@@ -9,6 +9,7 @@ exports.handoverEventTypes = [
9
9
  "agentTypingOff",
10
10
  "queueUpdate",
11
11
  "RCEImplementationInfo",
12
+ "genesysCloudOMBotMessage",
12
13
  "unknown",
13
14
  ];
14
15
  //# sourceMappingURL=THandoverEventType.js.map
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.logFullConfigToDebugMode = void 0;
4
+ function logFullConfigToDebugMode(cognigy, config, header) {
5
+ var _a;
6
+ const { input, api } = cognigy;
7
+ // sort the object "config" by keys in alphabetic order
8
+ const sortedConfig = Object.keys(config).sort().reduce((acc, key) => {
9
+ acc[key] = config[key];
10
+ return acc;
11
+ }, {});
12
+ if (input.endpointType === "adminconsole" || api.getMetadata().isFollowSessionActive) {
13
+ let totalSettingsString = "";
14
+ Object.keys(sortedConfig).forEach((key) => {
15
+ if (typeof config[key] === "object") {
16
+ totalSettingsString += `${key}:<br>`;
17
+ Object.keys(config[key]).forEach((subkey) => {
18
+ totalSettingsString += `- ${subkey}: ${config[key][subkey]}<br>`;
19
+ });
20
+ totalSettingsString += `<br>`;
21
+ }
22
+ else {
23
+ totalSettingsString += `${key}: ${config[key]}<br>`;
24
+ }
25
+ });
26
+ (_a = api === null || api === void 0 ? void 0 : api.logDebugMessage) === null || _a === void 0 ? void 0 : _a.call(api, `${totalSettingsString}`, header);
27
+ }
28
+ }
29
+ exports.logFullConfigToDebugMode = logFullConfigToDebugMode;
30
+ //# sourceMappingURL=logFullConfigToDebugMode.js.map
@@ -110,7 +110,9 @@ class TextCleaner {
110
110
  // special rule for de-DE, as our NLU captures "mal" as part of the number words
111
111
  // if we replace this, we can't resolve phonetic counters anymore
112
112
  // in addition the German NLU parser finds IPv4 addresses with full length (123.123.123.132) as numbers, which we don't want to replace
113
- if (this.locale !== "de" || (!num.text.includes("mal") && !num.text.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/))) {
113
+ // also avoid replacing the phrase if the string has leading zeros, as data.value will have the string without them
114
+ // ex: 0000 should be 0000 not 0
115
+ if ((this.locale !== "de" || (!num.text.includes("mal") && !num.text.match(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/))) && num.text[0] !== "0") {
114
116
  phrase = phrase.replace(num.text, num.data.value.toString());
115
117
  }
116
118
  });
@@ -51,6 +51,7 @@ exports.organisationDataSchema = {
51
51
  quotaMaxMessagesPerDay: { type: "integer", minimum: 0 },
52
52
  quotaMaxProjects: { type: "integer", minimum: 0 },
53
53
  quotaMaxUsers: { type: "integer", minimum: 0 },
54
+ quotaMaxKnowledgeChunks: { type: "integer", minimum: 0 },
54
55
  sessionStateTTLInMinutes: { type: "integer", minimum: 0 },
55
56
  billingTimezone: { type: "string", format: "timezone" },
56
57
  dataPrivacySettings: exports.organisationDataPrivacySettingsSchema,
@@ -4,6 +4,7 @@ exports.profileQuerySchema = exports.profileSchema = exports.profileDataSchema =
4
4
  /* Custom Modules */
5
5
  const createQuerySchema_1 = require("../helper/createQuerySchema");
6
6
  const IEntityMeta_1 = require("./resources/IEntityMeta");
7
+ ;
7
8
  exports.profileDataSchema = {
8
9
  title: "profileDataSchema",
9
10
  type: "object",
@@ -35,6 +35,9 @@ exports.defaultProfile = {
35
35
  profilepic: "",
36
36
  prevent_data_collection: false,
37
37
  accepted_gdpr: false,
38
+ privacy_policy: {
39
+ accepted: false
40
+ },
38
41
  goals: [],
39
42
  };
40
43
  //# sourceMappingURL=IProfileSchema.js.map
@@ -80,43 +80,43 @@ exports.customerUpdatableAnalyticsSchema = {
80
80
  },
81
81
  custom1: {
82
82
  type: ["string", "null"],
83
- maxLength: 512,
83
+ maxLength: 1024,
84
84
  },
85
85
  custom2: {
86
86
  type: ["string", "null"],
87
- maxLength: 512,
87
+ maxLength: 1024,
88
88
  },
89
89
  custom3: {
90
90
  type: ["string", "null"],
91
- maxLength: 512,
91
+ maxLength: 1024,
92
92
  },
93
93
  custom4: {
94
94
  type: ["string", "null"],
95
- maxLength: 512,
95
+ maxLength: 1024,
96
96
  },
97
97
  custom5: {
98
98
  type: ["string", "null"],
99
- maxLength: 512,
99
+ maxLength: 1024,
100
100
  },
101
101
  custom6: {
102
102
  type: ["string", "null"],
103
- maxLength: 512,
103
+ maxLength: 1024,
104
104
  },
105
105
  custom7: {
106
106
  type: ["string", "null"],
107
- maxLength: 512,
107
+ maxLength: 1024,
108
108
  },
109
109
  custom8: {
110
110
  type: ["string", "null"],
111
- maxLength: 512,
111
+ maxLength: 1024,
112
112
  },
113
113
  custom9: {
114
114
  type: ["string", "null"],
115
- maxLength: 512,
115
+ maxLength: 1024,
116
116
  },
117
117
  custom10: {
118
118
  type: ["string", "null"],
119
- maxLength: 512,
119
+ maxLength: 1024,
120
120
  },
121
121
  },
122
122
  };
@@ -173,43 +173,43 @@ exports.customerEditableAnalyticsSchema = {
173
173
  },
174
174
  custom1: {
175
175
  type: ["string", "null"],
176
- maxLength: 512,
176
+ maxLength: 1024,
177
177
  },
178
178
  custom2: {
179
179
  type: ["string", "null"],
180
- maxLength: 512,
180
+ maxLength: 1024,
181
181
  },
182
182
  custom3: {
183
183
  type: ["string", "null"],
184
- maxLength: 512,
184
+ maxLength: 1024,
185
185
  },
186
186
  custom4: {
187
187
  type: ["string", "null"],
188
- maxLength: 512,
188
+ maxLength: 1024,
189
189
  },
190
190
  custom5: {
191
191
  type: ["string", "null"],
192
- maxLength: 512,
192
+ maxLength: 1024,
193
193
  },
194
194
  custom6: {
195
195
  type: ["string", "null"],
196
- maxLength: 512,
196
+ maxLength: 1024,
197
197
  },
198
198
  custom7: {
199
199
  type: ["string", "null"],
200
- maxLength: 512,
200
+ maxLength: 1024,
201
201
  },
202
202
  custom8: {
203
203
  type: ["string", "null"],
204
- maxLength: 512,
204
+ maxLength: 1024,
205
205
  },
206
206
  custom9: {
207
207
  type: ["string", "null"],
208
- maxLength: 512,
208
+ maxLength: 1024,
209
209
  },
210
210
  custom10: {
211
211
  type: ["string", "null"],
212
- maxLength: 512,
212
+ maxLength: 1024,
213
213
  },
214
214
  },
215
215
  };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IJourneyProgress_2_0.js.map
3
+ //# sourceMappingURL=IMilestoneAnalytics.js.map
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IJourney_2_0.js.map
3
+ //# sourceMappingURL=IAppSession.js.map
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IJourneyStep_2_0.js.map
3
+ //# sourceMappingURL=ISetAppState.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISetAppStateOptions.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISetAppStateOverlaySettings.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISetAppStateOverlaySettingsMetaData.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TDebugEventMessagePayload.js.map
@@ -13,5 +13,7 @@ exports.arrayTDebugEventTypes = [
13
13
  "output",
14
14
  "switchedFlow",
15
15
  "nluWarning",
16
+ "debugMessage",
17
+ "debugError",
16
18
  ];
17
19
  //# sourceMappingURL=TDebugEventType.js.map
@@ -6,6 +6,12 @@ exports.fileStorageSettingsSchema = {
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "properties": {
9
+ "enabled": {
10
+ "type": "boolean"
11
+ },
12
+ "dropzoneText": {
13
+ "type": "string"
14
+ },
9
15
  "storageProvider": {
10
16
  "type": "string"
11
17
  },
@@ -1,70 +1,51 @@
1
1
  "use strict";
2
- /**********
3
- * MODELS
4
- **********/
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.modeType = exports.generativeAIUseCases = exports.generativeAIProviders = exports.generativeAIModels = void 0;
3
+ exports.modeType = exports.generativeAIUseCases = exports.generativeAIProviders = exports.generativeAIModels = exports.embeddingModels = void 0;
7
4
  /**
8
- * @openapi
9
- *
10
- * components:
11
- * schemas:
12
- * TGenerativeAIModels:
13
- * type: string
14
- * enum:
15
- * - gpt-3.5-turbo
16
- * - gpt-3.5-turbo-instruct
17
- * - text-davinci-003
18
- * - gpt-4
19
- * - text-embedding-ada-002
20
- * - luminous-extended-control
21
- * - luminous-embedding-128
22
- * - claude-v1-100k
23
- * - claude-instant-v1
24
- * - text-bison@001
25
- */
26
- /**
27
- * WARNING: if new models are added for the supported providers make suer we also update the
28
- * maxAllowed tokens in the openAI.ts and azureOpenAI.ts files
5
+ * WARNING: If you update the generativeAI models, providers please also
6
+ * update their counterparts in the llm-providers package
29
7
  */
8
+ exports.embeddingModels = [
9
+ "text-embedding-3-small",
10
+ "text-embedding-3-large",
11
+ "text-embedding-ada-002",
12
+ "luminous-embedding-128",
13
+ ];
30
14
  exports.generativeAIModels = [
31
15
  "gpt-3.5-turbo",
32
16
  "gpt-3.5-turbo-instruct",
33
17
  "gpt-4",
34
- "text-davinci-003",
35
- "text-embedding-ada-002",
18
+ "gpt-4o",
19
+ "gpt-4o-mini",
36
20
  "luminous-extended-control",
37
- "luminous-embedding-128",
38
21
  "claude-v1-100k",
39
22
  "claude-instant-v1",
23
+ "claude-3-opus-20240229",
24
+ "claude-3-haiku-20240307",
25
+ "claude-3-sonnet-20240229",
40
26
  "text-bison@001",
27
+ "custom-model",
28
+ "gemini-1.0-pro",
29
+ ...exports.embeddingModels,
30
+ ];
31
+ exports.generativeAIProviders = [
32
+ "azureOpenAI",
33
+ "openAI",
34
+ "alephAlpha",
35
+ "anthropic",
36
+ "googleVertexAI",
37
+ "googleGemini",
38
+ "awsBedrock", // Bedrock models https://aws.amazon.com/bedrock/
41
39
  ];
42
- /*************
43
- * PROVIDERS
44
- *************/
45
- /**
46
- * @openapi
47
- *
48
- * components:
49
- * schemas:
50
- * TGenerativeAIProviders:
51
- * type: string
52
- * enum:
53
- * - azureOpenAI
54
- * - openAI
55
- * - anthropic
56
- * - googleVertexAI
57
- * - alephAlpha
58
- */
59
- exports.generativeAIProviders = ["azureOpenAI", "openAI", "alephAlpha", "anthropic", "googleVertexAI"];
60
- /***********************
61
- * COGNIGY.AI USE CASES
62
- ***********************/
63
40
  /**
64
41
  * WARNING: If you update the generativeAI useCases, please update the generativeAI
65
42
  * mongoose schema too. models/settings/generativeAISettings.ts
66
43
  */
44
+ /*************************************
45
+ * COGNIGY.AI GENERATIVE AI USE CASES
46
+ *************************************/
67
47
  exports.generativeAIUseCases = [
48
+ "nlu",
68
49
  "knowledgeSearch",
69
50
  "gptPromptNode",
70
51
  "gptConversation",
@@ -74,9 +55,21 @@ exports.generativeAIUseCases = [
74
55
  "flowGeneration",
75
56
  "generateNodeOutput",
76
57
  "lexiconGeneration",
58
+ "answerExtraction",
77
59
  ];
78
- /************************
60
+ /***********************************
79
61
  * GENERATIVE AI MODELS MODE TYPES
80
- ************************/
81
- exports.modeType = ["completion", "chat", "embedding"];
62
+ ***********************************/
63
+ /**
64
+ * @openapi
65
+ *
66
+ * components:
67
+ * schemas:
68
+ * TModelGroups:
69
+ * type: string
70
+ * enum:
71
+ * - chat
72
+ * - completion
73
+ */
74
+ exports.modeType = ["chat", "completion", "embedding"];
82
75
  //# sourceMappingURL=IGenerativeAIModels.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
3
+ exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.queueUpdateOptionsSchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.copilotType = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
4
4
  exports.externalHandoverProviders = [
5
5
  "rce",
6
6
  "chatwoot",
@@ -23,6 +23,11 @@ exports.whisperAssistConfigurations = [
23
23
  "basic",
24
24
  "template"
25
25
  ];
26
+ exports.copilotType = [
27
+ "none",
28
+ "workspace",
29
+ "whisper"
30
+ ];
26
31
  exports.handoverSettingsSchema = {
27
32
  title: "handoverSettingsSchema",
28
33
  type: "object",
@@ -87,6 +92,10 @@ exports.handoverSettingsSchema = {
87
92
  type: "object",
88
93
  additionalProperties: false,
89
94
  properties: {
95
+ copilotType: {
96
+ type: "string",
97
+ enum: [...exports.copilotType]
98
+ },
90
99
  agentAssistFlowId: { type: "string" },
91
100
  agentAssistConfigId: { type: "string" },
92
101
  enableTranscriptTile: { type: "boolean" },
@@ -119,7 +128,8 @@ exports.foreignSessionDataSchema = {
119
128
  lastname: { type: "string" },
120
129
  nickname: { type: "string" },
121
130
  integrationId: { type: "string" },
122
- conversationId: { type: "string" }
131
+ conversationId: { type: "string" },
132
+ clientPollTimeout: { type: "number" },
123
133
  }
124
134
  };
125
135
  exports.rceSettingsSchema = {
@@ -194,6 +204,38 @@ exports.eightByEightSettingsSchema = {
194
204
  },
195
205
  }
196
206
  };
207
+ exports.queueUpdateOptionsSchema = {
208
+ "title": "queueUpdateOptionsSchema",
209
+ "type": "object",
210
+ "additionalProperties": false,
211
+ "required": [],
212
+ "properties": {
213
+ "getQueuePosition": {
214
+ "type": "boolean"
215
+ },
216
+ "getEstimatedWaitTime": {
217
+ "type": "boolean"
218
+ },
219
+ "updateIntervalQueuePosition": {
220
+ "type": ["number", "null"]
221
+ },
222
+ "updateIntervalEstimatedWaitTime": {
223
+ "type": ["number", "null"]
224
+ },
225
+ "alternativeUpdate": {
226
+ "type": "boolean"
227
+ },
228
+ "maximumQueuePosition": {
229
+ "type": ["number", "null"]
230
+ },
231
+ "maximumEstimatedWaitTime": {
232
+ "type": ["number", "null"]
233
+ },
234
+ "alternativeText": {
235
+ "type": ["string", "null"]
236
+ }
237
+ }
238
+ };
197
239
  exports.handoverAgentReplySchema = {
198
240
  "required": ["sessionId", "message"],
199
241
  "type": "object",
@@ -25,10 +25,11 @@ exports.licenseStates = [
25
25
  "expiredRenewRequired",
26
26
  "expired" /* The license is expired. The system can no longer be used (ui, api) */
27
27
  ];
28
- exports.licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent"];
28
+ exports.licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent", "knowledge"];
29
29
  exports.licenseCapabilitiesMapping = {
30
30
  ui: "uiLicensed",
31
31
  handover: "handoverLicensed",
32
- liveAgent: 'liveAgentLicensed',
32
+ liveAgent: "liveAgentLicensed",
33
+ knowledge: "knowledgeLicensed",
33
34
  };
34
35
  //# sourceMappingURL=license.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"license.js","sourceRoot":"","sources":["../../../src/shared/interfaces/license.ts"],"names":[],"mappings":";;;AAuBA;;;;;;;;;;;;;;;GAeG;AACU,QAAA,aAAa,GAAU;IACnC,SAAS;IACT,OAAO;IACP,kBAAkB;IAClB,gBAAgB;IAChB,sBAAsB;IACtB,SAAS,CAAC,wEAAwE;CAClF,CAAC;AAaW,QAAA,0BAA0B,GAAU,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;AAGpE,QAAA,0BAA0B,GAA8D;IACpG,EAAE,EAAE,YAAY;IAChB,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,mBAAmB;CAC9B,CAAC"}
1
+ {"version":3,"file":"license.js","sourceRoot":"","sources":["../../../src/shared/interfaces/license.ts"],"names":[],"mappings":";;;AAuBA;;;;;;;;;;;;;;;GAeG;AACU,QAAA,aAAa,GAAU;IACnC,SAAS;IACT,OAAO;IACP,kBAAkB;IAClB,gBAAgB;IAChB,sBAAsB;IACtB,SAAS,CAAC,wEAAwE;CAClF,CAAC;AAcW,QAAA,0BAA0B,GAAU,CAAC,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjF,QAAA,0BAA0B,GAA8D;IACpG,EAAE,EAAE,YAAY;IAChB,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,mBAAmB;IAC9B,SAAS,EAAE,mBAAmB;CAC9B,CAAC"}
@@ -75,6 +75,18 @@ exports.businessHoursMenuSchema = {
75
75
  }
76
76
  }
77
77
  },
78
+ times: {
79
+ type: "array",
80
+ items: {
81
+ type: "object",
82
+ additionalProperties: false,
83
+ properties: {
84
+ startTime: { type: "string" },
85
+ endTime: { type: "string" },
86
+ weekDay: { type: "string" },
87
+ }
88
+ }
89
+ },
78
90
  enabled: { type: "boolean" },
79
91
  mode: { type: "string" },
80
92
  text: { type: "string" },
@@ -130,12 +142,12 @@ const callFailoverSettingsSchema = {
130
142
  dialTranscribeRecognitionChannel: { type: "number" },
131
143
  dialTranscribeRecognitionGoogleModel: { type: 'string' },
132
144
  dialTranscribeLabel: { type: "string" },
133
- dialTranscribeDeepgramTier: { type: 'string' },
134
145
  dialTranscribeDeepgramModel: { type: 'string' },
135
146
  referredBy: { type: "string" },
136
147
  deepgramSmartFormatting: { type: "boolean" },
137
148
  deepgramEndpointing: { type: "boolean" },
138
- deepgramEndpointingValue: { type: "number" }
149
+ deepgramEndpointingValue: { type: "number" },
150
+ dialTranscribeDeepgramTier: { type: "string" }
139
151
  }
140
152
  };
141
153
  exports.callEventSettingsSchema = {
@@ -341,7 +353,9 @@ exports.anyEndpointSettingsSchema = {
341
353
  disableHtmlContentSanitization: { type: "boolean" },
342
354
  disableInputAutocomplete: { type: "boolean" },
343
355
  disableUrlButtonSanitization: { type: "boolean" },
356
+ disableInputSanitization: { type: "boolean" },
344
357
  enableAsyncCommunication: { type: "boolean" },
358
+ enableCollectMetadata: { type: "boolean" },
345
359
  enableGenericHTMLStyling: { type: "boolean" },
346
360
  enableDemoWebchat: { type: "boolean" },
347
361
  enableFileUpload: { type: "boolean" },
@@ -582,6 +596,7 @@ exports.AMAZON_POLLY_LANGUAGE_MAPPING = {
582
596
  { voice: "Polly.Astrid", gender: "female" }
583
597
  ]
584
598
  };
599
+ [];
585
600
  exports.avayaEndpointSettingsSchema = {
586
601
  type: "object",
587
602
  properties: {