@cognigy/rest-api-client 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/build/GenericTusFn.js +6 -1
- package/build/GenericUploadFn.js +3 -5
- package/build/apigroups/AdministrationAPIGroup_2_0.js +3 -1
- package/build/apigroups/MetricsAPIGroup_2_0.js +5 -0
- package/build/apigroups/ResourcesAPIGroup_2_0.js +21 -7
- package/build/connector/AxiosAdapter.js +35 -15
- package/build/shared/charts/createNodeDescriptor.js +5 -5
- package/build/shared/charts/descriptors/agentAssist/constants/constants.js +16 -1
- package/build/shared/charts/descriptors/agentAssist/helpers/agentAssistTranslator.helper.js +19 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/determineMetadata.js +15 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/getFontSizeFieldOptions.js +84 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/getLanguageName.helper.js +33 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/answerExtraction.helper.js +59 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/configValidator.helper.js +20 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/errorHandler.helper.js +64 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/followUpDetection.helper.js +72 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/knowledgeSearch/knowledgeSearch.helper.js +58 -0
- package/build/shared/charts/descriptors/agentAssist/helpers/sentiment.helper.js +7 -13
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/identityAssistTemplate.js +17 -18
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +330 -153
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/nextActionWidgetTemplate.js +212 -80
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/sentimentAnalysisTemplate.js +11 -6
- package/build/shared/charts/descriptors/agentAssist/htmlTemplates/transcriptAssistTemplate.js +15 -13
- package/build/shared/charts/descriptors/agentAssist/identityAssist.js +88 -15
- package/build/shared/charts/descriptors/agentAssist/knowledgeAssist.js +192 -327
- package/build/shared/charts/descriptors/agentAssist/locales/cs.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/de.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/en.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/es.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/fr.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/index.js +22 -0
- package/build/shared/charts/descriptors/agentAssist/locales/ja.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/ko.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/locales/pt.locale.js +11 -0
- package/build/shared/charts/descriptors/agentAssist/nextActionAssist.js +484 -10
- package/build/shared/charts/descriptors/agentAssist/sentimentAssist.js +32 -9
- 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 +42 -3
- package/build/shared/charts/descriptors/analytics/activateProfile.js +1 -0
- package/build/shared/charts/descriptors/analytics/blindMode.js +2 -0
- package/build/shared/charts/descriptors/analytics/completeGoal.js +1 -0
- 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/index.js +3 -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/requestRating.js +56 -2
- package/build/shared/charts/descriptors/analytics/setRating.js +4 -2
- package/build/shared/charts/descriptors/analytics/trackMilestone.js +95 -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 +3 -0
- 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 +8 -4
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +36 -11
- 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 +2 -0
- package/build/shared/charts/descriptors/message/question/optionalQuestion.js +1 -1
- package/build/shared/charts/descriptors/message/question/question.js +173 -7
- package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +44 -3
- package/build/shared/charts/descriptors/message/question/utils/validateQuestionAnswer.js +4 -2
- package/build/shared/charts/descriptors/nlu/cleanText.js +1 -0
- package/build/shared/charts/descriptors/nlu/fuzzySearch.js +23 -1
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +45 -19
- package/build/shared/charts/descriptors/nlu/index.js +1 -3
- package/build/shared/charts/descriptors/service/GPTPrompt.js +362 -29
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +283 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +84 -1
- package/build/shared/charts/descriptors/service/httpRequest.js +68 -3
- package/build/shared/charts/descriptors/service/index.js +3 -1
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +110 -27
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -4
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +2 -0
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +2 -0
- 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/play.js +8 -1
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +46 -45
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +2 -0
- 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 -1
- 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 +329 -47
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +27 -31
- package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +2 -2
- package/build/shared/charts/helpers/generativeAI/generativeAIPrompts.js +55 -0
- package/build/shared/charts/helpers/generativeAI/rephraseSentenceWithAi.js +4 -2
- package/build/shared/constants.js +10 -1
- package/build/shared/handoverClients/interfaces/THandoverEventType.js +1 -0
- package/build/shared/helper/logFullConfigToDebugMode.js +30 -0
- package/build/shared/helper/nlu/textCleaner.js +3 -1
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/IProfile.js +1 -0
- package/build/shared/interfaces/IProfileSchema.js +3 -0
- package/build/shared/interfaces/analytics/IAnalyticsSourceData.js +20 -20
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyProgress_2_0.js → analytics/IMilestoneAnalytics.js} +1 -1
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourney_2_0.js → appsession/IAppSession.js} +1 -1
- package/build/shared/interfaces/{restAPI/resources/journey/v2.0/IJourneyStep_2_0.js → appsession/ISetAppState.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/fileStorage.js +6 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +45 -52
- package/build/shared/interfaces/handover.js +44 -2
- package/build/shared/interfaces/license.js +3 -2
- package/build/shared/interfaces/license.js.map +1 -1
- package/build/shared/interfaces/messageAPI/endpoints.js +17 -2
- package/build/shared/interfaces/messageAPI/handover.js +25 -2
- package/build/shared/interfaces/nlu/nlu.js +3 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +10 -9
- package/build/shared/interfaces/resources/IConnection.js +1 -0
- package/build/shared/interfaces/resources/IEndpoint.js +1 -2
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +56 -21
- package/build/shared/interfaces/resources/IMilestone.js +50 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +96 -75
- package/build/shared/interfaces/resources/TResourceType.js +12 -5
- 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 +8 -0
- 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/operations/index.js +3 -0
- package/build/shared/interfaces/restAPI/operations/nlu/v2.0/IGenerateNluScoresRest_2_0.js +57 -0
- package/build/shared/interfaces/restAPI/operations/nlu/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/restAPI/resources/{journey/v2.0/IJourneyIndexItem_2_0.js → milestone/v2.0/ICloneMilestoneRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/ICreateMilestoneRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IDeleteMilestoneRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IIndexMilestonesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneIndexItem_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStepMetric_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestoneStep_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IMilestone_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/{journey/v2.0/IIndexJourneysRest_2_0.js → milestone/v2.0/IReadMilestoneRest_2_0.js} +1 -1
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/IUpdateMilestoneRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/milestone/v2.0/index.js +3 -0
- package/build/shared/interfaces/restAPI/resources/uploadResumable/v2.0/IUploadResumableRest_2_0.js +3 -1
- package/build/shared/interfaces/security/IPermission.js +4 -2
- 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/user.js +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +2194 -957
- package/build/shared/charts/descriptors/nlu/extractAnswer.js +0 -115
- 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/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/IReadJourneyRest_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/journey/v2.0 → appsession}/index.js +0 -0
|
@@ -35,6 +35,7 @@ exports.primaryResourceTypes = exports.packageableResourceTypes = exports.search
|
|
|
35
35
|
* - lexiconKeyphrase
|
|
36
36
|
* - lexiconSlot
|
|
37
37
|
* - locale
|
|
38
|
+
* - milestone
|
|
38
39
|
* - nluconnector
|
|
39
40
|
* - nodeData
|
|
40
41
|
* - nodeDescriptorSet
|
|
@@ -72,6 +73,7 @@ exports.arrayTResourceType = [
|
|
|
72
73
|
"lexiconKeyphrase",
|
|
73
74
|
"lexiconSlot",
|
|
74
75
|
"locale",
|
|
76
|
+
"milestone",
|
|
75
77
|
"nluconnector",
|
|
76
78
|
"nodeData",
|
|
77
79
|
"nodeDescriptorSet",
|
|
@@ -80,7 +82,7 @@ exports.arrayTResourceType = [
|
|
|
80
82
|
"playbookRun",
|
|
81
83
|
"slotFiller",
|
|
82
84
|
"snapshot",
|
|
83
|
-
"snippet"
|
|
85
|
+
"snippet",
|
|
84
86
|
];
|
|
85
87
|
exports.arrayTSnapshottableResourceType = [
|
|
86
88
|
"agentSettings",
|
|
@@ -104,12 +106,13 @@ exports.arrayTSnapshottableResourceType = [
|
|
|
104
106
|
"lexiconKeyphrase",
|
|
105
107
|
"lexiconSlot",
|
|
106
108
|
"locale",
|
|
109
|
+
"milestone",
|
|
107
110
|
"nluconnector",
|
|
108
111
|
"nodeData",
|
|
109
112
|
"nodeDescriptorSet",
|
|
110
113
|
"playbook",
|
|
111
114
|
"slotFiller",
|
|
112
|
-
"snippet"
|
|
115
|
+
"snippet",
|
|
113
116
|
];
|
|
114
117
|
exports.arrayTChartableResourceType = ["flow"];
|
|
115
118
|
exports.resourceTypes = [...exports.arrayTResourceType];
|
|
@@ -128,6 +131,7 @@ exports.chartableResourceTypes = [...exports.arrayTChartableResourceType];
|
|
|
128
131
|
* - flow
|
|
129
132
|
* - function
|
|
130
133
|
* - lexicon
|
|
134
|
+
* - milestone
|
|
131
135
|
* - nluconnector
|
|
132
136
|
* - playbook
|
|
133
137
|
* - project
|
|
@@ -140,10 +144,11 @@ exports.searchableResourceTypes = [
|
|
|
140
144
|
"function",
|
|
141
145
|
"largeLanguageModel",
|
|
142
146
|
"lexicon",
|
|
147
|
+
"milestone",
|
|
143
148
|
"nluconnector",
|
|
144
149
|
"playbook",
|
|
145
150
|
"project",
|
|
146
|
-
"snapshot"
|
|
151
|
+
"snapshot",
|
|
147
152
|
];
|
|
148
153
|
exports.packageableResourceTypes = [
|
|
149
154
|
"agentAssistConfig",
|
|
@@ -157,9 +162,10 @@ exports.packageableResourceTypes = [
|
|
|
157
162
|
"knowledgeStore",
|
|
158
163
|
"lexicon",
|
|
159
164
|
"locale",
|
|
165
|
+
"milestone",
|
|
160
166
|
"nluconnector",
|
|
161
167
|
"playbook",
|
|
162
|
-
"snippet"
|
|
168
|
+
"snippet",
|
|
163
169
|
];
|
|
164
170
|
exports.primaryResourceTypes = [
|
|
165
171
|
"connection",
|
|
@@ -171,8 +177,9 @@ exports.primaryResourceTypes = [
|
|
|
171
177
|
"largeLanguageModel",
|
|
172
178
|
"lexicon",
|
|
173
179
|
"locale",
|
|
180
|
+
"milestone",
|
|
174
181
|
"nluconnector",
|
|
175
182
|
"playbook",
|
|
176
|
-
"snippet"
|
|
183
|
+
"snippet",
|
|
177
184
|
];
|
|
178
185
|
//# 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 = {
|
|
@@ -65,6 +65,14 @@ exports.generativeAISettingsDataSchema = {
|
|
|
65
65
|
sentimentAnalysis: {
|
|
66
66
|
type: "object",
|
|
67
67
|
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
68
|
+
},
|
|
69
|
+
nlu: {
|
|
70
|
+
type: "object",
|
|
71
|
+
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
72
|
+
},
|
|
73
|
+
answerExtraction: {
|
|
74
|
+
type: "object",
|
|
75
|
+
properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
}
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.fileExtractorOptions = exports.knowledgeAISettingsDataSchema = 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; } });
|
|
@@ -18,4 +18,7 @@ Object.defineProperty(exports, "audioPreviewProviders", { enumerable: true, get:
|
|
|
18
18
|
var ITranslationSettings_1 = require("./ITranslationSettings");
|
|
19
19
|
Object.defineProperty(exports, "translationSettingsDataSchema", { enumerable: true, get: function () { return ITranslationSettings_1.translationSettingsDataSchema; } });
|
|
20
20
|
Object.defineProperty(exports, "translationProviders", { enumerable: true, get: function () { return ITranslationSettings_1.translationProviders; } });
|
|
21
|
+
var IKnowledgeAISettings_1 = require("./IKnowledgeAISettings");
|
|
22
|
+
Object.defineProperty(exports, "knowledgeAISettingsDataSchema", { enumerable: true, get: function () { return IKnowledgeAISettings_1.knowledgeAISettingsDataSchema; } });
|
|
23
|
+
Object.defineProperty(exports, "fileExtractorOptions", { enumerable: true, get: function () { return IKnowledgeAISettings_1.fileExtractorOptions; } });
|
|
21
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @openapi
|
|
4
|
+
*
|
|
5
|
+
* components:
|
|
6
|
+
* schemas:
|
|
7
|
+
* IGenerateNluScoreData_2_0:
|
|
8
|
+
* type: object
|
|
9
|
+
* required:
|
|
10
|
+
* - flowReferenceId
|
|
11
|
+
* - localeReferenceId
|
|
12
|
+
* - sentence
|
|
13
|
+
* properties:
|
|
14
|
+
* flowReferenceId:
|
|
15
|
+
* type: string
|
|
16
|
+
* format: uuid
|
|
17
|
+
* description: UUID of the flow reference.
|
|
18
|
+
* localeReferenceId:
|
|
19
|
+
* type: string
|
|
20
|
+
* format: uuid
|
|
21
|
+
* description: UUID of the locale reference.
|
|
22
|
+
* sentence:
|
|
23
|
+
* type: string
|
|
24
|
+
* description: Sentence to analyze for NLU scoring.
|
|
25
|
+
*
|
|
26
|
+
* IGeneratedNluScore_2_0:
|
|
27
|
+
* type: object
|
|
28
|
+
* properties:
|
|
29
|
+
* id:
|
|
30
|
+
* type: string
|
|
31
|
+
* description: Unique identifier of the score.
|
|
32
|
+
* name:
|
|
33
|
+
* type: string
|
|
34
|
+
* description: Name of the score type.
|
|
35
|
+
* score:
|
|
36
|
+
* type: number
|
|
37
|
+
* description: Numerical value of the score.
|
|
38
|
+
* negated:
|
|
39
|
+
* type: boolean
|
|
40
|
+
* description: Indicates if the score is negated.
|
|
41
|
+
* confirmationSentence:
|
|
42
|
+
* type: string
|
|
43
|
+
* description: Sentence used to confirm the score.
|
|
44
|
+
* confirmationSentences:
|
|
45
|
+
* type: array
|
|
46
|
+
* items:
|
|
47
|
+
* type: string
|
|
48
|
+
* description: Multiple sentences for confirmation if applicable.
|
|
49
|
+
* disambiguationSentence:
|
|
50
|
+
* type: string
|
|
51
|
+
* description: Sentence used for disambiguation.
|
|
52
|
+
* flow:
|
|
53
|
+
* type: string
|
|
54
|
+
* description: UUID of the flow associated with the score.
|
|
55
|
+
*/
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
//# sourceMappingURL=IGenerateNluScoresRest_2_0.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @openapi
|
|
4
|
+
* components:
|
|
5
|
+
* schemas:
|
|
6
|
+
* IAvailableModelItem_2_0:
|
|
7
|
+
* type: object
|
|
8
|
+
* properties:
|
|
9
|
+
* modelName:
|
|
10
|
+
* type: string
|
|
11
|
+
* modelId:
|
|
12
|
+
* type: string
|
|
13
|
+
* providerName:
|
|
14
|
+
* type: array
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# sourceMappingURL=IAvailableModelsForLLMProvider_2_0%20.js.map
|
|
@@ -57,6 +57,7 @@ exports.organisationWidePermissions = [
|
|
|
57
57
|
* - logs
|
|
58
58
|
* - memberDetails
|
|
59
59
|
* - members
|
|
60
|
+
* - milestones
|
|
60
61
|
* - nluConnectors
|
|
61
62
|
* - packages
|
|
62
63
|
* - playbooks
|
|
@@ -94,6 +95,7 @@ exports.projectWidePermissions = [
|
|
|
94
95
|
"logs",
|
|
95
96
|
"memberDetails",
|
|
96
97
|
"members",
|
|
98
|
+
"milestones",
|
|
97
99
|
"nluConnectors",
|
|
98
100
|
"packages",
|
|
99
101
|
"playbooks",
|
|
@@ -104,10 +106,10 @@ exports.projectWidePermissions = [
|
|
|
104
106
|
"tasks",
|
|
105
107
|
"tokens",
|
|
106
108
|
"yesNoIntents",
|
|
107
|
-
"dataPrivacySettings"
|
|
109
|
+
"dataPrivacySettings",
|
|
108
110
|
];
|
|
109
111
|
exports.availablePermissions = [
|
|
110
112
|
...exports.organisationWidePermissions,
|
|
111
|
-
...exports.projectWidePermissions
|
|
113
|
+
...exports.projectWidePermissions,
|
|
112
114
|
];
|
|
113
115
|
//# sourceMappingURL=IPermission.js.map
|
|
@@ -70,6 +70,7 @@ exports.organisationWideRoles = [
|
|
|
70
70
|
* - data_privacy_admin
|
|
71
71
|
* - data_privacy_editor
|
|
72
72
|
* - data_privacy_viewer
|
|
73
|
+
* - knowledgeAdmin
|
|
73
74
|
* - large_language_model_admin,
|
|
74
75
|
* - lexicon_admin
|
|
75
76
|
* - lexicon_editor
|
|
@@ -109,6 +110,7 @@ exports.projectWideRoles = [
|
|
|
109
110
|
"function_admin",
|
|
110
111
|
"function_editor",
|
|
111
112
|
"intents",
|
|
113
|
+
"knowledgeAdmin",
|
|
112
114
|
"large_language_model_admin",
|
|
113
115
|
"lexicon_admin",
|
|
114
116
|
"lexicon_editor",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.identityProviderSchema = exports.oidcIdentityProviderDataSchema = exports.samlIdentityProviderDataSchema = exports.CrudOperation = exports.operations = exports.availableRoles = exports.projectWideRoles = exports.organisationWideRoles = exports.availablePermissions = exports.COMPUTED_ACL_HASH_VERSION = void 0;
|
|
4
|
-
exports.COMPUTED_ACL_HASH_VERSION = "
|
|
4
|
+
exports.COMPUTED_ACL_HASH_VERSION = "v14";
|
|
5
5
|
var IPermission_1 = require("./IPermission");
|
|
6
6
|
Object.defineProperty(exports, "availablePermissions", { enumerable: true, get: function () { return IPermission_1.availablePermissions; } });
|
|
7
7
|
var IRole_1 = require("./IRole");
|
|
@@ -69,7 +69,7 @@ exports.trainerRecordDataSchema = {
|
|
|
69
69
|
intentFlow: { type: ["null", "string"] },
|
|
70
70
|
intentId: { type: ["null", "string"] },
|
|
71
71
|
intentMapperResults: {
|
|
72
|
-
type: "object",
|
|
72
|
+
type: ["object", "null"],
|
|
73
73
|
additionalProperties: true,
|
|
74
74
|
properties: {
|
|
75
75
|
finalIntentName: { type: ["null", "string"] },
|
|
@@ -96,7 +96,7 @@ exports.trainerRecordSchema = {
|
|
|
96
96
|
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.trainerRecordDataSchema.properties), { expiresAt: { type: "object" }, projectReference: { format: "mongo-id" }, organisationReference: { format: "mongo-id" } }),
|
|
97
97
|
};
|
|
98
98
|
exports.trainerRecordInDbSchema = {
|
|
99
|
-
title: "
|
|
99
|
+
title: "trainerRecordInDbSchema",
|
|
100
100
|
type: "object",
|
|
101
101
|
additionalProperties: false,
|
|
102
102
|
properties: Object.assign(Object.assign(Object.assign({}, IEntityMeta_1.entityMetaSchema.properties), exports.trainerRecordDataSchema.properties), { snapshotReference: {
|
|
@@ -10,7 +10,7 @@ exports.userDataSchema = {
|
|
|
10
10
|
additionalProperties: false,
|
|
11
11
|
properties: {
|
|
12
12
|
id: { type: "string", format: "email" },
|
|
13
|
-
name: { type: "string", maxLength: 200 },
|
|
13
|
+
name: { type: "string", maxLength: 200, format: "resource-name" },
|
|
14
14
|
acceptedTOS: { type: "boolean" },
|
|
15
15
|
disabled: { type: "boolean" },
|
|
16
16
|
roles: { type: "array", additionalItems: false, items: { type: "string", format: "organisation-wide-role" } },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognigy/rest-api-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Cognigy REST-Client",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "dist/rollup-plugin-babel.esm.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "Cognigy Proprietary License",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"ajv": "6.12.6",
|
|
34
|
-
"axios": "1.
|
|
34
|
+
"axios": "1.7.4",
|
|
35
35
|
"form-data": "4.0.0",
|
|
36
36
|
"tus-js-client": "^3.1.1",
|
|
37
37
|
"uuidv4": "6.2.13"
|