@cognigy/rest-api-client 0.15.0 → 0.17.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 (146) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/build/GenericTusFn.js +64 -0
  3. package/build/RestAPIClient.js +3 -0
  4. package/build/apigroups/AdministrationAPIGroup_2_0.js +7 -2
  5. package/build/apigroups/ResourcesAPIGroup_2_0.js +28 -23
  6. package/build/{shared/interfaces/agentAssist/ISendTileUpdateReferenceParams.js → apigroups/TTusAPIOperation.js} +1 -1
  7. package/build/apigroups/index.js +2 -0
  8. package/build/connector/AxiosAdapter.js +5 -4
  9. package/build/shared/charts/descriptors/agentAssist/constants/constants.js +7 -0
  10. package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +41 -0
  11. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +54 -0
  12. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +203 -0
  13. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +93 -0
  14. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +81 -0
  15. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +84 -0
  16. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage2.js +97 -0
  17. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +85 -0
  18. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +41 -0
  19. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/stylesPartial.js +15 -0
  20. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +53 -0
  21. package/build/shared/charts/descriptors/agentAssist/identityAssist.js +135 -0
  22. package/build/shared/charts/descriptors/agentAssist/index.js +15 -1
  23. package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +625 -0
  24. package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +77 -0
  25. package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +86 -0
  26. package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -2
  27. package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +120 -0
  28. package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +2 -2
  29. package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +2 -2
  30. package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +171 -0
  31. package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +72 -0
  32. package/build/shared/charts/descriptors/allFields.js +12 -0
  33. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/TGenerativeAIConnectionFields.js +3 -0
  34. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/alephAlphaProviderConnection.js +11 -0
  35. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/anthropicProviderConnection.js +1 -1
  36. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +1 -1
  37. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
  38. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +1 -1
  39. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +4 -4
  40. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +3 -3
  41. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +3 -3
  42. package/build/shared/charts/descriptors/connectionNodes/mongoDB/mongoDBConnection.js +1 -1
  43. package/build/shared/charts/descriptors/connectionNodes/smtp/oAuth2Connection.js +8 -8
  44. package/build/shared/charts/descriptors/connectionNodes/smtp/serviceConnection.js +2 -2
  45. package/build/shared/charts/descriptors/connectionNodes/smtp/smtpConnection.js +5 -5
  46. package/build/shared/charts/descriptors/connectionNodes/speechProviders/awsSpeechProviderConnection.js +4 -4
  47. package/build/shared/charts/descriptors/connectionNodes/speechProviders/microsoftSpeechProviderConnection.js +2 -2
  48. package/build/shared/charts/descriptors/connectionNodes/sql/sqlConnection.js +5 -5
  49. package/build/shared/charts/descriptors/connectionNodes/translationProviders/deeplTranslationProviderConnection.js +15 -0
  50. package/build/shared/charts/descriptors/connectionNodes/translationProviders/googleTranslationProviderConnection.js +15 -0
  51. package/build/shared/charts/descriptors/connectionNodes/translationProviders/index.js +23 -0
  52. package/build/shared/charts/descriptors/connectionNodes/translationProviders/microsoftTranslationProviderConnection.js +21 -0
  53. package/build/shared/charts/descriptors/index.js +13 -2
  54. package/build/shared/charts/descriptors/knowledgeSearch/constants/constants.js +6 -0
  55. package/build/shared/charts/descriptors/knowledgeSearch/index.js +5 -1
  56. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearch.js +7 -2
  57. package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearchV2.js +151 -0
  58. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +985 -0
  59. package/build/shared/charts/descriptors/logic/goTo.js +2 -0
  60. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +2 -2
  61. package/build/shared/charts/descriptors/message/question/question.js +215 -8
  62. package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
  63. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +107 -5
  64. package/build/shared/charts/descriptors/service/GPTConversation.js +125 -23
  65. package/build/shared/charts/descriptors/service/GPTPrompt.js +148 -12
  66. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +15 -1
  67. package/build/shared/charts/descriptors/service/handoverV2.js +45 -0
  68. package/build/shared/{interfaces/twilioInterface.js → charts/descriptors/voice/interface/IBandwidth.js} +1 -1
  69. package/build/shared/charts/descriptors/voice/mappers/base.mapper.js +14 -0
  70. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +26 -0
  71. package/build/shared/charts/descriptors/voice/mappers/muteSpeechInput.mapper.js +17 -2
  72. package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +54 -0
  73. package/build/shared/charts/descriptors/voice/mappers/record.mapper.js +7 -0
  74. package/build/shared/charts/descriptors/voice/mappers/sendMetadata.mapper.js +15 -0
  75. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +56 -20
  76. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +39 -13
  77. package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
  78. package/build/shared/charts/descriptors/voice/nodes/play.js +1 -1
  79. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +120 -29
  80. package/build/shared/charts/descriptors/voice/nodes/transfer.js +11 -3
  81. package/build/shared/charts/descriptors/voice/utils/vgConstants.js +14 -0
  82. package/build/shared/charts/descriptors/voicegateway/index.js +14 -11
  83. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +1 -5
  84. package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +12 -1
  85. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +6 -0
  86. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +159 -36
  87. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +296 -43
  88. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +30 -4
  89. package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +1 -1
  90. package/build/shared/constants.js +5 -1
  91. package/build/shared/handoverClients/interfaces/THandoverEventType.js +3 -1
  92. package/build/shared/helper/BaseContext.js +33 -15
  93. package/build/shared/helper/nlu/textCleaner.js +25 -3
  94. package/build/shared/interfaces/IEndpointTranslationSettings.js +9 -0
  95. package/build/shared/interfaces/IOrganisation.js +2 -1
  96. package/build/shared/interfaces/agentAssist/ISendConfigUpdateParams.js +3 -0
  97. package/build/shared/interfaces/agentAssist/ISendUpdateReferenceParams.js +3 -0
  98. package/build/shared/interfaces/amqpInterface.js +18 -22
  99. package/build/shared/interfaces/channels/genesysBotConnector.js +21 -0
  100. package/build/shared/interfaces/channels/niceCXOne.js +8 -0
  101. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +17 -7
  102. package/build/shared/interfaces/handover.js +57 -3
  103. package/build/shared/interfaces/journeys/IJourney.js +6 -0
  104. package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +2 -0
  105. package/build/shared/interfaces/messageAPI/endpoints.js +93 -8
  106. package/build/shared/interfaces/messageAPI/handover.js +4 -4
  107. package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
  108. package/build/shared/interfaces/resources/IConnectionSchema.js +3 -0
  109. package/build/shared/interfaces/resources/IEndpoint.js +1 -0
  110. package/build/shared/interfaces/resources/IExtension.js +3 -0
  111. package/build/shared/interfaces/resources/ILargeLanguageModel.js +24 -5
  112. package/build/shared/interfaces/resources/INodeDescriptorSet.js +24 -1
  113. package/build/shared/interfaces/resources/TNLUConnectorType.js +0 -1
  114. package/build/shared/interfaces/resources/TRestChannelType.js +16 -11
  115. package/build/shared/interfaces/resources/TSocketChannelType.js +5 -1
  116. package/build/shared/interfaces/resources/TWebhookChannelType.js +6 -1
  117. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +21 -3
  118. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +13 -2
  119. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeStore.js +1 -1
  120. package/build/shared/interfaces/resources/settings/IAgentSettings.js +3 -23
  121. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
  122. package/build/shared/interfaces/resources/settings/ITranslationSettings.js +63 -0
  123. package/build/shared/interfaces/resources/settings/index.js +4 -1
  124. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/IReadVoiceGatewayAccountRest_2_0.js +3 -0
  125. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/ISetupVoiceGatewayAccountRest_2_0.js +3 -0
  126. package/build/shared/interfaces/restAPI/administration/voiceGateway/v2.0/index.js +3 -0
  127. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/ICallCounterAggregatedValue_2_0.js +3 -0
  128. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/IGetCallCounterOrganisationRest_2_0.js +3 -0
  129. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/IGetCallCounterRest_2_0.js +3 -0
  130. package/build/shared/interfaces/restAPI/metrics/callCounter/v2.0/index.js +3 -0
  131. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterOrganisationRest_2_0.js +3 -0
  132. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IGetKnowledgeQueryCounterRest_2_0.js +3 -0
  133. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/IKnowlegeQueryCounterAggregatedValue_2_0.js +3 -0
  134. package/build/shared/interfaces/restAPI/metrics/knowledgeQueryCounter/v2.0/index.js +3 -0
  135. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +0 -2
  136. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +17 -0
  137. package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/index.js +3 -0
  138. package/build/shared/interfaces/security/ICallCounterAggregatedValue.js +3 -0
  139. package/build/shared/interfaces/security/IKnowledgeQueryCounterAggregatedValue.js +3 -0
  140. package/build/shared/interfaces/security/IPermission.js +3 -0
  141. package/build/shared/interfaces/security/IRole.js +9 -1
  142. package/build/shared/interfaces/security/index.js +2 -1
  143. package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -0
  144. package/build/test.js +27 -0
  145. package/package.json +19 -17
  146. package/types/index.d.ts +823 -140
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createAdminConsoleEndpointConfiguration = exports.eightByEightEndpointSettingsSchema = exports.whatsAppEndpointSettingsSchema = exports.liveAgentEndpointSettingsSchema = exports.chatwootEndpointSettingsSchema = exports.ringCentralEngageEndpointSettingsSchema = exports.avayaEndpointSettingsSchema = exports.AMAZON_POLLY_LANGUAGE_MAPPING = exports.workplaceEndpointSettingsSchema = exports.dashbotPlatform = exports.anyEndpointSettingsSchema = exports.avayaGatherLanguages = exports.avayaSttTtsLanguages = exports.callEventSettingsSchema = exports.maintenanceMenuSchema = exports.businessHoursMenuSchema = exports.webchatPersistentMenuSchema = exports.endpointTypes = void 0;
3
+ exports.createAdminConsoleEndpointConfiguration = exports.agentAssistVoiceEndpointSettingsSchema = exports.niceCXOneEndpointSettingsSchema = exports.genesysBotConnectorEndpointSettingsSchema = exports.eightByEightEndpointSettingsSchema = exports.whatsAppEndpointSettingsSchema = exports.liveAgentEndpointSettingsSchema = exports.chatwootEndpointSettingsSchema = exports.ringCentralEngageEndpointSettingsSchema = exports.avayaEndpointSettingsSchema = exports.AMAZON_POLLY_LANGUAGE_MAPPING = exports.workplaceEndpointSettingsSchema = exports.dashbotPlatform = exports.anyEndpointSettingsSchema = exports.avayaGatherLanguages = exports.avayaSttTtsLanguages = exports.callEventSettingsSchema = exports.maintenanceMenuSchema = exports.businessHoursMenuSchema = exports.webchatPersistentMenuSchema = exports.endpointTypes = void 0;
4
4
  /* Interfaces & Types */
