@cognigy/rest-api-client 0.18.0 → 0.20.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.
- package/CHANGELOG.md +6 -0
- package/build/RestAPIClient.js +7 -0
- package/build/apigroups/AdministrationAPIGroup_2_0.js +8 -1
- package/build/apigroups/JWTAuthAPIGroup_2_0.js +12 -0
- package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +28 -14
- package/build/apigroups/index.js +3 -1
- package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/identityAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/index.js +3 -1
- package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +4 -5
- package/build/shared/charts/descriptors/agentAssist/sendData.js +74 -0
- package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +1 -1
- package/build/shared/charts/descriptors/agentAssist/setAdaptiveCardTile.js +2 -0
- package/build/shared/charts/descriptors/agentAssist/setAgentAssistGrid.js +2 -1
- package/build/shared/charts/descriptors/agentAssist/setHtmlTile.js +5 -3
- package/build/shared/charts/descriptors/agentAssist/setIframeTile.js +5 -3
- package/build/shared/charts/descriptors/agentAssist/setSecureFormsTile.js +2 -2
- package/build/shared/charts/descriptors/agentAssist/transcriptAssist.js +2 -1
- package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/addMemory.js +51 -0
- package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
- package/build/shared/charts/descriptors/analytics/completeGoal.js +4 -2
- package/build/shared/charts/descriptors/analytics/deactivateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/deleteProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/helper.js +20 -0
- package/build/shared/charts/descriptors/analytics/index.js +5 -1
- package/build/shared/charts/descriptors/analytics/mergeProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +9 -0
- package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
- package/build/shared/charts/descriptors/analytics/trackGoal.js +102 -0
- package/build/shared/charts/descriptors/analytics/updateProfile.js +1 -0
- package/build/shared/charts/descriptors/apps/initAppSession.js +1 -0
- package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +35 -10
- package/build/shared/charts/descriptors/apps/setHtmlAppState.js +25 -2
- package/build/shared/charts/descriptors/apps/utils/getXAppsOverlaySettings.js +54 -0
- package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/azureAIDocumentIntelligenceConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/documentParserProviders/index.js +13 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockProviderConnection.js +12 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnection.js +4 -3
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderConnectionV2.js +3 -3
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/azureOpenAIProviderOauth2Connection.js +14 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +16 -8
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAIProviderConnection.js +3 -3
- package/build/shared/charts/descriptors/data/addToContext.js +7 -0
- package/build/shared/charts/descriptors/data/copyDataToContext.js +3 -0
- package/build/shared/charts/descriptors/data/copySlotsToContext.js +4 -1
- package/build/shared/charts/descriptors/data/debugMessage.js +73 -0
- package/build/shared/charts/descriptors/data/index.js +3 -1
- package/build/shared/charts/descriptors/data/removeFromContext.js +9 -1
- package/build/shared/charts/descriptors/data/resetContext.js +1 -0
- package/build/shared/charts/descriptors/index.js +19 -1
- package/build/shared/charts/descriptors/knowledgeSearch/knowledgeSearchV2.js +1 -1
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +55 -20
- package/build/shared/charts/descriptors/logic/disableSlotFillers.js +1 -1
- package/build/shared/charts/descriptors/logic/enableSlotFillers.js +1 -1
- package/build/shared/charts/descriptors/logic/resetState.js +1 -0
- package/build/shared/charts/descriptors/logic/setState.js +2 -1
- package/build/shared/charts/descriptors/logic/setTranslation.js +3 -1
- package/build/shared/charts/descriptors/logic/switchLocale.js +1 -0
- package/build/shared/charts/descriptors/logic/think.js +3 -1
- package/build/shared/charts/descriptors/logic/thinkV2.js +113 -4
- package/build/shared/charts/descriptors/message/question/question.js +50 -5
- package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
- package/build/shared/charts/descriptors/nlu/cleanText.js +2 -1
- package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +1 -1
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +24 -2
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFiller.js +1 -1
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerFallback.js +1 -1
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/generativeSlotFillerSuccess.js +1 -1
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +18 -9
- package/build/shared/charts/descriptors/nlu/matchPattern.js +1 -1
- package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +1 -1
- package/build/shared/charts/descriptors/service/GPTConversation.js +1 -1
- package/build/shared/charts/descriptors/service/GPTPrompt.js +70 -41
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +12 -3
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentHandover.js +92 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +1146 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobDefault.js +31 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +139 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +120 -0
- package/build/shared/charts/descriptors/service/aiAgent/helper.js +222 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +140 -2
- package/build/shared/charts/descriptors/service/httpRequest.js +35 -2
- package/build/shared/charts/descriptors/service/index.js +11 -1
- package/build/shared/charts/descriptors/transcripts/addTranscriptStep.js +413 -0
- package/build/shared/charts/descriptors/transcripts/getTranscript.js +104 -0
- package/build/shared/charts/descriptors/transcripts/index.js +8 -0
- package/build/shared/charts/descriptors/voice/mappers/base.mapper.js +20 -0
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +227 -72
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +6 -9
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +5 -4
- package/build/shared/charts/descriptors/voice/nodes/dtmf.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -0
- package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +8 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +4 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +4 -2
- package/build/shared/charts/descriptors/voicegateway/nodes/helper/utils.js +14 -0
- package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +4 -5
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +8 -1
- package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +7 -3
- package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +8 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +2 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +3 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -0
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +311 -10
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +25 -9
- package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
- package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
- package/build/shared/constants.js +16 -1
- package/build/shared/handoverClients/interfaces/THandoverEventType.js +2 -0
- package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
- package/build/shared/helper/nlu/textCleaner.js +4 -2
- package/build/shared/interfaces/IEndpointSettings.js +3 -0
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/IProfile.js +2 -0
- package/build/shared/interfaces/IProfileSchema.js +4 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +22 -20
- package/build/shared/interfaces/{restAPI/resources/milestone/v2.0/IMilestone_2_0.js → analytics/IGoalAnalytics.js} +1 -1
- package/build/shared/interfaces/appsession/ISetAppStateOptions.js +3 -0
- package/build/shared/interfaces/appsession/ISetAppStateOverlaySettings.js +3 -0
- package/build/shared/interfaces/appsession/ISetAppStateOverlaySettingsMetaData.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEventMessagePayload.js +3 -0
- package/build/shared/interfaces/debugEvents/TDebugEventType.js +2 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +51 -70
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourney_2_0.js → generativeAI/tools.js} +1 -1
- package/build/shared/interfaces/handover.js +45 -2
- package/build/shared/interfaces/license.js +3 -2
- package/build/shared/interfaces/messageAPI/endpoints.js +8 -1
- package/build/shared/interfaces/messageAPI/handover.js +22 -1
- package/build/shared/interfaces/resources/IAiAgent.js +52 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +2 -1
- package/build/shared/interfaces/resources/IConnection.js +1 -0
- package/build/shared/interfaces/resources/IEndpoint.js +2 -2
- package/build/shared/interfaces/resources/{IMilestone.js → IGoal.js} +15 -15
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +52 -4
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +15 -0
- package/build/shared/interfaces/resources/TResourceType.js +16 -8
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/build/shared/interfaces/resources/settings/IAgentSettings.js +12 -7
- package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +9 -1
- package/build/shared/interfaces/resources/settings/IKnowledgeAISettings.js +18 -0
- package/build/shared/interfaces/resources/settings/index.js +4 -1
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +0 -1
- package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadOrganisationKnowledgeChunksCountRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IGetPinnedResources_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/{resources/journey/v2.0/IReadJourneyRest_2_0.js → administration/user/v2.0/IPinResourceRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
- package/build/shared/interfaces/restAPI/resources/aiAgent/v2.0/IAiAgentHiringTemplate_2_0.js +32 -0
- package/build/shared/interfaces/restAPI/resources/aiAgent/v2.0/IAiAgent_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IIndexJourneysRest_2_0.js → aiAgent/v2.0/ICreateAiAgentRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/aiAgent/v2.0/IDeleteAiAgentRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/aiAgent/v2.0/IGetAiAgentHiringTemplates_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IJourneyStep_2_0.js → aiAgent/v2.0/IHireAiAgent_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IJourneyIndexItem_2_0.js → aiAgent/v2.0/IIndexAiAgentRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IJourneyProgress_2_0.js → aiAgent/v2.0/IReadAiAgentRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/aiAgent/v2.0/IUpdateAiAgentRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/aiAgent/v2.0/IValidateAiAgentNameRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/ICloneGoalRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/ICreateGoalRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IDeleteGoalRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IGoalIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IGoalStepMetric_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IGoalStep_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IGoal_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IIndexGoalsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IReadGoalRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/IUpdateGoalRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/goal/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IAvailableModelsForLLMProvider_2_0 .js +18 -0
- package/build/shared/interfaces/restAPI/resources/largeLanguageModel/v2.0/IGetAvailableModelsForLLMRest_2_0 .js +3 -0
- package/build/shared/interfaces/security/IPermission.js +6 -2
- package/build/shared/interfaces/security/IPinnedResource.js +3 -0
- package/build/shared/interfaces/security/IRole.js +2 -0
- package/build/shared/interfaces/security/ISystemCapabilities.js +3 -0
- package/build/shared/interfaces/security/index.js +1 -1
- package/build/shared/interfaces/trainer/ITrainerRecord.js +2 -2
- package/build/shared/interfaces/transcripts/transcripts.js +33 -0
- package/build/shared/interfaces/user.js +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +2332 -1041
- package/build/shared/interfaces/journeys/IJourney.js +0 -83
- package/build/shared/interfaces/journeys/IJourneyProgress.js +0 -40
- package/build/shared/interfaces/journeys/IJourneyTrackEvent.js +0 -35
- package/build/shared/interfaces/journeys/index.js +0 -14
- package/build/shared/interfaces/license.js.map +0 -1
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IJourneyTrackEvents_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IReadJourneyProgressRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/ITrackJourneyEventRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/journey/v2.0/IUpdateSelectedJourneyRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/ICreateKnowledgeSearchIndexRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/knowledgeSearchIndex/v2.0/IDeleteKnowledgeSearchIndexRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICloneMilestoneRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICreateMilestoneRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IDeleteMilestoneRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IIndexMilestonesRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneIndexItem_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStepMetric_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStep_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IReadMilestoneRest_2_0.js +0 -3
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IUpdateMilestoneRest_2_0.js +0 -3
- package/build/test.js +0 -27
- /package/build/shared/interfaces/restAPI/{resources/journey/v2.0 → operations}/index.js +0 -0
- /package/build/shared/interfaces/restAPI/{resources/knowledgeSearchIndex → operations/nlu}/v2.0/index.js +0 -0
- /package/build/shared/interfaces/restAPI/resources/{milestone → aiAgent}/v2.0/index.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
|
|
3
|
+
exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.queueUpdateOptionsSchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.copilotType = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
|
|
4
4
|
exports.externalHandoverProviders = [
|
|
5
5
|
"rce",
|
|
6
6
|
"chatwoot",
|
|
@@ -23,6 +23,11 @@ exports.whisperAssistConfigurations = [
|
|
|
23
23
|
"basic",
|
|
24
24
|
"template"
|
|
25
25
|
];
|
|
26
|
+
exports.copilotType = [
|
|
27
|
+
"none",
|
|
28
|
+
"workspace",
|
|
29
|
+
"whisper"
|
|
30
|
+
];
|
|
26
31
|
exports.handoverSettingsSchema = {
|
|
27
32
|
title: "handoverSettingsSchema",
|
|
28
33
|
type: "object",
|
|
@@ -87,6 +92,10 @@ exports.handoverSettingsSchema = {
|
|
|
87
92
|
type: "object",
|
|
88
93
|
additionalProperties: false,
|
|
89
94
|
properties: {
|
|
95
|
+
copilotType: {
|
|
96
|
+
type: "string",
|
|
97
|
+
enum: [...exports.copilotType]
|
|
98
|
+
},
|
|
90
99
|
agentAssistFlowId: { type: "string" },
|
|
91
100
|
agentAssistConfigId: { type: "string" },
|
|
92
101
|
enableTranscriptTile: { type: "boolean" },
|
|
@@ -102,7 +111,9 @@ exports.handoverRequestSettingsSchema = {
|
|
|
102
111
|
type: "object",
|
|
103
112
|
additionalProperties: false,
|
|
104
113
|
properties: {
|
|
105
|
-
additionalCategoryIds: { type: "array" }
|
|
114
|
+
additionalCategoryIds: { type: "array" },
|
|
115
|
+
enableHandoverDisconnectMessageRingCentralEngage: { type: "boolean" },
|
|
116
|
+
enableHandoverConnectMessageRingCentralEngage: { type: "boolean" }
|
|
106
117
|
}
|
|
107
118
|
};
|
|
108
119
|
exports.foreignSessionDataSchema = {
|
|
@@ -195,6 +206,38 @@ exports.eightByEightSettingsSchema = {
|
|
|
195
206
|
},
|
|
196
207
|
}
|
|
197
208
|
};
|
|
209
|
+
exports.queueUpdateOptionsSchema = {
|
|
210
|
+
"title": "queueUpdateOptionsSchema",
|
|
211
|
+
"type": "object",
|
|
212
|
+
"additionalProperties": false,
|
|
213
|
+
"required": [],
|
|
214
|
+
"properties": {
|
|
215
|
+
"getQueuePosition": {
|
|
216
|
+
"type": "boolean"
|
|
217
|
+
},
|
|
218
|
+
"getEstimatedWaitTime": {
|
|
219
|
+
"type": "boolean"
|
|
220
|
+
},
|
|
221
|
+
"updateIntervalQueuePosition": {
|
|
222
|
+
"type": ["number", "null"]
|
|
223
|
+
},
|
|
224
|
+
"updateIntervalEstimatedWaitTime": {
|
|
225
|
+
"type": ["number", "null"]
|
|
226
|
+
},
|
|
227
|
+
"alternativeUpdate": {
|
|
228
|
+
"type": "boolean"
|
|
229
|
+
},
|
|
230
|
+
"maximumQueuePosition": {
|
|
231
|
+
"type": ["number", "null"]
|
|
232
|
+
},
|
|
233
|
+
"maximumEstimatedWaitTime": {
|
|
234
|
+
"type": ["number", "null"]
|
|
235
|
+
},
|
|
236
|
+
"alternativeText": {
|
|
237
|
+
"type": ["string", "null"]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
};
|
|
198
241
|
exports.handoverAgentReplySchema = {
|
|
199
242
|
"required": ["sessionId", "message"],
|
|
200
243
|
"type": "object",
|
|
@@ -25,10 +25,11 @@ exports.licenseStates = [
|
|
|
25
25
|
"expiredRenewRequired",
|
|
26
26
|
"expired" /* The license is expired. The system can no longer be used (ui, api) */
|
|
27
27
|
];
|
|
28
|
-
exports.licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent"];
|
|
28
|
+
exports.licenseCapabilitiesFromKey = ["ui", "handover", "liveAgent", "knowledge"];
|
|
29
29
|
exports.licenseCapabilitiesMapping = {
|
|
30
30
|
ui: "uiLicensed",
|
|
31
31
|
handover: "handoverLicensed",
|
|
32
|
-
liveAgent:
|
|
32
|
+
liveAgent: "liveAgentLicensed",
|
|
33
|
+
knowledge: "knowledgeLicensed",
|
|
33
34
|
};
|
|
34
35
|
//# sourceMappingURL=license.js.map
|
|
@@ -110,6 +110,7 @@ const callEvents = [
|
|
|
110
110
|
"RECOGNIZED_SPEECH",
|
|
111
111
|
"RECOGNIZED_DTMF",
|
|
112
112
|
"CALL_CREATED",
|
|
113
|
+
"CALL_IN_PROGRESS",
|
|
113
114
|
"CALL_RECONNECTED",
|
|
114
115
|
"CALL_COMPLETED",
|
|
115
116
|
"CALL_FAILED",
|
|
@@ -128,6 +129,7 @@ const callFailoverSettingsSchema = {
|
|
|
128
129
|
additionalProperties: false,
|
|
129
130
|
properties: {
|
|
130
131
|
enabled: { type: "boolean" },
|
|
132
|
+
enabledForSpeech: { type: "boolean" },
|
|
131
133
|
type: { type: "string", enum: [...transferTypes] },
|
|
132
134
|
headers: { type: "string" },
|
|
133
135
|
to: { type: "string" },
|
|
@@ -147,7 +149,8 @@ const callFailoverSettingsSchema = {
|
|
|
147
149
|
deepgramSmartFormatting: { type: "boolean" },
|
|
148
150
|
deepgramEndpointing: { type: "boolean" },
|
|
149
151
|
deepgramEndpointingValue: { type: "number" },
|
|
150
|
-
dialTranscribeDeepgramTier: { type: "string" }
|
|
152
|
+
dialTranscribeDeepgramTier: { type: "string" },
|
|
153
|
+
anchorMedia: { type: "boolean" }
|
|
151
154
|
}
|
|
152
155
|
};
|
|
153
156
|
exports.callEventSettingsSchema = {
|
|
@@ -173,6 +176,7 @@ const callEventsSchema = {
|
|
|
173
176
|
callCreated: exports.callEventSettingsSchema,
|
|
174
177
|
callCompleted: exports.callEventSettingsSchema,
|
|
175
178
|
callFailed: exports.callEventSettingsSchema,
|
|
179
|
+
callInProgress: exports.callEventSettingsSchema,
|
|
176
180
|
callReconnected: exports.callEventSettingsSchema,
|
|
177
181
|
recognizedDtmf: exports.callEventSettingsSchema,
|
|
178
182
|
recognizedSpeech: exports.callEventSettingsSchema,
|
|
@@ -353,7 +357,10 @@ exports.anyEndpointSettingsSchema = {
|
|
|
353
357
|
disableHtmlContentSanitization: { type: "boolean" },
|
|
354
358
|
disableInputAutocomplete: { type: "boolean" },
|
|
355
359
|
disableUrlButtonSanitization: { type: "boolean" },
|
|
360
|
+
disableInputSanitization: { type: "boolean" },
|
|
361
|
+
disableSkipUriTags: { type: "boolean" },
|
|
356
362
|
enableAsyncCommunication: { type: "boolean" },
|
|
363
|
+
enableCollectMetadata: { type: "boolean" },
|
|
357
364
|
enableGenericHTMLStyling: { type: "boolean" },
|
|
358
365
|
enableDemoWebchat: { type: "boolean" },
|
|
359
366
|
enableFileUpload: { type: "boolean" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.handleHandoverRpcEventSchema = exports.pollAgentRepliesEventSchema = exports.activateHandoverConversationSchema = exports.sendMessageToProviderSchema = exports.getHandoverRequestDataSchema = exports.createHandoverRequestDataSchema = void 0;
|
|
3
|
+
exports.getQueueUpdateEventsSchema = exports.handleHandoverRpcEventSchema = exports.pollAgentRepliesEventSchema = exports.activateHandoverConversationSchema = exports.sendMessageToProviderSchema = exports.getHandoverRequestDataSchema = exports.createHandoverRequestDataSchema = void 0;
|
|
4
4
|
const handover_1 = require("../handover");
|
|
5
5
|
exports.createHandoverRequestDataSchema = {
|
|
6
6
|
title: "createHandoverRequestDataSchema",
|
|
@@ -280,4 +280,25 @@ exports.handleHandoverRpcEventSchema = {
|
|
|
280
280
|
disableSensitiveLogging: { type: "boolean" }
|
|
281
281
|
},
|
|
282
282
|
};
|
|
283
|
+
exports.getQueueUpdateEventsSchema = {
|
|
284
|
+
title: "getQueueUpdateEventsSchema",
|
|
285
|
+
type: "object",
|
|
286
|
+
additionalProperties: false,
|
|
287
|
+
required: [
|
|
288
|
+
"handoverSettings",
|
|
289
|
+
"foreignSessionData",
|
|
290
|
+
"traceId",
|
|
291
|
+
"disableSensitiveLogging"
|
|
292
|
+
],
|
|
293
|
+
properties: {
|
|
294
|
+
organisationId: { type: "string" },
|
|
295
|
+
projectId: { type: "string" },
|
|
296
|
+
handoverSettings: handover_1.handoverSettingsSchema,
|
|
297
|
+
foreignSessionData: handover_1.foreignSessionDataSchema,
|
|
298
|
+
queueUpdateOptions: handover_1.queueUpdateOptionsSchema,
|
|
299
|
+
sessionId: { type: "string" },
|
|
300
|
+
traceId: { type: "string" },
|
|
301
|
+
disableSensitiveLogging: { type: "boolean" }
|
|
302
|
+
},
|
|
303
|
+
};
|
|
283
304
|
//# sourceMappingURL=handover.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.aiAgentSchema = exports.aiAgentDataSchema = exports.contactProfileOptions = void 0;
|
|
4
|
+
/* Interfaces & Types */
|
|
5
|
+
const IEntityMeta_1 = require("./IEntityMeta");
|
|
6
|
+
exports.contactProfileOptions = ["none", "selectedProfileFields", "completeProfile", "profileMemoriesOnly"];
|
|
7
|
+
exports.aiAgentDataSchema = {
|
|
8
|
+
title: "aiAgentDataSchema",
|
|
9
|
+
type: "object",
|
|
10
|
+
additionalProperties: false,
|
|
11
|
+
required: ["name"],
|
|
12
|
+
properties: {
|
|
13
|
+
name: { type: "string", format: "resource-name" },
|
|
14
|
+
image: { type: "string" },
|
|
15
|
+
imageOptimizedFormat: { type: "boolean" },
|
|
16
|
+
knowledgeReferenceId: { type: "string", format: "uuid" },
|
|
17
|
+
description: { type: "string", maxLength: 1000 },
|
|
18
|
+
speakingStyle: {
|
|
19
|
+
type: "object",
|
|
20
|
+
properties: {
|
|
21
|
+
completeness: { type: "string" },
|
|
22
|
+
formality: { type: "string" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
safetySettings: {
|
|
26
|
+
type: "object",
|
|
27
|
+
properties: {
|
|
28
|
+
avoidHarmfulContent: { type: "boolean" },
|
|
29
|
+
avoidUngroundedContent: { type: "boolean" },
|
|
30
|
+
avoidCopyrightInfringements: { type: "boolean" },
|
|
31
|
+
preventJailbreakAndManipulation: { type: "boolean" }
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
instructions: { type: "string", maxLength: 1000 },
|
|
35
|
+
contactProfilesOption: {
|
|
36
|
+
type: "string",
|
|
37
|
+
enum: [...exports.contactProfileOptions]
|
|
38
|
+
},
|
|
39
|
+
contactProfilesSelected: {
|
|
40
|
+
type: "array", items: {
|
|
41
|
+
type: "string"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
exports.aiAgentSchema = {
|
|
47
|
+
title: "aiAgentSchema",
|
|
48
|
+
type: "object",
|
|
49
|
+
additionalProperties: false,
|
|
50
|
+
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.aiAgentDataSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=IAiAgent.js.map
|
|
@@ -35,7 +35,7 @@ exports.actionTypes = [
|
|
|
35
35
|
"cancelTask",
|
|
36
36
|
"changePlaybookStepOrder",
|
|
37
37
|
"cloneFlow",
|
|
38
|
-
"
|
|
38
|
+
"cloneGoal",
|
|
39
39
|
"cloneLargeLanguageModel",
|
|
40
40
|
"configureIdentityProvider",
|
|
41
41
|
"createKnowledgeSearchIndex",
|
|
@@ -46,6 +46,7 @@ exports.actionTypes = [
|
|
|
46
46
|
"deprecatePassword",
|
|
47
47
|
"exportLexicons",
|
|
48
48
|
"followSession",
|
|
49
|
+
"hireAiAgent",
|
|
49
50
|
"importIntents",
|
|
50
51
|
"importIntoLexicon",
|
|
51
52
|
"ingestKnowledgeStore",
|
|
@@ -15,7 +15,6 @@ exports.endpointDataSchema = {
|
|
|
15
15
|
URLToken: { type: "string", format: "alphanum-64" },
|
|
16
16
|
active: { type: "boolean" },
|
|
17
17
|
channel: { type: "string", format: "endpoint-channel" },
|
|
18
|
-
chatbaseApikey: { type: "string" },
|
|
19
18
|
dashbotApikey: { type: "string" },
|
|
20
19
|
dashbotPlatform: { type: "string" },
|
|
21
20
|
flowId: {
|
|
@@ -47,13 +46,14 @@ exports.endpointDataSchema = {
|
|
|
47
46
|
translationSettings: IEndpointTranslationSettings_1.translationSettingsEndpointSchema,
|
|
48
47
|
foreignId: { type: "string" },
|
|
49
48
|
useAnalytics: { type: "boolean" },
|
|
50
|
-
useChatbaseAnalytics: { type: "boolean" },
|
|
51
49
|
useContactProfiles: { type: "boolean" },
|
|
52
50
|
useConversations: { type: "boolean" },
|
|
53
51
|
storeDataPayload: { type: "boolean" },
|
|
54
52
|
useDashbotAnalytics: { type: "boolean" },
|
|
55
53
|
overrideSnapshotConnections: { type: "boolean" },
|
|
56
54
|
fileStorageSettings: fileStorage_1.fileStorageSettingsSchema,
|
|
55
|
+
disableInputSanitization: { type: "boolean" },
|
|
56
|
+
disableSkipUriTags: { type: "boolean" }
|
|
57
57
|
},
|
|
58
58
|
};
|
|
59
59
|
exports.endpointSchema = {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.goalSchema = exports.goalDataSchema = exports.goalStepSchema = exports.goalStepMetricSchema = void 0;
|
|
4
4
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
5
|
-
exports.
|
|
6
|
-
title: "
|
|
5
|
+
exports.goalStepMetricSchema = {
|
|
6
|
+
title: "goalStepMetricSchema",
|
|
7
7
|
type: "object",
|
|
8
8
|
additionalProperties: false,
|
|
9
9
|
properties: {
|
|
10
10
|
_id: { type: "string", format: "mongo-id" },
|
|
11
11
|
name: { type: "string" },
|
|
12
12
|
description: { type: "string" },
|
|
13
|
-
type: { type: "string", enum: ["currency", "duration"] },
|
|
13
|
+
type: { type: "string", enum: ["currency", "duration", "revenue"] },
|
|
14
14
|
value: { type: "number" },
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
title: "
|
|
17
|
+
exports.goalStepSchema = {
|
|
18
|
+
title: "goalStepSchema",
|
|
19
19
|
type: "object",
|
|
20
20
|
additionalProperties: false,
|
|
21
21
|
properties: {
|
|
@@ -26,25 +26,25 @@ exports.milestoneStepSchema = {
|
|
|
26
26
|
type: { type: "string", enum: ["start", "completion"] },
|
|
27
27
|
metrics: {
|
|
28
28
|
type: "array",
|
|
29
|
-
items: exports.
|
|
29
|
+
items: exports.goalStepMetricSchema,
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
};
|
|
33
|
-
exports.
|
|
34
|
-
title: "
|
|
33
|
+
exports.goalDataSchema = {
|
|
34
|
+
title: "goalDataSchema",
|
|
35
35
|
type: "object",
|
|
36
36
|
additionalProperties: false,
|
|
37
37
|
properties: {
|
|
38
|
-
version: { type: "
|
|
38
|
+
version: { type: "string", format: "uuid" },
|
|
39
39
|
description: { type: "string" },
|
|
40
40
|
name: { type: "string", format: "resource-name" },
|
|
41
|
-
steps: { type: "array", items: exports.
|
|
41
|
+
steps: { type: "array", items: exports.goalStepSchema },
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
|
-
exports.
|
|
45
|
-
title: "
|
|
44
|
+
exports.goalSchema = {
|
|
45
|
+
title: "goalSchema",
|
|
46
46
|
type: "object",
|
|
47
47
|
additionalProperties: false,
|
|
48
|
-
properties: Object.assign(Object.assign(Object.assign({}, exports.
|
|
48
|
+
properties: Object.assign(Object.assign(Object.assign({}, exports.goalDataSchema.properties), IEntityMeta_1.entityMetaSchema.properties), { referenceId: { type: "string", format: "uuid" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } }),
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=IGoal.js.map
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.anthropicMetaSchema = void 0;
|
|
3
|
+
exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
|
|
4
4
|
/* Custom Modules */
|
|
5
5
|
const createQuerySchema_1 = require("../../helper/createQuerySchema");
|
|
6
6
|
const IEntityMeta_1 = require("./IEntityMeta");
|
|
7
7
|
const IGenerativeAIModels_1 = require("../generativeAI/IGenerativeAIModels");
|
|
8
|
+
const IGenerativeAIModels_2 = require("../generativeAI/IGenerativeAIModels");
|
|
8
9
|
exports.anthropicMetaSchema = {
|
|
9
10
|
title: "anthropicMetaSchema",
|
|
10
11
|
type: "object",
|
|
@@ -13,6 +14,15 @@ exports.anthropicMetaSchema = {
|
|
|
13
14
|
customModel: { type: ["string", "null"] }
|
|
14
15
|
}
|
|
15
16
|
};
|
|
17
|
+
exports.awsBedrockMetaSchema = {
|
|
18
|
+
title: "awsBedrockMetaSchema",
|
|
19
|
+
type: "object",
|
|
20
|
+
additionalProperties: false,
|
|
21
|
+
properties: {
|
|
22
|
+
customModel: { type: ["string", "null"] },
|
|
23
|
+
region: { type: "string", format: "resource-name" }
|
|
24
|
+
}
|
|
25
|
+
};
|
|
16
26
|
exports.alephAlphaMetaSchema = {
|
|
17
27
|
title: "alephAlphaMetaSchema",
|
|
18
28
|
type: "object",
|
|
@@ -53,6 +63,40 @@ exports.googleVertexAIMetaSchema = {
|
|
|
53
63
|
customModel: { type: ["string", "null"] },
|
|
54
64
|
}
|
|
55
65
|
};
|
|
66
|
+
exports.googleGeminiMetaSchema = {
|
|
67
|
+
title: "googleGeminiMetaSchema",
|
|
68
|
+
type: "object",
|
|
69
|
+
additionalProperties: false,
|
|
70
|
+
properties: {
|
|
71
|
+
location: { type: "string", format: "resource-name" },
|
|
72
|
+
customModel: { type: ["string", "null"] },
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.llmFallbackSchema = {
|
|
76
|
+
title: "TLLMFallbackArraySchema",
|
|
77
|
+
type: "array",
|
|
78
|
+
items: {
|
|
79
|
+
type: "object",
|
|
80
|
+
additionalProperties: false,
|
|
81
|
+
properties: {
|
|
82
|
+
order: { type: "integer" },
|
|
83
|
+
isFallbackEnabled: { type: "boolean" },
|
|
84
|
+
fallbackLLMReferenceId: { type: "string", format: "uuid" },
|
|
85
|
+
immediateFallBack: {
|
|
86
|
+
type: "object",
|
|
87
|
+
additionalProperties: false,
|
|
88
|
+
properties: {
|
|
89
|
+
failedRequests: { type: "number", format: "fallback-failed-requests" },
|
|
90
|
+
durationInMinutes: { type: "number", format: "fallback-duration" },
|
|
91
|
+
emailNotificationList: {
|
|
92
|
+
type: "array",
|
|
93
|
+
items: { type: "string", format: "email" },
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
};
|
|
56
100
|
exports.largeLanguageModelDataSchema = {
|
|
57
101
|
title: "largeLanguageModelDataSchema",
|
|
58
102
|
type: "object",
|
|
@@ -66,15 +110,19 @@ exports.largeLanguageModelDataSchema = {
|
|
|
66
110
|
description: { type: "string", format: "resource-description" },
|
|
67
111
|
modelType: { type: "string" } /* wildcard string for the Custom Models */,
|
|
68
112
|
isCustomModel: { type: "boolean" },
|
|
69
|
-
|
|
70
|
-
|
|
113
|
+
areFallbacksEnabled: { type: "boolean" },
|
|
114
|
+
modelGroup: { type: "string", enum: [...IGenerativeAIModels_1.modeType] },
|
|
115
|
+
provider: { type: "string", enum: [...IGenerativeAIModels_2.generativeAIProviders] },
|
|
71
116
|
connectionId: { type: "string", format: "uuid" },
|
|
72
117
|
isDefault: { type: "boolean" },
|
|
73
118
|
openAI: exports.openAIMetaSchema,
|
|
74
119
|
azureOpenAI: exports.azureOpenAIMetaSchema,
|
|
75
120
|
googleVertexAI: exports.googleVertexAIMetaSchema,
|
|
121
|
+
googleGemini: exports.googleGeminiMetaSchema,
|
|
76
122
|
alephAlpha: exports.alephAlphaMetaSchema,
|
|
77
|
-
anthropic: exports.anthropicMetaSchema
|
|
123
|
+
anthropic: exports.anthropicMetaSchema,
|
|
124
|
+
awsBedrock: exports.awsBedrockMetaSchema,
|
|
125
|
+
fallbacks: exports.llmFallbackSchema
|
|
78
126
|
}
|
|
79
127
|
};
|
|
80
128
|
exports.largeLanguageModelSchema = {
|
|
@@ -30,6 +30,7 @@ exports.nodePreviewTypes = [
|
|
|
30
30
|
"custom",
|
|
31
31
|
"resource",
|
|
32
32
|
"image",
|
|
33
|
+
"aiAgent"
|
|
33
34
|
];
|
|
34
35
|
const nodePreviewSchema = {
|
|
35
36
|
title: "nodePreviewSchema",
|
|
@@ -110,10 +111,13 @@ exports.nodeFieldTypes = [
|
|
|
110
111
|
"function",
|
|
111
112
|
"json",
|
|
112
113
|
"keyValuePairs",
|
|
114
|
+
"toolParameters",
|
|
113
115
|
"knowledgeStore",
|
|
114
116
|
"knowledgeStoreSelect",
|
|
115
117
|
"knowledgeSourceTags",
|
|
116
118
|
"llmSelect",
|
|
119
|
+
"aiAgentSelect",
|
|
120
|
+
"goalAndStepsSelect",
|
|
117
121
|
"lexicon",
|
|
118
122
|
"localeField",
|
|
119
123
|
"node",
|
|
@@ -269,6 +273,17 @@ exports.nodeFieldSchema = {
|
|
|
269
273
|
},
|
|
270
274
|
params: { type: "object" },
|
|
271
275
|
optionsResolver: exports.nodeOptionsResolverSchema,
|
|
276
|
+
resetOption: {
|
|
277
|
+
type: "object",
|
|
278
|
+
additionalProperties: false,
|
|
279
|
+
properties: {
|
|
280
|
+
lookupValue: { type: "string" },
|
|
281
|
+
fieldsToReset: {
|
|
282
|
+
type: "array",
|
|
283
|
+
items: { type: "string" },
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
272
287
|
},
|
|
273
288
|
};
|
|
274
289
|
exports.nodeSectionSchema = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.primaryResourceTypes = exports.packageableResourceTypes = exports.searchableResourceTypes = exports.chartableResourceTypes = exports.resourceTypes = exports.arrayTChartableResourceType = exports.arrayTSnapshottableResourceType = exports.arrayTResourceType = void 0;
|
|
3
|
+
exports.pinnableResourceTypes = exports.primaryResourceTypes = exports.packageableResourceTypes = exports.searchableResourceTypes = exports.chartableResourceTypes = exports.resourceTypes = exports.arrayTChartableResourceType = exports.arrayTSnapshottableResourceType = exports.arrayTResourceType = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* @openapi
|
|
6
6
|
* components:
|
|
@@ -10,6 +10,7 @@ exports.primaryResourceTypes = exports.packageableResourceTypes = exports.search
|
|
|
10
10
|
* description: The type of a resource
|
|
11
11
|
* example: flow
|
|
12
12
|
* enum:
|
|
13
|
+
* - aiAgent
|
|
13
14
|
* - agentassistconfig
|
|
14
15
|
* - agentSettings
|
|
15
16
|
* - chart
|
|
@@ -35,7 +36,7 @@ exports.primaryResourceTypes = exports.packageableResourceTypes = exports.search
|
|
|
35
36
|
* - lexiconKeyphrase
|
|
36
37
|
* - lexiconSlot
|
|
37
38
|
* - locale
|
|
38
|
-
* -
|
|
39
|
+
* - goal
|
|
39
40
|
* - nluconnector
|
|
40
41
|
* - nodeData
|
|
41
42
|
* - nodeDescriptorSet
|
|
@@ -73,7 +74,7 @@ exports.arrayTResourceType = [
|
|
|
73
74
|
"lexiconKeyphrase",
|
|
74
75
|
"lexiconSlot",
|
|
75
76
|
"locale",
|
|
76
|
-
"
|
|
77
|
+
"goal",
|
|
77
78
|
"nluconnector",
|
|
78
79
|
"nodeData",
|
|
79
80
|
"nodeDescriptorSet",
|
|
@@ -83,9 +84,11 @@ exports.arrayTResourceType = [
|
|
|
83
84
|
"slotFiller",
|
|
84
85
|
"snapshot",
|
|
85
86
|
"snippet",
|
|
87
|
+
"aiAgent",
|
|
86
88
|
];
|
|
87
89
|
exports.arrayTSnapshottableResourceType = [
|
|
88
90
|
"agentSettings",
|
|
91
|
+
"aiAgent",
|
|
89
92
|
"chart",
|
|
90
93
|
"connection",
|
|
91
94
|
"connectionSchema",
|
|
@@ -106,7 +109,7 @@ exports.arrayTSnapshottableResourceType = [
|
|
|
106
109
|
"lexiconKeyphrase",
|
|
107
110
|
"lexiconSlot",
|
|
108
111
|
"locale",
|
|
109
|
-
"
|
|
112
|
+
"goal",
|
|
110
113
|
"nluconnector",
|
|
111
114
|
"nodeData",
|
|
112
115
|
"nodeDescriptorSet",
|
|
@@ -131,7 +134,7 @@ exports.chartableResourceTypes = [...exports.arrayTChartableResourceType];
|
|
|
131
134
|
* - flow
|
|
132
135
|
* - function
|
|
133
136
|
* - lexicon
|
|
134
|
-
* -
|
|
137
|
+
* - goal
|
|
135
138
|
* - nluconnector
|
|
136
139
|
* - playbook
|
|
137
140
|
* - project
|
|
@@ -144,13 +147,14 @@ exports.searchableResourceTypes = [
|
|
|
144
147
|
"function",
|
|
145
148
|
"largeLanguageModel",
|
|
146
149
|
"lexicon",
|
|
147
|
-
"
|
|
150
|
+
"goal",
|
|
148
151
|
"nluconnector",
|
|
149
152
|
"playbook",
|
|
150
153
|
"project",
|
|
151
154
|
"snapshot",
|
|
152
155
|
];
|
|
153
156
|
exports.packageableResourceTypes = [
|
|
157
|
+
"aiAgent",
|
|
154
158
|
"agentAssistConfig",
|
|
155
159
|
"connection",
|
|
156
160
|
"endpoint",
|
|
@@ -162,12 +166,13 @@ exports.packageableResourceTypes = [
|
|
|
162
166
|
"knowledgeStore",
|
|
163
167
|
"lexicon",
|
|
164
168
|
"locale",
|
|
165
|
-
"
|
|
169
|
+
"goal",
|
|
166
170
|
"nluconnector",
|
|
167
171
|
"playbook",
|
|
168
172
|
"snippet",
|
|
169
173
|
];
|
|
170
174
|
exports.primaryResourceTypes = [
|
|
175
|
+
"aiAgent",
|
|
171
176
|
"connection",
|
|
172
177
|
"endpoint",
|
|
173
178
|
"extension",
|
|
@@ -177,9 +182,12 @@ exports.primaryResourceTypes = [
|
|
|
177
182
|
"largeLanguageModel",
|
|
178
183
|
"lexicon",
|
|
179
184
|
"locale",
|
|
180
|
-
"
|
|
185
|
+
"goal",
|
|
181
186
|
"nluconnector",
|
|
182
187
|
"playbook",
|
|
183
188
|
"snippet",
|
|
184
189
|
];
|
|
190
|
+
exports.pinnableResourceTypes = [
|
|
191
|
+
"project"
|
|
192
|
+
];
|
|
185
193
|
//# sourceMappingURL=TResourceType.js.map
|
|
@@ -4,7 +4,7 @@ exports.knowledgeSourceSchema = exports.knowledgeSourceDataSchema = exports.know
|
|
|
4
4
|
/* Interfaces & Types */
|
|
5
5
|
const IEntityMeta_1 = require("../IEntityMeta");
|
|
6
6
|
exports.knowledgeSourceStatus = ["ready", "ingesting", "disabled", "failure"];
|
|
7
|
-
exports.knowledgeSourceType = ["pdf", "txt", "docx", "ctxt", "url", "manual"];
|
|
7
|
+
exports.knowledgeSourceType = ["pdf", "txt", "docx", "pptx", "ctxt", "url", "manual", "jpeg", "jpg", "png", "bmp", "heif", "tiff"];
|
|
8
8
|
exports.knowledgeSourceDataSchema = {
|
|
9
9
|
title: "knowledgeSourceDataSchema",
|
|
10
10
|
type: "object",
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.agentSettingsSchema = exports.agentSettingsDataSchema =
|
|
3
|
+
exports.agentSettingsSchema = exports.agentSettingsDataSchema = void 0;
|
|
4
4
|
const IEntityMeta_1 = require("../IEntityMeta");
|
|
5
5
|
const ISharedSettings_1 = require("./ISharedSettings");
|
|
6
6
|
const IGenerativeAISettings_1 = require("./IGenerativeAISettings");
|
|
7
7
|
const IAudioPreviewSettings_1 = require("./IAudioPreviewSettings");
|
|
8
8
|
const ITranslationSettings_1 = require("./ITranslationSettings");
|
|
9
|
-
const
|
|
10
|
-
return [
|
|
11
|
-
`organisationId:${data.organisationReference}:projectId:${data.projectReference}:agentsettings:v3`
|
|
12
|
-
];
|
|
13
|
-
};
|
|
14
|
-
exports.generateAgentSettingsRedisKey = generateAgentSettingsRedisKey;
|
|
9
|
+
const IKnowledgeAISettings_1 = require("./IKnowledgeAISettings");
|
|
15
10
|
exports.agentSettingsDataSchema = {
|
|
16
11
|
title: "agentSettingsDataSchema",
|
|
17
12
|
type: "object",
|
|
@@ -28,6 +23,16 @@ exports.agentSettingsDataSchema = {
|
|
|
28
23
|
type: ["object", "null"],
|
|
29
24
|
additionalProperties: false,
|
|
30
25
|
properties: Object.assign({}, IGenerativeAISettings_1.generativeAISettingsDataSchema.properties)
|
|
26
|
+
}, currencySettings: {
|
|
27
|
+
type: ["object", "null"],
|
|
28
|
+
additionalProperties: false,
|
|
29
|
+
properties: {
|
|
30
|
+
currency: { type: "string", format: "currency-code" },
|
|
31
|
+
}
|
|
32
|
+
}, knowledgeAISettings: {
|
|
33
|
+
type: ["object", "null"],
|
|
34
|
+
additionalProperties: false,
|
|
35
|
+
properties: Object.assign({}, IKnowledgeAISettings_1.knowledgeAISettingsDataSchema.properties)
|
|
31
36
|
} })
|
|
32
37
|
};
|
|
33
38
|
exports.agentSettingsSchema = {
|
|
@@ -69,7 +69,15 @@ exports.generativeAISettingsDataSchema = {
|
|
|
69
69
|
nlu: {
|
|
70
70
|
type: "object",
|
|
71
71
|
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
|
+
answerExtraction: {
|
|
74
|
+
type: "object",
|
|
75
|
+
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
76
|
+
},
|
|
77
|
+
aiAgent: {
|
|
78
|
+
type: "object",
|
|
79
|
+
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
80
|
+
},
|
|
73
81
|
}
|
|
74
82
|
}
|
|
75
83
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.knowledgeAISettingsDataSchema = exports.fileExtractorOptions = void 0;
|
|
4
|
+
exports.fileExtractorOptions = [
|
|
5
|
+
"default",
|
|
6
|
+
"legacy",
|
|
7
|
+
"azure",
|
|
8
|
+
];
|
|
9
|
+
exports.knowledgeAISettingsDataSchema = {
|
|
10
|
+
title: "knowledgeAISettingsDataSchema",
|
|
11
|
+
type: ["object", "null"],
|
|
12
|
+
additionalProperties: false,
|
|
13
|
+
properties: {
|
|
14
|
+
fileExtractor: { type: ["string", "null"], enum: [...exports.fileExtractorOptions] },
|
|
15
|
+
azureDIConnectionId: { type: ["string", "null"], format: "uuid" },
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=IKnowledgeAISettings.js.map
|