@cognigy/rest-api-client 2025.25.0 → 2026.2.0-rc1

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 (169) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +15 -0
  3. package/build/apigroups/InsightsAPIGroup_2_1.js +27 -0
  4. package/build/apigroups/ResourcesAPIGroup_2_0.js +140 -375
  5. package/build/apigroups/SimulationAPIGroup_2_0.js +33 -18
  6. package/build/apigroups/aiAgentsV2/agent.js +3 -0
  7. package/build/apigroups/aiAgentsV2/agentAPI.js +38 -0
  8. package/build/apigroups/aiAgentsV2/agentPersona.js +3 -0
  9. package/build/apigroups/aiAgentsV2/agentPersonaAPI.js +38 -0
  10. package/build/apigroups/aiAgentsV2/tool.js +3 -0
  11. package/build/apigroups/aiAgentsV2/toolAPI.js +35 -0
  12. package/build/apigroups/aiAgentsV2/toolDescriptor.js +3 -0
  13. package/build/apigroups/aiAgentsV2/toolDescriptorAPI.js +13 -0
  14. package/build/apigroups/index.js +3 -1
  15. package/build/authentication/AuthenticationAPI.js +1 -0
  16. package/build/shared/charts/createNodeDescriptor.js +1 -0
  17. package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
  18. package/build/shared/charts/descriptors/analytics/updateProfile.js +5 -0
  19. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
  20. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
  21. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +15 -0
  22. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +13 -0
  23. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +63 -10
  24. package/build/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +52 -0
  25. package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +8 -7
  26. package/build/shared/charts/descriptors/index.js +6 -0
  27. package/build/shared/charts/descriptors/message/question/question.js +254 -59
  28. package/build/shared/charts/descriptors/message/say.js +3 -0
  29. package/build/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +239 -0
  30. package/build/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +783 -0
  31. package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
  32. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +25 -20
  33. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +10 -6
  34. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +57 -1
  35. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +10 -1
  36. package/build/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +26 -0
  37. package/build/shared/charts/descriptors/service/aiAgentV2.js +89 -0
  38. package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
  39. package/build/shared/charts/descriptors/service/httpRequest.js +3 -0
  40. package/build/shared/charts/descriptors/service/index.js +9 -1
  41. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +26 -17
  42. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +57 -1
  43. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +75 -15
  44. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +27 -5
  45. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +67 -2
  46. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
  47. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +149 -4
  48. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +137 -4
  49. package/build/shared/errors/ErrorCode.js +2 -1
  50. package/build/shared/errors/ErrorCollection.js +1 -0
  51. package/build/shared/helper/BaseContext.js +1 -1
  52. package/build/shared/interfaces/amqpInterface.js +1 -0
  53. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  54. package/build/shared/interfaces/handover.js +1 -0
  55. package/build/shared/interfaces/handoverProviders.js +0 -1
  56. package/build/shared/interfaces/messageAPI/endpoints.js +4 -1
  57. package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
  58. package/build/shared/interfaces/resources/IChart.js +10 -1
  59. package/build/shared/interfaces/resources/IChartNode.js +32 -4
  60. package/build/shared/interfaces/resources/IEndpoint.js +1 -0
  61. package/build/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
  62. package/build/shared/interfaces/resources/TResourceType.js +1 -0
  63. package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
  64. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +49 -0
  65. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  66. package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
  67. package/build/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +3 -0
  68. package/build/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +3 -0
  69. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +3 -0
  70. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +3 -0
  71. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +3 -0
  72. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +3 -0
  73. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +3 -0
  74. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +3 -0
  75. package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +3 -0
  76. package/build/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +3 -0
  77. package/build/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +3 -0
  78. package/build/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +12 -0
  79. package/build/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +3 -0
  80. package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +3 -0
  81. package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +3 -0
  82. package/build/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +3 -0
  83. package/build/shared/interfaces/security/ISessionScope.js +3 -0
  84. package/build/spec/aiAgentV2.spec.js +564 -0
  85. package/dist/esm/apigroups/InsightsAPIGroup_2_1.js +13 -0
  86. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +140 -375
  87. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +33 -18
  88. package/dist/esm/apigroups/aiAgentsV2/agent.js +2 -0
  89. package/dist/esm/apigroups/aiAgentsV2/agentAPI.js +24 -0
  90. package/dist/esm/apigroups/aiAgentsV2/agentPersona.js +2 -0
  91. package/dist/esm/apigroups/aiAgentsV2/agentPersonaAPI.js +24 -0
  92. package/dist/esm/apigroups/aiAgentsV2/aiAgentV2API.js +2 -0
  93. package/dist/esm/apigroups/aiAgentsV2/tool.js +2 -0
  94. package/dist/esm/apigroups/aiAgentsV2/toolAPI.js +21 -0
  95. package/dist/esm/apigroups/aiAgentsV2/toolDescriptor.js +2 -0
  96. package/dist/esm/apigroups/aiAgentsV2/toolDescriptorAPI.js +9 -0
  97. package/dist/esm/apigroups/index.js +1 -0
  98. package/dist/esm/authentication/AuthenticationAPI.js +1 -0
  99. package/dist/esm/shared/charts/createNodeDescriptor.js +1 -0
  100. package/dist/esm/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
  101. package/dist/esm/shared/charts/descriptors/analytics/updateProfile.js +5 -0
  102. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
  103. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/index.js +5 -1
  104. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2ClientCredentialsConnection.js +12 -0
  105. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/oAuth2JwtBearerConnection.js +10 -0
  106. package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +63 -10
  107. package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/elevenlabsSpeechProviderConnection.js +49 -0
  108. package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +3 -3
  109. package/dist/esm/shared/charts/descriptors/index.js +7 -1
  110. package/dist/esm/shared/charts/descriptors/message/question/question.js +254 -59
  111. package/dist/esm/shared/charts/descriptors/message/say.js +3 -0
  112. package/dist/esm/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +237 -0
  113. package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +770 -0
  114. package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +33 -4
  115. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +25 -20
  116. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +10 -6
  117. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +56 -0
  118. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +10 -1
  119. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +25 -0
  120. package/dist/esm/shared/charts/descriptors/service/aiAgentV2.js +87 -0
  121. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
  122. package/dist/esm/shared/charts/descriptors/service/httpRequest.js +3 -0
  123. package/dist/esm/shared/charts/descriptors/service/index.js +4 -0
  124. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +33 -24
  125. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +56 -0
  126. package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +75 -15
  127. package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +27 -5
  128. package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +67 -2
  129. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +7 -0
  130. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +149 -4
  131. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +137 -4
  132. package/dist/esm/shared/errors/ErrorCode.js +2 -1
  133. package/dist/esm/shared/errors/ErrorCollection.js +1 -0
  134. package/dist/esm/shared/helper/BaseContext.js +1 -1
  135. package/dist/esm/shared/interfaces/amqpInterface.js +1 -0
  136. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  137. package/dist/esm/shared/interfaces/handover.js +1 -0
  138. package/dist/esm/shared/interfaces/handoverProviders.js +0 -1
  139. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +4 -1
  140. package/dist/esm/shared/interfaces/resources/IAuditEvent.js +1 -0
  141. package/dist/esm/shared/interfaces/resources/IChart.js +10 -1
  142. package/dist/esm/shared/interfaces/resources/IChartNode.js +32 -4
  143. package/dist/esm/shared/interfaces/resources/IEndpoint.js +1 -0
  144. package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
  145. package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
  146. package/dist/esm/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
  147. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +46 -0
  148. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
  149. package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +7 -1
  150. package/dist/esm/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +2 -0
  151. package/dist/esm/shared/interfaces/restAPI/analytics/IDeleteConversationsBySessionRest_2_1.js +2 -0
  152. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +2 -0
  153. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +2 -0
  154. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +2 -0
  155. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +2 -0
  156. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +2 -0
  157. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IRunKnowledgeConnectorRest_2_0.js +2 -0
  158. package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +2 -0
  159. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +2 -0
  160. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +2 -0
  161. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +9 -0
  162. package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +2 -0
  163. package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSimulationOverviewMetricsRestData_2_0.js +2 -0
  164. package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetSuccessRateTrendRestData_2_0.js +2 -0
  165. package/dist/esm/shared/interfaces/restAPI/simulation/simulationOverview/IGetUpcomingScheduledRunsRestData_2_0.js +2 -0
  166. package/dist/esm/shared/interfaces/security/ISessionScope.js +2 -0
  167. package/dist/esm/spec/aiAgentV2.spec.js +563 -0
  168. package/package.json +6 -3
  169. package/types/index.d.ts +1198 -44
