@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.
Files changed (101) hide show
  1. package/CHANGELOG.md +12 -3
  2. package/build/apigroups/ManagementAPIGroup_2_0.js +2 -1
  3. package/build/apigroups/ResourcesAPIGroup_2_0.js +9 -0
  4. package/build/authentication/AuthenticationAPI.js +6 -1
  5. package/build/authentication/JWT/IJwtTokenAuthentication.js +3 -0
  6. package/build/authentication/JWT/JwtTokenAuthentication.js +22 -0
  7. package/build/shared/charts/descriptors/allFields.js +6 -0
  8. package/build/shared/charts/descriptors/analytics/completeGoal.js +2 -2
  9. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
  10. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAICompatibleProviderConnection.js +11 -0
  11. package/build/shared/charts/descriptors/connectionNodes/speechProviders/deepgramSpeechProviderConnection.js +11 -0
  12. package/build/shared/charts/descriptors/connectionNodes/speechProviders/index.js +2 -0
  13. package/build/shared/charts/descriptors/index.js +6 -0
  14. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -1
  15. package/build/shared/charts/descriptors/logic/think.js +2 -4
  16. package/build/shared/charts/descriptors/message/question/question.js +21 -13
  17. package/build/shared/charts/descriptors/message/say.js +29 -3
  18. package/build/shared/charts/descriptors/service/GPTPrompt.js +1 -1
  19. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +80 -30
  20. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +63 -3
  21. package/build/shared/charts/descriptors/service/handoverConnections.js +51 -0
  22. package/build/shared/charts/descriptors/service/handoverV2.js +124 -64
  23. package/build/shared/charts/descriptors/service/index.js +8 -1
  24. package/build/shared/constants.js +8 -1
  25. package/build/shared/interfaces/IProfileSchema.js +1 -1
  26. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +3 -0
  27. package/build/shared/interfaces/handover.js +74 -10
  28. package/build/shared/interfaces/handoverProviders.js +23 -0
  29. package/build/shared/interfaces/messageAPI/endpoints.js +6 -1
  30. package/build/shared/interfaces/messageAPI/handover.js +27 -2
  31. package/build/shared/interfaces/resources/IAiAgent.js +3 -1
  32. package/build/shared/interfaces/resources/IExternalModel.js +3 -0
  33. package/build/shared/interfaces/resources/IHandoverProvider.js +3 -0
  34. package/build/shared/interfaces/resources/ILargeLanguageModel.js +13 -2
  35. package/build/shared/interfaces/resources/INodeDescriptorSet.js +9 -5
  36. package/build/shared/interfaces/resources/TResourceType.js +6 -0
  37. package/build/shared/interfaces/resources/settings/IAudioPreviewSettings.js +8 -2
  38. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
  39. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/ICreateHandoverProviderRest_2_0.js +3 -0
  40. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IDeleteHandoverProviderRest_2_0.js +3 -0
  41. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverProvider_2_0.js +3 -0
  42. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverService_2_0.js +3 -0
  43. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverProvidersRest_2_0.js +3 -0
  44. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverServicesRest_2_0.js +3 -0
  45. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IReadHandoverProviderRest_2_0.js +3 -0
  46. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IUpdateHandoverProviderRest_2_0.js +3 -0
  47. package/build/shared/interfaces/restAPI/resources/handoverProvider/v2.0/index.js +3 -0
  48. package/build/shared/interfaces/security/IPermission.js +2 -0
  49. package/build/shared/interfaces/security/IRole.js +2 -0
  50. package/build/shared/interfaces/security/index.js +1 -1
  51. package/dist/esm/apigroups/ManagementAPIGroup_2_0.js +2 -1
  52. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +9 -0
  53. package/dist/esm/authentication/AuthenticationAPI.js +6 -1
  54. package/dist/esm/authentication/JWT/IJwtTokenAuthentication.js +2 -0
  55. package/dist/esm/authentication/JWT/JwtTokenAuthentication.js +21 -0
  56. package/dist/esm/shared/charts/descriptors/allFields.js +6 -0
  57. package/dist/esm/shared/charts/descriptors/analytics/completeGoal.js +2 -2
  58. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +4 -1
  59. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/openAICompatibleProviderConnection.js +8 -0
  60. package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/deepgramSpeechProviderConnection.js +8 -0
  61. package/dist/esm/shared/charts/descriptors/connectionNodes/speechProviders/index.js +2 -0
  62. package/dist/esm/shared/charts/descriptors/index.js +7 -1
  63. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +5 -1
  64. package/dist/esm/shared/charts/descriptors/logic/think.js +2 -4
  65. package/dist/esm/shared/charts/descriptors/message/question/question.js +21 -13
  66. package/dist/esm/shared/charts/descriptors/message/say.js +29 -3
  67. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +1 -1
  68. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +80 -30
  69. package/dist/esm/shared/charts/descriptors/service/checkAgentAvailability.js +63 -3
  70. package/dist/esm/shared/charts/descriptors/service/handoverConnections.js +48 -0
  71. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +124 -64
  72. package/dist/esm/shared/charts/descriptors/service/index.js +1 -0
  73. package/dist/esm/shared/constants.js +7 -0
  74. package/dist/esm/shared/interfaces/IProfileSchema.js +1 -1
  75. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +3 -0
  76. package/dist/esm/shared/interfaces/handover.js +73 -9
  77. package/dist/esm/shared/interfaces/handoverProviders.js +20 -0
  78. package/dist/esm/shared/interfaces/messageAPI/endpoints.js +6 -1
  79. package/dist/esm/shared/interfaces/messageAPI/handover.js +27 -2
  80. package/dist/esm/shared/interfaces/resources/IAiAgent.js +3 -1
  81. package/dist/esm/shared/interfaces/resources/IExternalModel.js +2 -0
  82. package/dist/esm/shared/interfaces/resources/IHandoverProvider.js +2 -0
  83. package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +12 -1
  84. package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +9 -5
  85. package/dist/esm/shared/interfaces/resources/TResourceType.js +6 -0
  86. package/dist/esm/shared/interfaces/resources/settings/IAudioPreviewSettings.js +8 -2
  87. package/dist/esm/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -0
  88. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/ICreateHandoverProviderRest_2_0.js +2 -0
  89. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IDeleteHandoverProviderRest_2_0.js +2 -0
  90. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverProvider_2_0.js +2 -0
  91. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IHandoverService_2_0.js +2 -0
  92. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverProvidersRest_2_0.js +2 -0
  93. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IIndexHandoverServicesRest_2_0.js +2 -0
  94. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IReadHandoverProviderRest_2_0.js +2 -0
  95. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/IUpdateHandoverProviderRest_2_0.js +2 -0
  96. package/dist/esm/shared/interfaces/restAPI/resources/handoverProvider/v2.0/index.js +2 -0
  97. package/dist/esm/shared/interfaces/security/IPermission.js +2 -0
  98. package/dist/esm/shared/interfaces/security/IRole.js +2 -0
  99. package/dist/esm/shared/interfaces/security/index.js +1 -1
  100. package/package.json +2 -2
  101. package/types/index.d.ts +573 -23
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
3
+ exports.largeLanguageModelQuerySchema = exports.largeLanguageModelSchema = exports.largeLanguageModelDataSchema = exports.llmFallbackSchema = exports.googleGeminiMetaSchema = exports.googleVertexAIMetaSchema = exports.azureOpenAIMetaSchema = exports.openAICompatibleMetaSchema = exports.openAIMetaSchema = exports.alephAlphaMetaSchema = exports.awsBedrockMetaSchema = exports.anthropicMetaSchema = void 0;
4
4
  /* Custom Modules */
