@cognigy/rest-api-client 4.95.0 → 4.97.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/apigroups/ManagementAPIGroup_2_0.js +2 -1
- package/build/apigroups/ResourcesAPIGroup_2_0.js +9 -0
- package/build/authentication/AuthenticationAPI.js +6 -1
- package/build/authentication/JWT/IJwtTokenAuthentication.js +3 -0
- package/build/authentication/JWT/JwtTokenAuthentication.js +22 -0
- package/build/shared/charts/descriptors/allFields.js +6 -0
- package/build/shared/charts/descriptors/analytics/addMemory.js +1 -1
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAICompatibleProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/deepgramSpeechProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +2 -0
- package/build/shared/charts/descriptors/index.js +6 -0
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +13 -1
- package/build/shared/charts/descriptors/message/question/question.js +21 -13
- package/build/shared/charts/descriptors/message/say.js +25 -2
- package/build/shared/charts/descriptors/service/GPTPrompt.js +10 -2
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +184 -51
- package/build/shared/charts/descriptors/service/checkAgentAvailability.js +63 -3
- package/build/shared/charts/descriptors/service/handoverConnections.js +51 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +124 -64
- package/build/shared/charts/descriptors/service/index.js +8 -1
- 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 +3 -0
- package/build/shared/interfaces/handover.js +74 -10
- package/build/shared/interfaces/handoverProviders.js +23 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +2 -0
- package/build/shared/interfaces/messageAPI/handover.js +25 -5
- package/build/shared/interfaces/resources/IAiAgent.js +10 -0
- package/build/shared/interfaces/resources/IExternalModel.js +3 -0
- package/build/shared/interfaces/resources/IHandoverProvider.js +3 -0
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +13 -2
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +9 -5
- package/build/shared/interfaces/resources/TResourceType.js +6 -0
- package/build/shared/interfaces/resources/intent/IDefaultReply.js +0 -1
- package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +8 -2
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/ICreateHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IDeleteHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverProvider_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverService_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverProvidersRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverServicesRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IReadHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IUpdateHandoverProviderRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/index.js +3 -0
- package/build/shared/interfaces/security/IPermission.js +2 -0
- package/build/shared/interfaces/security/IRole.js +2 -0
- package/build/shared/interfaces/security/index.js +1 -1
- package/dist/esm/apigroups/ManagementAPIGroup_2_0.js +2 -1
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +9 -0
- package/dist/esm/authentication/AuthenticationAPI.js +6 -1
- package/dist/esm/authentication/JWT/IJwtTokenAuthentication.js +2 -0
- package/dist/esm/authentication/JWT/JwtTokenAuthentication.js +21 -0
- package/dist/esm/shared/charts/descriptors/allFields.js +6 -0
- package/dist/esm/shared/charts/descriptors/analytics/addMemory.js +1 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +4 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAICompatibleProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/deepgramSpeechProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +2 -0
- package/dist/esm/shared/charts/descriptors/index.js +7 -1
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +13 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +21 -13
- package/dist/esm/shared/charts/descriptors/message/say.js +25 -2
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +10 -2
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +184 -51
- package/dist/esm/shared/charts/descriptors/service/checkAgentAvailability.js +63 -3
- package/dist/esm/shared/charts/descriptors/service/handoverConnections.js +48 -0
- package/dist/esm/shared/charts/descriptors/service/handoverV2.js +124 -64
- package/dist/esm/shared/charts/descriptors/service/index.js +1 -0
- 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 +3 -0
- package/dist/esm/shared/interfaces/handover.js +73 -9
- package/dist/esm/shared/interfaces/handoverProviders.js +20 -0
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +2 -0
- package/dist/esm/shared/interfaces/messageAPI/handover.js +24 -4
- package/dist/esm/shared/interfaces/resources/IAiAgent.js +10 -0
- package/dist/esm/shared/interfaces/resources/IExternalModel.js +2 -0
- package/dist/esm/shared/interfaces/resources/IHandoverProvider.js +2 -0
- package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +12 -1
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +9 -5
- package/dist/esm/shared/interfaces/resources/TResourceType.js +6 -0
- package/dist/esm/shared/interfaces/resources/intent/IDefaultReply.js +0 -1
- package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +8 -2
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/ICreateHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IDeleteHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverProvider_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverService_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverProvidersRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverServicesRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IReadHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IUpdateHandoverProviderRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/index.js +2 -0
- package/dist/esm/shared/interfaces/security/IPermission.js +2 -0
- package/dist/esm/shared/interfaces/security/IRole.js +2 -0
- package/dist/esm/shared/interfaces/security/index.js +1 -1
- package/package.json +2 -2
- package/types/index.d.ts +626 -25
|
@@ -2,6 +2,7 @@ export const externalHandoverProviders = [
|
|
|
2
2
|
"rce",
|
|
3
3
|
"chatwoot",
|
|
4
4
|
"salesforce",
|
|
5
|
+
"salesforceMIAW",
|
|
5
6
|
"liveAgent",
|
|
6
7
|
"genesysCloud",
|
|
7
8
|
"genesysCloudOM",
|
|
@@ -38,6 +39,7 @@ export const handoverSettingsSchema = {
|
|
|
38
39
|
"cognigy",
|
|
39
40
|
"rce",
|
|
40
41
|
"salesforce",
|
|
42
|
+
"salesforceMIAW",
|
|
41
43
|
"liveAgent",
|
|
42
44
|
"genesysCloud",
|
|
43
45
|
"genesysCloudOM",
|
|
@@ -80,7 +82,15 @@ export const handoverSettingsSchema = {
|
|
|
80
82
|
queue: { type: "string" },
|
|
81
83
|
queueId: { type: "string" },
|
|
82
84
|
sendProfile: { type: "boolean" },
|
|
83
|
-
sessionDuration: { type: "number" }
|
|
85
|
+
sessionDuration: { type: "number" },
|
|
86
|
+
esDeveloperName: { type: "string" },
|
|
87
|
+
capabilitiesVersion: { type: "string" },
|
|
88
|
+
rceConnection: { type: "string" },
|
|
89
|
+
eightByEightConnection: { type: "string" },
|
|
90
|
+
chatwootConnection: { type: "string" },
|
|
91
|
+
liveAgentConnection: { type: "string" },
|
|
92
|
+
genesysCloudConnection: { type: "string" },
|
|
93
|
+
genesysCloudOMConnection: { type: "string" }
|
|
84
94
|
}
|
|
85
95
|
}
|
|
86
96
|
]
|
|
@@ -130,6 +140,8 @@ export const foreignSessionDataSchema = {
|
|
|
130
140
|
integrationId: { type: "string" },
|
|
131
141
|
conversationId: { type: "string" },
|
|
132
142
|
clientPollTimeout: { type: "number" },
|
|
143
|
+
accessToken: { type: "string" },
|
|
144
|
+
lastEventId: { type: "string" },
|
|
133
145
|
}
|
|
134
146
|
};
|
|
135
147
|
export const rceSettingsSchema = {
|
|
@@ -137,12 +149,9 @@ export const rceSettingsSchema = {
|
|
|
137
149
|
"type": "object",
|
|
138
150
|
"additionalProperties": false,
|
|
139
151
|
"required": [
|
|
140
|
-
"apiAccessToken",
|
|
141
152
|
"baseApiUrl",
|
|
142
153
|
"forwardOnlyHandoverConversations",
|
|
143
|
-
"realtimeAccessToken",
|
|
144
154
|
"realtimeEndpointUrl",
|
|
145
|
-
"webhookSecret",
|
|
146
155
|
"agentCategoryId",
|
|
147
156
|
"botCategoryId"
|
|
148
157
|
],
|
|
@@ -175,6 +184,10 @@ export const rceSettingsSchema = {
|
|
|
175
184
|
},
|
|
176
185
|
"botCategoryId": {
|
|
177
186
|
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
189
|
+
"rceConnection": {
|
|
190
|
+
"type": "string"
|
|
178
191
|
}
|
|
179
192
|
}
|
|
180
193
|
};
|
|
@@ -184,7 +197,6 @@ export const eightByEightSettingsSchema = {
|
|
|
184
197
|
"additionalProperties": false,
|
|
185
198
|
"required": [
|
|
186
199
|
"baseUrl",
|
|
187
|
-
"apiKey",
|
|
188
200
|
"apiTenant"
|
|
189
201
|
],
|
|
190
202
|
"properties": {
|
|
@@ -202,6 +214,10 @@ export const eightByEightSettingsSchema = {
|
|
|
202
214
|
"forwardOnlyHandoverConversations": {
|
|
203
215
|
"type": "boolean"
|
|
204
216
|
},
|
|
217
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
218
|
+
"eightByEightConnection": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
}
|
|
205
221
|
}
|
|
206
222
|
};
|
|
207
223
|
export const queueUpdateOptionsSchema = {
|
|
@@ -271,12 +287,12 @@ export const chatwootSettingsSchema = {
|
|
|
271
287
|
required: [
|
|
272
288
|
"baseUrl",
|
|
273
289
|
"accountId",
|
|
274
|
-
"apiKey",
|
|
275
290
|
],
|
|
276
291
|
properties: {
|
|
277
292
|
accountId: {
|
|
278
293
|
type: "string"
|
|
279
294
|
},
|
|
295
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
280
296
|
apiKey: {
|
|
281
297
|
type: "string"
|
|
282
298
|
},
|
|
@@ -290,6 +306,10 @@ export const chatwootSettingsSchema = {
|
|
|
290
306
|
forwardOnlyHandoverConversations: {
|
|
291
307
|
"type": "boolean",
|
|
292
308
|
},
|
|
309
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
310
|
+
chatwootConnection: {
|
|
311
|
+
"type": "string"
|
|
312
|
+
}
|
|
293
313
|
}
|
|
294
314
|
};
|
|
295
315
|
export const salesforceSettingsSchema = {
|
|
@@ -328,6 +348,38 @@ export const salesforceSettingsSchema = {
|
|
|
328
348
|
},
|
|
329
349
|
}
|
|
330
350
|
};
|
|
351
|
+
export const salesforceMIAWSettingsSchema = {
|
|
352
|
+
title: "salesforceMIAWSettingsSchema",
|
|
353
|
+
type: "object",
|
|
354
|
+
additionalProperties: false,
|
|
355
|
+
required: [
|
|
356
|
+
"baseUrl",
|
|
357
|
+
"capabilitiesVersion",
|
|
358
|
+
"organizationId",
|
|
359
|
+
"esDeveloperName"
|
|
360
|
+
],
|
|
361
|
+
properties: {
|
|
362
|
+
baseUrl: {
|
|
363
|
+
type: "string",
|
|
364
|
+
format: "url"
|
|
365
|
+
},
|
|
366
|
+
capabilitiesVersion: {
|
|
367
|
+
type: "string"
|
|
368
|
+
},
|
|
369
|
+
organizationId: {
|
|
370
|
+
type: "string",
|
|
371
|
+
},
|
|
372
|
+
esDeveloperName: {
|
|
373
|
+
type: "string",
|
|
374
|
+
},
|
|
375
|
+
forwardOnlyHandoverConversations: {
|
|
376
|
+
"type": "boolean",
|
|
377
|
+
},
|
|
378
|
+
forwardUnknownEventsToFlow: {
|
|
379
|
+
type: "boolean"
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
};
|
|
331
383
|
export const liveAgentSettingsSchema = {
|
|
332
384
|
title: "liveAgentSettingsSchema",
|
|
333
385
|
type: "object",
|
|
@@ -335,12 +387,12 @@ export const liveAgentSettingsSchema = {
|
|
|
335
387
|
required: [
|
|
336
388
|
"baseUrl",
|
|
337
389
|
"accountId",
|
|
338
|
-
"apiKey",
|
|
339
390
|
],
|
|
340
391
|
properties: {
|
|
341
392
|
accountId: {
|
|
342
393
|
type: "string"
|
|
343
394
|
},
|
|
395
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
344
396
|
apiKey: {
|
|
345
397
|
type: "string"
|
|
346
398
|
},
|
|
@@ -356,6 +408,10 @@ export const liveAgentSettingsSchema = {
|
|
|
356
408
|
},
|
|
357
409
|
usePlatformToken: {
|
|
358
410
|
"type": "boolean",
|
|
411
|
+
},
|
|
412
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
413
|
+
liveAgentConnection: {
|
|
414
|
+
"type": "string"
|
|
359
415
|
}
|
|
360
416
|
}
|
|
361
417
|
};
|
|
@@ -395,8 +451,13 @@ export const genesysCloudSettingsSchema = {
|
|
|
395
451
|
forwardOnlyHandoverConversations: {
|
|
396
452
|
"type": "boolean",
|
|
397
453
|
},
|
|
454
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
398
455
|
oAuth2Connection: {
|
|
399
456
|
type: "string"
|
|
457
|
+
},
|
|
458
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
459
|
+
genesysCloudConnection: {
|
|
460
|
+
"type": "string"
|
|
400
461
|
}
|
|
401
462
|
}
|
|
402
463
|
};
|
|
@@ -408,8 +469,6 @@ export const genesysCloudOMSettingsSchema = {
|
|
|
408
469
|
"host",
|
|
409
470
|
"deploymentName",
|
|
410
471
|
"queue",
|
|
411
|
-
"clientId",
|
|
412
|
-
"clientSecret"
|
|
413
472
|
],
|
|
414
473
|
properties: {
|
|
415
474
|
host: {
|
|
@@ -421,6 +480,7 @@ export const genesysCloudOMSettingsSchema = {
|
|
|
421
480
|
queue: {
|
|
422
481
|
type: "string"
|
|
423
482
|
},
|
|
483
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
424
484
|
webhookSecret: {
|
|
425
485
|
type: "string"
|
|
426
486
|
},
|
|
@@ -433,6 +493,10 @@ export const genesysCloudOMSettingsSchema = {
|
|
|
433
493
|
clientSecret: {
|
|
434
494
|
type: "string"
|
|
435
495
|
},
|
|
496
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
497
|
+
genesysCloudOMConnection: {
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
436
500
|
forwardOnlyHandoverConversations: {
|
|
437
501
|
"type": "boolean",
|
|
438
502
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const externalHandoverServices = [
|
|
2
|
+
"rce",
|
|
3
|
+
"chatwoot",
|
|
4
|
+
"salesforce",
|
|
5
|
+
"liveAgent",
|
|
6
|
+
"genesysCloud",
|
|
7
|
+
"genesysCloudOM",
|
|
8
|
+
"eightByEight",
|
|
9
|
+
"salesforceMIAW"
|
|
10
|
+
];
|
|
11
|
+
export const internalHandoverServices = [
|
|
12
|
+
"cognigy",
|
|
13
|
+
"none"
|
|
14
|
+
];
|
|
15
|
+
export const handoverServices = [
|
|
16
|
+
...internalHandoverServices,
|
|
17
|
+
...externalHandoverServices
|
|
18
|
+
];
|
|
19
|
+
;
|
|
20
|
+
//# sourceMappingURL=handoverProviders.js.map
|
|
@@ -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" },
|
|
@@ -16,6 +16,12 @@ export const createHandoverRequestDataSchema = {
|
|
|
16
16
|
"type": "string",
|
|
17
17
|
"format": "mongo-id",
|
|
18
18
|
},
|
|
19
|
+
"handoverProvider": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
},
|
|
22
|
+
"handoverProviderConfig": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
},
|
|
19
25
|
"organisation": {
|
|
20
26
|
"type": "string",
|
|
21
27
|
"format": "mongo-id",
|
|
@@ -37,7 +43,7 @@ export const createHandoverRequestDataSchema = {
|
|
|
37
43
|
"type": "object"
|
|
38
44
|
},
|
|
39
45
|
// We cannot set format: endpoint-channel, since the channel can be
|
|
40
|
-
//
|
|
46
|
+
// overridden by the customer (e.g. for their website)
|
|
41
47
|
"channel": {
|
|
42
48
|
"type": "string",
|
|
43
49
|
},
|
|
@@ -77,6 +83,10 @@ export const createHandoverRequestDataSchema = {
|
|
|
77
83
|
"liveAgentAllowAgentInject": {
|
|
78
84
|
"type": "boolean"
|
|
79
85
|
},
|
|
86
|
+
// Temporary field for live agent
|
|
87
|
+
"allowAgentInject": {
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
80
90
|
"sendTranscriptAsFirstMessage": {
|
|
81
91
|
"type": "boolean"
|
|
82
92
|
},
|
|
@@ -238,8 +248,8 @@ export const activateHandoverConversationSchema = {
|
|
|
238
248
|
}
|
|
239
249
|
}
|
|
240
250
|
};
|
|
241
|
-
export const
|
|
242
|
-
title: "
|
|
251
|
+
export const pollEventSchema = {
|
|
252
|
+
title: "pollEventSchema",
|
|
243
253
|
type: "object",
|
|
244
254
|
additionalProperties: false,
|
|
245
255
|
required: ["handoverSettings", "traceId", "disableSensitiveLogging"],
|
|
@@ -252,7 +262,8 @@ export const pollAgentRepliesEventSchema = {
|
|
|
252
262
|
traceId: { type: "string" },
|
|
253
263
|
disableSensitiveLogging: { type: "boolean" },
|
|
254
264
|
pollingTimeoutAt: { type: "number" },
|
|
255
|
-
sequence: { type: "number" }
|
|
265
|
+
sequence: { type: "number" },
|
|
266
|
+
lastEventId: { type: "string" }
|
|
256
267
|
},
|
|
257
268
|
};
|
|
258
269
|
export const handleHandoverRpcEventSchema = {
|
|
@@ -298,4 +309,13 @@ export const getQueueUpdateEventsSchema = {
|
|
|
298
309
|
disableSensitiveLogging: { type: "boolean" }
|
|
299
310
|
},
|
|
300
311
|
};
|
|
312
|
+
;
|
|
313
|
+
;
|
|
314
|
+
;
|
|
315
|
+
;
|
|
316
|
+
;
|
|
317
|
+
[];
|
|
318
|
+
;
|
|
319
|
+
;
|
|
320
|
+
;
|
|
301
321
|
//# sourceMappingURL=handover.js.map
|
|
@@ -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: {
|
|
@@ -34,7 +34,17 @@ export const openAIMetaSchema = {
|
|
|
34
34
|
type: "object",
|
|
35
35
|
additionalProperties: false,
|
|
36
36
|
properties: {
|
|
37
|
-
customModel: { type: ["string", "null"] }
|
|
37
|
+
customModel: { type: ["string", "null"] },
|
|
38
|
+
baseCustomUrl: { type: ["string", "null"] }
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export const openAICompatibleMetaSchema = {
|
|
42
|
+
title: "openAICompatibleMetaSchema",
|
|
43
|
+
type: "object",
|
|
44
|
+
additionalProperties: false,
|
|
45
|
+
properties: {
|
|
46
|
+
customModel: { type: "string" },
|
|
47
|
+
baseCustomUrl: { type: "string" },
|
|
38
48
|
}
|
|
39
49
|
};
|
|
40
50
|
export const azureOpenAIMetaSchema = {
|
|
@@ -113,6 +123,7 @@ export const largeLanguageModelDataSchema = {
|
|
|
113
123
|
connectionId: { type: "string", format: "uuid" },
|
|
114
124
|
isDefault: { type: "boolean" },
|
|
115
125
|
openAI: openAIMetaSchema,
|
|
126
|
+
openAICompatible: openAICompatibleMetaSchema,
|
|
116
127
|
azureOpenAI: azureOpenAIMetaSchema,
|
|
117
128
|
googleVertexAI: googleVertexAIMetaSchema,
|
|
118
129
|
googleGemini: googleGeminiMetaSchema,
|
|
@@ -89,10 +89,13 @@ const nodeDependenciesSchema = {
|
|
|
89
89
|
export const nodeFieldTypes = [
|
|
90
90
|
"adaptivecard",
|
|
91
91
|
"agentAssistConfig",
|
|
92
|
+
"aiAgentSelect",
|
|
92
93
|
"appTemplate",
|
|
93
94
|
"backgroundSelector",
|
|
94
95
|
"caseNode",
|
|
95
96
|
"checkbox",
|
|
97
|
+
"checkAgentAvailabilityProvider",
|
|
98
|
+
"checkAgentAvailabilityConfig",
|
|
96
99
|
"chipInput",
|
|
97
100
|
"code",
|
|
98
101
|
"cognigyLLMText",
|
|
@@ -107,16 +110,16 @@ export const nodeFieldTypes = [
|
|
|
107
110
|
"flow",
|
|
108
111
|
"flowNode",
|
|
109
112
|
"function",
|
|
113
|
+
"goalAndStepsSelect",
|
|
114
|
+
"handoverProvider",
|
|
115
|
+
"handoverProviderConfig",
|
|
110
116
|
"json",
|
|
111
117
|
"keyValuePairs",
|
|
112
|
-
"
|
|
118
|
+
"knowledgeSourceTags",
|
|
113
119
|
"knowledgeStore",
|
|
114
120
|
"knowledgeStoreSelect",
|
|
115
|
-
"knowledgeSourceTags",
|
|
116
|
-
"llmSelect",
|
|
117
|
-
"aiAgentSelect",
|
|
118
|
-
"goalAndStepsSelect",
|
|
119
121
|
"lexicon",
|
|
122
|
+
"llmSelect",
|
|
120
123
|
"localeField",
|
|
121
124
|
"node",
|
|
122
125
|
"number",
|
|
@@ -136,6 +139,7 @@ export const nodeFieldTypes = [
|
|
|
136
139
|
"textArray",
|
|
137
140
|
"time",
|
|
138
141
|
"toggle",
|
|
142
|
+
"toolParameters",
|
|
139
143
|
"ttsSelect",
|
|
140
144
|
"typescript",
|
|
141
145
|
"xml"
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
* - flowSettings
|
|
21
21
|
* - flowState
|
|
22
22
|
* - function
|
|
23
|
+
* - handoverProvider
|
|
23
24
|
* - intent
|
|
24
25
|
* - intentDefaultReply
|
|
25
26
|
* - intentLearningSentence
|
|
@@ -56,6 +57,7 @@ export const arrayTResourceType = [
|
|
|
56
57
|
"flowSettings",
|
|
57
58
|
"flowState",
|
|
58
59
|
"function",
|
|
60
|
+
"handoverProvider",
|
|
59
61
|
"intent",
|
|
60
62
|
"intentDefaultReply",
|
|
61
63
|
"intentLearningSentence",
|
|
@@ -95,6 +97,7 @@ export const arrayTSnapshottableResourceType = [
|
|
|
95
97
|
"flowSettings",
|
|
96
98
|
"flowState",
|
|
97
99
|
"function",
|
|
100
|
+
"handoverProvider",
|
|
98
101
|
"intent",
|
|
99
102
|
"intentDefaultReply",
|
|
100
103
|
"intentRelation",
|
|
@@ -132,6 +135,7 @@ export const chartableResourceTypes = [...arrayTChartableResourceType];
|
|
|
132
135
|
* - function
|
|
133
136
|
* - lexicon
|
|
134
137
|
* - goal
|
|
138
|
+
* - handoverProvider
|
|
135
139
|
* - nluconnector
|
|
136
140
|
* - playbook
|
|
137
141
|
* - project
|
|
@@ -164,6 +168,7 @@ export const packageableResourceTypes = [
|
|
|
164
168
|
"lexicon",
|
|
165
169
|
"locale",
|
|
166
170
|
"goal",
|
|
171
|
+
"handoverProvider",
|
|
167
172
|
"nluconnector",
|
|
168
173
|
"playbook",
|
|
169
174
|
"snippet",
|
|
@@ -183,6 +188,7 @@ export const primaryResourceTypes = [
|
|
|
183
188
|
"nluconnector",
|
|
184
189
|
"playbook",
|
|
185
190
|
"snippet",
|
|
191
|
+
"handoverProvider",
|
|
186
192
|
];
|
|
187
193
|
export const pinnableResourceTypes = [
|
|
188
194
|
"project"
|
|
@@ -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",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const audioPreviewProviders = ["microsoft", "google", "aws"];
|
|
1
|
+
export const audioPreviewProviders = ["microsoft", "google", "aws", "deepgram"];
|
|
2
2
|
export const audioPreviewSettingsDataSchema = {
|
|
3
3
|
title: "audioPreviewSettingsDataSchema",
|
|
4
4
|
type: ["object", "null"],
|
|
@@ -25,7 +25,13 @@ export const audioPreviewSettingsDataSchema = {
|
|
|
25
25
|
properties: {
|
|
26
26
|
connectionId: { type: ["string", "null"], format: "uuid" }
|
|
27
27
|
}
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
deepgram: {
|
|
30
|
+
type: "object",
|
|
31
|
+
properties: {
|
|
32
|
+
connectionId: { type: ["string", "null"], format: "uuid" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
}
|
|
@@ -58,6 +58,7 @@ export const organisationWidePermissions = [
|
|
|
58
58
|
* - memberDetails
|
|
59
59
|
* - members
|
|
60
60
|
* - goals
|
|
61
|
+
* - handoverProviders
|
|
61
62
|
* - nluConnectors
|
|
62
63
|
* - packages
|
|
63
64
|
* - playbooks
|
|
@@ -97,6 +98,7 @@ export const projectWidePermissions = [
|
|
|
97
98
|
"memberDetails",
|
|
98
99
|
"members",
|
|
99
100
|
"goals",
|
|
101
|
+
"handoverProviders",
|
|
100
102
|
"nluConnectors",
|
|
101
103
|
"packages",
|
|
102
104
|
"playbooks",
|
|
@@ -63,6 +63,7 @@ export const organisationWideRoles = [
|
|
|
63
63
|
* - flowNodeComments
|
|
64
64
|
* - flowNodeDescriptions
|
|
65
65
|
* - followUser
|
|
66
|
+
* - handoverProviderAdmin
|
|
66
67
|
* - intents
|
|
67
68
|
* - data_privacy_admin
|
|
68
69
|
* - data_privacy_editor
|
|
@@ -106,6 +107,7 @@ export const projectWideRoles = [
|
|
|
106
107
|
"followUser",
|
|
107
108
|
"function_admin",
|
|
108
109
|
"function_editor",
|
|
110
|
+
"handoverProviderAdmin",
|
|
109
111
|
"intents",
|
|
110
112
|
"knowledgeAdmin",
|
|
111
113
|
"large_language_model_admin",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const COMPUTED_ACL_HASH_VERSION = "
|
|
1
|
+
export const COMPUTED_ACL_HASH_VERSION = "v19";
|
|
2
2
|
export { availablePermissions, } from "./IPermission";
|
|
3
3
|
export { organisationWideRoles, projectWideRoles, availableRoles, } from "./IRole";
|
|
4
4
|
export { operations, } from "./IOperation";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cognigy/rest-api-client",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.97.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"
|