@cognigy/rest-api-client 4.96.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 +3 -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/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/message/question/question.js +21 -13
- package/build/shared/charts/descriptors/message/say.js +25 -2
- package/build/shared/charts/descriptors/service/GPTPrompt.js +1 -1
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +40 -28
- 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/interfaces/generativeAI/IGenerativeAIModels.js +2 -0
- package/build/shared/interfaces/handover.js +74 -10
- package/build/shared/interfaces/handoverProviders.js +23 -0
- package/build/shared/interfaces/messageAPI/handover.js +22 -2
- 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/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/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/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 +1 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +40 -28
- 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/interfaces/generativeAI/IGenerativeAIModels.js +2 -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/handover.js +22 -2
- 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/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 +1 -1
- package/types/index.d.ts +546 -19
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const LIVE_AGENT_CONNECTION = {
|
|
2
|
+
type: "live_agent",
|
|
3
|
+
label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__LIVE_AGENT_CONNECTION_AUTHENTICATION__LABEL",
|
|
4
|
+
fields: [
|
|
5
|
+
{ fieldName: "apiKey", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__LIVE_AGENT__API_KEY__LABEL" }
|
|
6
|
+
]
|
|
7
|
+
};
|
|
8
|
+
export const RINGCENTRAL_ENGAGE_CONNECTION = {
|
|
9
|
+
type: "ringcentral_engage",
|
|
10
|
+
label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__RINGCENTRAL_ENGAGE_CONNECTION_AUTHENTICATION__LABEL",
|
|
11
|
+
fields: [
|
|
12
|
+
{ fieldName: "webhookSecret", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__RINGCENTRAL_ENGAGE__WEBHOOK_SECRET__LABEL" },
|
|
13
|
+
{ fieldName: "realtimeAccessToken", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__RINGCENTRAL_ENGAGE__REALTIME_ACCESS_TOKEN__LABEL" },
|
|
14
|
+
{ fieldName: "apiAccessToken", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__RINGCENTRAL_ENGAGE__API_ACCESS_TOKEN__LABEL" }
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
export const CHATWOOT_CONNECTION = {
|
|
18
|
+
type: "chatwoot",
|
|
19
|
+
label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__CHATWOOT_CONNECTION_AUTHENTICATION__LABEL",
|
|
20
|
+
fields: [
|
|
21
|
+
{ fieldName: "apiKey", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__CHATWOOT__API_KEY__LABEL" }
|
|
22
|
+
]
|
|
23
|
+
};
|
|
24
|
+
export const EIGHT_BY_EIGHT_CONNECTION = {
|
|
25
|
+
type: "eight_by_eight",
|
|
26
|
+
label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__EIGHTBYEIGHT_CONNECTION_AUTHENTICATION__LABEL",
|
|
27
|
+
fields: [
|
|
28
|
+
{ fieldName: "apiAccessToken", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__EIGHTBYEIGHT__API_ACCESS_TOKEN__LABEL" }
|
|
29
|
+
]
|
|
30
|
+
};
|
|
31
|
+
export const GENESYS_CLOUD_CONNECTION = {
|
|
32
|
+
type: "genesys_cloud",
|
|
33
|
+
label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD_CONNECTION_AUTHENTICATION__LABEL",
|
|
34
|
+
fields: [
|
|
35
|
+
{ fieldName: "clientId", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD__CLIENT_ID__LABEL" },
|
|
36
|
+
{ fieldName: "clientSecret", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD__CLIENT_SECRET__LABEL" },
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
export const GENESYS_CLOUD_CONNECTION_OM = {
|
|
40
|
+
type: "genesys_cloud_om",
|
|
41
|
+
label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD_CONNECTION_AUTHENTICATION__LABEL",
|
|
42
|
+
fields: [
|
|
43
|
+
{ fieldName: "clientId", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD__CLIENT_ID__LABEL" },
|
|
44
|
+
{ fieldName: "clientSecret", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD__CLIENT_SECRET__LABEL" },
|
|
45
|
+
{ fieldName: "webhookSecret", label: "UI__HANDOVER_PROVIDER_EDITOR__HANDOVER_FORM__GENESYS_CLOUD__WEBHOOK_SECRET__LABEL" }
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=handoverConnections.js.map
|
|
@@ -69,6 +69,26 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
69
69
|
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SEND_RESOLVE_EVENT__LABEL",
|
|
70
70
|
defaultValue: true,
|
|
71
71
|
},
|
|
72
|
+
{
|
|
73
|
+
key: "handoverProvider",
|
|
74
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__LABEL",
|
|
75
|
+
type: "handoverProvider",
|
|
76
|
+
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__DESCRIPTION",
|
|
77
|
+
defaultValue: "legacyEndpoint",
|
|
78
|
+
params: {
|
|
79
|
+
required: true,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
key: "handoverProviderConfig",
|
|
84
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__LABEL",
|
|
85
|
+
type: "json",
|
|
86
|
+
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__HANDOVER_PROVIDER__DESCRIPTION",
|
|
87
|
+
defaultValue: {},
|
|
88
|
+
params: {
|
|
89
|
+
required: true,
|
|
90
|
+
},
|
|
91
|
+
},
|
|
72
92
|
{
|
|
73
93
|
key: COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.LIVE_AGENT_INBOX_ID,
|
|
74
94
|
type: "cognigyText",
|
|
@@ -163,33 +183,6 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
163
183
|
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
|
|
164
184
|
defaultValue: "[]",
|
|
165
185
|
},
|
|
166
|
-
{
|
|
167
|
-
key: "sendTranscriptAsFirstMessageMIAW",
|
|
168
|
-
type: "toggle",
|
|
169
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SEND_TRANSCRIPT_AS_FIRST_MESSAGE__LABEL",
|
|
170
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SEND_TRANSCRIPT_AS_FIRST_MESSAGE__DESCRIPTION",
|
|
171
|
-
defaultValue: false,
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
key: "buttonIdMIAW",
|
|
175
|
-
type: "cognigyText",
|
|
176
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__BUTTON_ID__LABEL",
|
|
177
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__BUTTON_ID__DESCRIPTION",
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
key: "salesforcePrechatEntitiesMIAW",
|
|
181
|
-
type: "json",
|
|
182
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_ENTITIES__LABEL",
|
|
183
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_ENTITIES__DESCRIPTION",
|
|
184
|
-
defaultValue: "[]",
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
key: "salesforcePrechatDetailsMIAW",
|
|
188
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_DETAILS__LABEL",
|
|
189
|
-
type: "json",
|
|
190
|
-
description: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__FIELDS__SALES_FORCE_PERCHAT_DETAILS__DESCRIPTION",
|
|
191
|
-
defaultValue: "[]",
|
|
192
|
-
},
|
|
193
186
|
{
|
|
194
187
|
key: "genesysLanguage",
|
|
195
188
|
type: "cognigyText",
|
|
@@ -426,6 +419,42 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
426
419
|
COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ENABLE_HANDOVER_CONNECT_MESSAGE,
|
|
427
420
|
COGNIGY_LIVE_AGENT_DESCRIPTOR_FIELDS.ENABLE_HANDOVER_DISCONNECT_MESSAGE,
|
|
428
421
|
],
|
|
422
|
+
condition: {
|
|
423
|
+
or: [
|
|
424
|
+
{
|
|
425
|
+
key: "handoverProvider",
|
|
426
|
+
value: "legacyEndpoint"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
key: "handoverProvider",
|
|
430
|
+
// @ts-ignore
|
|
431
|
+
value: null
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
key: "eightByEightSettings",
|
|
438
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__SECTIONS__EIGHT_BY_EIGHT_SETTINGS__LABEL",
|
|
439
|
+
defaultCollapsed: true,
|
|
440
|
+
fields: [
|
|
441
|
+
"eightByEightChannelId",
|
|
442
|
+
"eightByEightQueueId",
|
|
443
|
+
"eightByEightJSONProps"
|
|
444
|
+
],
|
|
445
|
+
condition: {
|
|
446
|
+
or: [
|
|
447
|
+
{
|
|
448
|
+
key: "handoverProvider",
|
|
449
|
+
value: "legacyEndpoint"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
key: "handoverProvider",
|
|
453
|
+
// @ts-ignore
|
|
454
|
+
value: null
|
|
455
|
+
}
|
|
456
|
+
]
|
|
457
|
+
}
|
|
429
458
|
},
|
|
430
459
|
{
|
|
431
460
|
key: "chatwootSettings",
|
|
@@ -433,7 +462,43 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
433
462
|
defaultCollapsed: true,
|
|
434
463
|
fields: [
|
|
435
464
|
"chatwootInboxId",
|
|
436
|
-
]
|
|
465
|
+
],
|
|
466
|
+
condition: {
|
|
467
|
+
or: [
|
|
468
|
+
{
|
|
469
|
+
key: "handoverProvider",
|
|
470
|
+
value: "legacyEndpoint"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
key: "handoverProvider",
|
|
474
|
+
// @ts-ignore
|
|
475
|
+
value: null
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
key: "ringCentralEngageSettings",
|
|
482
|
+
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__SECTIONS__RING_CENTRAL_ENGAGE_SETTINGS__LABEL",
|
|
483
|
+
defaultCollapsed: true,
|
|
484
|
+
fields: [
|
|
485
|
+
"additionalCategoryIds",
|
|
486
|
+
"enableHandoverConnectMessageRingCentralEngage",
|
|
487
|
+
"enableHandoverDisconnectMessageRingCentralEngage",
|
|
488
|
+
],
|
|
489
|
+
condition: {
|
|
490
|
+
or: [
|
|
491
|
+
{
|
|
492
|
+
key: "handoverProvider",
|
|
493
|
+
value: "legacyEndpoint"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
key: "handoverProvider",
|
|
497
|
+
// @ts-ignore
|
|
498
|
+
value: null
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
}
|
|
437
502
|
},
|
|
438
503
|
{
|
|
439
504
|
key: "salesforceSettings",
|
|
@@ -444,18 +509,20 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
444
509
|
"buttonId",
|
|
445
510
|
"salesforcePrechatEntities",
|
|
446
511
|
"salesforcePrechatDetails"
|
|
447
|
-
]
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
512
|
+
],
|
|
513
|
+
condition: {
|
|
514
|
+
or: [
|
|
515
|
+
{
|
|
516
|
+
key: "handoverProvider",
|
|
517
|
+
value: "legacyEndpoint"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
key: "handoverProvider",
|
|
521
|
+
// @ts-ignore
|
|
522
|
+
value: null
|
|
523
|
+
}
|
|
524
|
+
]
|
|
525
|
+
}
|
|
459
526
|
},
|
|
460
527
|
{
|
|
461
528
|
key: "genesysSettings",
|
|
@@ -468,27 +535,20 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
468
535
|
"genesysCustomAttributes",
|
|
469
536
|
"enableHandoverConnectMessageGenesys",
|
|
470
537
|
"enableHandoverDisconnectMessageGenesys",
|
|
471
|
-
]
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
label: "UI__NODE_EDITOR__SERVICE__HANDOVER_TO_AGENT__SECTIONS__RING_CENTRAL_ENGAGE_SETTINGS__LABEL",
|
|
486
|
-
defaultCollapsed: true,
|
|
487
|
-
fields: [
|
|
488
|
-
"additionalCategoryIds",
|
|
489
|
-
"enableHandoverConnectMessageRingCentralEngage",
|
|
490
|
-
"enableHandoverDisconnectMessageRingCentralEngage",
|
|
491
|
-
]
|
|
538
|
+
],
|
|
539
|
+
condition: {
|
|
540
|
+
or: [
|
|
541
|
+
{
|
|
542
|
+
key: "handoverProvider",
|
|
543
|
+
value: "legacyEndpoint"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
key: "handoverProvider",
|
|
547
|
+
// @ts-ignore
|
|
548
|
+
value: null
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
}
|
|
492
552
|
},
|
|
493
553
|
{
|
|
494
554
|
key: "eventSettings",
|
|
@@ -501,10 +561,9 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
501
561
|
}
|
|
502
562
|
],
|
|
503
563
|
form: [
|
|
564
|
+
{ type: "field", key: "handoverProvider" },
|
|
504
565
|
{ type: "field", key: "text" },
|
|
505
566
|
{ type: "field", key: "repeatHandoverMessage" },
|
|
506
|
-
{ type: "section", key: "cancelSettings" },
|
|
507
|
-
{ type: "section", key: "resolveOptions" },
|
|
508
567
|
// only render this field if "live agent" is enabled
|
|
509
568
|
process.env.FEATURE_USE_COGNIGY_LIVE_AGENT === "true" && {
|
|
510
569
|
type: "section",
|
|
@@ -512,10 +571,11 @@ export const HANDOVER_V2 = createNodeDescriptor({
|
|
|
512
571
|
},
|
|
513
572
|
{ type: "section", key: "chatwootSettings" },
|
|
514
573
|
{ type: "section", key: "salesforceSettings" },
|
|
515
|
-
process.env.FEATURE_USE_SALESFORCE_MIAW === "true" && { type: "section", key: "salesforceMIAWSettings" },
|
|
516
574
|
{ type: "section", key: "genesysSettings" },
|
|
517
575
|
{ type: "section", key: "eightByEightSettings" },
|
|
518
576
|
{ type: "section", key: "ringCentralEngageSettings" },
|
|
577
|
+
{ type: "section", key: "cancelSettings" },
|
|
578
|
+
{ type: "section", key: "resolveOptions" },
|
|
519
579
|
{ type: "section", key: "eventSettings" },
|
|
520
580
|
]
|
|
521
581
|
.filter(element => !!element),
|
|
@@ -21,4 +21,5 @@ export { AI_AGENT_JOB_DEFAULT } from "./aiAgent/aiAgentJobDefault";
|
|
|
21
21
|
export { AI_AGENT_JOB_TOOL } from "./aiAgent/aiAgentJobTool";
|
|
22
22
|
export { AI_AGENT_TOOL_ANSWER } from "./aiAgent/aiAgentToolAnswer";
|
|
23
23
|
export { AI_AGENT_HANDOVER } from "./aiAgent/aiAgentHandover";
|
|
24
|
+
export { LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM } from "./handoverConnections";
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -37,6 +37,7 @@ export const generativeAIModels = [
|
|
|
37
37
|
export const generativeAIProviders = [
|
|
38
38
|
"azureOpenAI",
|
|
39
39
|
"openAI",
|
|
40
|
+
"openAICompatible",
|
|
40
41
|
"alephAlpha",
|
|
41
42
|
"anthropic",
|
|
42
43
|
"googleVertexAI",
|
|
@@ -46,6 +47,7 @@ export const generativeAIProviders = [
|
|
|
46
47
|
export const generativeAIProvidersLabels = {
|
|
47
48
|
"azureOpenAI": "Azure OpenAI",
|
|
48
49
|
"openAI": "OpenAI",
|
|
50
|
+
"openAICompatible": "OpenAI Compatible",
|
|
49
51
|
"alephAlpha": "Aleph Alpha",
|
|
50
52
|
"anthropic": "Anthropic",
|
|
51
53
|
"googleVertexAI": "Google Vertex AI",
|
|
@@ -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
|
|
@@ -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
|
},
|
|
@@ -252,7 +262,8 @@ export const pollEventSchema = {
|
|
|
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
|
|
@@ -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"
|