@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.
Files changed (53) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/apigroups/ResourcesAPIGroup_2_0.js +3 -1
  3. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockIAMProviderConnection.js +11 -0
  4. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +5 -1
  5. package/build/shared/charts/descriptors/index.js +5 -1
  6. package/build/shared/charts/descriptors/message/question/question.js +11 -7
  7. package/build/shared/charts/descriptors/message/say.js +10 -7
  8. package/build/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
  9. package/build/shared/charts/descriptors/service/LLMModerate.js +275 -0
  10. package/build/shared/charts/descriptors/service/index.js +5 -1
  11. package/build/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +12 -0
  12. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +16 -14
  13. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
  14. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  15. package/build/shared/interfaces/handover.js +21 -5
  16. package/build/shared/interfaces/messageAPI/endpoints.js +44 -119
  17. package/build/shared/interfaces/messageAPI/handover.js +34 -6
  18. package/build/shared/interfaces/resources/IEndpoint.js +24 -4
  19. package/build/shared/interfaces/resources/ISipConnectivityInfo.js +16 -0
  20. package/build/shared/interfaces/resources/IWebrtcWidgetConfig.js +12 -0
  21. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +3 -0
  22. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +3 -0
  23. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +3 -0
  24. package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +3 -0
  25. package/build/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +3 -0
  26. package/build/shared/json-schema.js +2 -1
  27. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +3 -1
  28. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockIAMProviderConnection.js +8 -0
  29. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +3 -0
  30. package/dist/esm/shared/charts/descriptors/index.js +6 -2
  31. package/dist/esm/shared/charts/descriptors/message/question/question.js +11 -7
  32. package/dist/esm/shared/charts/descriptors/message/say.js +10 -7
  33. package/dist/esm/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
  34. package/dist/esm/shared/charts/descriptors/service/LLMModerate.js +273 -0
  35. package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
  36. package/dist/esm/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +9 -0
  37. package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +16 -14
  38. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
  39. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
  40. package/dist/esm/shared/interfaces/handover.js +21 -5
  41. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +43 -118
  42. package/dist/esm/shared/interfaces/messageAPI/handover.js +34 -6
  43. package/dist/esm/shared/interfaces/resources/IEndpoint.js +27 -7
  44. package/dist/esm/shared/interfaces/resources/ISipConnectivityInfo.js +13 -0
  45. package/dist/esm/shared/interfaces/resources/IWebrtcWidgetConfig.js +9 -0
  46. package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +2 -0
  47. package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +2 -0
  48. package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +2 -0
  49. package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +2 -0
  50. package/dist/esm/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +2 -0
  51. package/dist/esm/shared/json-schema.js +2 -1
  52. package/package.json +1 -1
  53. package/types/index.d.ts +98 -41
