@cognigy/rest-api-client 4.98.0 → 4.99.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 (87) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/RestAPIClient.js +7 -0
  3. package/build/apigroups/AIOpsCenterAPIGroup_2_0.js +22 -0
  4. package/build/apigroups/ResourcesAPIGroup_2_0.js +8 -8
  5. package/build/apigroups/index.js +3 -1
  6. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +0 -44
  7. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +0 -45
  8. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +0 -43
  9. package/build/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +0 -45
  10. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +6 -2
  11. package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/mistralProviderConnection.js +11 -0
  12. package/build/shared/charts/descriptors/index.js +2 -0
  13. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +10 -1
  14. package/build/shared/charts/descriptors/service/GPTPrompt.js +14 -4
  15. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +185 -63
  16. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +180 -0
  17. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +196 -0
  18. package/build/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +5 -1
  19. package/build/shared/charts/descriptors/service/index.js +5 -1
  20. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +9 -8
  21. package/build/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
  22. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
  23. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +24 -2
  24. package/build/shared/interfaces/amqpInterface.js +3 -0
  25. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +9 -1
  26. package/build/shared/interfaces/resources/ILargeLanguageModel.js +10 -1
  27. package/build/shared/interfaces/restAPI/opsCenter/alerts/IIndexOpsCenterAlertsRest_2_0.js +3 -0
  28. package/build/shared/interfaces/restAPI/opsCenter/alerts/IOpsCenterAlert.js +3 -0
  29. package/build/shared/interfaces/restAPI/opsCenter/component/IOpsCenterComponents.js +34 -0
  30. package/build/shared/interfaces/restAPI/opsCenter/errors/IDeleteOpsCenterErrorRest_2_0.js +3 -0
  31. package/build/shared/interfaces/restAPI/opsCenter/errors/IGetOpsCenterErrorRest_2_0.js +3 -0
  32. package/build/shared/interfaces/restAPI/opsCenter/errors/IIndexOpsCenterErrorsRest_2_0.js +3 -0
  33. package/build/shared/interfaces/restAPI/opsCenter/errors/IOpsCenterError.js +3 -0
  34. package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetrics.js +3 -0
  35. package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsConfigRest_2_0.js +3 -0
  36. package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRangeRest_2_0.js +3 -0
  37. package/build/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRest_2_0.js +3 -0
  38. package/build/shared/interfaces/restAPI/opsCenter/metrics/IOpsCenterMetricsConfig.js +6 -0
  39. package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IGetOpsCenterObservationConfigRest_2_0.js +3 -0
  40. package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +4 -0
  41. package/build/shared/interfaces/restAPI/opsCenter/observationConfig/IPatchOpsCenterObservationConfigRest_2_0.js +3 -0
  42. package/build/shared/interfaces/restAPI/opsCenter/observationConfig/ISetupOpsCenterObservationConfigRest_2_0.js +3 -0
  43. package/build/shared/interfaces/security/IIdentityProvider.js +1 -0
  44. package/dist/esm/RestAPIClient.js +7 -0
  45. package/dist/esm/apigroups/AIOpsCenterAPIGroup_2_0.js +18 -0
  46. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +8 -8
  47. package/dist/esm/apigroups/index.js +1 -0
  48. package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/knowledgeAssistTemplate.js +0 -44
  49. package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage0.js +0 -45
  50. package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stage1.js +0 -43
  51. package/dist/esm/shared/charts/descriptors/agentAssist/htmlTemplates/secureForms/stageError.js +0 -45
  52. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +4 -1
  53. package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/mistralProviderConnection.js +8 -0
  54. package/dist/esm/shared/charts/descriptors/index.js +3 -1
  55. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +12 -3
  56. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +18 -8
  57. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +185 -63
  58. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +178 -0
  59. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobMCPTool.js +193 -0
  60. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentToolAnswer.js +5 -1
  61. package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
  62. package/dist/esm/shared/charts/descriptors/voice/mappers/hangup.mapper.js +9 -8
  63. package/dist/esm/shared/charts/descriptors/voice/nodes/hangup.js +1 -1
  64. package/dist/esm/shared/charts/descriptors/voicegateway/nodes/hangup.js +1 -1
  65. package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/hangup.js +24 -2
  66. package/dist/esm/shared/interfaces/amqpInterface.js +3 -0
  67. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +9 -1
  68. package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +9 -0
  69. package/dist/esm/shared/interfaces/restAPI/opsCenter/alerts/IIndexOpsCenterAlertsRest_2_0.js +2 -0
  70. package/dist/esm/shared/interfaces/restAPI/opsCenter/alerts/IOpsCenterAlert.js +2 -0
  71. package/dist/esm/shared/interfaces/restAPI/opsCenter/component/IOpsCenterComponents.js +31 -0
  72. package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IDeleteOpsCenterErrorRest_2_0.js +2 -0
  73. package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IGetOpsCenterErrorRest_2_0.js +2 -0
  74. package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IIndexOpsCenterErrorsRest_2_0.js +2 -0
  75. package/dist/esm/shared/interfaces/restAPI/opsCenter/errors/IOpsCenterError.js +2 -0
  76. package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetrics.js +2 -0
  77. package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsConfigRest_2_0.js +2 -0
  78. package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRangeRest_2_0.js +2 -0
  79. package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IGetOpsCenterMetricsRest_2_0.js +2 -0
  80. package/dist/esm/shared/interfaces/restAPI/opsCenter/metrics/IOpsCenterMetricsConfig.js +5 -0
  81. package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IGetOpsCenterObservationConfigRest_2_0.js +2 -0
  82. package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IOpsCenterObservationConfig.js +3 -0
  83. package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/IPatchOpsCenterObservationConfigRest_2_0.js +2 -0
  84. package/dist/esm/shared/interfaces/restAPI/opsCenter/observationConfig/ISetupOpsCenterObservationConfigRest_2_0.js +2 -0
  85. package/dist/esm/shared/interfaces/security/IIdentityProvider.js +1 -0
  86. package/package.json +1 -1
  87. package/types/index.d.ts +309 -3
