@cognigy/rest-api-client 0.18.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 (136) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/apigroups/AdministrationAPIGroup_2_0.js +3 -1
  3. package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
  4. package/build/apigroups/ResourcesAPIGroup_2_0.js +9 -6
  5. package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
  6. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +1 -1
  7. package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +2 -2
  8. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +1 -1
  9. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +1 -1
  10. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +4 -5
  11. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +1 -1
  12. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -0
  13. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +2 -1
  14. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +5 -3
  15. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +5 -3
  16. package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +2 -2
  17. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +2 -1
  18. package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
  19. package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
  20. package/build/shared/charts/descriptors/analytics/completeGoal.js +1 -0
  21. package/build/shared/charts/descriptors/analytics/deactivateProfile.js +1 -0
  22. package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -0
  23. package/build/shared/charts/descriptors/analytics/index.js +3 -1
  24. package/build/shared/charts/descriptors/analytics/mergeProfile.js +1 -0
  25. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +9 -0
  26. package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
  27. package/build/shared/charts/descriptors/analytics/trackMilestone.js +95 -0
  28. package/build/shared/charts/descriptors/analytics/updateProfile.js +1 -0
  29. package/build/shared/charts/descriptors/apps/initAppSession.js +1 -0
  30. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +35 -10
  31. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +25 -2
  32. package/build/shared/charts/descriptors/apps/utils/getXAppsOverlaySettings.js +54 -0
  33. package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/azureAIDocumentIntelligenceConnection.js +12 -0
  34. package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/index.js +13 -0
  35. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockProviderConnection.js +12 -0
  36. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -3
  37. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +3 -3
  38. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +14 -0
  39. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +16 -8
  40. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +3 -3
  41. package/build/shared/charts/descriptors/data/addToContext.js +7 -0
  42. package/build/shared/charts/descriptors/data/copyDataToContext.js +3 -0
  43. package/build/shared/charts/descriptors/data/copySlotsToContext.js +3 -0
  44. package/build/shared/charts/descriptors/data/debugMessage.js +73 -0
  45. package/build/shared/charts/descriptors/data/index.js +3 -1
  46. package/build/shared/charts/descriptors/data/removeFromContext.js +9 -1
  47. package/build/shared/charts/descriptors/data/resetContext.js +1 -0
  48. package/build/shared/charts/descriptors/index.js +7 -1
  49. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +35 -10
  50. package/build/shared/charts/descriptors/logic/resetState.js +1 -0
  51. package/build/shared/charts/descriptors/logic/setState.js +2 -1
  52. package/build/shared/charts/descriptors/logic/setTranslation.js +3 -1
  53. package/build/shared/charts/descriptors/logic/switchLocale.js +1 -0
  54. package/build/shared/charts/descriptors/logic/think.js +3 -1
  55. package/build/shared/charts/descriptors/logic/thinkV2.js +2 -0
  56. package/build/shared/charts/descriptors/message/question/question.js +50 -5
  57. package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
  58. package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
  59. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +23 -1
  60. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +19 -9
  61. package/build/shared/charts/descriptors/service/GPTPrompt.js +59 -24
  62. package/build/shared/charts/descriptors/service/LLMEntityExtract.js +11 -2
  63. package/build/shared/charts/descriptors/service/handoverV2.js +84 -1
  64. package/build/shared/charts/descriptors/service/httpRequest.js +35 -2
  65. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +96 -17
  66. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
  67. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +2 -0
  68. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +2 -0
  69. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -0
  70. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +2 -0
  71. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -0
  72. package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
  73. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +2 -0
  74. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +2 -0
  75. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +3 -0
  76. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -0
  77. package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -0
  78. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -0
  79. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -0
  80. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +298 -8
  81. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +10 -6
  82. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
  83. package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
  84. package/build/shared/constants.js +10 -1
  85. package/build/shared/handoverClients/interfaces/THandoverEventType.js +1 -0
  86. package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
  87. package/build/shared/helper/nlu/textCleaner.js +3 -1
  88. package/build/shared/interfaces/IOrganisation.js +1 -0
  89. package/build/shared/interfaces/IProfile.js +1 -0
  90. package/build/shared/interfaces/IProfileSchema.js +3 -0
  91. package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +20 -20
  92. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyStep_2_0.js → analytics/IMilestoneAnalytics.js} +1 -1
  93. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyProgress_2_0.js → appsession/ISetAppStateOptions.js} +1 -1
  94. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyIndexItem_2_0.js → appsession/ISetAppStateOverlaySettings.js} +1 -1
  95. package/build/shared/interfaces/appsession/ISetAppStateOverlaySettingsMetaData.js +3 -0
  96. package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IIndexJourneysRest_2_0.js → debugEvents/TDebugEventMessagePayload.js} +1 -1
  97. package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -0
  98. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +33 -69
  99. package/build/shared/interfaces/handover.js +42 -1
  100. package/build/shared/interfaces/license.js +3 -2
  101. package/build/shared/interfaces/license.js.map +1 -1
  102. package/build/shared/interfaces/messageAPI/endpoints.js +2 -0
  103. package/build/shared/interfaces/messageAPI/handover.js +20 -1
  104. package/build/shared/interfaces/resources/IConnection.js +1 -0
  105. package/build/shared/interfaces/resources/IEndpoint.js +1 -2
  106. package/build/shared/interfaces/resources/ILargeLanguageModel.js +25 -4
  107. package/build/shared/interfaces/resources/IMilestone.js +1 -1
  108. package/build/shared/interfaces/resources/INodeDescriptorSet.js +12 -0
  109. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  110. package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
  111. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
  112. package/build/shared/interfaces/resources/settings/IKnowledgeAISettings.js +18 -0
  113. package/build/shared/interfaces/resources/settings/index.js +4 -1
  114. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +0 -1
  115. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadOrganisationKnowledgeChunksCountRest_2_0.js +3 -0
  116. package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
  117. package/build/shared/interfaces/restAPI/{resources/journey/v2.0/IJourney_2_0.js → operations/nlu/v2.0/index.js} +1 -1
  118. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IAvailableModelsForLLMProvider_2_0 .js +18 -0
  119. package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IGetAvailableModelsForLLMRest_2_0 .js +3 -0
  120. package/build/shared/interfaces/security/IRole.js +2 -0
  121. package/build/shared/interfaces/security/ISystemCapabilities.js +3 -0
  122. package/build/shared/interfaces/security/index.js +1 -1
  123. package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -2
  124. package/build/shared/interfaces/user.js +1 -1
  125. package/package.json +2 -2
  126. package/types/index.d.ts +1254 -670
  127. package/build/shared/interfaces/journeys/IJourney.js +0 -83
  128. package/build/shared/interfaces/journeys/IJourneyProgress.js +0 -40
  129. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +0 -35
  130. package/build/shared/interfaces/journeys/index.js +0 -14
  131. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.js +0 -3
  132. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.js +0 -3
  133. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyRest_2_0.js +0 -3
  134. package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.js +0 -3
  135. package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.js +0 -3
  136. /package/build/shared/interfaces/restAPI/{resources/journey/v2.0 → operations}/index.js +0 -0
