@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
@@ -81,6 +81,132 @@ exports.voiceConfigFields = [
81
81
  value: "deepgram"
82
82
  }
83
83
  },
84
+ {
85
+ key: "deepgramfluxEndpointing",
86
+ type: "toggle",
87
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__LABEL",
88
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__DESCRIPTION",
89
+ defaultValue: true,
90
+ condition: {
91
+ key: "sttVendor",
92
+ value: "deepgramflux"
93
+ }
94
+ },
95
+ {
96
+ key: "deepgramfluxEndOfTurnThreshold",
97
+ type: "slider",
98
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__LABEL",
99
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__DESCRIPTION",
100
+ defaultValue: 0.7,
101
+ params: {
102
+ min: 0.5,
103
+ max: 0.9,
104
+ step: 0.1
105
+ },
106
+ condition: {
107
+ and: [
108
+ {
109
+ key: "sttVendor",
110
+ value: "deepgramflux"
111
+ },
112
+ {
113
+ key: "deepgramfluxEndpointing",
114
+ value: true
115
+ },
116
+ ]
117
+ }
118
+ },
119
+ {
120
+ key: "deepgramfluxEndOfTurnTimeoutMs",
121
+ type: "number",
122
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__LABEL",
123
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__DESCRIPTION",
124
+ defaultValue: 5000,
125
+ params: {
126
+ min: 500,
127
+ max: 10000
128
+ },
129
+ condition: {
130
+ and: [
131
+ {
132
+ key: "sttVendor",
133
+ value: "deepgramflux"
134
+ },
135
+ {
136
+ key: "deepgramfluxEndpointing",
137
+ value: true
138
+ },
139
+ ]
140
+ }
141
+ },
142
+ {
143
+ key: "speechmaticsEndpointing",
144
+ type: "toggle",
145
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__LABEL",
146
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__DESCRIPTION",
147
+ defaultValue: true,
148
+ condition: {
149
+ key: "sttVendor",
150
+ value: "speechmatics"
151
+ }
152
+ },
153
+ {
154
+ key: "speechmaticsEndpointingValue",
155
+ type: "number",
156
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__LABEL",
157
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__DESCRIPTION",
158
+ defaultValue: 500,
159
+ params: {
160
+ min: 10,
161
+ max: 5000
162
+ },
163
+ condition: {
164
+ and: [
165
+ {
166
+ key: "sttVendor",
167
+ value: "speechmatics"
168
+ },
169
+ {
170
+ key: "speechmaticsEndpointing",
171
+ value: true
172
+ },
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ key: "openaiEndpointing",
178
+ type: "toggle",
179
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__LABEL",
180
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__DESCRIPTION",
181
+ defaultValue: true,
182
+ condition: {
183
+ key: "sttVendor",
184
+ value: "openai"
185
+ }
186
+ },
187
+ {
188
+ key: "openaiEndpointingValue",
189
+ type: "number",
190
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__LABEL",
191
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__DESCRIPTION",
192
+ defaultValue: 500,
193
+ params: {
194
+ min: 10,
195
+ max: 1000
196
+ },
197
+ condition: {
198
+ and: [
199
+ {
200
+ key: "sttVendor",
201
+ value: "openai"
202
+ },
203
+ {
204
+ key: "openaiEndpointing",
205
+ value: true
206
+ },
207
+ ]
208
+ }
209
+ },
84
210
  {
85
211
  key: "sttHints",
86
212
  type: "textArray",
@@ -109,6 +235,10 @@ exports.voiceConfigFields = [
109
235
  key: "sttVendor",
110
236
  value: "deepgram"
111
237
  },
238
+ {
239
+ key: "sttVendor",
240
+ value: "deepgramflux"
241
+ },
112
242
  ]
113
243
  }
114
244
  },
@@ -248,7 +378,7 @@ exports.voiceConfigFields = [
248
378
  defaultValue: "",
249
379
  params: {
250
380
  languageKey: "config.sttLanguage",
251
- modelKey: "config.sttDeepgramModel",
381
+ modelKey: "config.sttModel",
252
382
  }
253
383
  },