5
5
  const createQuerySchema_1 = require("../../helper/createQuerySchema");
6
6
  const IEntityMeta_1 = require("./IEntityMeta");
@@ -37,7 +37,17 @@ exports.openAIMetaSchema = {
37
37
  type: "object",
38
38
  additionalProperties: false,
39
39
  properties: {
40
- customModel: { type: ["string", "null"] }
40
+ customModel: { type: ["string", "null"] },
41
+ baseCustomUrl: { type: ["string", "null"] }
42
+ }
43
+ };
44
+ exports.openAICompatibleMetaSchema = {
45
+ title: "openAICompatibleMetaSchema",
46
+ type: "object",
47
+ additionalProperties: false,
48
+ properties: {
49
+ customModel: { type: "string" },
50
+ baseCustomUrl: { type: "string" },
41
51
  }
42
52
  };
43
53
  exports.azureOpenAIMetaSchema = {
@@ -116,6 +126,7 @@ exports.largeLanguageModelDataSchema = {
116
126
  connectionId: { type: "string", format: "uuid" },
117
127
  isDefault: { type: "boolean" },
118
128
  openAI: exports.openAIMetaSchema,
129
+ openAICompatible: exports.openAICompatibleMetaSchema,
119
130
  azureOpenAI: exports.azureOpenAIMetaSchema,
120
131
  googleVertexAI: exports.googleVertexAIMetaSchema,
121
132
  googleGemini: exports.googleGeminiMetaSchema,
@@ -92,10 +92,13 @@ const nodeDependenciesSchema = {
92
92
  exports.nodeFieldTypes = [
93
93
  "adaptivecard",
94
94
  "agentAssistConfig",
95
+ "aiAgentSelect",
95
96
  "appTemplate",
96
97
  "backgroundSelector",
97
98
  "caseNode",
98
99
  "checkbox",
100
+ "checkAgentAvailabilityProvider",
101
+ "checkAgentAvailabilityConfig",
99
102
  "chipInput",
100
103
  "code",
101
104
  "cognigyLLMText",
@@ -110,16 +113,16 @@ exports.nodeFieldTypes = [
110
113
  "flow",
111
114
  "flowNode",
112
115
  "function",
116
+ "goalAndStepsSelect",
117
+ "handoverProvider",
118
+ "handoverProviderConfig",
113
119
  "json",
114
120
  "keyValuePairs",
115
- "toolParameters",
121
+ "knowledgeSourceTags",
116
122
  "knowledgeStore",
117
123
  "knowledgeStoreSelect",
118
- "knowledgeSourceTags",
119
- "llmSelect",
120
- "aiAgentSelect",
121
- "goalAndStepsSelect",
122
124
  "lexicon",
125
+ "llmSelect",
123
126
  "localeField",
124
127
  "node",
125
128
  "number",
@@ -139,6 +142,7 @@ exports.nodeFieldTypes = [
139
142
  "textArray",
140
143
  "time",
141
144
  "toggle",
145
+ "toolParameters",
142
146
  "ttsSelect",
143
147
  "typescript",
144
148
  "xml"
@@ -23,6 +23,7 @@ exports.pinnableResourceTypes = exports.primaryResourceTypes = exports.packageab
23
23
  * - flowSettings
24
24
  * - flowState
25
25
  * - function
26
+ * - handoverProvider
26
27
  * - intent
27
28
  * - intentDefaultReply
28
29
  * - intentLearningSentence
@@ -59,6 +60,7 @@ exports.arrayTResourceType = [
59
60
  "flowSettings",
60
61
  "flowState",
61
62
  "function",
63
+ "handoverProvider",
62
64
  "intent",
63
65
  "intentDefaultReply",
64
66
  "intentLearningSentence",
@@ -98,6 +100,7 @@ exports.arrayTSnapshottableResourceType = [
98
100
  "flowSettings",
99
101
  "flowState",
100
102
  "function",
103
+ "handoverProvider",
101
104
  "intent",
102
105
  "intentDefaultReply",
103
106
  "intentRelation",
@@ -135,6 +138,7 @@ exports.chartableResourceTypes = [...exports.arrayTChartableResourceType];
135
138
  * - function
136
139
  * - lexicon
137
140
  * - goal
141
+ * - handoverProvider
138
142
  * - nluconnector
139
143
  * - playbook
140
144
  * - project
@@ -167,6 +171,7 @@ exports.packageableResourceTypes = [
167
171
  "lexicon",
168
172
  "locale",
169
173
  "goal",
174
+ "handoverProvider",
170
175
  "nluconnector",
171
176
  "playbook",
172
177
  "snippet",
@@ -186,6 +191,7 @@ exports.primaryResourceTypes = [
186
191
  "nluconnector",
187
192
  "playbook",
188
193
  "snippet",
194
+ "handoverProvider",
189
195
  ];
190
196
  exports.pinnableResourceTypes = [
191
197
  "project"
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.audioPreviewSettingsDataSchema = exports.audioPreviewProviders = void 0;
4
- exports.audioPreviewProviders = ["microsoft", "google", "aws"];
4
+ exports.audioPreviewProviders = ["microsoft", "google", "aws", "deepgram"];
5
5
  exports.audioPreviewSettingsDataSchema = {
6
6
  title: "audioPreviewSettingsDataSchema",
7
7
  type: ["object", "null"],
@@ -28,7 +28,13 @@ exports.audioPreviewSettingsDataSchema = {
28
28
  properties: {
29
29
  connectionId: { type: ["string", "null"], format: "uuid" }
30
30
  }
31
- }
31
+ },
32
+ deepgram: {
33
+ type: "object",
34
+ properties: {
35
+ connectionId: { type: ["string", "null"], format: "uuid" }
36
+ }
37
+ },
32
38
  }
33
39
  }
34
40
  }
@@ -30,6 +30,10 @@ exports.generativeAISettingsDataSchema = {
30
30
  type: "object",
31
31
  additionalProperties: false,
32
32
  properties: {
33
+ designTimeGeneration: {
34
+ type: "object",
35
+ properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
36
+ },
33
37
  intentSentenceGeneration: {
34
38
  type: "object",
35
39
  properties: Object.assign({}, exports.generativeAIUseCaseDataSchema.properties)
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ICreateHandoverProviderRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IDeleteHandoverProviderRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IHandoverProvider_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IHandoverService_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IIndexHandoverProvidersRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IIndexHandoverServicesRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IReadHandoverProviderRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IUpdateHandoverProviderRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -61,6 +61,7 @@ exports.organisationWidePermissions = [
61
61
  * - memberDetails
62
62
  * - members
63
63
  * - goals
64
+ * - handoverProviders
64
65
  * - nluConnectors
65
66
  * - packages
66
67
  * - playbooks
@@ -100,6 +101,7 @@ exports.projectWidePermissions = [
100
101
  "memberDetails",
101
102
  "members",
102
103
  "goals",
104
+ "handoverProviders",
103
105
  "nluConnectors",
104
106
  "packages",
105
107
  "playbooks",
@@ -66,6 +66,7 @@ exports.organisationWideRoles = [
66
66
  * - flowNodeComments
67
67
  * - flowNodeDescriptions
68
68
  * - followUser
69
+ * - handoverProviderAdmin
69
70
  * - intents
70
71
  * - data_privacy_admin
71
72
  * - data_privacy_editor
@@ -109,6 +110,7 @@ exports.projectWideRoles = [
109
110
  "followUser",
110
111
  "function_admin",
111
112
  "function_editor",
113
+ "handoverProviderAdmin",
112
114
  "intents",
113
115
  "knowledgeAdmin",
114
116
  "large_language_model_admin",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.identityProviderSchema = exports.oidcIdentityProviderDataSchema = exports.samlIdentityProviderDataSchema = exports.operations = exports.availableRoles = exports.projectWideRoles = exports.organisationWideRoles = exports.availablePermissions = exports.COMPUTED_ACL_HASH_VERSION = void 0;
4
- exports.COMPUTED_ACL_HASH_VERSION = "v18";
4
+ exports.COMPUTED_ACL_HASH_VERSION = "v19";
5
5
  var IPermission_1 = require("./IPermission");
6
6
  Object.defineProperty(exports, "availablePermissions", { enumerable: true, get: function () { return IPermission_1.availablePermissions; } });
7
7
  var IRole_1 = require("./IRole");
@@ -28,7 +28,8 @@ export function ManagementAPIGroup_2_0(instance) {
28
28
  deleteUserManagement: ({ userId }, options) => GenericAPIFn(`/new/management/v2.0/users/${userId}`, "DELETE", self)(undefined, options),
29
29
  impersonateUserManagement: ({ userId }, options) => GenericAPIFn(`/new/management/v2.0/users/${userId}/impersonate`, "POST", self)(undefined, options),
30
30
  createApiKeyManagement: (args, options) => GenericAPIFn("/new/management/v2.0/organisations/apikeys", "POST", self)(args, options),
31
- createSystemMessage: (args, options) => GenericAPIFn("/new/management/v2.0/system/createsystemmessage", "POST", self)(args, options)
31
+ createSystemMessage: (args, options) => GenericAPIFn("/new/management/v2.0/system/createsystemmessage", "POST", self)(args, options),
32
+ generateAuthenticationToken: (args, options) => GenericAPIFn("/new/management/auth/token", "POST", self)(args, options)
32
33
  };
33
34
  }
34
35
  //# sourceMappingURL=ManagementAPIGroup_2_0.js.map
@@ -172,6 +172,15 @@ export const ResourcesAPIGroup_2_0 = (instance) => {
172
172
  return GenericAPIFn(`/new/v2.0/goals/${goalId}`, "PATCH", self)(args, options);
173
173
  },
174
174
  deleteGoal: (args, options) => GenericAPIFn(`/new/v2.0/goals/${args.goalId}`, "DELETE", self)(undefined, options),
175
+ indexHandoverServices: (args, options) => GenericAPIFn(`/new/v2.0/handover/services?${stringifyQuery(args)}`, "GET", self)(undefined, options),
176
+ indexHandoverProviders: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers?${stringifyQuery(args)}`, "GET", self)(undefined, options),
177
+ createHandoverProvider: (args, options) => GenericAPIFn("/new/v2.0/handover/providers", "POST", self)(args, options),
178
+ readHandoverProvider: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers/${args.handoverProviderId}`, "GET", self)(undefined, options),
179
+ updateHandoverProvider: (_a, options) => {
180
+ var { handoverProviderId } = _a, args = __rest(_a, ["handoverProviderId"]);
181
+ return GenericAPIFn(`/new/v2.0/handover/providers/${handoverProviderId}`, "PATCH", self)(args, options);
182
+ },
183
+ deleteHandoverProvider: (args, options) => GenericAPIFn(`/new/v2.0/handover/providers/${args.handoverProviderId}?${stringifyQuery({ projectId: args.projectId })}`, "DELETE", self)(undefined, options),
175
184
  indexPlaybooks: (args, options) => GenericAPIFn(`/new/v2.0/playbooks?${stringifyQuery(args)}`, "GET", self)(undefined, options),
176
185
  batchPlaybooks: (_a, options) => {
177
186
  var { projectId } = _a, args = __rest(_a, ["projectId"]);
@@ -4,6 +4,7 @@ import { GenericAPIFn } from "../GenericAPIFn";
4
4
  import { ApiKeyAuthentication } from "./ApiKey/ApiKeyAuthentication";
5
5
  import { BasicAuthentication } from "./BasicAuthentication/BasicAuthentication";
6
6
  import { OAuth2Authentication } from "./OAuth2/OAuth2Authentication";
7
+ import JwtTokenAuthentication from "./JWT/JwtTokenAuthentication";
7
8
  import { stringifyQuery } from "../shared/helper/rest";
8
9
  export function AuthenticationAPI(instance) {
9
10
  const self = instance;
@@ -19,6 +20,9 @@ export function AuthenticationAPI(instance) {
19
20
  case "OAuth2":
20
21
  self.authenticationHandler = new OAuth2Authentication(credentials, self);
21
22
  break;
23
+ case "JWT":
24
+ self.authenticationHandler = new JwtTokenAuthentication(credentials, self);
25
+ break;
22
26
  }
23
27
  },
24
28
  login: (data) => __awaiter(this, void 0, void 0, function* () {
@@ -50,7 +54,8 @@ export function AuthenticationAPI(instance) {
50
54
  exchangeOneTimeTokenForRefreshToken: (_a, options) => {
51
55
  var { loginToken } = _a, args = __rest(_a, ["loginToken"]);
52
56
  return GenericAPIFn(`/auth/exchangetoken?${stringifyQuery({ loginToken })}`, "GET", self)(args, Object.assign({ withAuthentication: false }, options));
53
- }
57
+ },
58
+ generateManagementUIAuthToken: (args, options) => GenericAPIFn("/new/management/auth/token", "POST", self)(args, options)
54
59
  };
55
60
  }
56
61
  //# sourceMappingURL=AuthenticationAPI.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IJwtTokenAuthentication.js.map
@@ -0,0 +1,21 @@
1
+ import { __awaiter } from "tslib";
2
+ const JwtTokenAuthentication = function (credentials, self) {
3
+ if (!(this instanceof JwtTokenAuthentication)) {
4
+ return new JwtTokenAuthentication(credentials, self);
5
+ }
6
+ else {
7
+ self.credentials = {
8
+ token: credentials.token,
9
+ type: credentials.type
10
+ };
11
+ const JwtTokenAuthentication = function () { };
12
+ JwtTokenAuthentication.prototype.getAuthenticationHeaders = () => __awaiter(this, void 0, void 0, function* () {
13
+ const headers = {};
14
+ headers["Authorization"] = `Bearer ${credentials.token}`;
15
+ return headers;
16
+ });
17
+ return new JwtTokenAuthentication(credentials, self);
18
+ }
19
+ };
20
+ export default JwtTokenAuthentication;
21
+ //# sourceMappingURL=JwtTokenAuthentication.js.map
@@ -67,6 +67,12 @@ export const ALL_FIELDS = createNodeDescriptor({
67
67
  locale: "de-DE",
68
68
  },
69
69
  },
70
+ {
71
+ key: "handoverProvider",
72
+ type: "handoverProvider",
73
+ label: "Handover Provider Configuration",
74
+ description: "Select and configure a handover provider",
75
+ },
70
76
  {
71
77
  key: "select",
72
78
  type: "select",
@@ -5,7 +5,7 @@ import { createNodeDescriptor } from "../../createNodeDescriptor";
5
5
  * Node name: 'completeGoal'
6
6
  *
7
7
  * Purpose:
8
- * Sets a goal as complete
8
+ * Sets a goal as complete (new name: tasks)
9
9
  * @param goal the name of the goal to add to completedGoals array
10
10
  */
11
11
  export const COMPLETE_GOAL = createNodeDescriptor({
@@ -37,7 +37,7 @@ export const COMPLETE_GOAL = createNodeDescriptor({
37
37
  if (goal) {
38
38
  api.completeGoal(goal);
39
39
  input.completedGoals.push(goal);
40
- (_a = api.logDebugMessage) === null || _a === void 0 ? void 0 : _a.call(api, `Goal: ${goal}`);
40
+ (_a = api.logDebugMessage) === null || _a === void 0 ? void 0 : _a.call(api, `Task: ${goal}`);
41
41
  }
42
42
  })
43
43
  });
@@ -8,6 +8,7 @@ import { ANTHROPIC_PROVIDER_CONNECTION } from "./anthropicProviderConnection";
8
8
  import { GOOGLE_VERTEXAI_PROVIDER_CONNECTION } from "./googleVertexAIProviderConnection";
9
9
  import { ALEPH_ALPHA_PROVIDER_CONNECTION } from "./alephAlphaProviderConnection";
10
10
  import { AWS_BEDROCK_PROVIDER_CONNECTION } from "./awsBedrockProviderConnection";
11
+ import { OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION } from "./openAICompatibleProviderConnection";
11
12
  export { OPEN_AI_PROVIDER_CONNECTION } from "./openAIProviderConnection";
12
13
  export { AZURE_OPEN_AI_PROVIDER_CONNECTION } from "./azureOpenAIProviderConnection";
13
14
  export { AZURE_OPEN_AI_V2_PROVIDER_CONNECTION } from "./azureOpenAIProviderConnectionV2";
@@ -16,6 +17,7 @@ export { ANTHROPIC_PROVIDER_CONNECTION } from "./anthropicProviderConnection";
16
17
  export { GOOGLE_VERTEXAI_PROVIDER_CONNECTION } from "./googleVertexAIProviderConnection";
17
18
  export { ALEPH_ALPHA_PROVIDER_CONNECTION } from "./alephAlphaProviderConnection";
18
19
  export { AWS_BEDROCK_PROVIDER_CONNECTION } from "./awsBedrockProviderConnection";
20
+ export { OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION } from "./openAICompatibleProviderConnection";
19
21
  export const cognigyGenerativeAIProviderModule = createExtension({
20
22
  nodes: [],
21
23
  connections: [
@@ -26,7 +28,8 @@ export const cognigyGenerativeAIProviderModule = createExtension({
26
28
  ANTHROPIC_PROVIDER_CONNECTION,
27
29
  GOOGLE_VERTEXAI_PROVIDER_CONNECTION,
28
30
  ALEPH_ALPHA_PROVIDER_CONNECTION,
29
- AWS_BEDROCK_PROVIDER_CONNECTION
31
+ AWS_BEDROCK_PROVIDER_CONNECTION,
32
+ OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION
30
33
  ]
31
34
  });
32
35
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,8 @@
1
+ export const OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION = {
2
+ type: "OpenAICompatibleProvider",
3
+ label: "UI__NODE_EDITOR__OPEN_AI_COMPATIBLE_PROVIDER_CONNECTION__LABEL",
4
+ fields: [
5
+ { fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
6
+ ]
7
+ };
8
+ //# sourceMappingURL=openAICompatibleProviderConnection.js.map
@@ -0,0 +1,8 @@
1
+ export const DEEPGRAM_SPEECH_PROVIDER_CONNECTION = {
2
+ type: "DeepgramSpeechProvider",
3
+ label: "UI__NODE_EDITOR__DEEPGRAM_SPEECH_PROVIDER__LABEL",
4
+ fields: [
5
+ { fieldName: "apiKey", label: "UI__CONNECTION_EDITOR__FIELD_API_KEY" },
6
+ ]
7
+ };
8
+ //# sourceMappingURL=deepgramSpeechProviderConnection.js.map
@@ -3,6 +3,7 @@ import { createExtension } from "../../../createNodeDescriptor";
3
3
  import { AWS_SPEECH_PROVIDER_CONNECTION } from "./awsSpeechProviderConnection";
4
4
  import { MICROSOFT_SPEECH_PROVIDER_CONNECTION } from "./microsoftSpeechProviderConnection";
5
5
  import { GOOGLE_SPEECH_PROVIDER_CONNECTION } from "./googleSpeechProviderConnection";
6
+ import { DEEPGRAM_SPEECH_PROVIDER_CONNECTION } from "./deepgramSpeechProviderConnection";
6
7
  export { AWS_SPEECH_PROVIDER_CONNECTION } from "./awsSpeechProviderConnection";
7
8
  export { MICROSOFT_SPEECH_PROVIDER_CONNECTION } from "./microsoftSpeechProviderConnection";
8
9
  export { GOOGLE_SPEECH_PROVIDER_CONNECTION } from "./googleSpeechProviderConnection";
@@ -12,6 +13,7 @@ export const cognigySpeechProviderModule = createExtension({
12
13
  AWS_SPEECH_PROVIDER_CONNECTION,
13
14
  MICROSOFT_SPEECH_PROVIDER_CONNECTION,
14
15
  GOOGLE_SPEECH_PROVIDER_CONNECTION,
16
+ DEEPGRAM_SPEECH_PROVIDER_CONNECTION,
15
17
  ]
16
18
  });
17
19
  //# sourceMappingURL=index.js.map
@@ -11,7 +11,7 @@ import { REGEX_SLOT_FILLER, EXECUTE_COGNIGY_NLU, ADD_LEXICON_KEYPHRASE, FUZZY_SE
11
11
  import { KNOWLEDGE_SEARCH, KNOWLEDGE_SEARCH_V2, SEARCH_EXTRACT_OUTPUT } from "./knowledgeSearch";
12
12
  import { CONTINUOUS_ASR, DTMF, HANG_UP, PLAY, TRANSFER_VOICE, SESSION_SPEECH_PARAMETERS, USER_INPUT_TIMEOUT, SEND_METADATA, BARGE_IN, MUTE_SPEECH_INPUT, } from "./voice";
13
13
  import { ACTIVATE_PROFILE, COMPLETE_GOAL, DEACTIVATE_PROFILE, DELETE_PROFILE, MERGE_PROFILE, UPDATE_PROFILE, ADD_MEMORY, BLIND_MODE, OVERWRITE_ANALYTICS, SET_RATING, REQUEST_RATING, TRACK_GOAL, } from "./analytics";
14
- import { HANDOVER, HANDOVER_V2, CHECK_AGENT_AVAILABILITY, HTTP_REQUEST, HTTP_CONNECTION_BASIC, HTTP_CONNECTION_APIKEYAUTHKEY, HTTP_CONNECTION_APIKEYXKEY, HTTP_CONNECTION_OAUTH2, JWT_SECRET_CONNECTION, TRIGGER_FUNCTION, ON_SCHEDULING_ERROR, ON_SCHEDULED, GPT_PROMPT, CLOSE_HANDOVER, HANDOVER_INACTIVITY_TIMER, GPT_CONVERSATION, GPT_CONVERSATION_SUMMARY, LLM_ENTITY_EXTRACT, AI_AGENT_JOB, AI_AGENT_JOB_DEFAULT, AI_AGENT_JOB_TOOL, AI_AGENT_TOOL_ANSWER, AI_AGENT_HANDOVER, } from "./service";
14
+ import { HANDOVER, HANDOVER_V2, CHECK_AGENT_AVAILABILITY, HTTP_REQUEST, HTTP_CONNECTION_BASIC, HTTP_CONNECTION_APIKEYAUTHKEY, HTTP_CONNECTION_APIKEYXKEY, HTTP_CONNECTION_OAUTH2, JWT_SECRET_CONNECTION, TRIGGER_FUNCTION, ON_SCHEDULING_ERROR, ON_SCHEDULED, GPT_PROMPT, CLOSE_HANDOVER, HANDOVER_INACTIVITY_TIMER, GPT_CONVERSATION, GPT_CONVERSATION_SUMMARY, LLM_ENTITY_EXTRACT, AI_AGENT_JOB, AI_AGENT_JOB_DEFAULT, AI_AGENT_JOB_TOOL, AI_AGENT_TOOL_ANSWER, AI_AGENT_HANDOVER, LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM } from "./service";
15
15
  import { INIT_APP_SESSION, GET_APP_SESSION_PIN, SET_HTML_APP_STATE, SET_ADAPTIVE_CARD_APP_STATE, } from "./apps";
16
16
  import { SET_IFRAME_TILE, SET_HTML_TILE, SEND_TILE_DATA, SET_SECURE_FORMS_TILE, SET_ADAPTIVE_CARD_TILE, SET_AGENT_ASSIST_GRID, NEXT_ACTION_ASSIST, SENTIMENT_ASSIST, TRANSCRIPT_ASSIST, IDENTITY_ASSIST, KNOWLEDGE_ASSIST, } from "./agentAssist";
17
17
  import { ASSIST_INFO } from "./liveAgent";
@@ -153,6 +153,12 @@ export const cognigyBasicModule = createExtension({
153
153
  HTTP_CONNECTION_APIKEYXKEY,
154
154
  HTTP_CONNECTION_OAUTH2,
155
155
  JWT_SECRET_CONNECTION,
156
+ LIVE_AGENT_CONNECTION,
157
+ RINGCENTRAL_ENGAGE_CONNECTION,
158
+ CHATWOOT_CONNECTION,
159
+ EIGHT_BY_EIGHT_CONNECTION,
160
+ GENESYS_CLOUD_CONNECTION,
161
+ GENESYS_CLOUD_CONNECTION_OM
156
162
  ],
157
163
  });
158
164
  export { cognigyMongoDBModule } from "./connectionNodes/mongoDB";
@@ -637,6 +637,10 @@ New: `;
637
637
  message: (error === null || error === void 0 ? void 0 : error.message) || error,
638
638
  };
639
639
  api.logDebugError(JSON.stringify(compactError, undefined, 2), "Search Extract Output: Error");
640
+ api.emitToOpsCenter({
641
+ subComponent: "KnowledgeAIQueries",
642
+ title: error === null || error === void 0 ? void 0 : error.message
643
+ });
640
644
  if ((_l = error === null || error === void 0 ? void 0 : error.originalErrorDetails) === null || _l === void 0 ? void 0 : _l.code) {
641
645
  compactError["code"] = error.originalErrorDetails.code;
642
646
  }
@@ -760,7 +764,7 @@ New: `;
760
764
  if (documents && (mode !== "s")) {
761
765
  // check if we received streamed output at all
762
766
  let streamedOutput = false;
763
- const isStreamingChannel = input.channel === "webchat3";
767
+ const isStreamingChannel = input.channel === "webchat3" || input.channel === "adminconsole";
764
768
  const _messageId = randomUUID();
765
769
  const promptData = {
766
770
  prompt,
@@ -3,10 +3,8 @@ import { __awaiter } from "tslib";
3
3
  import { createNodeDescriptor } from "../../createNodeDescriptor";
4
4
  import { logFullConfigToDebugMode } from "../../../helper/logFullConfigToDebugMode";
5
5
  /**
6
- * Node name: 'think'
7
- *
8
- * Purpose:
9
- * Thinks a message into the Flow
6
+ * @deprecated since 4.98.0.
7
+ * Use THINK_V2 instead
10
8
  */
11
9
  export const THINK = createNodeDescriptor({
12
10
  type: "think",
@@ -538,6 +538,13 @@ DO NOT talk about other topics. Do not offer general assistance.`,
538
538
  description: "UI__NODE_EDITOR__MESSAGE__QUESTION__QUESTION__FIELDS__MAX_EXECUTION_DIFF__DESCRIPTION",
539
539
  defaultValue: 1
540
540
  },
541
+ {
542
+ key: "preventTranscript",
543
+ type: "toggle",
544
+ defaultValue: false,
545
+ label: "UI__NODE_EDITOR__MESSAGE__SAY__FIELDS__PREVENT_TRANSCRIPT__LABEL",
546
+ description: "UI__NODE_EDITOR__MESSAGE__SAY__FIELDS__PREVENT_TRANSCRIPT__DESCRIPTION",
547
+ },
541
548
  {
542
549
  key: "escalateAnswersAction",
543
550
  type: "select",
@@ -1738,7 +1745,8 @@ DO NOT talk about other topics. Do not offer general assistance.`,
1738
1745
  "onlyAcceptEscalationIntents",
1739
1746
  "additionalValidation",
1740
1747
  "resultLocation",
1741
- "maxExecutionDiff"
1748
+ "maxExecutionDiff",
1749
+ "preventTranscript"
1742
1750
  ]
1743
1751
  },
1744
1752
  {
@@ -1830,7 +1838,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
1830
1838
  //#endregion DescriptorFields
1831
1839
  function: ({ cognigy, nodeId, organisationId, config, inputOptions }) => __awaiter(void 0, void 0, void 0, function* () {
1832
1840
  var _a, _b, _c;
1833
- const { say, type, validationMessage, repromptLLMProvider, repromptType = "text", repromptLLMPrompt, repromptLLMTurns, repromptLLMStream, repromptLLMStreamStopTokens, repromptSay, repromptFlowNode, repromptParseIntents, repromptParseKeyphrases, repromptAbsorbContext, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, escalateAnswersAction, escalateAnswersThreshold, escalateAnswersGotoTarget, escalateAnswersExecuteTarget, escalateAnswersGotoExecutionMode, escalateAnswersInjectedText, escalateAnswersInjectedData, escalateAnswersMessage, escalateAnswersRepromptPrevention, escalateAnswersOnce, escalateAnswersHandoverText, escalateAnswersRepeatHandoverMessage, escalateAnswersHandoverCancelIntent, escalateAnswersHandoverQuickReply, escalateAnswersHandoverChatwootInboxId, escalateAnswersHandoverLiveAgentInboxId, escalateAnswersHandoverAdditionalCategoryIds, escalateAnswersHandoverSendTranscriptAsFirstMessage, escalateAnswersHandoverSalesforcePrechatEntities, escalateAnswersHandoverSalesforcePrechatDetails, escalateAnswersHandoverGenesysLanguage, escalateAnswersHandoverGenesysSkills, escalateAnswersHandoverGenesysPriority, escalateAnswersHandoverGenesysCustomAttributes, escalateAnswersHandoverEightByEightChannelId, escalateAnswersHandoverEightByEightQueueId, escalateAnswersHandoverEightByEightJSONProps, escalateAnswersHandoverSendResolveEvent, escalateAnswersHandoverResolveBehavior, escalateAnswersAgentAssistInitMessage, escalateAnswersAllowAgentInject, escalateAnswersSendOnActiveEvent, escalateAnswersSendOnQueueEvent, escalateIntentsAction, escalateIntentsValidIntents, escalateIntentsThreshold, escalateIntentsGotoTarget, escalateIntentsExecuteTarget, escalateIntentsGotoExecutionMode, escalateIntentsInjectedText, escalateIntentsInjectedData, escalateIntentsMessage, escalateIntentsHandoverText, escalateIntentsRepeatHandoverMessage, escalateIntentsHandoverCancelIntent, escalateIntentsHandoverQuickReply, escalateIntentsHandoverChatwootInboxId, escalateIntentsHandoverLiveAgentInboxId, escalateIntentsHandoverAdditionalCategoryIds, escalateIntentHandoverSendTranscriptAsFirstMessage, escalateIntentsHandoverSalesforcePrechatEntities, escalateIntentsHandoverSalesforcePrechatDetails, escalateIntentsHandoverGenesysLanguage, escalateIntentsHandoverGenesysSkills, escalateIntentsHandoverGenesysPriority, escalateIntentsHandoverGenesysCustomAttributes, escalateIntentsHandoverEightByEightChannelId, escalateIntentsHandoverEightByEightQueueId, escalateIntentsHandoverEightByEightJSONProps, escalateIntentsRepromptPrevention, escalateIntentsHandoverSendResolveEvent, escalateIntentsHandoverResolveBehavior, escalateIntentsAgentAssistInitMessage, escalateIntentsAllowAgentInject, escalateIntentsSendOnActiveEvent, escalateIntentsSendOnQueueEvent, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt, handoverOutput, cleanTextLocale, cleanDisallowedSymbols, additionalAllowedCharacters, additionalSpecialPhrases, resolveSpelledOutNumbers, resolvePhoneticAlphabet, additionalPhoneticAlphabet, replaceSpecialWords, additionalMappedSymbols, resolveSpelledOutAlphabet, resolvePhoneticCounters, contractSingleCharacters, contractNumberGroups, trimResult, runNLUAfterCleaning, overwrittenBaseAnswer } = config;
1841
+ const { say, type, validationMessage, repromptLLMProvider, repromptType = "text", repromptLLMPrompt, repromptLLMTurns, repromptLLMStream, repromptLLMStreamStopTokens, repromptSay, repromptFlowNode, repromptParseIntents, repromptParseKeyphrases, repromptAbsorbContext, validationRepeat, storeResultInContext, contextKey, storeInContactProfile, profileKey, storeDetailedResults, parseResultOnEntry, repromptCondition, maxExecutionDiff, resultLocation, skipRepromptOnIntent, onlyAcceptEscalationIntents, preventTranscript, escalateAnswersAction, escalateAnswersThreshold, escalateAnswersGotoTarget, escalateAnswersExecuteTarget, escalateAnswersGotoExecutionMode, escalateAnswersInjectedText, escalateAnswersInjectedData, escalateAnswersMessage, escalateAnswersRepromptPrevention, escalateAnswersOnce, escalateAnswersHandoverText, escalateAnswersRepeatHandoverMessage, escalateAnswersHandoverCancelIntent, escalateAnswersHandoverQuickReply, escalateAnswersHandoverChatwootInboxId, escalateAnswersHandoverLiveAgentInboxId, escalateAnswersHandoverAdditionalCategoryIds, escalateAnswersHandoverSendTranscriptAsFirstMessage, escalateAnswersHandoverSalesforcePrechatEntities, escalateAnswersHandoverSalesforcePrechatDetails, escalateAnswersHandoverGenesysLanguage, escalateAnswersHandoverGenesysSkills, escalateAnswersHandoverGenesysPriority, escalateAnswersHandoverGenesysCustomAttributes, escalateAnswersHandoverEightByEightChannelId, escalateAnswersHandoverEightByEightQueueId, escalateAnswersHandoverEightByEightJSONProps, escalateAnswersHandoverSendResolveEvent, escalateAnswersHandoverResolveBehavior, escalateAnswersAgentAssistInitMessage, escalateAnswersAllowAgentInject, escalateAnswersSendOnActiveEvent, escalateAnswersSendOnQueueEvent, escalateIntentsAction, escalateIntentsValidIntents, escalateIntentsThreshold, escalateIntentsGotoTarget, escalateIntentsExecuteTarget, escalateIntentsGotoExecutionMode, escalateIntentsInjectedText, escalateIntentsInjectedData, escalateIntentsMessage, escalateIntentsHandoverText, escalateIntentsRepeatHandoverMessage, escalateIntentsHandoverCancelIntent, escalateIntentsHandoverQuickReply, escalateIntentsHandoverChatwootInboxId, escalateIntentsHandoverLiveAgentInboxId, escalateIntentsHandoverAdditionalCategoryIds, escalateIntentHandoverSendTranscriptAsFirstMessage, escalateIntentsHandoverSalesforcePrechatEntities, escalateIntentsHandoverSalesforcePrechatDetails, escalateIntentsHandoverGenesysLanguage, escalateIntentsHandoverGenesysSkills, escalateIntentsHandoverGenesysPriority, escalateIntentsHandoverGenesysCustomAttributes, escalateIntentsHandoverEightByEightChannelId, escalateIntentsHandoverEightByEightQueueId, escalateIntentsHandoverEightByEightJSONProps, escalateIntentsRepromptPrevention, escalateIntentsHandoverSendResolveEvent, escalateIntentsHandoverResolveBehavior, escalateIntentsAgentAssistInitMessage, escalateIntentsAllowAgentInject, escalateIntentsSendOnActiveEvent, escalateIntentsSendOnQueueEvent, reconfirmationBehaviour, reconfirmationQuestion, reconfirmationQuestionReprompt, handoverOutput, cleanTextLocale, cleanDisallowedSymbols, additionalAllowedCharacters, additionalSpecialPhrases, resolveSpelledOutNumbers, resolvePhoneticAlphabet, additionalPhoneticAlphabet, replaceSpecialWords, additionalMappedSymbols, resolveSpelledOutAlphabet, resolvePhoneticCounters, contractSingleCharacters, contractNumberGroups, trimResult, runNLUAfterCleaning, overwrittenBaseAnswer } = config;
1834
1842
  const { input, context, profile, api } = cognigy;
1835
1843
  const rephraseWithAIParams = {
1836
1844
  generativeAI_rephraseOutputMode: config.generativeAI_rephraseOutputMode,
@@ -1973,11 +1981,11 @@ DO NOT talk about other topics. Do not offer general assistance.`,
1973
1981
  }
1974
1982
  // output reconfirmation reprompt
1975
1983
  if (reconfirmationQuestionReprompt) {
1976
- yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1984
+ yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, preventTranscript, say: { type: "text", text: [reconfirmationQuestionReprompt] } } });
1977
1985
  }
1978
1986
  // output reconfirmationQuestion
1979
1987
  const tentativeAnswerShortform = (activeQuestion === null || activeQuestion === void 0 ? void 0 : activeQuestion.tentativeAnswerShortform) || "";
1980
- yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
1988
+ yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, preventTranscript, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", tentativeAnswerShortform)] } } });
1981
1989
  // set myself as next node and stop
1982
1990
  api.setNextNode(nodeId);
1983
1991
  api.stopExecution();
@@ -2043,7 +2051,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2043
2051
  if (isFirstExecution && !parseResultOnEntry) {
2044
2052
  rephraseWithAIParams.promptType = "question";
2045
2053
  rephraseWithAIParams.questionType = config.type;
2046
- yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ say }, rephraseWithAIParams) });
2054
+ yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ preventTranscript, say }, rephraseWithAIParams) });
2047
2055
  if (config.type === "date" && !config.datepicker_hidePicker) {
2048
2056
  showDatePicker(cognigy, config);
2049
2057
  }
@@ -2081,7 +2089,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2081
2089
  // remember a shortform of the given answer in the activeQuestion object
2082
2090
  activeQuestion.tentativeAnswerShortform = generateAnswerShortForm(type, result, cognigy.input.text);
2083
2091
  // Output reconfirmationQuestion
2084
- yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
2092
+ yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: { handoverOutput, preventTranscript, say: { type: "text", text: [reconfirmationQuestion.replace("[ANSWER]", activeQuestion.tentativeAnswerShortform)] } } });
2085
2093
  // remember that we are in reconfirmation mode and stop
2086
2094
  api.setSystemContext("reconfirmationQuestionInProgress", true);
2087
2095
  // we need to store the input, to be able to restore it afterwards
@@ -2206,7 +2214,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2206
2214
  childConfigs: [],
2207
2215
  nodeId,
2208
2216
  organisationId,
2209
- config: { handoverOutput, say: escalateIntentsMessage }
2217
+ config: { handoverOutput, preventTranscript, say: escalateIntentsMessage }
2210
2218
  });
2211
2219
  if (escalateIntentsRepromptPrevention) {
2212
2220
  sayReprompt = false;
@@ -2355,7 +2363,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2355
2363
  childConfigs: [],
2356
2364
  nodeId,
2357
2365
  organisationId,
2358
- config: { handoverOutput, say: escalateAnswersMessage }
2366
+ config: { handoverOutput, preventTranscript, say: escalateAnswersMessage }
2359
2367
  });
2360
2368
  if (escalateAnswersRepromptPrevention) {
2361
2369
  sayReprompt = false;
@@ -2433,7 +2441,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2433
2441
  if (sayReprompt) {
2434
2442
  switch (repromptType) {
2435
2443
  case "say":
2436
- yield SAY.function(Object.assign({ cognigy, childConfigs: [], nodeId, organisationId, config: { say: repromptSay } }, rephraseWithAIParams));
2444
+ yield SAY.function(Object.assign({ cognigy, childConfigs: [], nodeId, organisationId, config: { preventTranscript, say: repromptSay } }, rephraseWithAIParams));
2437
2445
  break;
2438
2446
  case "execute":
2439
2447
  // if a question reprompt is set to execute flow and we have just executed
@@ -2482,11 +2490,11 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2482
2490
  }
2483
2491
  const repromptMessage = yield api.runGenerativeAIPrompt(data, "gptPromptNode");
2484
2492
  if (!repromptLLMStream) {
2485
- yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ handoverOutput, say: { type: "text", text: [repromptMessage] } }, rephraseWithAIParams) });
2493
+ yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ preventTranscript, handoverOutput, say: { type: "text", text: [repromptMessage] } }, rephraseWithAIParams) });
2486
2494
  }
2487
2495
  break;
2488
2496
  default: // this is also "text"
2489
- yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ handoverOutput, say: { type: "text", text: [validationMessage] } }, rephraseWithAIParams) });
2497
+ yield SAY.function({ cognigy, childConfigs: [], nodeId, organisationId, config: Object.assign({ preventTranscript, handoverOutput, say: { type: "text", text: [validationMessage] } }, rephraseWithAIParams) });
2490
2498
  }
2491
2499
  }
2492
2500
  /* If repeat toggle is on, also output question (and maybe datepicker) again */
@@ -2498,7 +2506,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2498
2506
  childConfigs: [],
2499
2507
  nodeId,
2500
2508
  organisationId,
2501
- config: Object.assign({ say }, rephraseWithAIParams)
2509
+ config: Object.assign({ preventTranscript, say }, rephraseWithAIParams)
2502
2510
  });
2503
2511
  if (config.type === "date" && !config.datepicker_hidePicker) {
2504
2512
  showDatePicker(cognigy, config);
@@ -2514,7 +2522,7 @@ DO NOT talk about other topics. Do not offer general assistance.`,
2514
2522
  childConfigs: [],
2515
2523
  nodeId,
2516
2524
  organisationId,
2517
- config: Object.assign({ say }, rephraseWithAIParams)
2525
+ config: Object.assign({ preventTranscript, say }, rephraseWithAIParams)
2518
2526
  });
2519
2527
  if (config.type === "date" && !config.datepicker_hidePicker) {
2520
2528
  showDatePicker(cognigy, config);