@cognigy/rest-api-client 4.95.0 → 4.96.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 +10 -0
- package/build/shared/charts/descriptors/analytics/addMemory.js +1 -1
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +9 -1
- package/build/shared/charts/descriptors/service/GPTPrompt.js +10 -2
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +158 -37
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -1
- package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/dtmf.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/play.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/sendMetadata.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +1 -1
- package/build/shared/charts/descriptors/voice/nodes/transfer.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +1 -1
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +47 -2
- package/build/shared/constants.js +10 -1
- package/build/shared/helper/nlu/textCleaner.js +10 -2
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +2 -0
- package/build/shared/interfaces/messageAPI/handover.js +3 -3
- package/build/shared/interfaces/resources/IAiAgent.js +10 -0
- package/build/shared/interfaces/resources/intent/IDefaultReply.js +0 -1
- package/dist/esm/shared/charts/descriptors/analytics/addMemory.js +1 -1
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +9 -1
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +10 -2
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +158 -37
- package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +4 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/bargeIn.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/continuousAsr.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/dtmf.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/muteSpeechInput.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/noUserInput.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/play.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/sendMetadata.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/nodes/transfer.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/hangup.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/muteSpeechInput.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/play.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/record.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/refer.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +1 -1
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +47 -2
- package/dist/esm/shared/constants.js +9 -0
- package/dist/esm/shared/helper/nlu/textCleaner.js +10 -2
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +2 -0
- package/dist/esm/shared/interfaces/messageAPI/handover.js +2 -2
- package/dist/esm/shared/interfaces/resources/IAiAgent.js +10 -0
- package/dist/esm/shared/interfaces/resources/intent/IDefaultReply.js +0 -1
- package/package.json +2 -2
- package/types/index.d.ts +80 -6
|
@@ -16,7 +16,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
16
16
|
appearance: {
|
|
17
17
|
color: nodeColor,
|
|
18
18
|
},
|
|
19
|
-
tags: ["
|
|
19
|
+
tags: ["voice"],
|
|
20
20
|
fields: [
|
|
21
21
|
{
|
|
22
22
|
key: "transferType",
|
|
@@ -155,6 +155,39 @@ export const transferNode = createNodeDescriptor({
|
|
|
155
155
|
max: 300
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
+
{
|
|
159
|
+
key: "enableTimeLimit",
|
|
160
|
+
label: "UI__NODE_EDITOR__TRANSFER__FIELDS__ENABLE_DURATION_LIMIT__LABEL",
|
|
161
|
+
type: "toggle",
|
|
162
|
+
description: "UI__NODE_EDITOR__TRANSFER__FIELDS__ENABLE_DURATION_LIMIT__DESCRIPTION",
|
|
163
|
+
condition: {
|
|
164
|
+
key: "transferType",
|
|
165
|
+
value: "dial"
|
|
166
|
+
},
|
|
167
|
+
defaultValue: false,
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
key: "timeLimit",
|
|
171
|
+
label: "UI__NODE_EDITOR__TRANSFER__FIELDS__DURATION_LIMIT__LABEL",
|
|
172
|
+
type: "number",
|
|
173
|
+
description: "UI__NODE_EDITOR__TRANSFER__FIELDS__DURATION_LIMIT__DESCRIPTION",
|
|
174
|
+
condition: {
|
|
175
|
+
and: [
|
|
176
|
+
{
|
|
177
|
+
key: "transferType",
|
|
178
|
+
value: "dial"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
key: "enableTimeLimit",
|
|
182
|
+
value: true
|
|
183
|
+
},
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
defaultValue: 600,
|
|
187
|
+
params: {
|
|
188
|
+
max: 12000
|
|
189
|
+
}
|
|
190
|
+
},
|
|
158
191
|
{
|
|
159
192
|
key: "agentAssistEnabled",
|
|
160
193
|
label: "UI__NODE_EDITOR__TRANSFER__FIELDS__AGENT_ASSIST_ENABLED__LABEL",
|
|
@@ -459,6 +492,14 @@ export const transferNode = createNodeDescriptor({
|
|
|
459
492
|
type: "field",
|
|
460
493
|
key: "dialTimeout"
|
|
461
494
|
},
|
|
495
|
+
{
|
|
496
|
+
type: "field",
|
|
497
|
+
key: "enableTimeLimit"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
type: "field",
|
|
501
|
+
key: "timeLimit"
|
|
502
|
+
},
|
|
462
503
|
{
|
|
463
504
|
type: "field",
|
|
464
505
|
key: "agentAssistEnabled"
|
|
@@ -483,7 +524,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
483
524
|
summary: "UI__NODE_EDITOR__VOICEGATEWAY2__TRANSFER__SUMMARY",
|
|
484
525
|
function: ({ cognigy, config, }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
485
526
|
const { api, input } = cognigy;
|
|
486
|
-
const { transferType, transferTarget, referredBy, anchorMedia, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttDeepgramModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue } = config;
|
|
527
|
+
const { transferType, transferTarget, referredBy, anchorMedia, useTransferSipHeaders, transferSipHeaders = {}, transferReason, dialMusic, dialTranscriptionWebhook, dialCallerId, recognitionChannel, sttVendor, sttLanguage, sttDisablePunctuation, dialTimeout, enableTimeLimit, timeLimit, amdEnabled, amdRedirectOnMachineDetected, amdRedirectText, sttLabel, googleModel, sttDeepgramModel, deepgramEndpointing, deepgramEndpointingValue, deepgramSmartFormatting, agentAssistEnabled, agentAssistHeadersKey = customHeaderDefaultValue } = config;
|
|
487
528
|
const transferParams = {
|
|
488
529
|
transferType,
|
|
489
530
|
transferReason,
|
|
@@ -498,6 +539,7 @@ export const transferNode = createNodeDescriptor({
|
|
|
498
539
|
amdRedirectOnMachineDetected,
|
|
499
540
|
amdRedirectText,
|
|
500
541
|
dialTimeout,
|
|
542
|
+
timeLimit,
|
|
501
543
|
sttLabel,
|
|
502
544
|
};
|
|
503
545
|
try {
|
|
@@ -509,6 +551,9 @@ export const transferNode = createNodeDescriptor({
|
|
|
509
551
|
yield api.say(textWarningAdminChannel, null);
|
|
510
552
|
return;
|
|
511
553
|
}
|
|
554
|
+
if (!enableTimeLimit) {
|
|
555
|
+
delete transferParams.timeLimit;
|
|
556
|
+
}
|
|
512
557
|
if (agentAssistEnabled && dialTranscriptionWebhook) {
|
|
513
558
|
try {
|
|
514
559
|
const agentAssistConfigId = api.getAgentAssistConfigId();
|
|
@@ -50,4 +50,13 @@ export const IP_NOT_AVAILABLE = "not available";
|
|
|
50
50
|
* Number of seconds in one minute.
|
|
51
51
|
*/
|
|
52
52
|
export const SECONDS_PER_MINUTE = 60;
|
|
53
|
+
// Platform provided LLM
|
|
54
|
+
export const PLATFORM_PROVIDED_LLM_USE_CASES = [
|
|
55
|
+
"intentSentenceGeneration",
|
|
56
|
+
"flowGeneration",
|
|
57
|
+
"lexiconGeneration",
|
|
58
|
+
"generateNodeOutput",
|
|
59
|
+
];
|
|
60
|
+
export const PLATFORM_PROVIDED_LLM_ID = "aaaaaaaa-aaaa-aaaa-aaaa-000000000000";
|
|
61
|
+
export const PLATFORM_PROVIDED_LLM_CONNECTION_ID = "aaaaaaaa-aaaa-aaaa-aaaa-000000000001";
|
|
53
62
|
//# sourceMappingURL=constants.js.map
|
|
@@ -173,9 +173,17 @@ export class TextCleaner {
|
|
|
173
173
|
for (let phraseToDetect of Object.keys(this.dictSpecials)) {
|
|
174
174
|
// make phrase regex-safe
|
|
175
175
|
phraseToDetect = phraseToDetect.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
176
|
-
|
|
176
|
+
// check if phraseToDetect is a single special character (e.g., *, ., +)
|
|
177
|
+
const isSpecialChar = /^[-\/\\^$*+?.()|[\]{}#]$/.test(phraseToDetect.replace(/\\/g, '')); // Remove escaping before testing
|
|
178
|
+
// for special characters like '*', don't use word boundaries since they can appear between numbers
|
|
179
|
+
// for normal words like "hello", use word boundaries (\b) to match whole words only
|
|
180
|
+
const regexPattern = isSpecialChar
|
|
181
|
+
? `(${phraseToDetect})` // Match special char anywhere (e.g., in "8*4")
|
|
182
|
+
: `\\b(${phraseToDetect})\\b`; // Match whole words only (e.g., not "hello" in "hello123")
|
|
183
|
+
const matches = normalizedPhrase.match(new RegExp(regexPattern, 'gi'));
|
|
177
184
|
if (matches) {
|
|
178
|
-
normalizedPhrase = normalizedPhrase.replace(new RegExp(
|
|
185
|
+
normalizedPhrase = normalizedPhrase.replace(new RegExp(regexPattern, "gi"), this.dictSpecials[phraseToDetect.replace(/\\/g, '')] // Remove escaping to get original key
|
|
186
|
+
);
|
|
179
187
|
}
|
|
180
188
|
}
|
|
181
189
|
return normalizedPhrase;
|
|
@@ -135,6 +135,8 @@ const callFailoverSettingsSchema = {
|
|
|
135
135
|
dialCallerId: { type: "string" },
|
|
136
136
|
dialMusic: { type: "string" },
|
|
137
137
|
dialTimeout: { type: "number" },
|
|
138
|
+
timeLimit: { type: "number" },
|
|
139
|
+
enableTimeLimit: { type: "boolean" },
|
|
138
140
|
dialTranscribeEnabled: { type: "boolean" },
|
|
139
141
|
dialTranscribeVendor: { type: "string" },
|
|
140
142
|
dialTranscribeLanguage: { type: "string" },
|
|
@@ -238,8 +238,8 @@ export const activateHandoverConversationSchema = {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
|
-
export const
|
|
242
|
-
title: "
|
|
241
|
+
export const pollEventSchema = {
|
|
242
|
+
title: "pollEventSchema",
|
|
243
243
|
type: "object",
|
|
244
244
|
additionalProperties: false,
|
|
245
245
|
required: ["handoverSettings", "traceId", "disableSensitiveLogging"],
|
|
@@ -19,6 +19,16 @@ export const aiAgentDataSchema = {
|
|
|
19
19
|
formality: { type: "string" }
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
voiceConfigs: {
|
|
23
|
+
type: "object",
|
|
24
|
+
properties: {
|
|
25
|
+
ttsVoice: { type: "string" },
|
|
26
|
+
ttsLanguage: { type: "string" },
|
|
27
|
+
ttsVendor: { type: "string" },
|
|
28
|
+
ttsModel: { type: "string" }
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
enableVoiceConfigs: { type: "boolean" },
|
|
22
32
|
safetySettings: {
|
|
23
33
|
type: "object",
|
|
24
34
|
properties: {
|
|
@@ -15,7 +15,6 @@ export const defaultReplyInDBSchema = {
|
|
|
15
15
|
additionalProperties: false,
|
|
16
16
|
properties: Object.assign(Object.assign(Object.assign({}, entityMetaSchema.properties), defaultReplyDataSchema.properties), { localeReference: { type: "string", format: "mongo-id" }, intentReference: { type: "string", format: "mongo-id" }, flowReference: { type: "string", format: "mongo-id" }, projectReference: { type: "string", format: "mongo-id" }, organisationReference: { type: "string", format: "mongo-id" } })
|
|
17
17
|
};
|
|
18
|
-
;
|
|
19
18
|
export const defaultReplySchema = {
|
|
20
19
|
title: "defaultReplySchema",
|
|
21
20
|
type: "object",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognigy/rest-api-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.96.0",
|
|
4
4
|
"description": "Cognigy REST-Client",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "Cognigy Proprietary License",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"ajv": "6.12.6",
|
|
34
|
-
"axios": "1.7.
|
|
34
|
+
"axios": "1.7.9",
|
|
35
35
|
"form-data": "4.0.0",
|
|
36
36
|
"tus-js-client": "^3.1.1",
|
|
37
37
|
"uuidv4": "6.2.13"
|
package/types/index.d.ts
CHANGED
|
@@ -1982,7 +1982,7 @@ declare const analyticsSourceTypes: readonly [
|
|
|
1982
1982
|
export interface IBaseAnalyticsSourceData extends IBaseAnalyticsData {
|
|
1983
1983
|
intentScore: number;
|
|
1984
1984
|
intentFlow: string;
|
|
1985
|
-
understood: boolean;
|
|
1985
|
+
understood: boolean | null;
|
|
1986
1986
|
type: TAnalyticsType;
|
|
1987
1987
|
source: TAnalyticsSource;
|
|
1988
1988
|
schemaVersion: number;
|
|
@@ -2536,6 +2536,8 @@ export interface ICallEventFailoverSettings {
|
|
|
2536
2536
|
dialCallerId?: string;
|
|
2537
2537
|
dialMusic?: string;
|
|
2538
2538
|
dialTimeout?: number;
|
|
2539
|
+
enableTimeLimit?: boolean;
|
|
2540
|
+
timeLimit?: number;
|
|
2539
2541
|
dialTranscribeEnabled?: boolean;
|
|
2540
2542
|
dialTranscribeVendor?: string;
|
|
2541
2543
|
dialTranscribeLanguage?: string;
|
|
@@ -2946,8 +2948,8 @@ export interface IWebchatEndpointSharedSettings extends ITypingIndicatorSettings
|
|
|
2946
2948
|
*/
|
|
2947
2949
|
enableFileUpload: boolean;
|
|
2948
2950
|
/**
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
+
* Whether to display a persistent
|
|
2952
|
+
* menu in the Webchat.
|
|
2951
2953
|
*/
|
|
2952
2954
|
enablePersistentMenu: boolean;
|
|
2953
2955
|
/**
|
|
@@ -3207,6 +3209,15 @@ export interface IWebchat3EndpointLayoutSettings {
|
|
|
3207
3209
|
* of input messages with a delay for the webchat
|
|
3208
3210
|
*/
|
|
3209
3211
|
enableInputCollation: boolean;
|
|
3212
|
+
/**
|
|
3213
|
+
* Whether to display a persistent
|
|
3214
|
+
* menu in the Webchat.
|
|
3215
|
+
*/
|
|
3216
|
+
enablePersistentMenu: boolean;
|
|
3217
|
+
/**
|
|
3218
|
+
* The persistent menu for the webchat
|
|
3219
|
+
*/
|
|
3220
|
+
persistentMenu: IWebchatPersistentMenu;
|
|
3210
3221
|
/**
|
|
3211
3222
|
* This setting configures the delay for the automatic
|
|
3212
3223
|
* input collation in miliseconds. Defaults to 1000
|
|
@@ -3252,6 +3263,18 @@ export interface IWebchat3EndpointLayoutSettings {
|
|
|
3252
3263
|
* Advanced watermark URL settings for the webchat
|
|
3253
3264
|
*/
|
|
3254
3265
|
watermarkUrl: string;
|
|
3266
|
+
/**
|
|
3267
|
+
* Setting to hide the chat bubble around AI Agent Messages
|
|
3268
|
+
*/
|
|
3269
|
+
disableBotOutputBorder: boolean;
|
|
3270
|
+
/**
|
|
3271
|
+
* Set a number that will be used as a percentage value for the max-width of AI Agent Messages
|
|
3272
|
+
*/
|
|
3273
|
+
botOutputMaxWidthPercentage: number;
|
|
3274
|
+
/**
|
|
3275
|
+
* Configure the width of the Webchat in px
|
|
3276
|
+
*/
|
|
3277
|
+
chatWindowWidth: number;
|
|
3255
3278
|
}
|
|
3256
3279
|
export interface IWebchat3EndpointColorsSettings {
|
|
3257
3280
|
/**
|
|
@@ -3335,6 +3358,23 @@ export interface IWebchat3EndpointBehaviorSettings {
|
|
|
3335
3358
|
* a connectivity indicator should be displayed
|
|
3336
3359
|
*/
|
|
3337
3360
|
enableConnectionStatusIndicator: boolean;
|
|
3361
|
+
/**
|
|
3362
|
+
* This setting enables collation of streamed
|
|
3363
|
+
* messages into one message bubble.
|
|
3364
|
+
*/
|
|
3365
|
+
collateStreamedOutputs: boolean;
|
|
3366
|
+
/**
|
|
3367
|
+
* This setting enables output messages to appear progressively.
|
|
3368
|
+
*/
|
|
3369
|
+
progressiveMessageRendering: boolean;
|
|
3370
|
+
/**
|
|
3371
|
+
* Whether the webchat renders Text messages as markdown
|
|
3372
|
+
*/
|
|
3373
|
+
renderMarkdown: boolean;
|
|
3374
|
+
/**
|
|
3375
|
+
* This setting determines how scrolling behaves if chat is scrolled to bottom and a new message comes in.
|
|
3376
|
+
*/
|
|
3377
|
+
scrollingBehavior: string;
|
|
3338
3378
|
}
|
|
3339
3379
|
export interface IWebchat3EndpointStartBehaviorSettings {
|
|
3340
3380
|
/**
|
|
@@ -4186,6 +4226,7 @@ declare const generativeAIModels: readonly [
|
|
|
4186
4226
|
"amazon.nova-pro-v1:0",
|
|
4187
4227
|
"amazon.nova-micro-v1:0",
|
|
4188
4228
|
"anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
4229
|
+
"claude-3-7-sonnet-20250219",
|
|
4189
4230
|
"text-embedding-3-small",
|
|
4190
4231
|
"text-embedding-3-large",
|
|
4191
4232
|
"text-embedding-ada-002",
|
|
@@ -9306,6 +9347,12 @@ export interface ISpeakingStyle {
|
|
|
9306
9347
|
formality: string;
|
|
9307
9348
|
[key: string]: string;
|
|
9308
9349
|
}
|
|
9350
|
+
export interface IVoiceConfigParams {
|
|
9351
|
+
ttsVoice: string;
|
|
9352
|
+
ttsLanguage: string;
|
|
9353
|
+
ttsVendor: TVoiceGateway2TTSVendor | "none";
|
|
9354
|
+
ttsModel: string;
|
|
9355
|
+
}
|
|
9309
9356
|
declare const contactProfileOptions: readonly [
|
|
9310
9357
|
"none",
|
|
9311
9358
|
"selectedProfileFields",
|
|
@@ -9327,6 +9374,8 @@ export interface IAiAgent extends IEntityMeta {
|
|
|
9327
9374
|
knowledgeReferenceId: string;
|
|
9328
9375
|
description: string;
|
|
9329
9376
|
speakingStyle: ISpeakingStyle;
|
|
9377
|
+
voiceConfigs: IVoiceConfigParams;
|
|
9378
|
+
enableVoiceConfigs: boolean;
|
|
9330
9379
|
safetySettings: ISafetySettings;
|
|
9331
9380
|
instructions: string;
|
|
9332
9381
|
contactProfilesOption: TContactProfileOptions;
|
|
@@ -10057,6 +10106,10 @@ export interface IRunGenerativeAIPromptOptions {
|
|
|
10057
10106
|
maxImageFileSizeInBytes?: number;
|
|
10058
10107
|
};
|
|
10059
10108
|
};
|
|
10109
|
+
/**
|
|
10110
|
+
* Option to prevent the replacing of \n with " " in streamed outputs
|
|
10111
|
+
*/
|
|
10112
|
+
preventNewLineRemoval?: boolean;
|
|
10060
10113
|
}
|
|
10061
10114
|
export interface IAzureOpenAIProviderFieldsV2 {
|
|
10062
10115
|
apiKey: string;
|
|
@@ -14583,7 +14636,7 @@ export interface IConnectionIndexItem_2_0 extends Pick<IGlobalResource, "resourc
|
|
|
14583
14636
|
createdBy: TMongoId;
|
|
14584
14637
|
lastChangedBy: TMongoId;
|
|
14585
14638
|
}
|
|
14586
|
-
export interface IIndexConnectionsRestData_2_0 extends IRestPagination<IConnectionIndexItem_2_0>, Partial<IProjectScope> {
|
|
14639
|
+
export interface IIndexConnectionsRestData_2_0 extends IRestPagination<IConnectionIndexItem_2_0>, Pick<IGlobalResource, "resourceLevel">, Partial<IProjectScope> {
|
|
14587
14640
|
}
|
|
14588
14641
|
export interface IIndexConnectionsRestReturnValue_2_0 extends ICursorBasedPaginationReturnValue<IConnectionIndexItem_2_0> {
|
|
14589
14642
|
}
|
|
@@ -16134,6 +16187,8 @@ export interface ITransferNodeParams extends INodeFunctionBaseParams {
|
|
|
16134
16187
|
dialCallerId?: string;
|
|
16135
16188
|
dialMusic?: string;
|
|
16136
16189
|
dialTimeout?: number;
|
|
16190
|
+
enableTimeLimit?: boolean;
|
|
16191
|
+
timeLimit?: number;
|
|
16137
16192
|
dialTranscriptionWebhook?: string;
|
|
16138
16193
|
recognitionChannel: number;
|
|
16139
16194
|
sttLanguage: string;
|
|
@@ -16922,11 +16977,11 @@ export interface ILargeLanguageModelIndexItem_2_0 extends IGlobalResource {
|
|
|
16922
16977
|
createdBy: TMongoId;
|
|
16923
16978
|
lastChangedBy: TMongoId;
|
|
16924
16979
|
}
|
|
16925
|
-
export interface IIndexLargeLanguageModelsRestData_2_0 extends IRestPagination<ILargeLanguageModelIndexItem_2_0>, Partial<IProjectScope>, Partial<IGenerativeAIUseCase> {
|
|
16980
|
+
export interface IIndexLargeLanguageModelsRestData_2_0 extends IRestPagination<ILargeLanguageModelIndexItem_2_0>, Pick<IGlobalResource, "resourceLevel">, Partial<IProjectScope>, Partial<IGenerativeAIUseCase> {
|
|
16926
16981
|
}
|
|
16927
16982
|
export interface IIndexLargeLanguageModelsRestReturnValue_2_0 extends ICursorBasedPaginationReturnValue<ILargeLanguageModelIndexItem_2_0> {
|
|
16928
16983
|
}
|
|
16929
|
-
export interface ICreateLargeLanguageModelRestDataBody_2_0 extends IProjectScope
|
|
16984
|
+
export interface ICreateLargeLanguageModelRestDataBody_2_0 extends Partial<IProjectScope>, Partial<Omit<ILargeLanguageModel_2_0, keyof IEntityMeta>> {
|
|
16930
16985
|
}
|
|
16931
16986
|
export interface ICreateLargeLanguageModelRestData_2_0 extends ICreateLargeLanguageModelRestDataBody_2_0 {
|
|
16932
16987
|
}
|
|
@@ -17741,6 +17796,23 @@ export interface IGenerateNluScoresRestReturnValue_2_0 {
|
|
|
17741
17796
|
* formality:
|
|
17742
17797
|
* type: string
|
|
17743
17798
|
* example: { "completeness": "concise", "formality": "formal" }
|
|
17799
|
+
* voiceConfigs:
|
|
17800
|
+
* type: object
|
|
17801
|
+
* properties:
|
|
17802
|
+
* ttsVoice:
|
|
17803
|
+
* type: string
|
|
17804
|
+
* ttsLanguage:
|
|
17805
|
+
* type: string
|
|
17806
|
+
* ttsVendor:
|
|
17807
|
+
* enum: ["aws", "deepgram", "elevenlabs", "google", "microsoft", "nuance", "default", "custom", "none"]
|
|
17808
|
+
* type: string
|
|
17809
|
+
* ttsModel:
|
|
17810
|
+
* type: string
|
|
17811
|
+
* example: { "ttsVoice": "Xb7hH8MSUJpSbSDYk0k2", "ttsLanguage": "zh", "ttsVendor": "Elevenlabs", "ttsModel": "eleven_multilingual_v2" }
|
|
17812
|
+
* enableVoiceConfigs:
|
|
17813
|
+
* type: boolean
|
|
17814
|
+
* description: Enables the use of voice configuration.
|
|
17815
|
+
* example: false
|
|
17744
17816
|
* safetySettings:
|
|
17745
17817
|
* type: object
|
|
17746
17818
|
* properties:
|
|
@@ -17787,6 +17859,8 @@ export interface IAiAgent_2_0 {
|
|
|
17787
17859
|
knowledgeReferenceId: string;
|
|
17788
17860
|
description: string;
|
|
17789
17861
|
speakingStyle: ISpeakingStyle;
|
|
17862
|
+
voiceConfigs: IVoiceConfigParams;
|
|
17863
|
+
enableVoiceConfigs: boolean;
|
|
17790
17864
|
safetySettings: ISafetySettings;
|
|
17791
17865
|
contactProfilesOption: TContactProfileOptions;
|
|
17792
17866
|
contactProfilesSelected: string[];
|