@@ -79,6 +79,132 @@ export const voiceConfigFields = [
79
79
  value: "deepgram"
80
80
  }
81
81
  },
82
+ {
83
+ key: "deepgramfluxEndpointing",
84
+ type: "toggle",
85
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__LABEL",
86
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__DESCRIPTION",
87
+ defaultValue: true,
88
+ condition: {
89
+ key: "sttVendor",
90
+ value: "deepgramflux"
91
+ }
92
+ },
93
+ {
94
+ key: "deepgramfluxEndOfTurnThreshold",
95
+ type: "slider",
96
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__LABEL",
97
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__DESCRIPTION",
98
+ defaultValue: 0.7,
99
+ params: {
100
+ min: 0.5,
101
+ max: 0.9,
102
+ step: 0.1
103
+ },
104
+ condition: {
105
+ and: [
106
+ {
107
+ key: "sttVendor",
108
+ value: "deepgramflux"
109
+ },
110
+ {
111
+ key: "deepgramfluxEndpointing",
112
+ value: true
113
+ },
114
+ ]
115
+ }
116
+ },
117
+ {
118
+ key: "deepgramfluxEndOfTurnTimeoutMs",
119
+ type: "number",
120
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__LABEL",
121
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__DESCRIPTION",
122
+ defaultValue: 5000,
123
+ params: {
124
+ min: 500,
125
+ max: 10000
126
+ },
127
+ condition: {
128
+ and: [
129
+ {
130
+ key: "sttVendor",
131
+ value: "deepgramflux"
132
+ },
133
+ {
134
+ key: "deepgramfluxEndpointing",
135
+ value: true
136
+ },
137
+ ]
138
+ }
139
+ },
140
+ {
141
+ key: "speechmaticsEndpointing",
142
+ type: "toggle",
143
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__LABEL",
144
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__DESCRIPTION",
145
+ defaultValue: true,
146
+ condition: {
147
+ key: "sttVendor",
148
+ value: "speechmatics"
149
+ }
150
+ },
151
+ {
152
+ key: "speechmaticsEndpointingValue",
153
+ type: "number",
154
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__LABEL",
155
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__DESCRIPTION",
156
+ defaultValue: 500,
157
+ params: {
158
+ min: 10,
159
+ max: 5000
160
+ },
161
+ condition: {
162
+ and: [
163
+ {
164
+ key: "sttVendor",
165
+ value: "speechmatics"
166
+ },
167
+ {
168
+ key: "speechmaticsEndpointing",
169
+ value: true
170
+ },
171
+ ]
172
+ }
173
+ },
174
+ {
175
+ key: "openaiEndpointing",
176
+ type: "toggle",
177
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__LABEL",
178
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__DESCRIPTION",
179
+ defaultValue: true,
180
+ condition: {
181
+ key: "sttVendor",
182
+ value: "openai"
183
+ }
184
+ },
185
+ {
186
+ key: "openaiEndpointingValue",
187
+ type: "number",
188
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__LABEL",
189
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__DESCRIPTION",
190
+ defaultValue: 500,
191
+ params: {
192
+ min: 10,
193
+ max: 1000
194
+ },
195
+ condition: {
196
+ and: [
197
+ {
198
+ key: "sttVendor",
199
+ value: "openai"
200
+ },
201
+ {
202
+ key: "openaiEndpointing",
203
+ value: true
204
+ },
205
+ ]
206
+ }
207
+ },
82
208
  {
83
209
  key: "sttHints",
84
210
  type: "textArray",
@@ -107,6 +233,10 @@ export const voiceConfigFields = [
107
233
  key: "sttVendor",
108
234
  value: "deepgram"
109
235
  },
236
+ {
237
+ key: "sttVendor",
238
+ value: "deepgramflux"
239
+ },
110
240
  ]