254
384
  {
@@ -259,14 +389,22 @@ exports.voiceConfigFields = [
259
389
  defaultValue: "",
260
390
  },
261
391
  {
262
- key: "sttDeepgramModel",
392
+ key: "sttModel",
263
393
  type: "sttSelect",
264
394
  label: "_unused_",
265
395
  description: "_unused_",
266
396
  defaultValue: "",
267
397
  condition: {
268
- key: "sttVendor",
269
- value: "deepgram"
398
+ and: [
399
+ {
400
+ key: "sttVendor",
401
+ value: "deepgram"
402
+ },
403
+ {
404
+ key: "sttVendor",
405
+ value: "openai"
406
+ }
407
+ ]
270
408
  }
271
409
  },
272
410
  {
@@ -974,6 +1112,13 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
974
1112
  "deepgramEndpointing",
975
1113
  "deepgramEndpointingValue",
976
1114
  "deepgramSmartFormatting",
1115
+ "deepgramfluxEndpointing",
1116
+ "deepgramfluxEndOfTurnThreshold",
1117
+ "deepgramfluxEndOfTurnTimeoutMs",
1118
+ "speechmaticsEndpointing",
1119
+ "speechmaticsEndpointingValue",
1120
+ "openaiEndpointing",
1121
+ "openaiEndpointingValue",
977
1122
  "sttHints",
978
1123
  "sttHintsDynamicHints",
979
1124
  "googleModel",
@@ -315,7 +315,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
315
315
  defaultValue: "",
316
316
  params: {
317
317
  languageKey: "config.sttLanguage",
318
- modelKey: "config.sttDeepgramModel"
318
+ modelKey: "config.sttModel"
319
319
  },
320
320
  condition: {
321
321
  key: "transferType",
@@ -323,7 +323,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
323
323
  }
324
324
  },
325
325
  {
326
- key: "sttDeepgramModel",
326
+ key: "sttModel",
327
327
  type: "sttSelect",
328
328
  label: "_unused_",
329
329
  description: "_unused_",
@@ -404,6 +404,132 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
404
404
  value: "deepgram"
405
405
  }
406
406
  },