@@ -182,7 +182,7 @@ class SessionConfigMapper extends base_mapper_1.BaseMapper {
182
182
  buildRecognizer(sessionParams, stt, vad, azureConfig) {
183
183
  var _a, _b, _c;
184
184
  const { recognizer: sessionParamsRecognizer } = sessionParams || {};
185
- const { vendor: spVendor, language: spLanguage, hints: spHints, label: spLabel, model: spModel, azureSttEndpointId: spAzureSttEndpointId, audioLogging: spAudioLogging, hintsBoost: spHintsBoost, punctuation: spPunctuation, altLanguages: spAltLanguages = [], deepgramOptions: spDeepgramOptions, vad: spVad } = sessionParamsRecognizer || {};
185
+ const { vendor: spVendor, language: spLanguage, hints: spHints, label: spLabel, model: spModel, azureSttEndpointId: spAzureSttEndpointId, audioLogging: spAudioLogging, hintsBoost: spHintsBoost, punctuation: spPunctuation, altLanguages: spAltLanguages = [], deepgramOptions: spDeepgramOptions, vad: spVad, profanityOption: spProfanityOption } = sessionParamsRecognizer || {};
186
186
  const { sttVendor, sttLanguage, sttHints, sttLabel, sttHintsBoost, sttDisablePunctuation, googleModel, deepgramEndpointing, deepgramEndpointingValue, sttDeepgramModel, deepgramSmartFormatting, deepgramShortUtterance, altLanguages = [] } = stt || {};
187
187
  const recognizer = {};
188
188
  recognizer.language = spLanguage || sttLanguage || undefined;
@@ -196,6 +196,9 @@ class SessionConfigMapper extends base_mapper_1.BaseMapper {
196
196
  recognizer.azureSttEndpointId = spAzureSttEndpointId || (azureConfig === null || azureConfig === void 0 ? void 0 : azureConfig.azureSttContextId) || "";
197
197
  recognizer.audioLogging = spAudioLogging || (azureConfig === null || azureConfig === void 0 ? void 0 : azureConfig.azureEnableAudioLogging);
198
198
  if (recognizer.vendor) {
199
+ if (recognizer.vendor === "microsoft") {
200
+ recognizer.profanityOption = spProfanityOption || (azureConfig === null || azureConfig === void 0 ? void 0 : azureConfig.azureProfanityOption) || "raw";
201
+ }
199
202
  if (recognizer.vendor === "microsoft" || recognizer.vendor === "google") {
200
203
  if (this.has(spAltLanguages)) {
201
204
  recognizer.altLanguages = spAltLanguages;
@@ -294,7 +297,7 @@ class SessionConfigMapper extends base_mapper_1.BaseMapper {
294
297
  }
295
298
  const mapper = new SessionConfigMapper("voiceGateway2");
296
299
  function voiceConfigParamsToVoiceSettings(config, api) {
297
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
300
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
298
301
  let voiceSettings = {};
299
302
  if (config.sttVendor === 'none') {
300
303
  delete config.sttVendor;
@@ -349,6 +352,7 @@ function voiceConfigParamsToVoiceSettings(config, api) {
349
352
  sttDeepgramModel: (_h = config.sttDeepgramModel) !== null && _h !== void 0 ? _h : "nova-2",
350
353
  deepgramSmartFormatting: (_j = config.deepgramSmartFormatting) !== null && _j !== void 0 ? _j : undefined,
351
354
  deepgramShortUtterance,
355
+ listenDuringPrompt: (_k = config.sttListenDuringPrompt) !== null && _k !== void 0 ? _k : undefined,
352
356
  };
353
357
  // tts (synthesizer)
354
358
  voiceSettings.tts = {
@@ -359,6 +363,11 @@ function voiceConfigParamsToVoiceSettings(config, api) {
359
363
  ttsLabel: config.ttsLabel,
360
364
  };
361
365
  if (config.sttVendor === "microsoft") {
366
+ voiceSettings.azureConfig = {
367
+ azureSttContextId: config.azureSttContextId ? config.azureSttContextId.trim() : undefined,
368
+ azureEnableAudioLogging: config.azureEnableAudioLogging || undefined,
369
+ azureProfanityOption: config.azureProfanityOption || "raw",
370
+ };
362
371
  if (config.recognizeLanguagesAzure) {
363
372
  voiceSettings.stt.altLanguages = [];
364
373
  const languages = [config.sttAzureLang1, config.sttAzureLang2, config.sttAzureLang3];
@@ -410,7 +419,7 @@ function voiceConfigParamsToVoiceSettings(config, api) {
410
419
  flowNoInputFail: config.flowNoInputFail
411
420
  };
412
421
  // Check if userNoInputTimeout has a value and userNoInputTimeoutEnable is null or undefined to cover generic nodes
413
- if (((_k = voiceSettings === null || voiceSettings === void 0 ? void 0 : voiceSettings.userNoInput) === null || _k === void 0 ? void 0 : _k.userNoInputTimeout) && (voiceSettings.userNoInput.userNoInputTimeoutEnable === null || voiceSettings.userNoInput.userNoInputTimeoutEnable === undefined)) {
422
+ if (((_l = voiceSettings === null || voiceSettings === void 0 ? void 0 : voiceSettings.userNoInput) === null || _l === void 0 ? void 0 : _l.userNoInputTimeout) && (voiceSettings.userNoInput.userNoInputTimeoutEnable === null || voiceSettings.userNoInput.userNoInputTimeoutEnable === undefined)) {
414
423
  voiceSettings.userNoInput.userNoInputTimeoutEnable = true;
415
424
  }
416
425
  voiceSettings.dtmf = {
@@ -418,7 +427,7 @@ function voiceConfigParamsToVoiceSettings(config, api) {
418
427
  dtmfInterDigitTimeout: config.dtmfInterDigitTimeout,
419
428
  dtmfMaxDigits: config.dtmfMaxDigits,
420
429
  dtmfMinDigits: config.dtmfMinDigits,
421
- dtmfSubmitDigit: (_l = config.dtmfSubmitDigit) === null || _l === void 0 ? void 0 : _l.trim(),
430
+ dtmfSubmitDigit: (_m = config.dtmfSubmitDigit) === null || _m === void 0 ? void 0 : _m.trim(),
422
431
  };
423
432
  if (config === null || config === void 0 ? void 0 : config.dtmfEnable) {
424
433
  if (voiceSettings.dtmf.dtmfSubmitDigit &&
@@ -453,18 +462,9 @@ function voiceConfigParamsToVoiceSettings(config, api) {
453
462
  delete voiceSettings.continuousAsr.asrDigit;
454
463
  }
455
464
  }
456
- // Azure configurations
457
- if ((config.sttVendor === "microsoft" && config.azureSttContextId)) {
458
- voiceSettings.azureConfig = {
459
- azureSttContextId: config.azureSttContextId
460
- ? config.azureSttContextId.trim()
461
- : undefined,
462
- azureEnableAudioLogging: config.azureEnableAudioLogging || undefined
463
- };
464
- }
465
465
  // atmosphere sounds
466
466
  if (config.atmosphereAction) {
467
- if ((_m = config.atmosphereUrl) === null || _m === void 0 ? void 0 : _m.length) {
467
+ if ((_o = config.atmosphereUrl) === null || _o === void 0 ? void 0 : _o.length) {
468
468
  if (!(0, helper_1.isValidUrl)(config.atmosphereUrl)) {
469
469
  throw new Error(`Audio file URL is invalid ${config.atmosphereUrl}`);
470
470
  }
@@ -512,6 +512,7 @@ exports.setSessionConfig = {
512
512
  }
513
513
  },
514
514
  handleVGInput(voiceSettings, sessionParams, api) {
515
+ var _a;
515
516
  const { bargeIn, continuousAsr, stt, tts, userNoInput, dtmf, vad, azureConfig, atmosphereNoise, silenceOverlay, flowNoInput } = voiceSettings;
516
517
  try {
517
518
  const recognizer = mapper.buildRecognizer(sessionParams, stt, vad, azureConfig) || undefined;
@@ -530,6 +531,7 @@ exports.setSessionConfig = {
530
531
  flow: mapper.buildFlow(sessionParams, flowNoInput) || undefined,
531
532
  dtmf: mapper.isDtmfEnabled(sessionParams, dtmf),
532
533
  disableTtsCache: mapper.disableTtsCache(sessionParams, tts),
534
+ listenDuringPrompt: (_a = stt === null || stt === void 0 ? void 0 : stt.listenDuringPrompt) !== null && _a !== void 0 ? _a : undefined,
533
535
  };
534
536
  (0, strip_nulls_1.stripNulls)(cognigyConfig);
535
537
  const prePayload = {
@@ -754,14 +754,33 @@ exports.voiceConfigFields = [
754
754
  description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_ENABLE_AUDIO_LOGGING__DESCRIPTION",
755
755
  defaultValue: false,
756
756
  condition: {
757
- and: [
757
+ key: "enableAdvancedSTTConfig",
758
+ value: true
759
+ }
760
+ },
761
+ {
762
+ key: "azureProfanityOption",
763
+ type: "select",
764
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__LABEL",
765
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__DESCRIPTION",
766
+ defaultValue: "raw",
767
+ condition: {
768
+ key: "enableAdvancedSTTConfig",
769
+ value: true
770
+ },
771
+ params: {
772
+ options: [
758
773
  {
759
- key: "enableAdvancedSTTConfig",
760
- value: true
774
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__RAW__LABEL",
775
+ value: "raw"
761
776
  },
762
777
  {
763
- key: "sttVendor",
764
- value: "microsoft"
778
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__MASKED__LABEL",
779
+ value: "masked"
780
+ },
781
+ {
782
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SET_SESSION_CONFIG__AZURE_PROFANITY_OPTION__REMOVED__LABEL",
783
+ value: "removed"
765
784
  }
766
785
  ]
767
786
  }
@@ -965,6 +984,7 @@ exports.setSessionConfigNode = (0, createNodeDescriptor_1.createNodeDescriptor)(
965
984
  "enableAdvancedSTTConfig",
966
985
  "azureSttContextId",
967
986
  "azureEnableAudioLogging",
987
+ "azureProfanityOption",
968
988
  "recognizeLanguagesAzure",
969
989
  "sttAzure",
970
990
  "recognizeLanguagesGoogle",
@@ -11,6 +11,7 @@ exports.embeddingModels = [
11
11
  "text-embedding-ada-002",
12
12
  "luminous-embedding-128",
13
13
  "amazon.titan-embed-text-v2:0",
14
+ "Pharia-1-Embedding-4608",
14
15
  ];
15
16
  exports.generativeAIModels = [
16
17
  "gpt-3.5-turbo",
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * IMPORTANT: This file exists in two places:
4
+ * - cognigy/services/service-handover/src/old_shared/interfaces/handover.ts
5
+ * - cognigy/shared/interfaces/handover.ts
6
+ *
7
+ * Please keep both files in sync.
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  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
11
  exports.externalHandoverProviders = [
@@ -10,6 +17,7 @@ exports.externalHandoverProviders = [
10
17
  "genesysCloud",
11
18
  "genesysCloudOM",
12
19
  "eightByEight",
20
+ "salesforceMIAW"
13
21
  ];
14
22
  exports.internalHandoverProviders = [
15
23
  "cognigy",
@@ -54,7 +62,8 @@ exports.handoverSettingsSchema = {
54
62
  oneOf: [
55
63
  {
56
64
  type: "object",
57
- additionalProperties: false,
65
+ // Temporary due to handover provider changes
66
+ additionalProperties: true,
58
67
  properties: {
59
68
  accountId: { type: "string" },
60
69
  baseUrl: { type: "string" },
@@ -145,6 +154,7 @@ exports.foreignSessionDataSchema = {
145
154
  clientPollTimeout: { type: "number" },
146
155
  accessToken: { type: "string" },
147
156
  lastEventId: { type: "string" },
157
+ apiKey: { type: "string" }
148
158
  }
149
159
  };
150
160
  exports.rceSettingsSchema = {
@@ -226,7 +236,7 @@ exports.eightByEightSettingsSchema = {
226
236
  exports.queueUpdateOptionsSchema = {
227
237
  "title": "queueUpdateOptionsSchema",
228
238
  "type": "object",
229
- "additionalProperties": false,
239
+ "additionalProperties": true,
230
240
  "required": [],
231
241
  "properties": {
232
242
  "getQueuePosition": {
@@ -245,10 +255,16 @@ exports.queueUpdateOptionsSchema = {
245
255
  "type": "boolean"
246
256
  },
247
257
  "maximumQueuePosition": {
248
- "type": ["number", "null"]
258
+ "anyOf": [
259
+ { "type": "number" },
260
+ { "type": "string", "const": "" }
261
+ ]
249
262
  },
250
263
  "maximumEstimatedWaitTime": {
251
- "type": ["number", "null"]
264
+ "anyOf": [
265
+ { "type": "number" },
266
+ { "type": "string", "const": "" }
267
+ ]
252
268
  },
253
269
  "alternativeText": {
254
270
  "type": ["string", "null"]
@@ -380,7 +396,7 @@ exports.salesforceMIAWSettingsSchema = {
380
396
  },
381
397
  forwardUnknownEventsToFlow: {
382
398
  type: "boolean"
383
- }
399
+ },
384
400
  }
385
401
  };
386
402
  exports.liveAgentSettingsSchema = {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createAdminConsoleEndpointConfiguration = exports.agentAssistVoiceEndpointSettingsSchema = exports.niceCXOneEndpointSettingsSchema = exports.genesysBotConnectorEndpointSettingsSchema = exports.eightByEightEndpointSettingsSchema = exports.whatsAppEndpointSettingsSchema = exports.liveAgentEndpointSettingsSchema = exports.chatwootEndpointSettingsSchema = exports.ringCentralEngageEndpointSettingsSchema = exports.avayaEndpointSettingsSchema = exports.AMAZON_POLLY_LANGUAGE_MAPPING = exports.workplaceEndpointSettingsSchema = exports.dashbotPlatform = exports.anyEndpointSettingsSchema = exports.avayaGatherLanguages = exports.avayaSttTtsLanguages = exports.callEventSettingsSchema = exports.maintenanceMenuSchema = exports.businessHoursMenuSchema = exports.webchatPersistentMenuSchema = exports.endpointTypes = void 0;
3
+ exports.createAdminConsoleEndpointConfiguration = exports.anyEndpointSettingsSchema = exports.agentAssistVoiceEndpointSettingsSchema = exports.niceCXOneAAHEndpointSettingsSchema = exports.niceCXOneEndpointSettingsSchema = exports.genesysBotConnectorEndpointSettingsSchema = exports.eightByEightEndpointSettingsSchema = exports.whatsAppEndpointSettingsSchema = exports.liveAgentEndpointSettingsSchema = exports.chatwootEndpointSettingsSchema = exports.ringCentralEngageEndpointSettingsSchema = exports.avayaEndpointSettingsSchema = exports.AMAZON_POLLY_LANGUAGE_MAPPING = exports.workplaceEndpointSettingsSchema = exports.dashbotPlatform = exports.avayaGatherLanguages = exports.avayaSttTtsLanguages = exports.callEventSettingsSchema = exports.maintenanceMenuSchema = exports.businessHoursMenuSchema = exports.webchatPersistentMenuSchema = exports.endpointTypes = void 0;
4
4
  /* Interfaces & Types */
5
5
  const alexa_1 = require("../alexa");
6
6
  const constants_1 = require("../../constants");
@@ -339,124 +339,6 @@ exports.avayaGatherLanguages = [
339
339
  "cmn-Hans-HK",
340
340
  "cmn-Hans-CN",
341
341
  ];
342
- exports.anyEndpointSettingsSchema = {
343
- title: "anyEndpointSettingsSchema",
344
- type: "object",
345
- properties: {
346
- action: { type: "string" },
347
- accessScope: { type: "string" },
348
- accessToken: { type: "string" },
349
- appId: { type: "string" },
350
- appSecret: { type: "string" },
351
- backgroundImageUrl: { type: "string" },
352
- basicAuthPassword: { type: "string" },
353
- basicAuthUser: { type: "string" },
354
- botUserId: { type: "string" },
355
- colorScheme: { type: "string" },
356
- connectionName: { type: "string" },
357
- cpaasToken: { type: "string" },
358
- customJSON: { type: "string" },
359
- designTemplate: { type: "integer" },
360
- disableHtmlContentSanitization: { type: "boolean" },
361
- disableInputAutocomplete: { type: "boolean" },
362
- disableUrlButtonSanitization: { type: "boolean" },
363
- disableInputSanitization: { type: "boolean" },
364
- disableSkipUriTags: { type: "boolean" },
365
- enableAsyncCommunication: { type: "boolean" },
366
- enableCollectMetadata: { type: "boolean" },
367
- enableGenericHTMLStyling: { type: "boolean" },
368
- enableDemoWebchat: { type: "boolean" },
369
- enableFileUpload: { type: "boolean" },
370
- enablePersistentMenu: { type: "boolean" },
371
- enableRating: { type: "string", enum: ["always", "once", "onRequest"] },
372
- enableSTT: { type: "boolean" },
373
- enableTTS: { type: "boolean" },
374
- enableTypingIndicator: { type: "boolean" },
375
- enableFileAttachment: { type: "boolean" },
376
- fileAttachmentMaxSize: { type: "number" },
377
- facebookPageToken: { type: "string" },
378
- finishOnKey: {
379
- type: "string",
380
- enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
381
- },
382
- workplaceToken: { type: "string" },
383
- foreignId: { type: "string" },
384
- gatherlanguage: {
385
- type: "string",
386
- enum: [...exports.avayaGatherLanguages]
387
- },
388
- getStartedButtonText: { type: "string" },
389
- getStartedData: { type: "string" },
390
- getStartedPayload: { type: "string" },
391
- getStartedText: { type: "string" },
392
- headerLogoUrl: { type: "string" },
393
- hints: { type: "string" },
394
- hubSecret: { type: "string" },
395
- input: {
396
- type: "string",
397
- enum: ["speech dtmf", "speech", "dtmf"]
398
- },
399
- inputPlaceholder: { type: "string" },
400
- language: {
401
- type: "string",
402
- enum: [...exports.avayaSttTtsLanguages]
403
- },
404
- lineChannelAccessToken: { type: "string" },
405
- lineChannelSecret: { type: "string" },
406
- mergeContactProfiles: { type: "boolean" },
407
- messageDelay: { type: "integer" },
408
- messageLogoUrl: { type: "string" },
409
- method: {
410
- type: "string",
411
- enum: ["GET", "POST"]
412
- },
413
- numDigits: { type: "integer" },
414
- ratingTitleText: { type: "string" },
415
- ratingCommentText: { type: "string" },
416
- ratingMessageHistoryRatingText: { type: "string" },
417
- ratingMessageHistoryCommentText: { type: "string" },
418
- reparseAlexaSlots: { type: "boolean" },
419
- requestFacebookProfileData: { type: "boolean" },
420
- sessionExpiration: { type: "integer" },
421
- slackOAuthAccessToken: { type: "string" },
422
- slackVerifyToken: { type: "string" },
423
- sunshineConversationsChannelKeyId: { type: "string" },
424
- sunshineConversationsChannelSecret: { type: "string" },
425
- sunshineConversationsChannelUri: { type: "string", format: "uri" },
426
- sunshineConversationsApiVersion: { type: "string", enum: ["v1.1", "v2"] },
427
- tenantId: { type: "string" },
428
- timeout: { type: "integer" },
429
- updateContactProfileWithFacebookProfile: { type: "boolean" },
430
- voice: { type: "string" },
431
- webhookUrl: {
432
- oneOf: [
433
- { type: "string", format: "uri" },
434
- { type: "string", enum: [""] }
435
- ]
436
- },
437
- enableConnectionStatusIndicator: { type: "boolean" },
438
- enableUnreadMessageTitleIndicator: { type: "boolean" },
439
- showEngagementMessagesInChat: { type: "boolean" },
440
- engagementMessageText: { type: "string" },
441
- enableUnreadMessageBadge: { type: "boolean" },
442
- enableUnreadMessagePreview: { type: "boolean" },
443
- enableUnreadMessageSound: { type: "boolean" },
444
- dynamicImageAspectRatio: { type: "boolean" },
445
- focusInputAfterPostback: { type: "boolean" },
446
- disableInputAutogrow: { type: "boolean" },
447
- inputAutogrowMaxRows: { type: "number" },
448
- enableInputCollation: { type: "boolean" },
449
- inputCollationTimeout: { type: "number" },
450
- skill: alexa_1.skillSchema,
451
- persistentMenu: exports.webchatPersistentMenuSchema,
452
- shouldOverwriteWebchatBundleUrl: { type: "boolean" },
453
- overwriteWebchatBundleUrl: { type: "string" },
454
- businessHours: exports.businessHoursMenuSchema,
455
- maintenance: exports.maintenanceMenuSchema,
456
- callEvents: callEventsSchema,
457
- failover: callFailoverSettingsSchema,
458
- }
459
- };
460
342
  exports.dashbotPlatform = [
461
343
  "facebook",
462
344
  "whatsapp",
@@ -795,6 +677,24 @@ exports.niceCXOneEndpointSettingsSchema = {
795
677
  },
796
678
  additionalProperties: false
797
679
  };
680
+ exports.niceCXOneAAHEndpointSettingsSchema = {
681
+ type: "object",
682
+ properties: {
683
+ niceCXOneAAHConnection: {
684
+ anyOf: [
685
+ {
686
+ type: "string",
687
+ format: "uuid"
688
+ },
689
+ {
690
+ type: "string",
691
+ maxLength: 0
692
+ }
693
+ ]
694
+ }
695
+ },
696
+ additionalProperties: false
697
+ };
798
698
  exports.agentAssistVoiceEndpointSettingsSchema = {
799
699
  type: "object",
800
700
  properties: {
@@ -802,6 +702,31 @@ exports.agentAssistVoiceEndpointSettingsSchema = {
802
702
  },
803
703
  additionalProperties: false
804
704
  };
705
+ exports.anyEndpointSettingsSchema = {
706
+ title: "anyEndpointSettingsSchema",
707
+ type: "object",
708
+ 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: {
709
+ type: "string",
710
+ enum: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "*", "#"]
711
+ }, workplaceToken: { type: "string" }, foreignId: { type: "string" }, gatherlanguage: {
712
+ type: "string",
713
+ enum: [...exports.avayaGatherLanguages]
714
+ }, getStartedButtonText: { type: "string" }, getStartedData: { type: "string" }, getStartedPayload: { type: "string" }, getStartedText: { type: "string" }, headerLogoUrl: { type: "string" }, hints: { type: "string" }, hubSecret: { type: "string" }, input: {
715
+ type: "string",
716
+ enum: ["speech dtmf", "speech", "dtmf"]
717
+ }, inputPlaceholder: { type: "string" }, language: {
718
+ type: "string",
719
+ enum: [...exports.avayaSttTtsLanguages]
720
+ }, lineChannelAccessToken: { type: "string" }, lineChannelSecret: { type: "string" }, mergeContactProfiles: { type: "boolean" }, messageDelay: { type: "integer" }, messageLogoUrl: { type: "string" }, method: {
721
+ type: "string",
722
+ enum: ["GET", "POST"]
723
+ }, 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: {
724
+ oneOf: [
725
+ { type: "string", format: "uri" },
726
+ { type: "string", enum: [""] }
727
+ ]
728
+ }, 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: alexa_1.skillSchema, persistentMenu: exports.webchatPersistentMenuSchema, shouldOverwriteWebchatBundleUrl: { type: "boolean" }, overwriteWebchatBundleUrl: { type: "string" }, businessHours: exports.businessHoursMenuSchema, maintenance: exports.maintenanceMenuSchema, callEvents: callEventsSchema, failover: callFailoverSettingsSchema }, exports.niceCXOneAAHEndpointSettingsSchema.properties)
729
+ };
805
730
  /** Create the default endpoint for adminconsole i.e. for interaction panel */
806
731
  const createAdminConsoleEndpointConfiguration = () => {
807
732
  /** Create the endpointConfiguration for this connection */
@@ -1,4 +1,11 @@
1
1
  "use strict";
2
+ /**
3
+ * IMPORTANT: This file exists in two places:
4
+ * - cognigy/services/service-handover/src/old_shared/interfaces/messageAPI/handover.ts
5
+ * - cognigy/shared/interfaces/messageAPI/handover.ts
6
+ *
7
+ * Please keep both files in sync.
8
+ */
2
9
  Object.defineProperty(exports, "__esModule", { value: true });
3
10
  exports.getQueueUpdateEventsSchema = exports.handleHandoverRpcEventSchema = exports.pollEventSchema = exports.activateHandoverConversationSchema = exports.sendMessageToProviderSchema = exports.getHandoverRequestDataSchema = exports.createHandoverRequestDataSchema = void 0;
4
11
  const handover_1 = require("../handover");
@@ -13,7 +20,7 @@ exports.createHandoverRequestDataSchema = {
13
20
  "flowReferenceId",
14
21
  "URLToken"
15
22
  ],
16
- "additionalProperties": false,
23
+ "additionalProperties": true,
17
24
  "properties": {
18
25
  "projectId": {
19
26
  "type": "string",
@@ -86,10 +93,6 @@ exports.createHandoverRequestDataSchema = {
86
93
  "liveAgentAllowAgentInject": {
87
94
  "type": "boolean"
88
95
  },
89
- // Temporary field for live agent
90
- "allowAgentInject": {
91
- "type": "boolean"
92
- },
93
96
  "sendTranscriptAsFirstMessage": {
94
97
  "type": "boolean"
95
98
  },
@@ -102,6 +105,31 @@ exports.createHandoverRequestDataSchema = {
102
105
  salesforcePrechatEntities: {
103
106
  type: ["object", "array", "number", "string"],
104
107
  },
108
+ salesforceMIAWRoutingAttributes: {
109
+ // @ts-ignore - not working properly with the type
110
+ type: ["object", "array", "number", "string"],
111
+ },
112
+ salesforceMIAWCustomerIdentityToken: {
113
+ type: "string"
114
+ },
115
+ enableHandoverDisconnectMessageLiveAgent: {
116
+ type: "boolean"
117
+ },
118
+ enableHandoverConnectMessageLiveAgent: {
119
+ type: "boolean"
120
+ },
121
+ enableHandoverDisconnectMessageGenesys: {
122
+ type: "boolean"
123
+ },
124
+ enableHandoverConnectMessageGenesys: {
125
+ type: "boolean"
126
+ },
127
+ enableHandoverDisconnectMessageRingCentralEngage: {
128
+ type: "boolean"
129
+ },
130
+ enableHandoverConnectMessageRingCentralEngage: {
131
+ type: "boolean"
132
+ },
105
133
  "notifySessionId": {
106
134
  "type": "string",
107
135
  },
@@ -299,7 +327,7 @@ exports.handleHandoverRpcEventSchema = {
299
327
  exports.getQueueUpdateEventsSchema = {
300
328
  title: "getQueueUpdateEventsSchema",
301
329
  type: "object",
302
- additionalProperties: false,
330
+ additionalProperties: true,
303
331
  required: [
304
332
  "handoverSettings",
305
333
  "foreignSessionData",
@@ -17,16 +17,17 @@ exports.endpointDataSchema = {
17
17
  channel: { type: "string", format: "endpoint-channel" },
18
18
  dashbotApikey: { type: "string" },
19
19
  dashbotPlatform: { type: "string" },
20
+ customIcon: { type: "string" },
20
21
  flowId: {
21
22
  oneOf: [
22
23
  { type: "string", format: "uuid" },
23
- { type: "string", enum: [""] }
24
+ { type: "string", enum: [""] },
24
25
  ],
25
26
  },
26
27
  localeId: {
27
28
  oneOf: [
28
29
  { type: "string", format: "uuid" },
29
- { type: "string", enum: [""] }
30
+ { type: "string", enum: [""] },
30
31
  ],
31
32
  },
32
33
  entrypoint: { type: ["string", "null"], format: "mongo-id" },
@@ -38,7 +39,7 @@ exports.endpointDataSchema = {
38
39
  oneOf: [
39
40
  { type: "string", format: "uuid" },
40
41
  { type: "string", format: "nlu-connector-type" },
41
- ]
42
+ ],
42
43
  },
43
44
  settings: endpoints_1.anyEndpointSettingsSchema,
44
45
  transformer: ITransformerFunction_1.transformerFunctionSchema,
@@ -53,7 +54,26 @@ exports.endpointDataSchema = {
53
54
  overrideSnapshotConnections: { type: "boolean" },
54
55
  fileStorageSettings: fileStorage_1.fileStorageSettingsSchema,
55
56
  disableInputSanitization: { type: "boolean" },
56
- disableSkipUriTags: { type: "boolean" }
57
+ disableSkipUriTags: { type: "boolean" },
58
+ webrtcClient: { type: "boolean" },
59
+ sipConnectivityInfo: {
60
+ type: "object",
61
+ properties: {
62
+ realm: { type: "string" },
63
+ username: { type: "string" },
64
+ password: { type: "string" },
65
+ applicationSid: { type: "string" },
66
+ clientSid: { type: "string" },
67
+ wsUri: { type: "string" },
68
+ },
69
+ },
70
+ webrtcWidgetConfig: {
71
+ type: "object",
72
+ properties: {
73
+ label: { type: "string" },
74
+ active: { type: "boolean" },
75
+ },
76
+ },
57
77
  },
58
78
  };
59
79
  exports.endpointSchema = {
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sipConnectivityInfoSchema = void 0;
4
+ exports.sipConnectivityInfoSchema = {
5
+ title: "sipConnectivityInfoSchema",
6
+ type: "object",
7
+ properties: {
8
+ realm: { type: "string" },
9
+ username: { type: "string" },
10
+ password: { type: "string" },
11
+ applicationSid: { type: "string" },
12
+ wsUri: { type: "string" },
13
+ clientSid: { type: "string" },
14
+ },
15
+ };
16
+ //# sourceMappingURL=ISipConnectivityInfo.js.map
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.webrtcWidgetConfigSchema = void 0;
4
+ exports.webrtcWidgetConfigSchema = {
5
+ title: "webrtcWidgetConfigSchema",
6
+ type: "object",
7
+ properties: {
8
+ label: { type: "string" },
9
+ active: { type: "boolean" },
10
+ },
11
+ };
12
+ //# sourceMappingURL=IWebrtcWidgetConfig.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IConversationCounterPreAggregatedValue_3_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IGetConversationCounterOrganisationRest_3_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IGetConversationCounterRest_3_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IConversationCounterPreAggregatedValue.js.map
@@ -18,6 +18,7 @@ exports.ajvFormats = [
18
18
  "uuid",
19
19
  "json-pointer",
20
20
  "json-pointer-uri-fragment",
21
- "relative-json-pointer"
21
+ "relative-json-pointer",
22
+ "data-uri"
22
23
  ];
23
24
  //# sourceMappingURL=json-schema.js.map
@@ -163,7 +163,9 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
163
163
  var { endpointId } = _a, args = __rest(_a, ["endpointId"]);
164
164
  return GenericAPIFn(`/new/v2.0/endpoints/${endpointId}`, "PATCH", self)(args, options);
165
165
  },
166
- deleteEndpoint: (args, options) => GenericAPIFn(`/new/v2.0/endpoints/${args.endpointId}`, "DELETE", self)(undefined, options),
166
+ deleteEndpoint: (args, options) => {
167
+ return GenericAPIFn(`/new/v2.0/endpoints/${args.endpointId}?channelType=${args === null || args === void 0 ? void 0 : args.channelType}`, "DELETE", self)(undefined, options);
168
+ },
167
169
  indexGoals: (args, options) => GenericAPIFn(`/new/v2.0/goals?${stringifyQuery(args)}`, "GET", self)(undefined, options),
168
170
  createGoal: (args, options) => GenericAPIFn("/new/v2.0/goals", "POST", self)(args, options),
169
171
  readGoal: (args, options) => GenericAPIFn(`/new/v2.0/goals/${args.goalId}`, "GET", self)(undefined, options),
@@ -0,0 +1,8 @@
1
+ export const AWS_BEDROCK_IAM_PROVIDER_CONNECTION = {
2
+ type: "AwsBedrockProviderIamRole",
3
+ label: "UI__NODE_EDITOR__AWS_BEDROCK_PROVIDER_IAM_ROLE_CONNECTION__LABEL",
4
+ fields: [
5
+ { fieldName: "roleArn", label: "UI__CONNECTION_EDITOR__FIELD_ROLE_ARN" },
6
+ ]
7
+ };
8
+ //# sourceMappingURL=awsBedrockIAMProviderConnection.js.map