@cognigy/rest-api-client 4.96.0 → 4.98.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 -3
- 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/completeGoal.js +2 -2
- 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 +5 -1
- package/build/shared/charts/descriptors/logic/think.js +2 -4
- package/build/shared/charts/descriptors/message/question/question.js +21 -13
- package/build/shared/charts/descriptors/message/say.js +29 -3
- package/build/shared/charts/descriptors/service/GPTPrompt.js +1 -1
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +80 -30
- 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/constants.js +8 -1
- package/build/shared/interfaces/IProfileSchema.js +1 -1
- 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 +6 -1
- package/build/shared/interfaces/messageAPI/handover.js +27 -2
- package/build/shared/interfaces/resources/IAiAgent.js +3 -1
- 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/settings/IAudioPreviewSettings.js +8 -2
- package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
- 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/completeGoal.js +2 -2
- 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 +5 -1
- package/dist/esm/shared/charts/descriptors/logic/think.js +2 -4
- package/dist/esm/shared/charts/descriptors/message/question/question.js +21 -13
- package/dist/esm/shared/charts/descriptors/message/say.js +29 -3
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +80 -30
- 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/constants.js +7 -0
- package/dist/esm/shared/interfaces/IProfileSchema.js +1 -1
- 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 +6 -1
- package/dist/esm/shared/interfaces/messageAPI/handover.js +27 -2
- package/dist/esm/shared/interfaces/resources/IAiAgent.js +3 -1
- 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/settings/IAudioPreviewSettings.js +8 -2
- package/dist/esm/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
- 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 +573 -23
|
@@ -71,6 +71,26 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
71
71
|
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SEND_RESOLVE_EVENT__LABEL",
|
|
72
72
|
defaultValue: true,
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
key: "handoverProvider",
|
|
76
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__LABEL",
|
|
77
|
+
type: "handoverProvider",
|
|
78
|
+
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__DESCRIPTION",
|
|
79
|
+
defaultValue: "legacyEndpoint",
|
|
80
|
+
params: {
|
|
81
|
+
required: true,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
key: "handoverProviderConfig",
|
|
86
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__LABEL",
|
|
87
|
+
type: "json",
|
|
88
|
+
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__DESCRIPTION",
|
|
89
|
+
defaultValue: {},
|
|
90
|
+
params: {
|
|
91
|
+
required: true,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
74
94
|
{
|
|
75
95
|
key: constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.LIVE_AGENT_INBOX_ID,
|
|
76
96
|
type: "cognigyText",
|
|
@@ -165,33 +185,6 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
165
185
|
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
|
|
166
186
|
defaultValue: "[]",
|
|
167
187
|
},
|
|
168
|
-
{
|
|
169
|
-
key: "sendTranscriptAsFirstMessageMIAW",
|
|
170
|
-
type: "toggle",
|
|
171
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SEND_TRANSCRIPT_AS_FIRST_MESSAGE__LABEL",
|
|
172
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
|
|
173
|
-
defaultValue: false,
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
key: "buttonIdMIAW",
|
|
177
|
-
type: "cognigyText",
|
|
178
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__BUTTON_ID__LABEL",
|
|
179
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__BUTTON_ID__DESCRIPTION",
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
key: "salesforcePrechatEntitiesMIAW",
|
|
183
|
-
type: "json",
|
|
184
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_ENTITIES__LABEL",
|
|
185
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_ENTITIES__DESCRIPTION",
|
|
186
|
-
defaultValue: "[]",
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
key: "salesforcePrechatDetailsMIAW",
|
|
190
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_DETAILS__LABEL",
|
|
191
|
-
type: "json",
|
|
192
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
|
|
193
|
-
defaultValue: "[]",
|
|
194
|
-
},
|
|
195
188
|
{
|
|
196
189
|
key: "genesysLanguage",
|
|
197
190
|
type: "cognigyText",
|
|
@@ -428,6 +421,42 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
428
421
|
constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ENABLE_HANDOVER_CONNECT_MESSAGE,
|
|
429
422
|
constants_1.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ENABLE_HANDOVER_DISCONNECT_MESSAGE,
|
|
430
423
|
],
|
|
424
|
+
condition: {
|
|
425
|
+
or: [
|
|
426
|
+
{
|
|
427
|
+
key: "handoverProvider",
|
|
428
|
+
value: "legacyEndpoint"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
key: "handoverProvider",
|
|
432
|
+
// @ts-ignore
|
|
433
|
+
value: null
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
key: "eightByEightSettings",
|
|
440
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__SECTIONS__EIGHT_BY_EIGHT_SETTINGS__LABEL",
|
|
441
|
+
defaultCollapsed: true,
|
|
442
|
+
fields: [
|
|
443
|
+
"eightByEightChannelId",
|
|
444
|
+
"eightByEightQueueId",
|
|
445
|
+
"eightByEightJSONProps"
|
|
446
|
+
],
|
|
447
|
+
condition: {
|
|
448
|
+
or: [
|
|
449
|
+
{
|
|
450
|
+
key: "handoverProvider",
|
|
451
|
+
value: "legacyEndpoint"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
key: "handoverProvider",
|
|
455
|
+
// @ts-ignore
|
|
456
|
+
value: null
|
|
457
|
+
}
|
|
458
|
+
]
|
|
459
|
+
}
|
|
431
460
|
},
|
|
432
461
|
{
|
|
433
462
|
key: "chatwootSettings",
|
|
@@ -435,7 +464,43 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
435
464
|
defaultCollapsed: true,
|
|
436
465
|
fields: [
|
|
437
466
|
"chatwootInboxId",
|
|
438
|
-
]
|
|
467
|
+
],
|
|
468
|
+
condition: {
|
|
469
|
+
or: [
|
|
470
|
+
{
|
|
471
|
+
key: "handoverProvider",
|
|
472
|
+
value: "legacyEndpoint"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
key: "handoverProvider",
|
|
476
|
+
// @ts-ignore
|
|
477
|
+
value: null
|
|
478
|
+
}
|
|
479
|
+
]
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
key: "ringCentralEngageSettings",
|
|
484
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__SECTIONS__RING_CENTRAL_ENGAGE_SETTINGS__LABEL",
|
|
485
|
+
defaultCollapsed: true,
|
|
486
|
+
fields: [
|
|
487
|
+
"additionalCategoryIds",
|
|
488
|
+
"enableHandoverConnectMessageRingCentralEngage",
|
|
489
|
+
"enableHandoverDisconnectMessageRingCentralEngage",
|
|
490
|
+
],
|
|
491
|
+
condition: {
|
|
492
|
+
or: [
|
|
493
|
+
{
|
|
494
|
+
key: "handoverProvider",
|
|
495
|
+
value: "legacyEndpoint"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
key: "handoverProvider",
|
|
499
|
+
// @ts-ignore
|
|
500
|
+
value: null
|
|
501
|
+
}
|
|
502
|
+
]
|
|
503
|
+
}
|
|
439
504
|
},
|
|
440
505
|
{
|
|
441
506
|
key: "salesforceSettings",
|
|
@@ -446,18 +511,20 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
446
511
|
"buttonId",
|
|
447
512
|
"salesforcePrechatEntities",
|
|
448
513
|
"salesforcePrechatDetails"
|
|
449
|
-
]
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
514
|
+
],
|
|
515
|
+
condition: {
|
|
516
|
+
or: [
|
|
517
|
+
{
|
|
518
|
+
key: "handoverProvider",
|
|
519
|
+
value: "legacyEndpoint"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
key: "handoverProvider",
|
|
523
|
+
// @ts-ignore
|
|
524
|
+
value: null
|
|
525
|
+
}
|
|
526
|
+
]
|
|
527
|
+
}
|
|
461
528
|
},
|
|
462
529
|
{
|
|
463
530
|
key: "genesysSettings",
|
|
@@ -470,27 +537,20 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
470
537
|
"genesysCustomAttributes",
|
|
471
538
|
"enableHandoverConnectMessageGenesys",
|
|
472
539
|
"enableHandoverDisconnectMessageGenesys",
|
|
473
|
-
]
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__SECTIONS__RING_CENTRAL_ENGAGE_SETTINGS__LABEL",
|
|
488
|
-
defaultCollapsed: true,
|
|
489
|
-
fields: [
|
|
490
|
-
"additionalCategoryIds",
|
|
491
|
-
"enableHandoverConnectMessageRingCentralEngage",
|
|
492
|
-
"enableHandoverDisconnectMessageRingCentralEngage",
|
|
493
|
-
]
|
|
540
|
+
],
|
|
541
|
+
condition: {
|
|
542
|
+
or: [
|
|
543
|
+
{
|
|
544
|
+
key: "handoverProvider",
|
|
545
|
+
value: "legacyEndpoint"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
key: "handoverProvider",
|
|
549
|
+
// @ts-ignore
|
|
550
|
+
value: null
|
|
551
|
+
}
|
|
552
|
+
]
|
|
553
|
+
}
|
|
494
554
|
},
|
|
495
555
|
{
|
|
496
556
|
key: "eventSettings",
|
|
@@ -503,10 +563,9 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
503
563
|
}
|
|
504
564
|
],
|
|
505
565
|
form: [
|
|
566
|
+
{ type: "field", key: "handoverProvider" },
|
|
506
567
|
{ type: "field", key: "text" },
|
|
507
568
|
{ type: "field", key: "repeatHandoverMessage" },
|
|
508
|
-
{ type: "section", key: "cancelSettings" },
|
|
509
|
-
{ type: "section", key: "resolveOptions" },
|
|
510
569
|
// only render this field if "live agent" is enabled
|
|
511
570
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT === "true" && {
|
|
512
571
|
type: "section",
|
|
@@ -514,10 +573,11 @@ exports.HANDOVER_V2 = (0, createNodeDescriptor_1.createNodeDescriptor)({
|
|
|
514
573
|
},
|
|
515
574
|
{ type: "section", key: "chatwootSettings" },
|
|
516
575
|
{ type: "section", key: "salesforceSettings" },
|
|
517
|
-
process.env.FEATURE_USE_SALESFORCE_MIAW === "true" && { type: "section", key: "salesforceMIAWSettings" },
|
|
518
576
|
{ type: "section", key: "genesysSettings" },
|
|
519
577
|
{ type: "section", key: "eightByEightSettings" },
|
|
520
578
|
{ type: "section", key: "ringCentralEngageSettings" },
|
|
579
|
+
{ type: "section", key: "cancelSettings" },
|
|
580
|
+
{ type: "section", key: "resolveOptions" },
|
|
521
581
|
{ type: "section", key: "eventSettings" },
|
|
522
582
|
]
|
|
523
583
|
.filter(element => !!element),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AI_AGENT_HANDOVER = exports.AI_AGENT_TOOL_ANSWER = exports.AI_AGENT_JOB_TOOL = exports.AI_AGENT_JOB_DEFAULT = exports.AI_AGENT_JOB = exports.LLM_ENTITY_EXTRACT = exports.GPT_CONVERSATION_SUMMARY = exports.GPT_CONVERSATION = exports.HANDOVER_INACTIVITY_TIMER = exports.CLOSE_HANDOVER = exports.GPT_PROMPT = exports.ON_SCHEDULING_ERROR = exports.ON_SCHEDULED = exports.TRIGGER_FUNCTION = exports.JWT_SECRET_CONNECTION = exports.HTTP_CONNECTION_OAUTH2 = exports.HTTP_CONNECTION_APIKEYXKEY = exports.HTTP_CONNECTION_APIKEYAUTHKEY = exports.HTTP_CONNECTION_BASIC = exports.HTTP_REQUEST = exports.CHECK_AGENT_AVAILABILITY = exports.HANDOVER_V2 = exports.HANDOVER = void 0;
|
|
3
|
+
exports.GENESYS_CLOUD_CONNECTION_OM = exports.GENESYS_CLOUD_CONNECTION = exports.EIGHT_BY_EIGHT_CONNECTION = exports.CHATWOOT_CONNECTION = exports.RINGCENTRAL_ENGAGE_CONNECTION = exports.LIVE_AGENT_CONNECTION = exports.AI_AGENT_HANDOVER = exports.AI_AGENT_TOOL_ANSWER = exports.AI_AGENT_JOB_TOOL = exports.AI_AGENT_JOB_DEFAULT = exports.AI_AGENT_JOB = exports.LLM_ENTITY_EXTRACT = exports.GPT_CONVERSATION_SUMMARY = exports.GPT_CONVERSATION = exports.HANDOVER_INACTIVITY_TIMER = exports.CLOSE_HANDOVER = exports.GPT_PROMPT = exports.ON_SCHEDULING_ERROR = exports.ON_SCHEDULED = exports.TRIGGER_FUNCTION = exports.JWT_SECRET_CONNECTION = exports.HTTP_CONNECTION_OAUTH2 = exports.HTTP_CONNECTION_APIKEYXKEY = exports.HTTP_CONNECTION_APIKEYAUTHKEY = exports.HTTP_CONNECTION_BASIC = exports.HTTP_REQUEST = exports.CHECK_AGENT_AVAILABILITY = exports.HANDOVER_V2 = exports.HANDOVER = void 0;
|
|
4
4
|
var handover_1 = require("./handover");
|
|
5
5
|
Object.defineProperty(exports, "HANDOVER", { enumerable: true, get: function () { return handover_1.HANDOVER; } });
|
|
6
6
|
var handoverV2_1 = require("./handoverV2");
|
|
@@ -45,4 +45,11 @@ var aiAgentToolAnswer_1 = require("./aiAgent/aiAgentToolAnswer");
|
|
|
45
45
|
Object.defineProperty(exports, "AI_AGENT_TOOL_ANSWER", { enumerable: true, get: function () { return aiAgentToolAnswer_1.AI_AGENT_TOOL_ANSWER; } });
|
|
46
46
|
var aiAgentHandover_1 = require("./aiAgent/aiAgentHandover");
|
|
47
47
|
Object.defineProperty(exports, "AI_AGENT_HANDOVER", { enumerable: true, get: function () { return aiAgentHandover_1.AI_AGENT_HANDOVER; } });
|
|
48
|
+
var handoverConnections_1 = require("./handoverConnections");
|
|
49
|
+
Object.defineProperty(exports, "LIVE_AGENT_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.LIVE_AGENT_CONNECTION; } });
|
|
50
|
+
Object.defineProperty(exports, "RINGCENTRAL_ENGAGE_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.RINGCENTRAL_ENGAGE_CONNECTION; } });
|
|
51
|
+
Object.defineProperty(exports, "CHATWOOT_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.CHATWOOT_CONNECTION; } });
|
|
52
|
+
Object.defineProperty(exports, "EIGHT_BY_EIGHT_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.EIGHT_BY_EIGHT_CONNECTION; } });
|
|
53
|
+
Object.defineProperty(exports, "GENESYS_CLOUD_CONNECTION", { enumerable: true, get: function () { return handoverConnections_1.GENESYS_CLOUD_CONNECTION; } });
|
|
54
|
+
Object.defineProperty(exports, "GENESYS_CLOUD_CONNECTION_OM", { enumerable: true, get: function () { return handoverConnections_1.GENESYS_CLOUD_CONNECTION_OM; } });
|
|
48
55
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PLATFORM_PROVIDED_LLM_CONNECTION_ID = exports.PLATFORM_PROVIDED_LLM_ID = exports.PLATFORM_PROVIDED_LLM_USE_CASES = exports.SECONDS_PER_MINUTE = exports.IP_NOT_AVAILABLE = exports.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = exports.DOCUMENT_PARSER_PROVIDER_EXTENSION = exports.TRANSLATION_PROVIDER_EXTENSION = exports.AUDIO_PREVIEW_PROVIDER_EXTENSION = exports.GENERATIVE_AI_PROVIDER_EXTENSION = exports.ADMIN_CONSOLE_URL_TOKEN = exports.X_COGNIGY_ORIGIN = exports.EMBEDDED_EXTENSION = exports.INTERNAL_STORAGE_PROVIDER_EXTENSION = exports.VOICE_GATEWAY_2_EXTENSION = exports.MICROSOFT_EXTENSION = exports.VOICE_GATEWAY_EXTENSION = exports.SMTP_EXTENSION = exports.SQL_EXTENSION = exports.MONGO_DB_EXTENSION = exports.BASIC_EXTENSION = exports.MAX_INT32 = exports.PASSWORD_RESET_TOKEN_TTL_IN_SECONDS = exports.SCOPED_USER = exports.SYSTEM_EMAIL = exports.SYSTEM = exports.CREATED_BY_SSO = void 0;
|
|
3
|
+
exports.PLATFORM_PROVIDED_LLM_CONNECTION_ID = exports.PLATFORM_PROVIDED_LLM_ID = exports.DEPRECATED_GENAI_USE_CASES = exports.PLATFORM_PROVIDED_LLM_USE_CASES = exports.SECONDS_PER_MINUTE = exports.IP_NOT_AVAILABLE = exports.COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS = exports.DOCUMENT_PARSER_PROVIDER_EXTENSION = exports.TRANSLATION_PROVIDER_EXTENSION = exports.AUDIO_PREVIEW_PROVIDER_EXTENSION = exports.GENERATIVE_AI_PROVIDER_EXTENSION = exports.ADMIN_CONSOLE_URL_TOKEN = exports.X_COGNIGY_ORIGIN = exports.EMBEDDED_EXTENSION = exports.INTERNAL_STORAGE_PROVIDER_EXTENSION = exports.VOICE_GATEWAY_2_EXTENSION = exports.MICROSOFT_EXTENSION = exports.VOICE_GATEWAY_EXTENSION = exports.SMTP_EXTENSION = exports.SQL_EXTENSION = exports.MONGO_DB_EXTENSION = exports.BASIC_EXTENSION = exports.MAX_INT32 = exports.PASSWORD_RESET_TOKEN_TTL_IN_SECONDS = exports.SCOPED_USER = exports.SYSTEM_EMAIL = exports.SYSTEM = exports.CREATED_BY_SSO = void 0;
|
|
4
4
|
exports.CREATED_BY_SSO = "000000000000000000000550";
|
|
5
5
|
exports.SYSTEM = "000000000000000000000000";
|
|
6
6
|
exports.SYSTEM_EMAIL = "system@mail.com";
|
|
@@ -59,6 +59,13 @@ exports.PLATFORM_PROVIDED_LLM_USE_CASES = [
|
|
|
59
59
|
"flowGeneration",
|
|
60
60
|
"lexiconGeneration",
|
|
61
61
|
"generateNodeOutput",
|
|
62
|
+
"designTimeGeneration",
|
|
63
|
+
];
|
|
64
|
+
exports.DEPRECATED_GENAI_USE_CASES = [
|
|
65
|
+
"intentSentenceGeneration",
|
|
66
|
+
"flowGeneration",
|
|
67
|
+
"lexiconGeneration",
|
|
68
|
+
"generateNodeOutput",
|
|
62
69
|
];
|
|
63
70
|
exports.PLATFORM_PROVIDED_LLM_ID = "aaaaaaaa-aaaa-aaaa-aaaa-000000000000";
|
|
64
71
|
exports.PLATFORM_PROVIDED_LLM_CONNECTION_ID = "aaaaaaaa-aaaa-aaaa-aaaa-000000000001";
|
|
@@ -40,6 +40,7 @@ exports.generativeAIModels = [
|
|
|
40
40
|
exports.generativeAIProviders = [
|
|
41
41
|
"azureOpenAI",
|
|
42
42
|
"openAI",
|
|
43
|
+
"openAICompatible",
|
|
43
44
|
"alephAlpha",
|
|
44
45
|
"anthropic",
|
|
45
46
|
"googleVertexAI",
|
|
@@ -49,6 +50,7 @@ exports.generativeAIProviders = [
|
|
|
49
50
|
exports.generativeAIProvidersLabels = {
|
|
50
51
|
"azureOpenAI": "Azure OpenAI",
|
|
51
52
|
"openAI": "OpenAI",
|
|
53
|
+
"openAICompatible": "OpenAI Compatible",
|
|
52
54
|
"alephAlpha": "Aleph Alpha",
|
|
53
55
|
"anthropic": "Anthropic",
|
|
54
56
|
"googleVertexAI": "Google Vertex AI",
|
|
@@ -69,6 +71,7 @@ exports.generativeAIUseCases = [
|
|
|
69
71
|
"gptPromptNode",
|
|
70
72
|
"aiEnhancedOutputs",
|
|
71
73
|
"sentimentAnalysis",
|
|
74
|
+
"designTimeGeneration",
|
|
72
75
|
"intentSentenceGeneration",
|
|
73
76
|
"flowGeneration",
|
|
74
77
|
"generateNodeOutput",
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.queueUpdateOptionsSchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.copilotType = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
|
|
3
|
+
exports.genesysCloudOMSettingsSchema = exports.genesysCloudSettingsSchema = exports.liveAgentSettingsSchema = exports.salesforceMIAWSettingsSchema = exports.salesforceSettingsSchema = exports.chatwootSettingsSchema = exports.handoverAgentReplySchema = exports.queueUpdateOptionsSchema = exports.eightByEightSettingsSchema = exports.rceSettingsSchema = exports.foreignSessionDataSchema = exports.handoverRequestSettingsSchema = exports.handoverSettingsSchema = exports.copilotType = exports.whisperAssistConfigurations = exports.handoverProviders = exports.internalHandoverProviders = exports.externalHandoverProviders = void 0;
|
|
4
4
|
exports.externalHandoverProviders = [
|
|
5
5
|
"rce",
|
|
6
6
|
"chatwoot",
|
|
7
7
|
"salesforce",
|
|
8
|
+
"salesforceMIAW",
|
|
8
9
|
"liveAgent",
|
|
9
10
|
"genesysCloud",
|
|
10
11
|
"genesysCloudOM",
|
|
@@ -41,6 +42,7 @@ exports.handoverSettingsSchema = {
|
|
|
41
42
|
"cognigy",
|
|
42
43
|
"rce",
|
|
43
44
|
"salesforce",
|
|
45
|
+
"salesforceMIAW",
|
|
44
46
|
"liveAgent",
|
|
45
47
|
"genesysCloud",
|
|
46
48
|
"genesysCloudOM",
|
|
@@ -83,7 +85,15 @@ exports.handoverSettingsSchema = {
|
|
|
83
85
|
queue: { type: "string" },
|
|
84
86
|
queueId: { type: "string" },
|
|
85
87
|
sendProfile: { type: "boolean" },
|
|
86
|
-
sessionDuration: { type: "number" }
|
|
88
|
+
sessionDuration: { type: "number" },
|
|
89
|
+
esDeveloperName: { type: "string" },
|
|
90
|
+
capabilitiesVersion: { type: "string" },
|
|
91
|
+
rceConnection: { type: "string" },
|
|
92
|
+
eightByEightConnection: { type: "string" },
|
|
93
|
+
chatwootConnection: { type: "string" },
|
|
94
|
+
liveAgentConnection: { type: "string" },
|
|
95
|
+
genesysCloudConnection: { type: "string" },
|
|
96
|
+
genesysCloudOMConnection: { type: "string" }
|
|
87
97
|
}
|
|
88
98
|
}
|
|
89
99
|
]
|
|
@@ -133,6 +143,8 @@ exports.foreignSessionDataSchema = {
|
|
|
133
143
|
integrationId: { type: "string" },
|
|
134
144
|
conversationId: { type: "string" },
|
|
135
145
|
clientPollTimeout: { type: "number" },
|
|
146
|
+
accessToken: { type: "string" },
|
|
147
|
+
lastEventId: { type: "string" },
|
|
136
148
|
}
|
|
137
149
|
};
|
|
138
150
|
exports.rceSettingsSchema = {
|
|
@@ -140,12 +152,9 @@ exports.rceSettingsSchema = {
|
|
|
140
152
|
"type": "object",
|
|
141
153
|
"additionalProperties": false,
|
|
142
154
|
"required": [
|
|
143
|
-
"apiAccessToken",
|
|
144
155
|
"baseApiUrl",
|
|
145
156
|
"forwardOnlyHandoverConversations",
|
|
146
|
-
"realtimeAccessToken",
|
|
147
157
|
"realtimeEndpointUrl",
|
|
148
|
-
"webhookSecret",
|
|
149
158
|
"agentCategoryId",
|
|
150
159
|
"botCategoryId"
|
|
151
160
|
],
|
|
@@ -178,6 +187,10 @@ exports.rceSettingsSchema = {
|
|
|
178
187
|
},
|
|
179
188
|
"botCategoryId": {
|
|
180
189
|
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
192
|
+
"rceConnection": {
|
|
193
|
+
"type": "string"
|
|
181
194
|
}
|
|
182
195
|
}
|
|
183
196
|
};
|
|
@@ -187,7 +200,6 @@ exports.eightByEightSettingsSchema = {
|
|
|
187
200
|
"additionalProperties": false,
|
|
188
201
|
"required": [
|
|
189
202
|
"baseUrl",
|
|
190
|
-
"apiKey",
|
|
191
203
|
"apiTenant"
|
|
192
204
|
],
|
|
193
205
|
"properties": {
|
|
@@ -205,6 +217,10 @@ exports.eightByEightSettingsSchema = {
|
|
|
205
217
|
"forwardOnlyHandoverConversations": {
|
|
206
218
|
"type": "boolean"
|
|
207
219
|
},
|
|
220
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
221
|
+
"eightByEightConnection": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
}
|
|
208
224
|
}
|
|
209
225
|
};
|
|
210
226
|
exports.queueUpdateOptionsSchema = {
|
|
@@ -274,12 +290,12 @@ exports.chatwootSettingsSchema = {
|
|
|
274
290
|
required: [
|
|
275
291
|
"baseUrl",
|
|
276
292
|
"accountId",
|
|
277
|
-
"apiKey",
|
|
278
293
|
],
|
|
279
294
|
properties: {
|
|
280
295
|
accountId: {
|
|
281
296
|
type: "string"
|
|
282
297
|
},
|
|
298
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
283
299
|
apiKey: {
|
|
284
300
|
type: "string"
|
|
285
301
|
},
|
|
@@ -293,6 +309,10 @@ exports.chatwootSettingsSchema = {
|
|
|
293
309
|
forwardOnlyHandoverConversations: {
|
|
294
310
|
"type": "boolean",
|
|
295
311
|
},
|
|
312
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
313
|
+
chatwootConnection: {
|
|
314
|
+
"type": "string"
|
|
315
|
+
}
|
|
296
316
|
}
|
|
297
317
|
};
|
|
298
318
|
exports.salesforceSettingsSchema = {
|
|
@@ -331,6 +351,38 @@ exports.salesforceSettingsSchema = {
|
|
|
331
351
|
},
|
|
332
352
|
}
|
|
333
353
|
};
|
|
354
|
+
exports.salesforceMIAWSettingsSchema = {
|
|
355
|
+
title: "salesforceMIAWSettingsSchema",
|
|
356
|
+
type: "object",
|
|
357
|
+
additionalProperties: false,
|
|
358
|
+
required: [
|
|
359
|
+
"baseUrl",
|
|
360
|
+
"capabilitiesVersion",
|
|
361
|
+
"organizationId",
|
|
362
|
+
"esDeveloperName"
|
|
363
|
+
],
|
|
364
|
+
properties: {
|
|
365
|
+
baseUrl: {
|
|
366
|
+
type: "string",
|
|
367
|
+
format: "url"
|
|
368
|
+
},
|
|
369
|
+
capabilitiesVersion: {
|
|
370
|
+
type: "string"
|
|
371
|
+
},
|
|
372
|
+
organizationId: {
|
|
373
|
+
type: "string",
|
|
374
|
+
},
|
|
375
|
+
esDeveloperName: {
|
|
376
|
+
type: "string",
|
|
377
|
+
},
|
|
378
|
+
forwardOnlyHandoverConversations: {
|
|
379
|
+
"type": "boolean",
|
|
380
|
+
},
|
|
381
|
+
forwardUnknownEventsToFlow: {
|
|
382
|
+
type: "boolean"
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
};
|
|
334
386
|
exports.liveAgentSettingsSchema = {
|
|
335
387
|
title: "liveAgentSettingsSchema",
|
|
336
388
|
type: "object",
|
|
@@ -338,12 +390,12 @@ exports.liveAgentSettingsSchema = {
|
|
|
338
390
|
required: [
|
|
339
391
|
"baseUrl",
|
|
340
392
|
"accountId",
|
|
341
|
-
"apiKey",
|
|
342
393
|
],
|
|
343
394
|
properties: {
|
|
344
395
|
accountId: {
|
|
345
396
|
type: "string"
|
|
346
397
|
},
|
|
398
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
347
399
|
apiKey: {
|
|
348
400
|
type: "string"
|
|
349
401
|
},
|
|
@@ -359,6 +411,10 @@ exports.liveAgentSettingsSchema = {
|
|
|
359
411
|
},
|
|
360
412
|
usePlatformToken: {
|
|
361
413
|
"type": "boolean",
|
|
414
|
+
},
|
|
415
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
416
|
+
liveAgentConnection: {
|
|
417
|
+
"type": "string"
|
|
362
418
|
}
|
|
363
419
|
}
|
|
364
420
|
};
|
|
@@ -398,8 +454,13 @@ exports.genesysCloudSettingsSchema = {
|
|
|
398
454
|
forwardOnlyHandoverConversations: {
|
|
399
455
|
"type": "boolean",
|
|
400
456
|
},
|
|
457
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
401
458
|
oAuth2Connection: {
|
|
402
459
|
type: "string"
|
|
460
|
+
},
|
|
461
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
462
|
+
genesysCloudConnection: {
|
|
463
|
+
"type": "string"
|
|
403
464
|
}
|
|
404
465
|
}
|
|
405
466
|
};
|
|
@@ -411,8 +472,6 @@ exports.genesysCloudOMSettingsSchema = {
|
|
|
411
472
|
"host",
|
|
412
473
|
"deploymentName",
|
|
413
474
|
"queue",
|
|
414
|
-
"clientId",
|
|
415
|
-
"clientSecret"
|
|
416
475
|
],
|
|
417
476
|
properties: {
|
|
418
477
|
host: {
|
|
@@ -424,6 +483,7 @@ exports.genesysCloudOMSettingsSchema = {
|
|
|
424
483
|
queue: {
|
|
425
484
|
type: "string"
|
|
426
485
|
},
|
|
486
|
+
// TODO: remove once we have migrated all providers to the new connection ids
|
|
427
487
|
webhookSecret: {
|
|
428
488
|
type: "string"
|
|
429
489
|
},
|
|
@@ -436,6 +496,10 @@ exports.genesysCloudOMSettingsSchema = {
|
|
|
436
496
|
clientSecret: {
|
|
437
497
|
type: "string"
|
|
438
498
|
},
|
|
499
|
+
// TODO: add as required once we have migrated all providers to the new connection ids
|
|
500
|
+
genesysCloudOMConnection: {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
439
503
|
forwardOnlyHandoverConversations: {
|
|
440
504
|
"type": "boolean",
|
|
441
505
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handoverServices = exports.internalHandoverServices = exports.externalHandoverServices = void 0;
|
|
4
|
+
exports.externalHandoverServices = [
|
|
5
|
+
"rce",
|
|
6
|
+
"chatwoot",
|
|
7
|
+
"salesforce",
|
|
8
|
+
"liveAgent",
|
|
9
|
+
"genesysCloud",
|
|
10
|
+
"genesysCloudOM",
|
|
11
|
+
"eightByEight",
|
|
12
|
+
"salesforceMIAW"
|
|
13
|
+
];
|
|
14
|
+
exports.internalHandoverServices = [
|
|
15
|
+
"cognigy",
|
|
16
|
+
"none"
|
|
17
|
+
];
|
|
18
|
+
exports.handoverServices = [
|
|
19
|
+
...exports.internalHandoverServices,
|
|
20
|
+
...exports.externalHandoverServices
|
|
21
|
+
];
|
|
22
|
+
;
|
|
23
|
+
//# sourceMappingURL=handoverProviders.js.map
|
|
@@ -428,7 +428,12 @@ exports.anyEndpointSettingsSchema = {
|
|
|
428
428
|
timeout: { type: "integer" },
|
|
429
429
|
updateContactProfileWithFacebookProfile: { type: "boolean" },
|
|
430
430
|
voice: { type: "string" },
|
|
431
|
-
webhookUrl: {
|
|
431
|
+
webhookUrl: {
|
|
432
|
+
oneOf: [
|
|
433
|
+
{ type: "string", format: "uri" },
|
|
434
|
+
{ type: "string", enum: [""] }
|
|
435
|
+
]
|
|
436
|
+
},
|
|
432
437
|
enableConnectionStatusIndicator: { type: "boolean" },
|
|
433
438
|
enableUnreadMessageTitleIndicator: { type: "boolean" },
|
|
434
439
|
showEngagementMessagesInChat: { type: "boolean" },
|
|
@@ -19,6 +19,12 @@ exports.createHandoverRequestDataSchema = {
|
|
|
19
19
|
"type": "string",
|
|
20
20
|
"format": "mongo-id",
|
|
21
21
|
},
|
|
22
|
+
"handoverProvider": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
},
|
|
25
|
+
"handoverProviderConfig": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
},
|
|
22
28
|
"organisation": {
|
|
23
29
|
"type": "string",
|
|
24
30
|
"format": "mongo-id",
|
|
@@ -40,7 +46,7 @@ exports.createHandoverRequestDataSchema = {
|
|
|
40
46
|
"type": "object"
|
|
41
47
|
},
|
|
42
48
|
// We cannot set format: endpoint-channel, since the channel can be
|
|
43
|
-
//
|
|
49
|
+
// overridden by the customer (e.g. for their website)
|
|
44
50
|
"channel": {
|
|
45
51
|
"type": "string",
|
|
46
52
|
},
|
|
@@ -80,6 +86,10 @@ exports.createHandoverRequestDataSchema = {
|
|
|
80
86
|
"liveAgentAllowAgentInject": {
|
|
81
87
|
"type": "boolean"
|
|
82
88
|
},
|
|
89
|
+
// Temporary field for live agent
|
|
90
|
+
"allowAgentInject": {
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
83
93
|
"sendTranscriptAsFirstMessage": {
|
|
84
94
|
"type": "boolean"
|
|
85
95
|
},
|
|
@@ -255,7 +265,13 @@ exports.pollEventSchema = {
|
|
|
255
265
|
traceId: { type: "string" },
|
|
256
266
|
disableSensitiveLogging: { type: "boolean" },
|
|
257
267
|
pollingTimeoutAt: { type: "number" },
|
|
258
|
-
sequence: { type: "number" }
|
|
268
|
+
sequence: { type: "number" },
|
|
269
|
+
lastEventId: { type: "string" },
|
|
270
|
+
projectId: { type: "string" },
|
|
271
|
+
URLToken: { type: "string" },
|
|
272
|
+
userId: { type: "string" },
|
|
273
|
+
channel: { type: "string" },
|
|
274
|
+
retryCount: { type: "number" }
|
|
259
275
|
},
|
|
260
276
|
};
|
|
261
277
|
exports.handleHandoverRpcEventSchema = {
|
|
@@ -301,4 +317,13 @@ exports.getQueueUpdateEventsSchema = {
|
|
|
301
317
|
disableSensitiveLogging: { type: "boolean" }
|
|
302
318
|
},
|
|
303
319
|
};
|
|
320
|
+
;
|
|
321
|
+
;
|
|
322
|
+
;
|
|
323
|
+
;
|
|
324
|
+
;
|
|
325
|
+
[];
|
|
326
|
+
;
|
|
327
|
+
;
|
|
328
|
+
;
|
|
304
329
|
//# sourceMappingURL=handover.js.map
|
|
@@ -28,7 +28,9 @@ exports.aiAgentDataSchema = {
|
|
|
28
28
|
ttsVoice: { type: "string" },
|
|
29
29
|
ttsLanguage: { type: "string" },
|
|
30
30
|
ttsVendor: { type: "string" },
|
|
31
|
-
ttsModel: { type: "string" }
|
|
31
|
+
ttsModel: { type: "string" },
|
|
32
|
+
ttsLabel: { type: "string" },
|
|
33
|
+
ttsDisableCache: { type: "boolean" }
|
|
32
34
|
}
|
|
33
35
|
},
|
|
34
36
|
enableVoiceConfigs: { type: "boolean" },
|