@@ -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=IJourneyStep_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=IJourneyProgress_2_0.js.map
3
+ //# sourceMappingURL=ISetAppStateOptions.js.map
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IJourneyIndexItem_2_0.js.map
3
+ //# sourceMappingURL=ISetAppStateOverlaySettings.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISetAppStateOverlaySettingsMetaData.js.map
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=IIndexJourneysRest_2_0.js.map
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
@@ -1,34 +1,12 @@
1
1
  "use strict";
2
- /**********
3
- * MODELS
4
- **********/
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.modeType = exports.generativeAIUseCases = exports.generativeAIProviders = exports.modelGroups = exports.generativeAIModels = exports.embeddingModels = 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
- * - claude-3-opus-20240229
25
- * - text-bison@001
26
- */
27
- /**
28
- * WARNING: if new models are added for the supported providers make suer we also update the
29
- * 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
30
7
  */
31
8
  exports.embeddingModels = [
9
+ "text-embedding-3-small",
32
10
  "text-embedding-3-large",
33
11
  "text-embedding-ada-002",
34
12
  "luminous-embedding-128",
@@ -37,7 +15,8 @@ exports.generativeAIModels = [
37
15
  "gpt-3.5-turbo",
38
16
  "gpt-3.5-turbo-instruct",
39
17
  "gpt-4",
40
- "text-davinci-003",
18
+ "gpt-4o",
19
+ "gpt-4o-mini",
41
20
  "luminous-extended-control",
42
21
  "claude-v1-100k",
43
22
  "claude-instant-v1",
@@ -46,52 +25,25 @@ exports.generativeAIModels = [
46
25
  "claude-3-sonnet-20240229",
47
26
  "text-bison@001",
48
27
  "custom-model",
28
+ "gemini-1.0-pro",
49
29
  ...exports.embeddingModels,
50
30
  ];
51
- /**
52
- * @openapi
53
- *
54
- * components:
55
- * schemas:
56
- * TModelGroups:
57
- * type: string
58
- * enum:
59
- * - chat
60
- * - completion
61
- */
62
- /**
63
- /**
64
- * this is the model type for the custom models introduced by the user
65
- */
66
- exports.modelGroups = [
67
- "chat",
68
- "completion"
31
+ exports.generativeAIProviders = [
32
+ "azureOpenAI",
33
+ "openAI",
34
+ "alephAlpha",
35
+ "anthropic",
36
+ "googleVertexAI",
37
+ "googleGemini",
38
+ "awsBedrock", // Bedrock models https://aws.amazon.com/bedrock/
69
39
  ];
70
- /*************
71
- * PROVIDERS
72
- *************/
73
- /**
74
- * @openapi
75
- *
76
- * components:
77
- * schemas:
78
- * TGenerativeAIProviders:
79
- * type: string
80
- * enum:
81
- * - azureOpenAI
82
- * - openAI
83
- * - anthropic
84
- * - googleVertexAI
85
- * - alephAlpha
86
- */
87
- exports.generativeAIProviders = ["azureOpenAI", "openAI", "alephAlpha", "anthropic", "googleVertexAI"];
88
- /***********************
89
- * COGNIGY.AI USE CASES
90
- ***********************/
91
40
  /**
92
41
  * WARNING: If you update the generativeAI useCases, please update the generativeAI
93
42
  * mongoose schema too. models/settings/generativeAISettings.ts
94
43
  */
44
+ /*************************************
45
+ * COGNIGY.AI GENERATIVE AI USE CASES
46
+ *************************************/
95
47
  exports.generativeAIUseCases = [
96
48
  "nlu",
97
49
  "knowledgeSearch",
@@ -103,9 +55,21 @@ exports.generativeAIUseCases = [
103
55
  "flowGeneration",
104
56
  "generateNodeOutput",
105
57
  "lexiconGeneration",
58
+ "answerExtraction",
106
59
  ];
107
- /************************
60
+ /***********************************
108
61
  * GENERATIVE AI MODELS MODE TYPES
109
- ************************/
110
- 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"];
111
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" },
@@ -195,6 +204,38 @@ exports.eightByEightSettingsSchema = {
195
204
  },
196
205
  }
197
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
+ };
198
239
  exports.handoverAgentReplySchema = {
199
240
  "required": ["sessionId", "message"],
200
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"}
@@ -353,7 +353,9 @@ exports.anyEndpointSettingsSchema = {
353
353
  disableHtmlContentSanitization: { type: "boolean" },
354
354
  disableInputAutocomplete: { type: "boolean" },
355
355
  disableUrlButtonSanitization: { type: "boolean" },
356
+ disableInputSanitization: { type: "boolean" },
356
357
  enableAsyncCommunication: { type: "boolean" },
358
+ enableCollectMetadata: { type: "boolean" },
357
359
  enableGenericHTMLStyling: { type: "boolean" },
358
360
  enableDemoWebchat: { type: "boolean" },
359
361
  enableFileUpload: { type: "boolean" },
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handleHandoverRpcEventSchema = exports.pollAgentRepliesEventSchema = exports.activateHandoverConversationSchema = exports.sendMessageToProviderSchema = exports.getHandoverRequestDataSchema = exports.createHandoverRequestDataSchema = void 0;
3
+ exports.getQueueUpdateEventsSchema = exports.handleHandoverRpcEventSchema = exports.pollAgentRepliesEventSchema = exports.activateHandoverConversationSchema = exports.sendMessageToProviderSchema = exports.getHandoverRequestDataSchema = exports.createHandoverRequestDataSchema = void 0;
4
4
  const handover_1 = require("../handover");
5
5
  exports.createHandoverRequestDataSchema = {
6
6
  title: "createHandoverRequestDataSchema",
@@ -280,4 +280,23 @@ exports.handleHandoverRpcEventSchema = {
280
280
  disableSensitiveLogging: { type: "boolean" }
281
281
  },
282
282
  };
283
+ exports.getQueueUpdateEventsSchema = {
284
+ title: "getQueueUpdateEventsSchema",
285
+ type: "object",
286
+ additionalProperties: false,
287
+ required: [
288
+ "handoverSettings",
289
+ "foreignSessionData",
290
+ "traceId",
291
+ "disableSensitiveLogging"
292
+ ],
293
+ properties: {
294
+ handoverSettings: handover_1.handoverSettingsSchema,
295
+ foreignSessionData: handover_1.foreignSessionDataSchema,
296
+ queueUpdateOptions: handover_1.queueUpdateOptionsSchema,
297
+ sessionId: { type: "string" },
298
+ traceId: { type: "string" },
299
+ disableSensitiveLogging: { type: "boolean" }
300
+ },
301
+ };
283
302
  //# sourceMappingURL=handover.js.map
@@ -54,6 +54,7 @@ exports.connectionDataSchema = {
54
54
  },
55
55
  extension: { type: "string", format: "package-name" },
56
56
  type: { type: "string", format: "resource-name" },
57
+ isDeprecated: { type: "boolean" }
57
58
  }
58
59
  };
59
60
  exports.connectionSchema = {
@@ -15,7 +15,6 @@ exports.endpointDataSchema = {
15
15
  URLToken: { type: "string", format: "alphanum-64" },
16
16
  active: { type: "boolean" },
17
17
  channel: { type: "string", format: "endpoint-channel" },
18
- chatbaseApikey: { type: "string" },
19
18
  dashbotApikey: { type: "string" },
20
19
  dashbotPlatform: { type: "string" },
21
20
  flowId: {
@@ -47,13 +46,13 @@ exports.endpointDataSchema = {
47
46
  translationSettings: IEndpointTranslationSettings_1.translationSettingsEndpointSchema,
48
47
  foreignId: { type: "string" },
49
48
  useAnalytics: { type: "boolean" },
50
- useChatbaseAnalytics: { type: "boolean" },
51
49
  useContactProfiles: { type: "boolean" },
52
50
  useConversations: { type: "boolean" },
53
51
  storeDataPayload: { type: "boolean" },
54
52
  useDashbotAnalytics: { type: "boolean" },
55
53
  overrideSnapshotConnections: { type: "boolean" },
56
54
  fileStorageSettings: fileStorage_1.fileStorageSettingsSchema,
55
+ disableInputSanitization: { type: "boolean" }
57
56
  },
58
57
  };
59
58
  exports.endpointSchema = {
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.anthropicMetaSchema = void 0;
3
+ exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
4
4
  /* Custom Modules */
5
5
  const createQuerySchema_1 = require("../../helper/createQuerySchema");
6
6
  const IEntityMeta_1 = require("./IEntityMeta");
7
7
  const IGenerativeAIModels_1 = require("../generativeAI/IGenerativeAIModels");
8
+ const IGenerativeAIModels_2 = require("../generativeAI/IGenerativeAIModels");
8
9
  exports.anthropicMetaSchema = {
9
10
  title: "anthropicMetaSchema",
10
11
  type: "object",
@@ -13,6 +14,15 @@ exports.anthropicMetaSchema = {
13
14
  customModel: { type: ["string", "null"] }
14
15
  }
15
16
  };
17
+ exports.awsBedrockMetaSchema = {
18
+ title: "awsBedrockMetaSchema",
19
+ type: "object",
20
+ additionalProperties: false,
21
+ properties: {
22
+ customModel: { type: ["string", "null"] },
23
+ region: { type: "string", format: "resource-name" }
24
+ }
25
+ };
16
26
  exports.alephAlphaMetaSchema = {
17
27
  title: "alephAlphaMetaSchema",
18
28
  type: "object",
@@ -53,6 +63,15 @@ exports.googleVertexAIMetaSchema = {
53
63
  customModel: { type: ["string", "null"] },
54
64
  }
55
65
  };
66
+ exports.googleGeminiMetaSchema = {
67
+ title: "googleGeminiMetaSchema",
68
+ type: "object",
69
+ additionalProperties: false,
70
+ properties: {
71
+ location: { type: "string", format: "resource-name" },
72
+ customModel: { type: ["string", "null"] },
73
+ }
74
+ };
56
75
  exports.largeLanguageModelDataSchema = {
57
76
  title: "largeLanguageModelDataSchema",
58
77
  type: "object",
@@ -66,15 +85,17 @@ exports.largeLanguageModelDataSchema = {
66
85
  description: { type: "string", format: "resource-description" },
67
86
  modelType: { type: "string" } /* wildcard string for the Custom Models */,
68
87
  isCustomModel: { type: "boolean" },
69
- modelGroup: { type: "string", enum: [...IGenerativeAIModels_1.modelGroups] },
70
- provider: { type: "string", enum: [...IGenerativeAIModels_1.generativeAIProviders] },
88
+ modelGroup: { type: "string", enum: [...IGenerativeAIModels_1.modeType] },
89
+ provider: { type: "string", enum: [...IGenerativeAIModels_2.generativeAIProviders] },
71
90
  connectionId: { type: "string", format: "uuid" },
72
91
  isDefault: { type: "boolean" },
73
92
  openAI: exports.openAIMetaSchema,
74
93
  azureOpenAI: exports.azureOpenAIMetaSchema,
75
94
  googleVertexAI: exports.googleVertexAIMetaSchema,
95
+ googleGemini: exports.googleGeminiMetaSchema,
76
96
  alephAlpha: exports.alephAlphaMetaSchema,
77
- anthropic: exports.anthropicMetaSchema
97
+ anthropic: exports.anthropicMetaSchema,
98
+ awsBedrock: exports.awsBedrockMetaSchema
78
99
  }
79
100
  };
80
101
  exports.largeLanguageModelSchema = {
@@ -35,7 +35,7 @@ exports.milestoneDataSchema = {
35
35
  type: "object",
36
36
  additionalProperties: false,
37
37
  properties: {
38
- version: { type: "number" },
38
+ version: { type: "string", format: "uuid" },
39
39
  description: { type: "string" },
40
40
  name: { type: "string", format: "resource-name" },
41
41
  steps: { type: "array", items: exports.milestoneStepSchema },
@@ -114,6 +114,7 @@ exports.nodeFieldTypes = [
114
114
  "knowledgeStoreSelect",
115
115
  "knowledgeSourceTags",
116
116
  "llmSelect",
117
+ "milestoneAndStepsSelect",
117
118
  "lexicon",
118
119
  "localeField",
119
120
  "node",
@@ -269,6 +270,17 @@ exports.nodeFieldSchema = {
269
270
  },
270
271
  params: { type: "object" },
271
272
  optionsResolver: exports.nodeOptionsResolverSchema,
273
+ resetOption: {
274
+ type: "object",
275
+ additionalProperties: false,
276
+ properties: {
277
+ lookupValue: { type: "string" },
278
+ fieldsToReset: {
279
+ type: "array",
280
+ items: { type: "string" },
281
+ },
282
+ },
283
+ },
272
284
  },
273
285
  };
274
286
  exports.nodeSectionSchema = {
@@ -4,7 +4,7 @@ exports.knowledgeSourceSchema = exports.knowledgeSourceDataSchema = exports.know
4
4
  /* Interfaces & Types */
5
5
  const IEntityMeta_1 = require("../IEntityMeta");
6
6
  exports.knowledgeSourceStatus = ["ready", "ingesting", "disabled", "failure"];
7
- exports.knowledgeSourceType = ["pdf", "txt", "docx", "ctxt", "url", "manual"];
7
+ exports.knowledgeSourceType = ["pdf", "txt", "docx", "pptx", "ctxt", "url", "manual", "jpeg", "jpg", "png", "bmp", "heif", "tiff"];
8
8
  exports.knowledgeSourceDataSchema = {
9
9
  title: "knowledgeSourceDataSchema",
10
10
  type: "object",
@@ -1,17 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.agentSettingsSchema = exports.agentSettingsDataSchema = exports.generateAgentSettingsRedisKey = void 0;
3
+ exports.agentSettingsSchema = exports.agentSettingsDataSchema = void 0;
4
4
  const IEntityMeta_1 = require("../IEntityMeta");
5
5
  const ISharedSettings_1 = require("./ISharedSettings");
6
6
  const IGenerativeAISettings_1 = require("./IGenerativeAISettings");
7
7
  const IAudioPreviewSettings_1 = require("./IAudioPreviewSettings");
8
8
  const ITranslationSettings_1 = require("./ITranslationSettings");
9
- const generateAgentSettingsRedisKey = (data) => {
10
- return [
11
- `organisationId:${data.organisationReference}:projectId:${data.projectReference}:agentsettings:v3`
12
- ];
13
- };
14
- exports.generateAgentSettingsRedisKey = generateAgentSettingsRedisKey;
9
+ const IKnowledgeAISettings_1 = require("./IKnowledgeAISettings");
15
10
  exports.agentSettingsDataSchema = {
16
11
  title: "agentSettingsDataSchema",
17
12
  type: "object",
@@ -28,6 +23,16 @@ exports.agentSettingsDataSchema = {
28
23
  type: ["object", "null"],
29
24
  additionalProperties: false,
30
25
  properties: Object.assign({}, IGenerativeAISettings_1.generativeAISettingsDataSchema.properties)
26
+ }, currencySettings: {
27
+ type: ["object", "null"],
28
+ additionalProperties: false,
29
+ properties: {
30
+ currency: { type: "string", format: "currency-code" },
31
+ }
32
+ }, knowledgeAISettings: {
33
+ type: ["object", "null"],
34
+ additionalProperties: false,
35
+ properties: Object.assign({}, IKnowledgeAISettings_1.knowledgeAISettingsDataSchema.properties)
31
36
  } })
32
37
  };
33
38
  exports.agentSettingsSchema = {
@@ -69,6 +69,10 @@ exports.generativeAISettingsDataSchema = {
69
69
  nlu: {
70
70
  type: "object",
71
71
  properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
72
+ },
73
+ answerExtraction: {
74
+ type: "object",
75
+ properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
72
76
  }
73
77
  }
74
78
  }