@cognigy/rest-api-client 4.99.0 → 2025.10.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/ResourcesAPIGroup_2_0.js +3 -1
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockIAMProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +5 -1
- package/build/shared/charts/descriptors/index.js +5 -1
- package/build/shared/charts/descriptors/message/question/question.js +11 -7
- package/build/shared/charts/descriptors/message/say.js +10 -7
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
- package/build/shared/charts/descriptors/service/LLMModerate.js +275 -0
- package/build/shared/charts/descriptors/service/index.js +5 -1
- package/build/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +12 -0
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +16 -14
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/build/shared/interfaces/handover.js +21 -5
- package/build/shared/interfaces/messageAPI/endpoints.js +44 -119
- package/build/shared/interfaces/messageAPI/handover.js +34 -6
- package/build/shared/interfaces/resources/IEndpoint.js +24 -4
- package/build/shared/interfaces/resources/ISipConnectivityInfo.js +16 -0
- package/build/shared/interfaces/resources/IWebrtcWidgetConfig.js +12 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +3 -0
- package/build/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +3 -0
- package/build/shared/json-schema.js +2 -1
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +3 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockIAMProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +3 -0
- package/dist/esm/shared/charts/descriptors/index.js +6 -2
- package/dist/esm/shared/charts/descriptors/message/question/question.js +11 -7
- package/dist/esm/shared/charts/descriptors/message/say.js +10 -7
- package/dist/esm/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/LLMModerate.js +273 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
- package/dist/esm/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +9 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +16 -14
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/dist/esm/shared/interfaces/handover.js +21 -5
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +43 -118
- package/dist/esm/shared/interfaces/messageAPI/handover.js +34 -6
- package/dist/esm/shared/interfaces/resources/IEndpoint.js +27 -7
- package/dist/esm/shared/interfaces/resources/ISipConnectivityInfo.js +13 -0
- package/dist/esm/shared/interfaces/resources/IWebrtcWidgetConfig.js +9 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +2 -0
- package/dist/esm/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +2 -0
- package/dist/esm/shared/json-schema.js +2 -1
- package/package.json +1 -1
- package/types/index.d.ts +98 -41
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTANT: This file exists in two places:
|
|
3
|
+
* - cognigy/services/service-handover/src/old_shared/interfaces/handover.ts
|
|
4
|
+
* - cognigy/shared/interfaces/handover.ts
|
|
5
|
+
*
|
|
6
|
+
* Please keep both files in sync.
|
|
7
|
+
*/
|
|
1
8
|
export const externalHandoverProviders = [
|
|
2
9
|
"rce",
|
|
3
10
|
"chatwoot",
|
|
@@ -7,6 +14,7 @@ export const externalHandoverProviders = [
|
|
|
7
14
|
"genesysCloud",
|
|
8
15
|
"genesysCloudOM",
|
|
9
16
|
"eightByEight",
|
|
17
|
+
"salesforceMIAW"
|
|
10
18
|
];
|
|
11
19
|
export const internalHandoverProviders = [
|
|
12
20
|
"cognigy",
|
|
@@ -51,7 +59,8 @@ export const handoverSettingsSchema = {
|
|
|
51
59
|
oneOf: [
|
|
52
60
|
{
|
|
53
61
|
type: "object",
|
|
54
|
-
|
|
62
|
+
// Temporary due to handover provider changes
|
|
63
|
+
additionalProperties: true,
|
|
55
64
|
properties: {
|
|
56
65
|
accountId: { type: "string" },
|
|
57
66
|
baseUrl: { type: "string" },
|
|
@@ -142,6 +151,7 @@ export const foreignSessionDataSchema = {
|
|
|
142
151
|
clientPollTimeout: { type: "number" },
|
|
143
152
|
accessToken: { type: "string" },
|
|
144
153
|
lastEventId: { type: "string" },
|
|
154
|
+
apiKey: { type: "string" }
|
|
145
155
|
}
|
|
146
156
|
};
|
|
147
157
|
export const rceSettingsSchema = {
|
|
@@ -223,7 +233,7 @@ export const eightByEightSettingsSchema = {
|
|
|
223
233
|
export const queueUpdateOptionsSchema = {
|
|
224
234
|
"title": "queueUpdateOptionsSchema",
|
|
225
235
|
"type": "object",
|
|
226
|
-
"additionalProperties":
|
|
236
|
+
"additionalProperties": true,
|
|
227
237
|
"required": [],
|
|
228
238
|
"properties": {
|
|
229
239
|
"getQueuePosition": {
|
|
@@ -242,10 +252,16 @@ export const queueUpdateOptionsSchema = {
|
|
|
242
252
|
"type": "boolean"
|
|
243
253
|
},
|
|
244
254
|
"maximumQueuePosition": {
|
|
245
|
-
"
|
|
255
|
+
"anyOf": [
|
|
256
|
+
{ "type": "number" },
|
|
257
|
+
{ "type": "string", "const": "" }
|
|
258
|
+
]
|
|
246
259
|
},
|
|
247
260
|
"maximumEstimatedWaitTime": {
|
|
248
|
-
"
|
|
261
|
+
"anyOf": [
|
|
262
|
+
{ "type": "number" },
|
|
263
|
+
{ "type": "string", "const": "" }
|
|
264
|
+
]
|
|
249
265
|
},
|
|
250
266
|
"alternativeText": {
|
|
251
267
|
"type": ["string", "null"]
|
|
@@ -377,7 +393,7 @@ export const salesforceMIAWSettingsSchema = {
|
|
|
377
393
|
},
|
|
378
394
|
forwardUnknownEventsToFlow: {
|
|
379
395
|
type: "boolean"
|
|
380
|
-
}
|
|
396
|
+
},
|
|
381
397
|
}
|
|
382
398
|
};
|
|
383
399
|
export const liveAgentSettingsSchema = {
|
|
@@ -336,124 +336,6 @@ export const avayaGatherLanguages = [
|
|
|
336
336
|
"cmn-Hans-HK",
|
|
337
337
|
"cmn-Hans-CN",
|
|
338
338
|
];
|
|
339
|
-
export const anyEndpointSettingsSchema = {
|
|
340
|
-
title: "anyEndpointSettingsSchema",
|
|
341
|
-
type: "object",
|
|
342
|
-
properties: {
|
|
343
|
-
action: { type: "string" },
|
|
344
|
-
accessScope: { type: "string" },
|
|
345
|
-
accessToken: { type: "string" },
|
|
346
|
-
appId: { type: "string" },
|
|
347
|
-
appSecret: { type: "string" },
|
|
348
|
-
backgroundImageUrl: { type: "string" },
|
|
349
|
-
basicAuthPassword: { type: "string" },
|
|
350
|
-
basicAuthUser: { type: "string" },
|
|
351
|
-
botUserId: { type: "string" },
|
|
352
|
-
colorScheme: { type: "string" },
|
|
353
|
-
connectionName: { type: "string" },
|
|
354
|
-
cpaasToken: { type: "string" },
|
|
355
|
-
customJSON: { type: "string" },
|
|
356
|
-
designTemplate: { type: "integer" },
|
|
357
|
-
disableHtmlContentSanitization: { type: "boolean" },
|
|
358
|
-
disableInputAutocomplete: { type: "boolean" },
|
|
359
|
-
disableUrlButtonSanitization: { type: "boolean" },
|
|
360
|
-
disableInputSanitization: { type: "boolean" },
|
|
361
|
-
disableSkipUriTags: { type: "boolean" },
|
|
362
|
-
enableAsyncCommunication: { type: "boolean" },
|
|
363
|
-
enableCollectMetadata: { type: "boolean" },
|
|
364
|
-
enableGenericHTMLStyling: { type: "boolean" },
|
|
365
|
-
enableDemoWebchat: { type: "boolean" },
|
|
366
|
-
enableFileUpload: { type: "boolean" },
|
|
367
|
-
enablePersistentMenu: { type: "boolean" },
|
|
368
|
-
enableRating: { type: "string", enum: ["always", "once", "onRequest"] },
|
|
369
|
-
enableSTT: { type: "boolean" },
|
|
370
|
-
enableTTS: { type: "boolean" },
|
|
371
|
-
enableTypingIndicator: { type: "boolean" },
|
|
372
|
-
enableFileAttachment: { type: "boolean" },
|
|
373
|
-
fileAttachmentMaxSize: { type: "number" },
|
|
374
|
-
facebookPageToken: { type: "string" },
|
|
375
|
-
finishOnKey: {
|
|
376
|
-
type: "string",
|
|
377
|
-
enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
|
|
378
|
-
},
|
|
379
|
-
workplaceToken: { type: "string" },
|
|
380
|
-
foreignId: { type: "string" },
|
|
381
|
-
gatherlanguage: {
|
|
382
|
-
type: "string",
|
|
383
|
-
enum: [...avayaGatherLanguages]
|
|
384
|
-
},
|
|
385
|
-
getStartedButtonText: { type: "string" },
|
|
386
|
-
getStartedData: { type: "string" },
|
|
387
|
-
getStartedPayload: { type: "string" },
|
|
388
|
-
getStartedText: { type: "string" },
|
|
389
|
-
headerLogoUrl: { type: "string" },
|
|
390
|
-
hints: { type: "string" },
|
|
391
|
-
hubSecret: { type: "string" },
|
|
392
|
-
input: {
|
|
393
|
-
type: "string",
|
|
394
|
-
enum: ["speech dtmf", "speech", "dtmf"]
|
|
395
|
-
},
|
|
396
|
-
inputPlaceholder: { type: "string" },
|
|
397
|
-
language: {
|
|
398
|
-
type: "string",
|
|
399
|
-
enum: [...avayaSttTtsLanguages]
|
|
400
|
-
},
|
|
401
|
-
lineChannelAccessToken: { type: "string" },
|
|
402
|
-
lineChannelSecret: { type: "string" },
|
|
403
|
-
mergeContactProfiles: { type: "boolean" },
|
|
404
|
-
messageDelay: { type: "integer" },
|
|
405
|
-
messageLogoUrl: { type: "string" },
|
|
406
|
-
method: {
|
|
407
|
-
type: "string",
|
|
408
|
-
enum: ["GET", "POST"]
|
|
409
|
-
},
|
|
410
|
-
numDigits: { type: "integer" },
|
|
411
|
-
ratingTitleText: { type: "string" },
|
|
412
|
-
ratingCommentText: { type: "string" },
|
|
413
|
-
ratingMessageHistoryRatingText: { type: "string" },
|
|
414
|
-
ratingMessageHistoryCommentText: { type: "string" },
|
|
415
|
-
reparseAlexaSlots: { type: "boolean" },
|
|
416
|
-
requestFacebookProfileData: { type: "boolean" },
|
|
417
|
-
sessionExpiration: { type: "integer" },
|
|
418
|
-
slackOAuthAccessToken: { type: "string" },
|
|
419
|
-
slackVerifyToken: { type: "string" },
|
|
420
|
-
sunshineConversationsChannelKeyId: { type: "string" },
|
|
421
|
-
sunshineConversationsChannelSecret: { type: "string" },
|
|
422
|
-
sunshineConversationsChannelUri: { type: "string", format: "uri" },
|
|
423
|
-
sunshineConversationsApiVersion: { type: "string", enum: ["v1.1", "v2"] },
|
|
424
|
-
tenantId: { type: "string" },
|
|
425
|
-
timeout: { type: "integer" },
|
|
426
|
-
updateContactProfileWithFacebookProfile: { type: "boolean" },
|
|
427
|
-
voice: { type: "string" },
|
|
428
|
-
webhookUrl: {
|
|
429
|
-
oneOf: [
|
|
430
|
-
{ type: "string", format: "uri" },
|
|
431
|
-
{ type: "string", enum: [""] }
|
|
432
|
-
]
|
|
433
|
-
},
|
|
434
|
-
enableConnectionStatusIndicator: { type: "boolean" },
|
|
435
|
-
enableUnreadMessageTitleIndicator: { type: "boolean" },
|
|
436
|
-
showEngagementMessagesInChat: { type: "boolean" },
|
|
437
|
-
engagementMessageText: { type: "string" },
|
|
438
|
-
enableUnreadMessageBadge: { type: "boolean" },
|
|
439
|
-
enableUnreadMessagePreview: { type: "boolean" },
|
|
440
|
-
enableUnreadMessageSound: { type: "boolean" },
|
|
441
|
-
dynamicImageAspectRatio: { type: "boolean" },
|
|
442
|
-
focusInputAfterPostback: { type: "boolean" },
|
|
443
|
-
disableInputAutogrow: { type: "boolean" },
|
|
444
|
-
inputAutogrowMaxRows: { type: "number" },
|
|
445
|
-
enableInputCollation: { type: "boolean" },
|
|
446
|
-
inputCollationTimeout: { type: "number" },
|
|
447
|
-
skill: skillSchema,
|
|
448
|
-
persistentMenu: webchatPersistentMenuSchema,
|
|
449
|
-
shouldOverwriteWebchatBundleUrl: { type: "boolean" },
|
|
450
|
-
overwriteWebchatBundleUrl: { type: "string" },
|
|
451
|
-
businessHours: businessHoursMenuSchema,
|
|
452
|
-
maintenance: maintenanceMenuSchema,
|
|
453
|
-
callEvents: callEventsSchema,
|
|
454
|
-
failover: callFailoverSettingsSchema,
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
339
|
export const dashbotPlatform = [
|
|
458
340
|
"facebook",
|
|
459
341
|
"whatsapp",
|
|
@@ -792,6 +674,24 @@ export const niceCXOneEndpointSettingsSchema = {
|
|
|
792
674
|
},
|
|
793
675
|
additionalProperties: false
|
|
794
676
|
};
|
|
677
|
+
export const niceCXOneAAHEndpointSettingsSchema = {
|
|
678
|
+
type: "object",
|
|
679
|
+
properties: {
|
|
680
|
+
niceCXOneAAHConnection: {
|
|
681
|
+
anyOf: [
|
|
682
|
+
{
|
|
683
|
+
type: "string",
|
|
684
|
+
format: "uuid"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
type: "string",
|
|
688
|
+
maxLength: 0
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
additionalProperties: false
|
|
694
|
+
};
|
|
795
695
|
export const agentAssistVoiceEndpointSettingsSchema = {
|
|
796
696
|
type: "object",
|
|
797
697
|
properties: {
|
|
@@ -799,6 +699,31 @@ export const agentAssistVoiceEndpointSettingsSchema = {
|
|
|
799
699
|
},
|
|
800
700
|
additionalProperties: false
|
|
801
701
|
};
|
|
702
|
+
export const anyEndpointSettingsSchema = {
|
|
703
|
+
title: "anyEndpointSettingsSchema",
|
|
704
|
+
type: "object",
|
|
705
|
+
properties: Object.assign({ action: { type: "string" }, accessScope: { type: "string" }, accessToken: { type: "string" }, appId: { type: "string" }, appSecret: { type: "string" }, backgroundImageUrl: { type: "string" }, basicAuthPassword: { type: "string" }, basicAuthUser: { type: "string" }, botUserId: { type: "string" }, colorScheme: { type: "string" }, connectionName: { type: "string" }, cpaasToken: { type: "string" }, customJSON: { type: "string" }, designTemplate: { type: "integer" }, disableHtmlContentSanitization: { type: "boolean" }, disableInputAutocomplete: { type: "boolean" }, disableUrlButtonSanitization: { type: "boolean" }, disableInputSanitization: { type: "boolean" }, disableSkipUriTags: { type: "boolean" }, enableAsyncCommunication: { type: "boolean" }, enableCollectMetadata: { type: "boolean" }, enableGenericHTMLStyling: { type: "boolean" }, enableDemoWebchat: { type: "boolean" }, enableFileUpload: { type: "boolean" }, enablePersistentMenu: { type: "boolean" }, enableRating: { type: "string", enum: ["always", "once", "onRequest"] }, enableSTT: { type: "boolean" }, enableTTS: { type: "boolean" }, enableTypingIndicator: { type: "boolean" }, enableFileAttachment: { type: "boolean" }, fileAttachmentMaxSize: { type: "number" }, facebookPageToken: { type: "string" }, finishOnKey: {
|
|
706
|
+
type: "string",
|
|
707
|
+
enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
|
|
708
|
+
}, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
|
|
709
|
+
type: "string",
|
|
710
|
+
enum: [...avayaGatherLanguages]
|
|
711
|
+
}, getStartedButtonText: { type: "string" }, getStartedData: { type: "string" }, getStartedPayload: { type: "string" }, getStartedText: { type: "string" }, headerLogoUrl: { type: "string" }, hints: { type: "string" }, hubSecret: { type: "string" }, input: {
|
|
712
|
+
type: "string",
|
|
713
|
+
enum: ["speech dtmf", "speech", "dtmf"]
|
|
714
|
+
}, inputPlaceholder: { type: "string" }, language: {
|
|
715
|
+
type: "string",
|
|
716
|
+
enum: [...avayaSttTtsLanguages]
|
|
717
|
+
}, lineChannelAccessToken: { type: "string" }, lineChannelSecret: { type: "string" }, mergeContactProfiles: { type: "boolean" }, messageDelay: { type: "integer" }, messageLogoUrl: { type: "string" }, method: {
|
|
718
|
+
type: "string",
|
|
719
|
+
enum: ["GET", "POST"]
|
|
720
|
+
}, numDigits: { type: "integer" }, ratingTitleText: { type: "string" }, ratingCommentText: { type: "string" }, ratingMessageHistoryRatingText: { type: "string" }, ratingMessageHistoryCommentText: { type: "string" }, reparseAlexaSlots: { type: "boolean" }, requestFacebookProfileData: { type: "boolean" }, sessionExpiration: { type: "integer" }, slackOAuthAccessToken: { type: "string" }, slackVerifyToken: { type: "string" }, sunshineConversationsChannelKeyId: { type: "string" }, sunshineConversationsChannelSecret: { type: "string" }, sunshineConversationsChannelUri: { type: "string", format: "uri" }, sunshineConversationsApiVersion: { type: "string", enum: ["v1.1", "v2"] }, tenantId: { type: "string" }, timeout: { type: "integer" }, updateContactProfileWithFacebookProfile: { type: "boolean" }, voice: { type: "string" }, webhookUrl: {
|
|
721
|
+
oneOf: [
|
|
722
|
+
{ type: "string", format: "uri" },
|
|
723
|
+
{ type: "string", enum: [""] }
|
|
724
|
+
]
|
|
725
|
+
}, enableConnectionStatusIndicator: { type: "boolean" }, enableUnreadMessageTitleIndicator: { type: "boolean" }, showEngagementMessagesInChat: { type: "boolean" }, engagementMessageText: { type: "string" }, enableUnreadMessageBadge: { type: "boolean" }, enableUnreadMessagePreview: { type: "boolean" }, enableUnreadMessageSound: { type: "boolean" }, dynamicImageAspectRatio: { type: "boolean" }, focusInputAfterPostback: { type: "boolean" }, disableInputAutogrow: { type: "boolean" }, inputAutogrowMaxRows: { type: "number" }, enableInputCollation: { type: "boolean" }, inputCollationTimeout: { type: "number" }, skill: skillSchema, persistentMenu: webchatPersistentMenuSchema, shouldOverwriteWebchatBundleUrl: { type: "boolean" }, overwriteWebchatBundleUrl: { type: "string" }, businessHours: businessHoursMenuSchema, maintenance: maintenanceMenuSchema, callEvents: callEventsSchema, failover: callFailoverSettingsSchema }, niceCXOneAAHEndpointSettingsSchema.properties)
|
|
726
|
+
};
|
|
802
727
|
/** Create the default endpoint for adminconsole i.e. for interaction panel */
|
|
803
728
|
export const createAdminConsoleEndpointConfiguration = () => {
|
|
804
729
|
/** Create the endpointConfiguration for this connection */
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IMPORTANT: This file exists in two places:
|
|
3
|
+
* - cognigy/services/service-handover/src/old_shared/interfaces/messageAPI/handover.ts
|
|
4
|
+
* - cognigy/shared/interfaces/messageAPI/handover.ts
|
|
5
|
+
*
|
|
6
|
+
* Please keep both files in sync.
|
|
7
|
+
*/
|
|
1
8
|
import { foreignSessionDataSchema, handoverSettingsSchema, queueUpdateOptionsSchema } from "../handover";
|
|
2
9
|
export const createHandoverRequestDataSchema = {
|
|
3
10
|
title: "createHandoverRequestDataSchema",
|
|
@@ -10,7 +17,7 @@ export const createHandoverRequestDataSchema = {
|
|
|
10
17
|
"flowReferenceId",
|
|
11
18
|
"URLToken"
|
|
12
19
|
],
|
|
13
|
-
"additionalProperties":
|
|
20
|
+
"additionalProperties": true,
|
|
14
21
|
"properties": {
|
|
15
22
|
"projectId": {
|
|
16
23
|
"type": "string",
|
|
@@ -83,10 +90,6 @@ export const createHandoverRequestDataSchema = {
|
|
|
83
90
|
"liveAgentAllowAgentInject": {
|
|
84
91
|
"type": "boolean"
|
|
85
92
|
},
|
|
86
|
-
// Temporary field for live agent
|
|
87
|
-
"allowAgentInject": {
|
|
88
|
-
"type": "boolean"
|
|
89
|
-
},
|
|
90
93
|
"sendTranscriptAsFirstMessage": {
|
|
91
94
|
"type": "boolean"
|
|
92
95
|
},
|
|
@@ -99,6 +102,31 @@ export const createHandoverRequestDataSchema = {
|
|
|
99
102
|
salesforcePrechatEntities: {
|
|
100
103
|
type: ["object", "array", "number", "string"],
|
|
101
104
|
},
|
|
105
|
+
salesforceMIAWRoutingAttributes: {
|
|
106
|
+
// @ts-ignore - not working properly with the type
|
|
107
|
+
type: ["object", "array", "number", "string"],
|
|
108
|
+
},
|
|
109
|
+
salesforceMIAWCustomerIdentityToken: {
|
|
110
|
+
type: "string"
|
|
111
|
+
},
|
|
112
|
+
enableHandoverDisconnectMessageLiveAgent: {
|
|
113
|
+
type: "boolean"
|
|
114
|
+
},
|
|
115
|
+
enableHandoverConnectMessageLiveAgent: {
|
|
116
|
+
type: "boolean"
|
|
117
|
+
},
|
|
118
|
+
enableHandoverDisconnectMessageGenesys: {
|
|
119
|
+
type: "boolean"
|
|
120
|
+
},
|
|
121
|
+
enableHandoverConnectMessageGenesys: {
|
|
122
|
+
type: "boolean"
|
|
123
|
+
},
|
|
124
|
+
enableHandoverDisconnectMessageRingCentralEngage: {
|
|
125
|
+
type: "boolean"
|
|
126
|
+
},
|
|
127
|
+
enableHandoverConnectMessageRingCentralEngage: {
|
|
128
|
+
type: "boolean"
|
|
129
|
+
},
|
|
102
130
|
"notifySessionId": {
|
|
103
131
|
"type": "string",
|
|
104
132
|
},
|
|
@@ -296,7 +324,7 @@ export const handleHandoverRpcEventSchema = {
|
|
|
296
324
|
export const getQueueUpdateEventsSchema = {
|
|
297
325
|
title: "getQueueUpdateEventsSchema",
|
|
298
326
|
type: "object",
|
|
299
|
-
additionalProperties:
|
|
327
|
+
additionalProperties: true,
|
|
300
328
|
required: [
|
|
301
329
|
"handoverSettings",
|
|
302
330
|
"foreignSessionData",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { anyEndpointSettingsSchema } from "../messageAPI/endpoints";
|
|
2
|
-
import { transformerFunctionSchema } from "../transformers/ITransformerFunction";
|
|
2
|
+
import { transformerFunctionSchema, } from "../transformers/ITransformerFunction";
|
|
3
3
|
import { handoverSettingsSchema } from "../handover";
|
|
4
4
|
import { entityMetaSchema } from "./IEntityMeta";
|
|
5
|
-
import { translationSettingsEndpointSchema } from "../IEndpointTranslationSettings";
|
|
6
|
-
import { fileStorageSettingsSchema } from
|
|
5
|
+
import { translationSettingsEndpointSchema, } from "../IEndpointTranslationSettings";
|
|
6
|
+
import { fileStorageSettingsSchema } from "../fileStorage";
|
|
7
7
|
export const endpointDataSchema = {
|
|
8
8
|
title: "endpointDataSchema",
|
|
9
9
|
type: "object",
|
|
@@ -14,16 +14,17 @@ export const endpointDataSchema = {
|
|
|
14
14
|
channel: { type: "string", format: "endpoint-channel" },
|
|
15
15
|
dashbotApikey: { type: "string" },
|
|
16
16
|
dashbotPlatform: { type: "string" },
|
|
17
|
+
customIcon: { type: "string" },
|
|
17
18
|
flowId: {
|
|
18
19
|
oneOf: [
|
|
19
20
|
{ type: "string", format: "uuid" },
|
|
20
|
-
{ type: "string", enum: [""] }
|
|
21
|
+
{ type: "string", enum: [""] },
|
|
21
22
|
],
|
|
22
23
|
},
|
|
23
24
|
localeId: {
|
|
24
25
|
oneOf: [
|
|
25
26
|
{ type: "string", format: "uuid" },
|
|
26
|
-
{ type: "string", enum: [""] }
|
|
27
|
+
{ type: "string", enum: [""] },
|
|
27
28
|
],
|
|
28
29
|
},
|
|
29
30
|
entrypoint: { type: ["string", "null"], format: "mongo-id" },
|
|
@@ -35,7 +36,7 @@ export const endpointDataSchema = {
|
|
|
35
36
|
oneOf: [
|
|
36
37
|
{ type: "string", format: "uuid" },
|
|
37
38
|
{ type: "string", format: "nlu-connector-type" },
|
|
38
|
-
]
|
|
39
|
+
],
|
|
39
40
|
},
|
|
40
41
|
settings: anyEndpointSettingsSchema,
|
|
41
42
|
transformer: transformerFunctionSchema,
|
|
@@ -50,7 +51,26 @@ export const endpointDataSchema = {
|
|
|
50
51
|
overrideSnapshotConnections: { type: "boolean" },
|
|
51
52
|
fileStorageSettings: fileStorageSettingsSchema,
|
|
52
53
|
disableInputSanitization: { type: "boolean" },
|
|
53
|
-
disableSkipUriTags: { type: "boolean" }
|
|
54
|
+
disableSkipUriTags: { type: "boolean" },
|
|
55
|
+
webrtcClient: { type: "boolean" },
|
|
56
|
+
sipConnectivityInfo: {
|
|
57
|
+
type: "object",
|
|
58
|
+
properties: {
|
|
59
|
+
realm: { type: "string" },
|
|
60
|
+
username: { type: "string" },
|
|
61
|
+
password: { type: "string" },
|
|
62
|
+
applicationSid: { type: "string" },
|
|
63
|
+
clientSid: { type: "string" },
|
|
64
|
+
wsUri: { type: "string" },
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
webrtcWidgetConfig: {
|
|
68
|
+
type: "object",
|
|
69
|
+
properties: {
|
|
70
|
+
label: { type: "string" },
|
|
71
|
+
active: { type: "boolean" },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
54
74
|
},
|
|
55
75
|
};
|
|
56
76
|
export const endpointSchema = {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const sipConnectivityInfoSchema = {
|
|
2
|
+
title: "sipConnectivityInfoSchema",
|
|
3
|
+
type: "object",
|
|
4
|
+
properties: {
|
|
5
|
+
realm: { type: "string" },
|
|
6
|
+
username: { type: "string" },
|
|
7
|
+
password: { type: "string" },
|
|
8
|
+
applicationSid: { type: "string" },
|
|
9
|
+
wsUri: { type: "string" },
|
|
10
|
+
clientSid: { type: "string" },
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=ISipConnectivityInfo.js.map
|