@@ -0,0 +1,193 @@
1
+ /* Custom modules */
2
+ import { createNodeDescriptor } from "../../../createNodeDescriptor";
3
+ export const AI_AGENT_JOB_MCP_TOOL = createNodeDescriptor({
4
+ type: "aiAgentJobMCPTool",
5
+ defaultLabel: "MCP Tool",
6
+ summary: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__SUMMARY",
7
+ parentType: "aiAgentJob",
8
+ constraints: {
9
+ editable: true,
10
+ deletable: true,
11
+ collapsable: true,
12
+ creatable: true,
13
+ movable: true,
14
+ placement: {
15
+ predecessor: {
16
+ whitelist: [],
17
+ },
18
+ },
19
+ childFlowCreatable: false,
20
+ },
21
+ preview: {
22
+ type: "text",
23
+ key: "name",
24
+ },
25
+ fields: [
26
+ {
27
+ type: "description",
28
+ key: "cachingWarning",
29
+ label: " ",
30
+ params: {
31
+ text: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__CACHING_WARNING__TEXT",
32
+ },
33
+ condition: {
34
+ key: "cacheTools",
35
+ value: false,
36
+ }
37
+ },
38
+ {
39
+ key: "name",
40
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__NAME__LABEL",
41
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__NAME__DESCRIPTION",
42
+ type: "cognigyText",
43
+ params: {
44
+ required: true,
45
+ rows: 1,
46
+ multiline: false,
47
+ maxLength: 64,
48
+ },
49
+ },
50
+ {
51
+ type: "description",
52
+ key: "mcpWarning",
53
+ label: " ",
54
+ params: {
55
+ text: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__MCP_WARNING__TEXT",
56
+ },
57
+ },
58
+ {
59
+ key: "mcpServerUrl",
60
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__MCP_SERVER_SSE_URL__LABEL",
61
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__MCP_SERVER_SSE_URL__DESCRIPTION",
62
+ type: "cognigyText",
63
+ params: {
64
+ required: true,
65
+ rows: 5,
66
+ multiline: true,
67
+ },
68
+ },
69
+ {
70
+ key: "timeout",
71
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TIMEOUT__LABEL",
72
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TIMEOUT__DESCRIPTION",
73
+ type: "slider",
74
+ defaultValue: 12,
75
+ params: {
76
+ min: 1,
77
+ max: 30,
78
+ step: 1,
79
+ },
80
+ },
81
+ {
82
+ key: "debugMessageFetchedTools",
83
+ type: "toggle",
84
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_TOOLS__LABEL",
85
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_TOOLS__DESCRIPTION",
86
+ defaultValue: true,
87
+ },
88
+ {
89
+ key: "debugMessageParameters",
90
+ type: "toggle",
91
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__LABEL",
92
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__DESCRIPTION",
93
+ defaultValue: false,
94
+ condition: {
95
+ key: "debugMessageFetchedTools",
96
+ value: true,
97
+ },
98
+ },
99
+ {
100
+ key: "debugMessage",
101
+ type: "toggle",
102
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__LABEL",
103
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__DESCRIPTION",
104
+ defaultValue: true,
105
+ },
106
+ {
107
+ key: "cacheTools",
108
+ type: "toggle",
109
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__CACHE_TOOLS__LABEL",
110
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__CACHE_TOOLS__DESCRIPTION",
111
+ defaultValue: true,
112
+ },
113
+ {
114
+ key: "condition",
115
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_TOOL__FIELDS__CONDITION__LABEL",
116
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_TOOL__FIELDS__CONDITION__DESCRIPTION",
117
+ type: "cognigyText",
118
+ defaultValue: "",
119
+ },
120
+ {
121
+ key: "toolFilter",
122
+ type: "select",
123
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__LABEL",
124
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__DESCRIPTION",
125
+ defaultValue: "none",
126
+ params: {
127
+ options: [
128
+ {
129
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__NONE__LABEL",
130
+ value: "none",
131
+ },
132
+ {
133
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__WHITELIST__LABEL",
134
+ value: "whitelist",
135
+ },
136
+ {
137
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__BLACKLIST__LABEL",
138
+ value: "blacklist",
139
+ },
140
+ ],
141
+ },
142
+ },
143
+ {
144
+ key: "whitelist",
145
+ type: "cognigyTextArray",
146
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__WHITELIST__LABEL",
147
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__WHITELIST__DESCRIPTION",
148
+ condition: {
149
+ key: "toolFilter",
150
+ value: "whitelist",
151
+ },
152
+ },
153
+ {
154
+ key: "blacklist",
155
+ type: "cognigyTextArray",
156
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__BLACKLIST__LABEL",
157
+ description: "UI__NODE_EDITOR__SERVICE__AI_AGENT_MCP_TOOL__FIELDS__BLACKLIST__DESCRIPTION",
158
+ condition: {
159
+ key: "toolFilter",
160
+ value: "blacklist",
161
+ },
162
+ },
163
+ ],
164
+ sections: [
165
+ {
166
+ key: "debugging",
167
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__DEBUG_SETTINGS__LABEL",
168
+ defaultCollapsed: true,
169
+ fields: ["debugMessageFetchedTools", "debugMessageParameters", "debugMessage"],
170
+ },
171
+ {
172
+ key: "advanced",
173
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__ADVANCED__LABEL",
174
+ defaultCollapsed: true,
175
+ fields: ["cacheTools", "condition", "toolFilter", "whitelist", "blacklist"],
176
+ },
177
+ ],
178
+ form: [
179
+ { type: "field", key: "cachingWarning" },
180
+ { type: "field", key: "name" },
181
+ { type: "field", key: "mcpWarning" },
182
+ { type: "field", key: "mcpServerUrl" },
183
+ { type: "field", key: "timeout" },
184
+ { type: "section", key: "debugging" },
185
+ { type: "section", key: "advanced" },
186
+ ],
187
+ appearance: {
188
+ color: "white",
189
+ textColor: "#252525",
190
+ variant: "mini",
191
+ },
192
+ });
193
+ //# sourceMappingURL=aiAgentJobMCPTool.js.map
@@ -56,7 +56,7 @@ export const AI_AGENT_TOOL_ANSWER = createNodeDescriptor({
56
56
  },
57
57
  tags: ["ai", "aiAgent"],
58
58
  function: ({ cognigy, config, nodeId: thisNodeId }) => __awaiter(void 0, void 0, void 0, function* () {
59
- var _a, _b, _c, _d, _e;
59
+ var _a, _b, _c, _d, _e, _f;
60
60
  const { api, context } = cognigy;
61
61
  const { answer, debugToolAnswer, } = config;
62
62
  const sessionState = yield api.loadSessionState();
@@ -88,6 +88,7 @@ export const AI_AGENT_TOOL_ANSWER = createNodeDescriptor({
88
88
  source: "system",
89
89
  payload: {
90
90
  toolCallId: toolCall.id,
91
+ name: toolCall.function.name,
91
92
  content: answer,
92
93
  }
93
94
  };
@@ -108,6 +109,9 @@ export const AI_AGENT_TOOL_ANSWER = createNodeDescriptor({
108
109
  absorbContext: true,
109
110
  });
110
111
  }
112
+ else if (!answer) {
113
+ (_f = api.logDebugError) === null || _f === void 0 ? void 0 : _f.call(api, "UI__DEBUG_MODE__AI_AGENT_ANSWER__MISSING_ANSWER");
114
+ }
111
115
  }
112
116
  else {
113
117
  throw new Error("Infinite Loop Detected");
@@ -19,7 +19,9 @@ export { LLM_ENTITY_EXTRACT } from "./LLMEntityExtract";
19
19
  export { AI_AGENT_JOB } from "./aiAgent/aiAgentJob";
20
20
  export { AI_AGENT_JOB_DEFAULT } from "./aiAgent/aiAgentJobDefault";
21
21
  export { AI_AGENT_JOB_TOOL } from "./aiAgent/aiAgentJobTool";
22
+ export { AI_AGENT_JOB_MCP_TOOL } from "./aiAgent/aiAgentJobMCPTool";
22
23
  export { AI_AGENT_TOOL_ANSWER } from "./aiAgent/aiAgentToolAnswer";
23
24
  export { AI_AGENT_HANDOVER } from "./aiAgent/aiAgentHandover";
25
+ export { AI_AGENT_JOB_CALL_MCP_TOOL } from "./aiAgent/aiAgentJobCallMCPTool";
24
26
  export { LIVE_AGENT_CONNECTION, RINGCENTRAL_ENGAGE_CONNECTION, CHATWOOT_CONNECTION, EIGHT_BY_EIGHT_CONNECTION, GENESYS_CLOUD_CONNECTION, GENESYS_CLOUD_CONNECTION_OM } from "./handoverConnections";
25
27
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  export const hangUp = {
2
- handleInput(endpointType, hangUpReason) {
2
+ handleInput(endpointType, hangUpReason, hangupImmediately) {
3
3
  switch (endpointType) {
4
4
  case "bandwidth":
5
5
  return this.handleBandwidthInput(hangUpReason);
@@ -7,23 +7,24 @@ export const hangUp = {
7
7
  return this.handleAudioCodesInput(hangUpReason);
8
8
  case "voiceGateway2":
9
9
  default:
10
- return this.handleVGInput(hangUpReason);
10
+ return this.handleVGInput(hangupImmediately, hangUpReason);
11
11
  }
12
12
  },
13
- handleVGInput(hangUpReason) {
13
+ handleVGInput(hangupImmediately, hangUpReason) {
14
14
  const payload = {
15
15
  _voiceGateway2: {
16
16
  json: {
17
- hangup: {}
17
+ hangup: {
18
+ headers: {},
19
+ hangupImmediately
20
+ }
18
21
  }
19
22
  }
20
23
  };
21
24
  if (hangUpReason) {
22
- payload._voiceGateway2.json.hangup = {
23
- headers: {
25
+ payload._voiceGateway2.json.hangup = Object.assign(Object.assign({}, payload._voiceGateway2.json.hangup), { headers: {
24
26
  "X-Reason": hangUpReason
25
- }
26
- };
27
+ } });
27
28
  }
28
29
  return payload;
29
30
  },
@@ -32,7 +32,7 @@ export const HANG_UP = createNodeDescriptor({
32
32
  const { hangupReason } = config;
33
33
  const { endpointType } = input;
34
34
  try {
35
- const payload = hangUp.handleInput(endpointType, hangupReason);
35
+ const payload = hangUp.handleInput(endpointType, hangupReason, false);
36
36
  yield api.say(null, {
37
37
  _cognigy: payload
38
38
  });
@@ -35,7 +35,7 @@ export const hangupNode = createNodeDescriptor({
35
35
  const { hangupReason } = config;
36
36
  try {
37
37
  const { isFeatureAccmEnabled } = api.getEndpointSettings();
38
- const payload = isFeatureAccmEnabled ? buildPayloadAccm("hangup", config, nodeId) : hangUp.handleInput("audioCodes", hangupReason);
38
+ const payload = isFeatureAccmEnabled ? buildPayloadAccm("hangup", config, nodeId) : hangUp.handleInput("audioCodes", hangupReason, false);
39
39
  yield api.say(null, {
40
40
  _cognigy: payload
41
41
  });
@@ -25,13 +25,35 @@ export const hangupNode = createNodeDescriptor({
25
25
  params: {
26
26
  required: true
27
27
  }
28
+ },
29
+ {
30
+ key: "hangupImmediately",
31
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__HANGUP__FIELDS__HANGUP_IMMEDIATELY__LABEL",
32
+ description: "UI__NODE_EDITOR__VOICEGATEWAY2__HANGUP__FIELDS__HANGUP_IMMEDIATELY__DESCRIPTION",
33
+ type: "toggle",
34
+ defaultValue: false,
35
+ params: {
36
+ required: true
37
+ }
28
38
  }
29
39
  ],
40
+ sections: [
41
+ {
42
+ key: "advanced",
43
+ label: "UI__NODE_EDITOR__VOICEGATEWAY2__SECTIONS__ADVANCED__LABEL",
44
+ defaultCollapsed: true,
45
+ fields: ["hangupImmediately"]
46
+ },
47
+ ],
48
+ form: [
49
+ { "type": "field", "key": "hangupReason" },
50
+ { "type": "section", "key": "advanced" },
51
+ ],
30
52
  function: ({ cognigy, config }) => __awaiter(void 0, void 0, void 0, function* () {
31
53
  const { api } = cognigy;
32
- const { hangupReason } = config;
54
+ const { hangupReason, hangupImmediately } = config;
33
55
  try {
34
- const payload = hangUp.handleInput("voiceGateway2", hangupReason);
56
+ const payload = hangUp.handleInput("voiceGateway2", hangupReason, hangupImmediately);
35
57
  yield api.say(null, {
36
58
  _cognigy: payload
37
59
  });
@@ -82,6 +82,9 @@ export const executeRpcInternalParamsSchema = {
82
82
  priority: {
83
83
  type: "number",
84
84
  },
85
+ withMessageSize: {
86
+ type: "boolean",
87
+ },
85
88
  },
86
89
  };
87
90
  //# sourceMappingURL=amqpInterface.js.map
@@ -27,11 +27,17 @@ export const generativeAIModels = [
27
27
  "gemini-1.0-pro",
28
28
  "gemini-1.5-pro",
29
29
  "gemini-1.5-flash",
30
+ "gemini-2.0-flash",
31
+ "gemini-2.0-flash-lite",
30
32
  "amazon.nova-lite-v1:0",
31
33
  "amazon.nova-pro-v1:0",
32
34
  "amazon.nova-micro-v1:0",
33
35
  "anthropic.claude-3-5-sonnet-20240620-v1:0",
34
36
  "claude-3-7-sonnet-20250219",
37
+ "mistral-large-2411",
38
+ "mistral-small-2503",
39
+ "pixtral-large-2411",
40
+ "pixtral-12b-2409",
35
41
  ...embeddingModels,
36
42
  ];
37
43
  export const generativeAIProviders = [
@@ -42,7 +48,8 @@ export const generativeAIProviders = [
42
48
  "anthropic",
43
49
  "googleVertexAI",
44
50
  "googleGemini",
45
- "awsBedrock", // Bedrock models https://aws.amazon.com/bedrock/
51
+ "awsBedrock",
52
+ "mistral", // Mistral models https://docs.mistral.ai/getting-started/models/models_overview/
46
53
  ];
47
54
  export const generativeAIProvidersLabels = {
48
55
  "azureOpenAI": "Azure OpenAI",
@@ -53,6 +60,7 @@ export const generativeAIProvidersLabels = {
53
60
  "googleVertexAI": "Google Vertex AI",
54
61
  "googleGemini": "Google Gemini",
55
62
  "awsBedrock": "AWS Bedrock",
63
+ "mistral": "Mistral",
56
64
  };
57
65
  /**
58
66
  * WARNING: If you update the generativeAI useCases, please update the generativeAI
@@ -11,6 +11,14 @@ export const anthropicMetaSchema = {
11
11
  customModel: { type: ["string", "null"] }
12
12
  }
13
13
  };
14
+ export const mistralMetaSchema = {
15
+ title: "mistralMetaSchema",
16
+ type: "object",
17
+ additionalProperties: false,
18
+ properties: {
19
+ customModel: { type: ["string", "null"] }
20
+ }
21
+ };
14
22
  export const awsBedrockMetaSchema = {
15
23
  title: "awsBedrockMetaSchema",
16
24
  type: "object",
@@ -129,6 +137,7 @@ export const largeLanguageModelDataSchema = {
129
137
  googleGemini: googleGeminiMetaSchema,
130
138
  alephAlpha: alephAlphaMetaSchema,
131
139
  anthropic: anthropicMetaSchema,
140
+ mistral: mistralMetaSchema,
132
141
  awsBedrock: awsBedrockMetaSchema,
133
142
  fallbacks: llmFallbackSchema,
134
143
  resourceLevel: { type: "string", enum: ["organisation", "project"] },
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIndexOpsCenterAlertsRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IOpsCenterAlert.js.map
@@ -0,0 +1,31 @@
1
+ // This is a copy of the Component in the service-sentinel/opsCenter
2
+ export const arrayOfTMainComponent = ["VoiceGateway", "Endpoint", "Flow", "HandoverProvider"];
3
+ /**
4
+ * Each main component has a set of subcomponents and Errors and Alerts
5
+ * are also tagged with a respective subcomponents.
6
+ */
7
+ export const arrayOfTVoiceGatewaySubComponent = ["SpeechToText", "TextToSpeech"];
8
+ export const arrayOfTEndpointSubComponent = [
9
+ "InputTransformer",
10
+ "OutputTransformer",
11
+ "ExecutionFinishedTransformer",
12
+ "InjectTransformer",
13
+ "NotifyTransformer",
14
+ "RealtimeTranslation",
15
+ "MessageRoundtrip",
16
+ ];
17
+ export const arrayOfTFlowSubComponent = [
18
+ "FlowNodeExecution",
19
+ "NaturalLanguageUnderstanding",
20
+ "OutboundHTTPCalls",
21
+ "LargeLanguageModelCalls",
22
+ "KnowledgeAIQueries",
23
+ ];
24
+ export const arrayOfTHandoverProviderSubComponent = ["OutboundHTTPCalls"];
25
+ export const arrayOfTSubComponent = [
26
+ ...arrayOfTVoiceGatewaySubComponent,
27
+ ...arrayOfTEndpointSubComponent,
28
+ ...arrayOfTFlowSubComponent,
29
+ ...arrayOfTHandoverProviderSubComponent,
30
+ ];
31
+ //# sourceMappingURL=IOpsCenterComponents.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IDeleteOpsCenterErrorRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetOpsCenterErrorRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IIndexOpsCenterErrorsRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IOpsCenterError.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetOpsCenterMetrics.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetOpsCenterMetricsConfigRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetOpsCenterMetricsRangeRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetOpsCenterMetricsRest_2_0.js.map
@@ -0,0 +1,5 @@
1
+ const chartTypes = ["bar-chart", "heat-map", "line-chart", "alerts-errors", "health-status-monitor"];
2
+ const segmentConfigArray = ["voice-gateway", "endpoints", "flows", "overview", "handover-provider"];
3
+ const availableColorsArray = ["default", "blue", "yellow", "green", "purple", "red"];
4
+ export {};
5
+ //# sourceMappingURL=IOpsCenterMetricsConfig.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetOpsCenterObservationConfigRest_2_0.js.map
@@ -0,0 +1,3 @@
1
+ const notificationChannels = ["email"];
2
+ export {};
3
+ //# sourceMappingURL=IOpsCenterObservationConfig.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IPatchOpsCenterObservationConfigRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ISetupOpsCenterObservationConfigRest_2_0.js.map
@@ -22,6 +22,7 @@ export const samlIdentityProviderDataSchema = {
22
22
  idpLoginEndpoint: { type: "string", minLength: 1, maxLength: 5000 },
23
23
  idpLogoutEndpoint: { type: "string", minLength: 1, maxLength: 5000 },
24
24
  idpCertificate: { type: "string", minLength: 1, maxLength: 15000 },
25
+ wantAuthnResponseSigned: { type: "boolean" },
25
26
  decryptionPrivateKey: { type: "string", minLength: 1, maxLength: 15000 },
26
27
  idpDisableRequestedAuthnContext: { type: "boolean" },
27
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognigy/rest-api-client",
3
- "version": "4.98.0",
3
+ "version": "4.99.0",
4
4
  "description": "Cognigy REST-Client",
5
5
  "main": "build/index.js",
6
6
  "module": "dist/esm/index.js",