5
5
  const alexa_1 = require("../alexa");
6
6
  const constants_1 = require("../../constants");
@@ -9,7 +9,6 @@ exports.endpointTypes = [
9
9
  "workplace",
10
10
  "alexa",
11
11
  "slack",
12
- "google",
13
12
  "webhook",
14
13
  "rest",
15
14
  "abstractRest",
@@ -19,7 +18,6 @@ exports.endpointTypes = [
19
18
  "dialogflow",
20
19
  "twilio",
21
20
  "twilioSms",
22
- "twilioAutopilot",
23
21
  "line",
24
22
  "intercom",
25
23
  "microsoftBotFramework",
@@ -33,8 +31,14 @@ exports.endpointTypes = [
33
31
  "voiceGateway2",
34
32
  "whatsapp",
35
33
  "amazonLex",
36
- "eightByEight"
34
+ "eightByEight",
35
+ "bandwidth",
36
+ "genesysBotConnector",
37
+ "niceCXOne",
38
+ "agentAssistVoice",
39
+ "webchat3"
37
40
  ];
41
+ const transferTypes = ["dial", "sip:refer"];
38
42
  exports.webchatPersistentMenuSchema = {
39
43
  title: "webchatPersistentMenuSchema",
40
44
  type: "object",
@@ -98,20 +102,75 @@ const callEvents = [
98
102
  "CALL_COMPLETED",
99
103
  "CALL_FAILED",
100
104
  "USER_INPUT_TIMEOUT",
101
- "ANSWERING_MACHINE_DETECTION"
105
+ "ANSWERING_MACHINE_DETECTION",
106
+ "TRANSFER_REFER_SUCCESS",
107
+ "TRANSFER_REFER_ERROR",
108
+ "TRANSFER_DIAL_SUCCESS",
109
+ "TRANSFER_DIAL_ERROR",
110
+ "USER_BUSY",
111
+ "NO_ANSWER"
102
112
  ];
113
+ const callFailoverSettingsSchema = {
114
+ title: "callEventSettingsSchema",
115
+ type: "object",
116
+ additionalProperties: false,
117
+ properties: {
118
+ enabled: { type: "boolean" },
119
+ type: { type: "string", enum: [...transferTypes] },
120
+ headers: { type: "string" },
121
+ to: { type: "string" },
122
+ reason: { type: "string" },
123
+ dialCallerId: { type: "string" },
124
+ dialMusic: { type: "string" },
125
+ dialTimeout: { type: "number" },
126
+ dialTranscribeEnabled: { type: "boolean" },
127
+ dialTranscribeVendor: { type: "string" },
128
+ dialTranscribeLanguage: { type: "string" },
129
+ dialTranscribeWebhook: { type: "string" },
130
+ dialTranscribeRecognitionChannel: { type: "number" },
131
+ dialTranscribeRecognitionGoogleModel: { type: 'string' },
132
+ dialTranscribeLabel: { type: "string" },
133
+ dialTranscribeDeepgramTier: { type: 'string' },
134
+ dialTranscribeDeepgramModel: { type: 'string' },
135
+ referredBy: { type: "string" },
136
+ deepgramSmartFormatting: { type: "boolean" },
137
+ deepgramEndpointing: { type: "boolean" },
138
+ deepgramEndpointingValue: { type: "number" }
139
+ }
140
+ };
103
141
  exports.callEventSettingsSchema = {
104
142
  title: "callEventSettingsSchema",
105
143
  type: "object",
106
144
  additionalProperties: false,
107
145
  properties: {
108
146
  enabled: { type: "boolean" },
109
- event: { type: "string", enum: [...callEvents] },
110
- action: { type: "string", enum: ["executeFlow", "inject"] },
147
+ action: { type: "string", enum: ["executeFlow", "inject", "transfer", "none"] },
111
148
  flowId: { type: "string" },
112
149
  entrypoint: { type: "string" },
113
150
  injectText: { type: "string" },
114
151
  injectData: { type: "string" },
152
+ failover: callFailoverSettingsSchema
153
+ }
154
+ };
155
+ const callEventsSchema = {
156
+ title: "callEventsSchema",
157
+ type: "object",
158
+ additionalProperties: false,
159
+ properties: {
160
+ amd: exports.callEventSettingsSchema,
161
+ callCreated: exports.callEventSettingsSchema,
162
+ callCompleted: exports.callEventSettingsSchema,
163
+ callFailed: exports.callEventSettingsSchema,
164
+ callReconnected: exports.callEventSettingsSchema,
165
+ recognizedDtmf: exports.callEventSettingsSchema,
166
+ recognizedSpeech: exports.callEventSettingsSchema,
167
+ userInputTimeout: exports.callEventSettingsSchema,
168
+ transferReferSuccess: exports.callEventSettingsSchema,
169
+ transferReferError: exports.callEventSettingsSchema,
170
+ transferDialSuccess: exports.callEventSettingsSchema,
171
+ transferDialError: exports.callEventSettingsSchema,
172
+ userBusy: exports.callEventSettingsSchema,
173
+ noAnswer: exports.callEventSettingsSchema,
115
174
  }
116
175
  };
117
176
  exports.avayaSttTtsLanguages = [
@@ -367,7 +426,8 @@ exports.anyEndpointSettingsSchema = {
367
426
  overwriteWebchatBundleUrl: { type: "string" },
368
427
  businessHours: exports.businessHoursMenuSchema,
369
428
  maintenance: exports.maintenanceMenuSchema,
370
- callEvents: exports.callEventSettingsSchema,
429
+ callEvents: callEventsSchema,
430
+ failover: callFailoverSettingsSchema,
371
431
  }
372
432
  };
373
433
  exports.dashbotPlatform = [
@@ -689,6 +749,31 @@ exports.eightByEightEndpointSettingsSchema = {
689
749
  },
690
750
  additionalProperties: false
691
751
  };
752
+ exports.genesysBotConnectorEndpointSettingsSchema = {
753
+ type: "object",
754
+ properties: {
755
+ verifyToken: {
756
+ type: "string"
757
+ }
758
+ },
759
+ additionalProperties: false
760
+ };
761
+ exports.niceCXOneEndpointSettingsSchema = {
762
+ type: "object",
763
+ properties: {
764
+ verifyToken: {
765
+ type: "string"
766
+ }
767
+ },
768
+ additionalProperties: false
769
+ };
770
+ exports.agentAssistVoiceEndpointSettingsSchema = {
771
+ type: "object",
772
+ properties: {
773
+ verifyToken: { type: "string" },
774
+ },
775
+ additionalProperties: false
776
+ };
692
777
  /** Create the default endpoint for adminconsole i.e. for interaction panel */
693
778
  const createAdminConsoleEndpointConfiguration = () => {
694
779
  /** Create the endpointConfiguration for this connection */
@@ -86,11 +86,11 @@ exports.createHandoverRequestDataSchema = {
86
86
  "buttonId": {
87
87
  "type": "string"
88
88
  },
89
- "salesforcePrechatDetails": {
90
- "type": "array"
89
+ salesforcePrechatDetails: {
90
+ type: ["object", "array", "number", "string"],
91
91
  },
92
- "salesforcePrechatEntities": {
93
- "type": "array"
92
+ salesforcePrechatEntities: {
93
+ type: ["object", "array", "number", "string"],
94
94
  },
95
95
  "notifySessionId": {
96
96
  "type": "string",
@@ -73,6 +73,7 @@ exports.actionTypes = [
73
73
  "setupCognigyLiveAgent",
74
74
  "setupCognigyLiveAgentInbox",
75
75
  "setupCognigyGenerativeAI",
76
+ "setupVoiceGatewayAccount",
76
77
  "updateCognigyLiveAgentInbox",
77
78
  "trainAllProjectFlows",
78
79
  "trainIntents",
@@ -32,6 +32,9 @@ exports.connectionSchemaCompleteDataSchema = {
32
32
  type: "string",
33
33
  format: "resource-name"
34
34
  },
35
+ label: { type: "string" },
36
+ description: { type: "string" },
37
+ params: { type: "object" },
35
38
  required: { type: "boolean", default: true }
36
39
  }
37
40
  }
@@ -50,6 +50,7 @@ exports.endpointDataSchema = {
50
50
  useChatbaseAnalytics: { type: "boolean" },
51
51
  useContactProfiles: { type: "boolean" },
52
52
  useConversations: { type: "boolean" },
53
+ storeDataPayload: { type: "boolean" },
53
54
  useDashbotAnalytics: { type: "boolean" },
54
55
  overrideSnapshotConnections: { type: "boolean" },
55
56
  fileStorageSettings: fileStorage_1.fileStorageSettingsSchema,
@@ -37,6 +37,9 @@ exports.extensionNodePackageDataSchema = {
37
37
  type: "string",
38
38
  format: "resource-name"
39
39
  },
40
+ label: { type: "string" },
41
+ description: { type: "string" },
42
+ params: { type: "object" },
40
43
  required: { type: "boolean", default: true }
41
44
  }
42
45
  }
@@ -1,18 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleVertexAIMeataSchema = exports.azureOpenAIMeataSchema = void 0;
3
+ exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleVertexAIMeataSchema = exports.azureOpenAIMeataSchema = exports.openAIMeataSchema = exports.alephAlphaMeataSchema = 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
+ exports.alephAlphaMeataSchema = {
9
+ title: "alephAlphaMeataSchema",
10
+ type: "object",
11
+ additionalProperties: false,
12
+ properties: {
13
+ customModel: { type: "string" }
14
+ }
15
+ };
16
+ exports.openAIMeataSchema = {
17
+ title: "openAIMeataSchema",
18
+ type: "object",
19
+ additionalProperties: false,
20
+ properties: {
21
+ customModel: { type: "string" }
22
+ }
23
+ };
8
24
  exports.azureOpenAIMeataSchema = {
9
25
  title: "azureOpenAIMeataSchema",
10
26
  type: "object",
11
27
  additionalProperties: false,
12
28
  properties: {
13
- resourceName: { type: "string", format: "resource-name" },
14
- deploymentName: { type: "string", format: "resource-name" },
15
- apiVersion: { type: ["string", "null"] }
29
+ resourceName: { type: ["string", "null"] },
30
+ deploymentName: { type: ["string", "null"] },
31
+ apiVersion: { type: ["string", "null"] },
32
+ baseCustomUrl: { type: ["string", "null"] },
16
33
  }
17
34
  };
18
35
  exports.googleVertexAIMeataSchema = {
@@ -40,8 +57,10 @@ exports.largeLanguageModelDataSchema = {
40
57
  provider: { type: "string", enum: [...IGenerativeAIModels_1.generativeAIProviders] },
41
58
  connectionId: { type: "string", format: "uuid" },
42
59
  isDefault: { type: "boolean" },
60
+ openAI: exports.openAIMeataSchema,
43
61
  azureOpenAI: exports.azureOpenAIMeataSchema,
44
- googleVertexAI: exports.googleVertexAIMeataSchema
62
+ googleVertexAI: exports.googleVertexAIMeataSchema,
63
+ alephAlpha: exports.alephAlphaMeataSchema
45
64
  }
46
65
  };
47
66
  exports.largeLanguageModelSchema = {
@@ -24,7 +24,7 @@ const nodeBehaviorSchema = {
24
24
  entrypoint: { type: "boolean" }
25
25
  }
26
26
  };
27
- exports.nodePreviewTypes = ["text", "sayNode", "custom", "resource"];
27
+ exports.nodePreviewTypes = ["text", "sayNode", "custom", "resource", "image"];
28
28
  const nodePreviewSchema = {
29
29
  title: "nodePreviewSchema",
30
30
  type: "object",
@@ -84,7 +84,9 @@ const nodeDependenciesSchema = {
84
84
  };
85
85
  exports.nodeFieldTypes = [
86
86
  "adaptivecard",
87
+ "agentAssistConfig",
87
88
  "appTemplate",
89
+ "backgroundSelector",
88
90
  "caseNode",
89
91
  "checkbox",
90
92
  "chipInput",
@@ -103,6 +105,9 @@ exports.nodeFieldTypes = [
103
105
  "json",
104
106
  "keyValuePairs",
105
107
  "knowledgeStore",
108
+ "knowledgeStoreSelect",
109
+ "knowledgeSourceTags",
110
+ "llmSelect",
106
111
  "lexicon",
107
112
  "localeField",
108
113
  "node",
@@ -117,6 +122,7 @@ exports.nodeFieldTypes = [
117
122
  "sttLanguageAzureSelect",
118
123
  "sttLanguageGoogleSelect",
119
124
  "sttSelect",
125
+ "sttTierModelSelect",
120
126
  "switchNode",
121
127
  "text",
122
128
  "textArray",
@@ -279,6 +285,23 @@ exports.nodeSectionSchema = {
279
285
  }
280
286
  ]
281
287
  },
288
+ description: {
289
+ oneOf: [
290
+ { type: "string", minLength: 1, maxLength: 200 },
291
+ {
292
+ type: "object",
293
+ additionalProperties: false,
294
+ properties: {
295
+ default: { type: "string", maxLength: 200 },
296
+ enUS: { type: "string", maxLength: 200 },
297
+ deDE: { type: "string", maxLength: 200 },
298
+ jaJP: { type: "string", maxLength: 200 },
299
+ esES: { type: "string", maxLength: 200 },
300
+ koKR: { type: "string", maxLength: 200 }
301
+ }
302
+ }
303
+ ]
304
+ },
282
305
  condition: exports.nodeFieldConditionSchema,
283
306
  defaultCollapsed: { type: "boolean" },
284
307
  fields: {
@@ -9,7 +9,6 @@ exports.arrayNLUConnectorType = [
9
9
  "dialogflow",
10
10
  "dialogflowBuiltIn",
11
11
  "amazonLexBuiltIn",
12
- "twilioAutopilotBuiltIn",
13
12
  "luis",
14
13
  "watson",
15
14
  "noNlu",
@@ -5,27 +5,24 @@ exports.restChannelTypes = [
5
5
  "alexa",
6
6
  "audioCodes",
7
7
  "avaya",
8
+ "bandwidth",
8
9
  "dialogflow",
9
- "google",
10
10
  "line",
11
11
  "microsoftTeams",
12
12
  "rest",
13
- "twilio-autopilot",
14
13
  "twilio-sms",
15
14
  "twilio",
16
15
  "userlike",
17
16
  "nonConversational",
18
- "amazonLex"
17
+ "amazonLex",
18
+ "genesysBotConnector",
19
+ "niceCXOne"
19
20
  ];
20
21
  exports.restChannelDisplayNames = [
21
22
  {
22
23
  channel: "alexa",
23
24
  displayName: "Alexa"
24
25
  },
25
- {
26
- channel: "google",
27
- displayName: "Google Actions"
28
- },
29
26
  {
30
27
  channel: "rest",
31
28
  displayName: "Rest"
@@ -42,10 +39,6 @@ exports.restChannelDisplayNames = [
42
39
  channel: "twilio-sms",
43
40
  displayName: "Twilio SMS"
44
41
  },
45
- {
46
- channel: "twilio-autopilot",
47
- displayName: "Twilio Autopilot"
48
- },
49
42
  {
50
43
  channel: "microsoftTeams",
51
44
  displayName: "Microsoft Teams"
@@ -73,6 +66,18 @@ exports.restChannelDisplayNames = [
73
66
  {
74
67
  channel: "amazonLex",
75
68
  displayName: "Amazon Lex"
69
+ },
70
+ {
71
+ channel: "bandwidth",
72
+ displayName: "Bandwidth"
73
+ },
74
+ {
75
+ channel: "genesysBotConnector",
76
+ displayName: "Genesys Bot Connector"
77
+ },
78
+ {
79
+ channel: "niceCXOne",
80
+ displayName: "NICE CXone"
76
81
  }
77
82
  ];
78
83
  //# sourceMappingURL=TRestChannelType.js.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.socketChannelDisplayNames = exports.socketChannelTypes = void 0;
4
- exports.socketChannelTypes = ["realtime", "webchat2", "admin-webchat", "socket", "voiceGateway2", "liveAgentAssist"];
4
+ exports.socketChannelTypes = ["realtime", "webchat2", "admin-webchat", "socket", "voiceGateway2", "liveAgentAssist", "webchat3"];
5
5
  exports.socketChannelDisplayNames = [
6
6
  {
7
7
  channel: "realtime",
@@ -26,6 +26,10 @@ exports.socketChannelDisplayNames = [
26
26
  {
27
27
  channel: "liveAgentAssist",
28
28
  displayName: "Live Agent Assist"
29
+ },
30
+ {
31
+ channel: "webchat3",
32
+ displayName: "Webchat 3"
29
33
  }
30
34
  ];
31
35
  //# sourceMappingURL=TSocketChannelType.js.map
@@ -12,7 +12,8 @@ exports.webhookChannelTypes = [
12
12
  "ringCentralEngage",
13
13
  "intercom",
14
14
  "whatsapp",
15
- "eightByEight"
15
+ "eightByEight",
16
+ "agentAssistVoice",
16
17
  ];
17
18
  exports.webhookChannelDisplayNames = [
18
19
  {
@@ -35,6 +36,10 @@ exports.webhookChannelDisplayNames = [
35
36
  channel: "webhook",
36
37
  displayName: "Webhook"
37
38
  },
39
+ {
40
+ channel: "agentAssistVoice",
41
+ displayName: "Voice Copilot"
42
+ },
38
43
  {
39
44
  channel: "microsoftBotFramework",
40
45
  displayName: "Azure Bot Service"
@@ -3,21 +3,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.knowledgeChunkSchema = exports.knowledgeChunkDataSchema = void 0;
4
4
  /* Interfaces & Types */
5
5
  const IEntityMeta_1 = require("../IEntityMeta");
6
+ const IGenerativeAIModels_1 = require("../../generativeAI/IGenerativeAIModels");
6
7
  exports.knowledgeChunkDataSchema = {
7
8
  title: "knowledgeChunkDataSchema",
8
9
  type: "object",
9
10
  additionalProperties: false,
10
11
  properties: {
11
12
  order: { type: "number" },
12
- text: { type: "string", minLength: 0, maxLength: 2000 },
13
+ text: {
14
+ type: "string",
15
+ minLength: 0,
16
+ maxLength: parseInt(process.env.MAX_CHUNK_SIZE, 10) || 2000,
17
+ },
18
+ embedding: {
19
+ type: "object",
20
+ additionalProperties: false,
21
+ properties: {
22
+ vector: {
23
+ type: "array"
24
+ },
25
+ model: {
26
+ type: "string",
27
+ enum: [...IGenerativeAIModels_1.generativeAIModels]
28
+ }
29
+ }
30
+ },
13
31
  data: {
14
32
  type: "object",
15
33
  additionalProperties: false,
16
- maxProperties: 20,
34
+ maxProperties: parseInt(process.env.MAX_CHUNK_METADATA_LIMIT, 10) || 20,
17
35
  patternProperties: {
18
36
  "^(?=.{1,200}$)[a-zA-Z][0-9a-zA-Z_$]*$": {
19
37
  type: ["number", "string", "boolean"],
20
- maxLength: 1000
38
+ maxLength: parseInt(process.env.METADATA_VALUE_MAX_LENGTH, 10) || 1000
21
39
  }
22
40
  },
23
41
  }
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.knowledgeSourceSchema = exports.knowledgeSourceDataSchema = exports.knowledgeSourceType = exports.knowledgeSourceStatus = void 0;
4
4
  /* Interfaces & Types */
5
5
  const IEntityMeta_1 = require("../IEntityMeta");
6
- exports.knowledgeSourceStatus = ["ready", "ingesting", "disabled"];
7
- exports.knowledgeSourceType = ["file", "website", "manual"];
6
+ exports.knowledgeSourceStatus = ["ready", "ingesting", "disabled", "failure"];
7
+ exports.knowledgeSourceType = ["pdf", "txt", "docx", "ctxt", "url", "manual"];
8
8
  exports.knowledgeSourceDataSchema = {
9
9
  title: "knowledgeSourceDataSchema",
10
10
  type: "object",
@@ -20,6 +20,17 @@ exports.knowledgeSourceDataSchema = {
20
20
  status: { type: "string", enum: [...exports.knowledgeSourceStatus] },
21
21
  metaData: { type: "object" },
22
22
  chunkCount: { type: "number" },
23
+ data: {
24
+ type: "object",
25
+ additionalProperties: false,
26
+ maxProperties: parseInt(process.env.MAX_SOURCE_METADATA_LIMIT, 10) || 20,
27
+ patternProperties: {
28
+ "^(?=.{1,200}$)[a-zA-Z][0-9a-zA-Z_$]*$": {
29
+ type: ["number", "string", "boolean"],
30
+ maxLength: parseInt(process.env.METADATA_VALUE_MAX_LENGTH, 10) || 1000
31
+ }
32
+ },
33
+ }
23
34
  }
24
35
  };
25
36
  exports.knowledgeSourceSchema = {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.knowledgeStoreSchema = exports.knowledgeStoreDataSchema = exports.knowledgeStoreStatus = void 0;
4
4
  /* Interfaces & Types */
5
5
  const IEntityMeta_1 = require("../IEntityMeta");
6
- exports.knowledgeStoreStatus = ["ready", "warning"];
6
+ exports.knowledgeStoreStatus = ["ready", "ingesting", "warning", "empty"];
7
7
  exports.knowledgeStoreDataSchema = {
8
8
  title: "knowledgeStoreDataSchema",
9
9
  type: "object",
@@ -5,12 +5,7 @@ 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
- const arrayTranslationProviders = [
9
- "none",
10
- "microsoft",
11
- "google",
12
- "deepl"
13
- ];
8
+ const ITranslationSettings_1 = require("./ITranslationSettings");
14
9
  const generateAgentSettingsRedisKey = (data) => {
15
10
  return [
16
11
  `organisationId:${data.organisationReference}:projectId:${data.projectReference}:agentsettings:v3`
@@ -22,24 +17,9 @@ exports.agentSettingsDataSchema = {
22
17
  type: "object",
23
18
  additionalProperties: false,
24
19
  properties: Object.assign(Object.assign({}, ISharedSettings_1.sharedSettingsSchema.properties), { trackDataOnlyInputs: { type: "boolean" }, collectAnalytics: { type: "boolean" }, timezone: { type: "string", format: "timezone" }, useCaseSensitiveIntentMapping: { type: "boolean" }, translationSettings: {
25
- type: "object",
20
+ type: ["object", "null"],
26
21
  additionalProperties: false,
27
- properties: {
28
- translationProvider: {
29
- type: "string",
30
- enum: [...arrayTranslationProviders]
31
- },
32
- translationAPIKey: { type: "string", maxLength: 255 },
33
- translationProviderCustomBaseUrl: { type: "string", maxLength: 255 },
34
- translationRetries: { type: "integer", minimum: 0, maximum: 3 },
35
- translationTimeout: { type: "integer", minimum: 0, maximum: 8000 },
36
- translationCacheExpiry: { type: "integer", enum: [0, 3600, 84600] },
37
- translationRegion: {
38
- type: "string",
39
- maxLength: 255,
40
- default: undefined
41
- }
42
- }
22
+ properties: Object.assign({}, ITranslationSettings_1.translationSettingsDataSchema.properties)
43
23
  }, audioPreviewSettings: {
44
24
  type: ["object", "null"],
45
25
  additionalProperties: false,
@@ -62,6 +62,10 @@ exports.generativeAISettingsDataSchema = {
62
62
  type: "object",
63
63
  properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
64
64
  },
65
+ sentimentAnalysis: {
66
+ type: "object",
67
+ properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
68
+ }
65
69
  }
66
70
  }
67
71
  }
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.translationSettingsDataSchema = exports.translationProviders = void 0;
4
+ exports.translationProviders = [
5
+ "none",
6
+ "microsoft",
7
+ "google",
8
+ "deepl"
9
+ ];
10
+ exports.translationSettingsDataSchema = {
11
+ title: "translationSettingsDataSchema",
12
+ type: ["object", "null"],
13
+ additionalProperties: false,
14
+ properties: {
15
+ provider: { type: ["string", "null"], enum: [...exports.translationProviders] },
16
+ connections: {
17
+ type: ["object", "null"],
18
+ properties: {
19
+ none: {
20
+ type: "object",
21
+ properties: {
22
+ connectionId: { type: ["string", "null"], format: "uuid" },
23
+ retries: { type: "number" },
24
+ timeout: { type: "number" },
25
+ cacheExpiry: { type: "number" },
26
+ customBaseUrl: { type: ["string", "null"] }
27
+ }
28
+ },
29
+ deepl: {
30
+ type: "object",
31
+ properties: {
32
+ connectionId: { type: ["string", "null"], format: "uuid" },
33
+ retries: { type: "number" },
34
+ timeout: { type: "number" },
35
+ cacheExpiry: { type: "number" },
36
+ customBaseUrl: { type: ["string", "null"] }
37
+ }
38
+ },
39
+ microsoft: {
40
+ type: "object",
41
+ properties: {
42
+ connectionId: { type: ["string", "null"], format: "uuid" },
43
+ retries: { type: "number" },
44
+ timeout: { type: "number" },
45
+ cacheExpiry: { type: "number" },
46
+ customBaseUrl: { type: ["string", "null"] }
47
+ }
48
+ },
49
+ google: {
50
+ type: "object",
51
+ properties: {
52
+ connectionId: { type: ["string", "null"], format: "uuid" },
53
+ retries: { type: "number" },
54
+ timeout: { type: "number" },
55
+ cacheExpiry: { type: "number" },
56
+ customBaseUrl: { type: ["string", "null"] }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ };
63
+ //# sourceMappingURL=ITranslationSettings.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.audioPreviewProviders = exports.audioPreviewSettingsDataSchema = exports.generativeAISettingsDataSchema = exports.sharedSettingsSchema = exports.flowSettingsSchema = exports.flowSettingsDataSchema = exports.flowIntentMappingOrderType = exports.agentSettingsSchema = exports.agentSettingsDataSchema = void 0;
3
+ exports.translationProviders = exports.translationSettingsDataSchema = exports.audioPreviewProviders = exports.audioPreviewSettingsDataSchema = exports.generativeAISettingsDataSchema = exports.sharedSettingsSchema = exports.flowSettingsSchema = exports.flowSettingsDataSchema = exports.flowIntentMappingOrderType = exports.agentSettingsSchema = exports.agentSettingsDataSchema = void 0;
4
4
  var IAgentSettings_1 = require("./IAgentSettings");
5
5
  Object.defineProperty(exports, "agentSettingsDataSchema", { enumerable: true, get: function () { return IAgentSettings_1.agentSettingsDataSchema; } });
6
6
  Object.defineProperty(exports, "agentSettingsSchema", { enumerable: true, get: function () { return IAgentSettings_1.agentSettingsSchema; } });
@@ -15,4 +15,7 @@ Object.defineProperty(exports, "generativeAISettingsDataSchema", { enumerable: t
15
15
  var IAudioPreviewSettings_1 = require("./IAudioPreviewSettings");
16
16
  Object.defineProperty(exports, "audioPreviewSettingsDataSchema", { enumerable: true, get: function () { return IAudioPreviewSettings_1.audioPreviewSettingsDataSchema; } });
17
17
  Object.defineProperty(exports, "audioPreviewProviders", { enumerable: true, get: function () { return IAudioPreviewSettings_1.audioPreviewProviders; } });
18
+ var ITranslationSettings_1 = require("./ITranslationSettings");
19
+ Object.defineProperty(exports, "translationSettingsDataSchema", { enumerable: true, get: function () { return ITranslationSettings_1.translationSettingsDataSchema; } });
20
+ Object.defineProperty(exports, "translationProviders", { enumerable: true, get: function () { return ITranslationSettings_1.translationProviders; } });
18
21
  //# sourceMappingURL=index.js.map