111
241
  }
112
242
  },
@@ -246,7 +376,7 @@ export const voiceConfigFields = [
246
376
  defaultValue: "",
247
377
  params: {
248
378
  languageKey: "config.sttLanguage",
249
- modelKey: "config.sttDeepgramModel",
379
+ modelKey: "config.sttModel",
250
380
  }
251
381
  },
252
382
  {
@@ -257,14 +387,22 @@ export const voiceConfigFields = [
257
387
  defaultValue: "",
258
388
  },
259
389
  {
260
- key: "sttDeepgramModel",
390
+ key: "sttModel",
261
391
  type: "sttSelect",
262
392
  label: "_unused_",
263
393
  description: "_unused_",
264
394
  defaultValue: "",
265
395
  condition: {
266
- key: "sttVendor",
267
- value: "deepgram"
396
+ and: [
397
+ {
398
+ key: "sttVendor",
399
+ value: "deepgram"
400
+ },
401
+ {
402
+ key: "sttVendor",
403
+ value: "openai"
404
+ }
405
+ ]
268
406
  }
269
407
  },
270
408
  {
@@ -972,6 +1110,13 @@ export const setSessionConfigNode = createNodeDescriptor({
972
1110
  "deepgramEndpointing",
973
1111
  "deepgramEndpointingValue",
974
1112
  "deepgramSmartFormatting",
1113
+ "deepgramfluxEndpointing",
1114
+ "deepgramfluxEndOfTurnThreshold",
1115
+ "deepgramfluxEndOfTurnTimeoutMs",
1116
+ "speechmaticsEndpointing",
1117
+ "speechmaticsEndpointingValue",
1118
+ "openaiEndpointing",
1119
+ "openaiEndpointingValue",
975
1120
  "sttHints",
976
1121
  "sttHintsDynamicHints",
977
1122
  "googleModel",
@@ -313,7 +313,7 @@ export const transferNode = createNodeDescriptor({
313
313
  defaultValue: "",
314
314
  params: {
315
315
  languageKey: "config.sttLanguage",
316
- modelKey: "config.sttDeepgramModel"
316
+ modelKey: "config.sttModel"
317
317
  },
318
318
  condition: {
319
319
  key: "transferType",
@@ -321,7 +321,7 @@ export const transferNode = createNodeDescriptor({
321
321
  }
322
322
  },
323
323
  {
324
- key: "sttDeepgramModel",
324
+ key: "sttModel",
325
325
  type: "sttSelect",
326
326
  label: "_unused_",
327
327
  description: "_unused_",
@@ -402,6 +402,132 @@ export const transferNode = createNodeDescriptor({
402
402
  value: "deepgram"
403
403
  }
404
404
  },
405
+ {
406
+ key: "deepgramfluxEndpointing",
407
+ type: "toggle",
408
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__LABEL",
409
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__DESCRIPTION",
410
+ defaultValue: false,
411
+ condition: {
412
+ key: "sttVendor",
413
+ value: "deepgramflux"
414
+ }
415
+ },
416
+ {
417
+ key: "deepgramfluxEndOfTurnThreshold",
418
+ type: "slider",
419
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__LABEL",
420
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__DESCRIPTION",
421
+ defaultValue: 0.7,
422
+ params: {
423
+ min: 0.5,
424
+ max: 0.9,
425
+ step: 0.1
426
+ },
427
+ condition: {
428
+ and: [
429
+ {
430
+ key: "sttVendor",
431
+ value: "deepgramflux"
432
+ },
433
+ {
434
+ key: "deepgramfluxEndpointing",
435
+ value: true
436
+ },
437
+ ]
438
+ }
439
+ },
440
+ {
441
+ key: "deepgramfluxEndOfTurnTimeoutMs",
442
+ type: "number",
443
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__LABEL",
444
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__DESCRIPTION",
445
+ defaultValue: 5000,
446
+ params: {
447
+ min: 500,
448
+ max: 10000
449
+ },
450
+ condition: {
451
+ and: [
452
+ {
453
+ key: "sttVendor",
454
+ value: "deepgramflux"
455
+ },
456
+ {
457
+ key: "deepgramfluxEndpointing",
458
+ value: true
459
+ },
460
+ ]
461
+ }
462
+ },
463
+ {
464
+ key: "speechmaticsEndpointing",
465
+ type: "toggle",
466
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__LABEL",
467
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__DESCRIPTION",
468
+ defaultValue: true,
469
+ condition: {
470
+ key: "sttVendor",
471
+ value: "speechmatics"
472
+ }
473
+ },
474
+ {
475
+ key: "speechmaticsEndpointingValue",
476
+ type: "number",
477
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__LABEL",
478
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__DESCRIPTION",
479
+ defaultValue: 500,
480
+ params: {
481
+ min: 10,
482
+ max: 5000
483
+ },
484
+ condition: {
485
+ and: [
486
+ {
487
+ key: "sttVendor",
488
+ value: "speechmatics"
489
+ },
490
+ {
491
+ key: "speechmaticsEndpointing",
492
+ value: true
493
+ },
494
+ ]
495
+ }
496
+ },
497
+ {
498
+ key: "openaiEndpointing",
499
+ type: "toggle",
500
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__LABEL",
501
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__DESCRIPTION",
502
+ defaultValue: true,
503
+ condition: {
504
+ key: "sttVendor",
505
+ value: "openai"
506
+ }
507
+ },
508
+ {
509
+ key: "openaiEndpointingValue",
510
+ type: "number",
511
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__LABEL",
512
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__DESCRIPTION",
513
+ defaultValue: 500,
514
+ params: {
515
+ min: 10,
516
+ max: 1000
517
+ },
518
+ condition: {
519
+ and: [
520
+ {
521
+ key: "sttVendor",
522
+ value: "openai"
523
+ },
524
+ {
525
+ key: "openaiEndpointing",
526
+ value: true
527
+ },
528
+ ]
529
+ }
530
+ },
405
531
  {
406
532
  key: "googleModel",
407
533
  type: "select",
@@ -462,6 +588,13 @@ export const transferNode = createNodeDescriptor({
462
588
  "deepgramEndpointing",
463
589
  "deepgramEndpointingValue",
464
590
  "deepgramSmartFormatting",
591
+ "deepgramfluxEndpointing",
592
+ "deepgramfluxEndOfTurnThreshold",
593
+ "deepgramfluxEndOfTurnTimeoutMs",
594
+ "speechmaticsEndpointing",
595
+ "speechmaticsEndpointingValue",
596
+ "openaiEndpointing",
597
+ "openaiEndpointingValue",
465
598
  "googleModel",
466
599
  "dialTranscriptionWebhook",
467
600
  "recognitionChannel"
@@ -551,7 +684,7 @@ export const transferNode = createNodeDescriptor({
551
684
  summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
552
685
  function: ({ cognigy, config, }) => __awaiter(void 0, void 0, void 0, function* () {
553
686
  const { api, input } = cognigy;
554
- const { transferType, transferTarget, referredBy, mediaPath, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, enableTimeLimit, timeLimit, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttDeepgramModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue, anchorMedia } = config;
687
+ const { transferType, transferTarget, referredBy, mediaPath, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, enableTimeLimit, timeLimit, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, deepgramfluxEndpointing, deepgramfluxEndOfTurnThreshold, deepgramfluxEndOfTurnTimeoutMs, speechmaticsEndpointing, speechmaticsEndpointingValue, openaiEndpointing, openaiEndpointingValue, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue, anchorMedia } = config;
555
688
  const transferParams = {
556
689
  transferType,
557
690
  transferReason,
@@ -625,7 +758,7 @@ export const transferNode = createNodeDescriptor({
625
758
  transferParams.useTransferSipHeaders = false;
626
759
  api.log("error", "Invalid JSON in Transfer SIP Headers");
627
760
  }
628
- const payload = transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttDeepgramModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, media, anchorMedia);
761
+ const payload = transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, deepgramfluxEndpointing, deepgramfluxEndOfTurnThreshold, deepgramfluxEndOfTurnTimeoutMs, speechmaticsEndpointing, speechmaticsEndpointingValue, openaiEndpointing, openaiEndpointingValue, media, anchorMedia);
629
762
  yield api.say(null, {
630
763
  _cognigy: payload,
631
764
  });
@@ -3,9 +3,10 @@ export var ErrorCode;
3
3
  ErrorCode[ErrorCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
4
4
  ErrorCode[ErrorCode["UNAUTHORIZED_ERROR"] = 401] = "UNAUTHORIZED_ERROR";
5
5
  ErrorCode[ErrorCode["PAYMENT_REQUIRED_ERROR"] = 402] = "PAYMENT_REQUIRED_ERROR";
6
+ ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
7
+ ErrorCode[ErrorCode["NOT_FOUND"] = 404] = "NOT_FOUND";
6
8
  ErrorCode[ErrorCode["PAYLOAD_TOO_LARGE_ERROR"] = 413] = "PAYLOAD_TOO_LARGE_ERROR";
7
9
  ErrorCode[ErrorCode["TOO_MANY_REQUESTS_ERROR"] = 429] = "TOO_MANY_REQUESTS_ERROR";
8
- ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
9
10
  ErrorCode[ErrorCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
10
11
  ErrorCode[ErrorCode["SERVICE_UNAVAILABLE_ERROR"] = 503] = "SERVICE_UNAVAILABLE_ERROR";
11
12
  ErrorCode[ErrorCode["GATEWAY_TIMEOUT_ERROR"] = 504] = "GATEWAY_TIMEOUT_ERROR";
@@ -48,6 +48,7 @@ export const ErrorCollection = {
48
48
  [ErrorCode.METHOD_NOT_ALLOWED_ERROR]: MethodNotAllowedError,
49
49
  [ErrorCode.MISSING_ARGUMENT_ERROR]: MissingArgumentError,
50
50
  [ErrorCode.NETWORK_ERROR]: NetworkError,
51
+ [ErrorCode.NOT_FOUND]: ResourceNotFoundError,
51
52
  [ErrorCode.NOT_IMPLEMENTED_ERROR]: NotImplementedError,
52
53
  [ErrorCode.PAYLOAD_TOO_LARGE_ERROR]: PayloadTooLargeError,
53
54
  [ErrorCode.PROCESS_ERROR]: ProcessError,
@@ -48,7 +48,7 @@ export class BaseContext {
48
48
  const validObjectSize = validateObjectSize(merged, (process.env.MAX_MEMORY_OBJECT_SIZE && parseInt(process.env.MAX_MEMORY_OBJECT_SIZE)) || 64000);
49
49
  if (validObjectSize.valid === false) {
50
50
  const errorMessage = `Cannot add value to context for key ${prop.toString()}: exceeded maximum context size.`;
51
- logger.log('error', { traceId: `proxy-${this.traceId}` }, errorMessage, {
51
+ logger.log('error', { traceId: this.traceId }, errorMessage, {
52
52
  organisationId: this.organisationId,
53
53
  projectId: this.projectId
54
54
  });
@@ -21,6 +21,7 @@ export const referenceKeys = [
21
21
  "resourceReference",
22
22
  "snapshotReference",
23
23
  "subResourceReference",
24
+ "connectorReference",
24
25
  "storeReference",
25
26
  "sourceReference",
26
27
  ];
@@ -9,6 +9,7 @@ export const embeddingModels = [
9
9
  "luminous-embedding-128",
10
10
  "amazon.titan-embed-text-v2:0",
11
11
  "Pharia-1-Embedding-4608",
12
+ "gemini-embedding-001",
12
13
  ];
13
14
  export const generativeAIModels = [
14
15
  "gpt-3.5-turbo",
@@ -119,6 +119,7 @@ export const handoverSettingsSchema = {
119
119
  redactTranscriptTileMessages: { type: "boolean" },
120
120
  enableAgentCopilotAuthentication: { type: "boolean" },
121
121
  agentCopilotAuthentication: { type: "string" },
122
+ blockNonJWTRequests: { type: "boolean" },
122
123
  oAuth2Connection: { type: "string" },
123
124
  }
124
125
  }
@@ -16,5 +16,4 @@ export const handoverServices = [
16
16
  ...internalHandoverServices,
17
17
  ...externalHandoverServices
18
18
  ];
19
- ;
20
19
  //# sourceMappingURL=handoverProviders.js.map
@@ -152,6 +152,9 @@ const callFailoverSettingsSchema = {
152
152
  deepgramEndpointing: { type: "boolean" },
153
153
  deepgramEndpointingValue: { type: "number" },
154
154
  dialTranscribeDeepgramTier: { type: "string" },
155
+ deepgramfluxEndpointing: { type: "boolean" },
156
+ deepgramfluxEndOfTurnThreshold: { type: "number" },
157
+ deepgramfluxEndOfTurnTimeoutMs: { type: "number" },
155
158
  mediaPath: { type: "string", enum: [...mediaPathTypes] },
156
159
  anchorMedia: { type: "boolean" }
157
160
  }
@@ -715,7 +718,7 @@ export const anyEndpointSettingsSchema = {
715
718
  title: "anyEndpointSettingsSchema",
716
719
  type: "object",
717
720
  additionalProperties: true,
718
- properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
721
+ properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enableMocking: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
719
722
  type: "string",
720
723
  enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
721
724
  }, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
@@ -115,6 +115,7 @@ export const actionTypes = [
115
115
  "loginError",
116
116
  "unauthorized",
117
117
  "disableCreditCardRedaction",
118
+ "runKnowledgeConnector"
118
119
  ];
119
120
  export const auditEventSchema = {
120
121
  title: "auditEventSchema",
@@ -13,7 +13,16 @@ export const chartNodeExcerptSchema = {
13
13
  analyticsLabel: { type: ["null", "string"], format: "analytics-label" },
14
14
  type: { type: "string", maxLength: 200 },
15
15
  extension: { type: "string", format: "package-name" },
16
- localeReference: { type: "string", format: "mongo-id" }
16
+ localeReference: { type: "string", format: "mongo-id" },
17
+ mock: {
18
+ type: "object",
19
+ properties: {
20
+ isEnabled: { type: "boolean" },
21
+ code: { type: "string" },
22
+ transpiled: { type: "string" },
23
+ hasError: { type: "boolean" }
24
+ }
25
+ }
17
26
  },
18
27
  };
19
28
  export const chartNodeRelationDataSchema = {
@@ -13,7 +13,8 @@ export const defaultNodeFields = [
13
13
  "isDisabled",
14
14
  "isEntryPoint",
15
15
  "preview",
16
- "analyticsLabel"
16
+ "analyticsLabel",
17
+ "mock"
17
18
  ];
18
19
  export const searchableNodeFields = [
19
20
  "comment",
@@ -60,7 +61,16 @@ export const nodeInDBSchema = {
60
61
  resourceReference: { format: "mongo-id" },
61
62
  projectReference: { format: "mongo-id" },
62
63
  organisationReference: { format: "mongo-id" },
63
- analyticsLabel: { format: "analytics-label" }
64
+ analyticsLabel: { format: "analytics-label" },
65
+ mock: {
66
+ type: "object",
67
+ properties: {
68
+ isEnabled: { type: "boolean" },
69
+ code: { type: "string" },
70
+ transpiled: { type: "string" },
71
+ hasError: { type: "boolean" }
72
+ }
73
+ },
64
74
  }
65
75
  };
66
76
  export const nodeDataSchema = {
@@ -97,7 +107,16 @@ export const nodeDataSchema = {
97
107
  }
98
108
  }
99
109
  }
100
- }
110
+ },
111
+ mock: {
112
+ type: "object",
113
+ properties: {
114
+ isEnabled: { type: "boolean" },
115
+ code: { type: "string" },
116
+ transpiled: { type: "string" },
117
+ hasError: { type: "boolean" }
118
+ }
119
+ },
101
120
  }
102
121
  };
103
122
  export const updateNodeDataSchema = {
@@ -120,7 +139,16 @@ export const updateNodeDataSchema = {
120
139
  config: {
121
140
  type: "object",
122
141
  additionalProperties: { propertyNames: { type: "string" } }
123
- }
142
+ },
143
+ mock: {
144
+ type: "object",
145
+ properties: {
146
+ isEnabled: { type: "boolean" },
147
+ code: { type: "string" },
148
+ transpiled: { type: "string" },
149
+ hasError: { type: "boolean" }
150
+ }
151
+ },
124
152
  }
125
153
  };
126
154
  export const nodeSchema = {
@@ -71,6 +71,7 @@ export const endpointDataSchema = {
71
71
  active: { type: "boolean" },
72
72
  },
73
73
  },
74
+ enableMocking: { type: "boolean" },
74
75
  },
75
76
  };
76
77
  export const endpointSchema = {
@@ -98,6 +98,7 @@ export const nodeFieldTypes = [
98
98
  "checkAgentAvailabilityConfig",
99
99
  "chipInput",
100
100
  "code",
101
+ "mockCode",
101
102
  "cognigyLLMText",
102
103
  "cognigyText",
103
104
  "cognigyTextArray",
@@ -442,6 +443,13 @@ export const nodeDescriptorSchema = {
442
443
  additionalItems: false,
443
444
  maxLength: 25,
444
445
  items: nodeFieldAndSectionFormElementSchema
446
+ },
447
+ mocking: {
448
+ type: "object",
449
+ additionalProperties: false,
450
+ properties: {
451
+ defaultMockCode: { type: "string" }
452
+ }
445
453
  }
446
454
  }
447
455
  };
@@ -69,6 +69,7 @@ export const arrayTResourceType = [
69
69
  "knowledgeStore",
70
70
  "knowledgeSource",
71
71
  "knowledgeChunk",
72
+ "knowledgeConnector",
72
73
  "lexicon",
73
74
  "lexiconEntry",
74
75
  "lexiconKeyphrase",
@@ -48,7 +48,16 @@ export const chartExecutableNodeSchema = {
48
48
  type: { type: "string", minLength: 1 },
49
49
  label: nodeDataSchema.properties.label,
50
50
  extension: { type: "string" },
51
- analyticsLabel: { type: ["string", "null"], format: "analytics-label" }
51
+ analyticsLabel: { type: ["string", "null"], format: "analytics-label" },
52
+ mock: {
53
+ type: "object",
54
+ properties: {
55
+ isEnabled: { type: "boolean" },
56
+ code: { type: "string" },
57
+ transpiled: { type: "string" },
58
+ hasError: { type: "boolean" },
59
+ }
60
+ }
52
61
  },
53
62
  };
54
63
  //# sourceMappingURL=IChartExecutableNode.js.map
@@ -0,0 +1,46 @@
1
+ import { entityMetaSchema } from "../IEntityMeta";
2
+ export const knowledgeConnectorExecutionStatus = ["none", "queued", "active", "done", "error"];
3
+ export const knowledgeConnectorDataSchema = {
4
+ title: "knowledgeConnectorDataSchema",
5
+ type: "object",
6
+ additionalProperties: false,
7
+ required: ["extension", "type", "config", "name", "version"],
8
+ properties: {
9
+ extension: { type: "string" },
10
+ type: { type: "string" },
11
+ version: { type: "string" },
12
+ config: {
13
+ type: "object",
14
+ additionalProperties: true
15
+ },
16
+ name: { type: "string", format: "resource-name" },
17
+ schedule: {
18
+ type: "object",
19
+ additionalProperties: false,
20
+ properties: {
21
+ enabled: { type: "boolean" },
22
+ start: { type: "integer", format: "timestamp" },
23
+ hour: { type: "integer", minimum: 0, maximum: 23 },
24
+ minute: { type: "integer", minimum: 0, maximum: 59 },
25
+ weekDays: { type: "array", items: { type: "integer", minimum: 0, maximum: 6 } }
26
+ }
27
+ }
28
+ }
29
+ };
30
+ export const knowledgeConnectorSchema = {
31
+ title: "knowledgeConnectorDataSchema",
32
+ type: "object",
33
+ additionalProperties: false,
34
+ required: [
35
+ "extension",
36
+ "type",
37
+ "config",
38
+ "name",
39
+ "version"
40
+ ],
41
+ properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), knowledgeConnectorDataSchema.properties), { referenceId: { type: "string" }, storeReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" }, lastExecution: { type: "integer", format: "timestamp" }, lastExecutionStatus: {
42
+ type: "string",
43
+ enum: [...knowledgeConnectorExecutionStatus]
44
+ } })
45
+ };
46
+ //# sourceMappingURL=IKnowledgeConnector.js.map