407
+ {
408
+ key: "deepgramfluxEndpointing",
409
+ type: "toggle",
410
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__LABEL",
411
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_ENDPOINTING__DESCRIPTION",
412
+ defaultValue: false,
413
+ condition: {
414
+ key: "sttVendor",
415
+ value: "deepgramflux"
416
+ }
417
+ },
418
+ {
419
+ key: "deepgramfluxEndOfTurnThreshold",
420
+ type: "slider",
421
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__LABEL",
422
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_THRESHOLD__DESCRIPTION",
423
+ defaultValue: 0.7,
424
+ params: {
425
+ min: 0.5,
426
+ max: 0.9,
427
+ step: 0.1
428
+ },
429
+ condition: {
430
+ and: [
431
+ {
432
+ key: "sttVendor",
433
+ value: "deepgramflux"
434
+ },
435
+ {
436
+ key: "deepgramfluxEndpointing",
437
+ value: true
438
+ },
439
+ ]
440
+ }
441
+ },
442
+ {
443
+ key: "deepgramfluxEndOfTurnTimeoutMs",
444
+ type: "number",
445
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__LABEL",
446
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__DEEPGRAMFLUX_END_OF_TURN_TIMEOUT_MS__DESCRIPTION",
447
+ defaultValue: 5000,
448
+ params: {
449
+ min: 500,
450
+ max: 10000
451
+ },
452
+ condition: {
453
+ and: [
454
+ {
455
+ key: "sttVendor",
456
+ value: "deepgramflux"
457
+ },
458
+ {
459
+ key: "deepgramfluxEndpointing",
460
+ value: true
461
+ },
462
+ ]
463
+ }
464
+ },
465
+ {
466
+ key: "speechmaticsEndpointing",
467
+ type: "toggle",
468
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__LABEL",
469
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING__DESCRIPTION",
470
+ defaultValue: true,
471
+ condition: {
472
+ key: "sttVendor",
473
+ value: "speechmatics"
474
+ }
475
+ },
476
+ {
477
+ key: "speechmaticsEndpointingValue",
478
+ type: "number",
479
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__LABEL",
480
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__SPEECHMATICS_ENDPOINTING_TIME__DESCRIPTION",
481
+ defaultValue: 500,
482
+ params: {
483
+ min: 10,
484
+ max: 5000
485
+ },
486
+ condition: {
487
+ and: [
488
+ {
489
+ key: "sttVendor",
490
+ value: "speechmatics"
491
+ },
492
+ {
493
+ key: "speechmaticsEndpointing",
494
+ value: true
495
+ },
496
+ ]
497
+ }
498
+ },
499
+ {
500
+ key: "openaiEndpointing",
501
+ type: "toggle",
502
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__LABEL",
503
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING__DESCRIPTION",
504
+ defaultValue: true,
505
+ condition: {
506
+ key: "sttVendor",
507
+ value: "openai"
508
+ }
509
+ },
510
+ {
511
+ key: "openaiEndpointingValue",
512
+ type: "number",
513
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__LABEL",
514
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__OPENAI_ENDPOINTING_TIME__DESCRIPTION",
515
+ defaultValue: 500,
516
+ params: {
517
+ min: 10,
518
+ max: 1000
519
+ },
520
+ condition: {
521
+ and: [
522
+ {
523
+ key: "sttVendor",
524
+ value: "openai"
525
+ },
526
+ {
527
+ key: "openaiEndpointing",
528
+ value: true
529
+ },
530
+ ]
531
+ }
532
+ },
407
533
  {
408
534
  key: "googleModel",
409
535
  type: "select",
@@ -464,6 +590,13 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
464
590
  "deepgramEndpointing",
465
591
  "deepgramEndpointingValue",
466
592
  "deepgramSmartFormatting",
593
+ "deepgramfluxEndpointing",
594
+ "deepgramfluxEndOfTurnThreshold",
595
+ "deepgramfluxEndOfTurnTimeoutMs",
596
+ "speechmaticsEndpointing",
597
+ "speechmaticsEndpointingValue",
598
+ "openaiEndpointing",
599
+ "openaiEndpointingValue",
467
600
  "googleModel",
468
601
  "dialTranscriptionWebhook",
469
602
  "recognitionChannel"
@@ -553,7 +686,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
553
686
  summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
554
687
  function: async ({ cognigy, config, }) => {
555
688
  const { api, input } = cognigy;
556
- 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;
689
+ 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;
557
690
  const transferParams = {
558
691
  transferType,
559
692
  transferReason,
@@ -627,7 +760,7 @@ exports.transferNode = (0, createNodeDescriptor_1.createNodeDescriptor)({
627
760
  transferParams.useTransferSipHeaders = false;
628
761
  api.log("error", "Invalid JSON in Transfer SIP Headers");
629
762
  }
630
- const payload = transfer_mapper_1.transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttDeepgramModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, media, anchorMedia);
763
+ const payload = transfer_mapper_1.transfer.handleInput("voiceGateway2", transferParams, false, recognitionChannel, sttVendor, sttLanguage, googleModel, sttModel, sttDisablePunctuation, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, deepgramfluxEndpointing, deepgramfluxEndOfTurnThreshold, deepgramfluxEndOfTurnTimeoutMs, speechmaticsEndpointing, speechmaticsEndpointingValue, openaiEndpointing, openaiEndpointingValue, media, anchorMedia);
631
764
  await api.say(null, {
632
765
  _cognigy: payload,
633
766
  });
@@ -6,9 +6,10 @@ var ErrorCode;
6
6
  ErrorCode[ErrorCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
7
7
  ErrorCode[ErrorCode["UNAUTHORIZED_ERROR"] = 401] = "UNAUTHORIZED_ERROR";
8
8
  ErrorCode[ErrorCode["PAYMENT_REQUIRED_ERROR"] = 402] = "PAYMENT_REQUIRED_ERROR";
9
+ ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
10
+ ErrorCode[ErrorCode["NOT_FOUND"] = 404] = "NOT_FOUND";
9
11
  ErrorCode[ErrorCode["PAYLOAD_TOO_LARGE_ERROR"] = 413] = "PAYLOAD_TOO_LARGE_ERROR";
10
12
  ErrorCode[ErrorCode["TOO_MANY_REQUESTS_ERROR"] = 429] = "TOO_MANY_REQUESTS_ERROR";
11
- ErrorCode[ErrorCode["FORBIDDEN_ERROR"] = 403] = "FORBIDDEN_ERROR";
12
13
  ErrorCode[ErrorCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
13
14
  ErrorCode[ErrorCode["SERVICE_UNAVAILABLE_ERROR"] = 503] = "SERVICE_UNAVAILABLE_ERROR";
14
15
  ErrorCode[ErrorCode["GATEWAY_TIMEOUT_ERROR"] = 504] = "GATEWAY_TIMEOUT_ERROR";
@@ -51,6 +51,7 @@ exports.ErrorCollection = {
51
51
  [ErrorCode_1.ErrorCode.METHOD_NOT_ALLOWED_ERROR]: MethodNotAllowedError_1.MethodNotAllowedError,
52
52
  [ErrorCode_1.ErrorCode.MISSING_ARGUMENT_ERROR]: missingArgument_1.MissingArgumentError,
53
53
  [ErrorCode_1.ErrorCode.NETWORK_ERROR]: NetworkError_1.NetworkError,
54
+ [ErrorCode_1.ErrorCode.NOT_FOUND]: resourceNotFound_1.ResourceNotFoundError,
54
55
  [ErrorCode_1.ErrorCode.NOT_IMPLEMENTED_ERROR]: notImplementedError_1.NotImplementedError,
55
56
  [ErrorCode_1.ErrorCode.PAYLOAD_TOO_LARGE_ERROR]: PayloadTooLargeError_1.PayloadTooLargeError,
56
57
  [ErrorCode_1.ErrorCode.PROCESS_ERROR]: process_1.ProcessError,
@@ -51,7 +51,7 @@ class BaseContext {
51
51
  const validObjectSize = (0, objectSizeValidator_1.validateObjectSize)(merged, (process.env.MAX_MEMORY_OBJECT_SIZE && parseInt(process.env.MAX_MEMORY_OBJECT_SIZE)) || 64000);
52
52
  if (validObjectSize.valid === false) {
53
53
  const errorMessage = `Cannot add value to context for key ${prop.toString()}: exceeded maximum context size.`;
54
- logger_1.logger.log('error', { traceId: `proxy-${this.traceId}` }, errorMessage, {
54
+ logger_1.logger.log('error', { traceId: this.traceId }, errorMessage, {
55
55
  organisationId: this.organisationId,
56
56
  projectId: this.projectId
57
57
  });
@@ -24,6 +24,7 @@ exports.referenceKeys = [
24
24
  "resourceReference",
25
25
  "snapshotReference",
26
26
  "subResourceReference",
27
+ "connectorReference",
27
28
  "storeReference",
28
29
  "sourceReference",
29
30
  ];
@@ -12,6 +12,7 @@ exports.embeddingModels = [
12
12
  "luminous-embedding-128",
13
13
  "amazon.titan-embed-text-v2:0",
14
14
  "Pharia-1-Embedding-4608",
15
+ "gemini-embedding-001",
15
16
  ];
16
17
  exports.generativeAIModels = [
17
18
  "gpt-3.5-turbo",
@@ -122,6 +122,7 @@ exports.handoverSettingsSchema = {
122
122
  redactTranscriptTileMessages: { type: "boolean" },
123
123
  enableAgentCopilotAuthentication: { type: "boolean" },
124
124
  agentCopilotAuthentication: { type: "string" },
125
+ blockNonJWTRequests: { type: "boolean" },
125
126
  oAuth2Connection: { type: "string" },
126
127
  }
127
128
  }
@@ -19,5 +19,4 @@ exports.handoverServices = [
19
19
  ...exports.internalHandoverServices,
20
20
  ...exports.externalHandoverServices
21
21
  ];
22
- ;
23
22
  //# sourceMappingURL=handoverProviders.js.map
@@ -155,6 +155,9 @@ const callFailoverSettingsSchema = {
155
155
  deepgramEndpointing: { type: "boolean" },
156
156
  deepgramEndpointingValue: { type: "number" },
157
157
  dialTranscribeDeepgramTier: { type: "string" },
158
+ deepgramfluxEndpointing: { type: "boolean" },
159
+ deepgramfluxEndOfTurnThreshold: { type: "number" },
160
+ deepgramfluxEndOfTurnTimeoutMs: { type: "number" },
158
161
  mediaPath: { type: "string", enum: [...mediaPathTypes] },
159
162
  anchorMedia: { type: "boolean" }
160
163
  }
@@ -718,7 +721,7 @@ exports.anyEndpointSettingsSchema = {
718
721
  title: "anyEndpointSettingsSchema",
719
722
  type: "object",
720
723
  additionalProperties: true,
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" }, 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: {
724
+ 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: {
722
725
  type: "string",
723
726
  enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
724
727
  }, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
@@ -118,6 +118,7 @@ exports.actionTypes = [
118
118
  "loginError",
119
119
  "unauthorized",
120
120
  "disableCreditCardRedaction",
121
+ "runKnowledgeConnector"
121
122
  ];
122
123
  exports.auditEventSchema = {
123
124
  title: "auditEventSchema",
@@ -16,7 +16,16 @@ exports.chartNodeExcerptSchema = {
16
16
  analyticsLabel: { type: ["null", "string"], format: "analytics-label" },
17
17
  type: { type: "string", maxLength: 200 },
18
18
  extension: { type: "string", format: "package-name" },
19
- localeReference: { type: "string", format: "mongo-id" }
19
+ localeReference: { type: "string", format: "mongo-id" },
20
+ mock: {
21
+ type: "object",
22
+ properties: {
23
+ isEnabled: { type: "boolean" },
24
+ code: { type: "string" },
25
+ transpiled: { type: "string" },
26
+ hasError: { type: "boolean" }
27
+ }
28
+ }
20
29
  },
21
30
  };
22
31
  exports.chartNodeRelationDataSchema = {
@@ -16,7 +16,8 @@ exports.defaultNodeFields = [
16
16
  "isDisabled",
17
17
  "isEntryPoint",
18
18
  "preview",
19
- "analyticsLabel"
19
+ "analyticsLabel",
20
+ "mock"
20
21
  ];
21
22
  exports.searchableNodeFields = [
22
23
  "comment",
@@ -63,7 +64,16 @@ exports.nodeInDBSchema = {
63
64
  resourceReference: { format: "mongo-id" },
64
65
  projectReference: { format: "mongo-id" },
65
66
  organisationReference: { format: "mongo-id" },
66
- analyticsLabel: { format: "analytics-label" }
67
+ analyticsLabel: { format: "analytics-label" },
68
+ mock: {
69
+ type: "object",
70
+ properties: {
71
+ isEnabled: { type: "boolean" },
72
+ code: { type: "string" },
73
+ transpiled: { type: "string" },
74
+ hasError: { type: "boolean" }
75
+ }
76
+ },
67
77
  }
68
78
  };
69
79
  exports.nodeDataSchema = {
@@ -100,7 +110,16 @@ exports.nodeDataSchema = {
100
110
  }
101
111
  }
102
112
  }
103
- }
113
+ },
114
+ mock: {
115
+ type: "object",
116
+ properties: {
117
+ isEnabled: { type: "boolean" },
118
+ code: { type: "string" },
119
+ transpiled: { type: "string" },
120
+ hasError: { type: "boolean" }
121
+ }
122
+ },
104
123
  }
105
124
  };
106
125
  exports.updateNodeDataSchema = {
@@ -123,7 +142,16 @@ exports.updateNodeDataSchema = {
123
142
  config: {
124
143
  type: "object",
125
144
  additionalProperties: { propertyNames: { type: "string" } }
126
- }
145
+ },
146
+ mock: {
147
+ type: "object",
148
+ properties: {
149
+ isEnabled: { type: "boolean" },
150
+ code: { type: "string" },
151
+ transpiled: { type: "string" },
152
+ hasError: { type: "boolean" }
153
+ }
154
+ },
127
155
  }
128
156
  };
129
157
  exports.nodeSchema = {
@@ -74,6 +74,7 @@ exports.endpointDataSchema = {
74
74
  active: { type: "boolean" },
75
75
  },
76
76
  },
77
+ enableMocking: { type: "boolean" },
77
78
  },
78
79
  };
79
80
  exports.endpointSchema = {
@@ -101,6 +101,7 @@ exports.nodeFieldTypes = [
101
101
  "checkAgentAvailabilityConfig",
102
102
  "chipInput",
103
103
  "code",
104
+ "mockCode",
104
105
  "cognigyLLMText",
105
106
  "cognigyText",
106
107
  "cognigyTextArray",
@@ -445,6 +446,13 @@ exports.nodeDescriptorSchema = {
445
446
  additionalItems: false,
446
447
  maxLength: 25,
447
448
  items: exports.nodeFieldAndSectionFormElementSchema
449
+ },
450
+ mocking: {
451
+ type: "object",
452
+ additionalProperties: false,
453
+ properties: {
454
+ defaultMockCode: { type: "string" }
455
+ }
448
456
  }
449
457
  }
450
458
  };
@@ -72,6 +72,7 @@ exports.arrayTResourceType = [
72
72
  "knowledgeStore",
73
73
  "knowledgeSource",
74
74
  "knowledgeChunk",
75
+ "knowledgeConnector",
75
76
  "lexicon",
76
77
  "lexiconEntry",
77
78
  "lexiconKeyphrase",
@@ -51,7 +51,16 @@ exports.chartExecutableNodeSchema = {
51
51
  type: { type: "string", minLength: 1 },
52
52
  label: IChartNode_1.nodeDataSchema.properties.label,
53
53
  extension: { type: "string" },
54
- analyticsLabel: { type: ["string", "null"], format: "analytics-label" }
54
+ analyticsLabel: { type: ["string", "null"], format: "analytics-label" },
55
+ mock: {
56
+ type: "object",
57
+ properties: {
58
+ isEnabled: { type: "boolean" },
59
+ code: { type: "string" },
60
+ transpiled: { type: "string" },
61
+ hasError: { type: "boolean" },
62
+ }
63
+ }
55
64
  },
56
65
  };
57
66
  //# sourceMappingURL=IChartExecutableNode.js.map
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.knowledgeConnectorSchema = exports.knowledgeConnectorDataSchema = exports.knowledgeConnectorExecutionStatus = void 0;
4
+ const IEntityMeta_1 = require("../IEntityMeta");
5
+ exports.knowledgeConnectorExecutionStatus = ["none", "queued", "active", "done", "error"];
6
+ exports.knowledgeConnectorDataSchema = {
7
+ title: "knowledgeConnectorDataSchema",
8
+ type: "object",
9
+ additionalProperties: false,
10
+ required: ["extension", "type", "config", "name", "version"],
11
+ properties: {
12
+ extension: { type: "string" },
13
+ type: { type: "string" },
14
+ version: { type: "string" },
15
+ config: {
16
+ type: "object",
17
+ additionalProperties: true
18
+ },
19
+ name: { type: "string", format: "resource-name" },
20
+ schedule: {
21
+ type: "object",
22
+ additionalProperties: false,
23
+ properties: {
24
+ enabled: { type: "boolean" },
25
+ start: { type: "integer", format: "timestamp" },
26
+ hour: { type: "integer", minimum: 0, maximum: 23 },
27
+ minute: { type: "integer", minimum: 0, maximum: 59 },
28
+ weekDays: { type: "array", items: { type: "integer", minimum: 0, maximum: 6 } }
29
+ }
30
+ }
31
+ }
32
+ };
33
+ exports.knowledgeConnectorSchema = {
34
+ title: "knowledgeConnectorDataSchema",
35
+ type: "object",
36
+ additionalProperties: false,
37
+ required: [
38
+ "extension",
39
+ "type",
40
+ "config",
41
+ "name",
42
+ "version"
43
+ ],
44
+ properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.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: {
45
+ type: "string",
46
+ enum: [...exports.knowledgeConnectorExecutionStatus]
47
+ } })
48
+ };
49
+ //# sourceMappingURL=IKnowledgeConnector.js.map