@cognigy/rest-api-client 2025.12.0 → 2025.14.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 (75) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/apigroups/ResourcesAPIGroup_2_0.js +8 -1
  3. package/build/apigroups/SimulationAPIGroup_2_0.js +4 -1
  4. package/build/shared/charts/descriptors/analytics/trackGoal.js +3 -1
  5. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +7 -1
  6. package/build/shared/charts/descriptors/index.js +5 -0
  7. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +10 -6
  8. package/build/shared/charts/descriptors/message/question/question.js +12 -1
  9. package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +11 -3
  10. package/build/shared/charts/descriptors/service/GPTPrompt.js +21 -1
  11. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +71 -175
  12. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +2 -2
  13. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +175 -0
  14. package/build/shared/charts/descriptors/service/aiAgent/loadAiAgent.js +194 -0
  15. package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
  16. package/build/shared/charts/descriptors/service/index.js +11 -1
  17. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +959 -0
  18. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptDefault.js +31 -0
  19. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +196 -0
  20. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptTool.js +139 -0
  21. package/build/shared/constants.js +1 -5
  22. package/build/shared/interfaces/debugEvents/IGoalCompletedEventPayload.js +3 -0
  23. package/build/shared/interfaces/debugEvents/TDebugEventType.js +1 -0
  24. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +12 -1
  25. package/build/shared/interfaces/messageAPI/handover.js +6 -0
  26. package/build/shared/interfaces/resources/ISimulation.js +9 -0
  27. package/build/shared/interfaces/resources/TResourceType.js +3 -0
  28. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +2 -1
  29. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +5 -18
  30. package/build/shared/interfaces/restAPI/operations/generateOutput/v2.0/index.js +3 -0
  31. package/build/shared/interfaces/restAPI/resources/chart/v2.0/IReadFlowChartAiAgentsRest_2_0.js +3 -0
  32. package/build/shared/interfaces/restAPI/simulation/persona/IGeneratePersonaRest_2_0.js +3 -0
  33. package/build/shared/interfaces/restAPI/simulation/persona/IGetPersonaOptionsRest_2_0.js +3 -0
  34. package/build/shared/interfaces/restAPI/simulation/persona/IRegeneratePersonaFieldRest_2_0.js +3 -0
  35. package/build/shared/interfaces/security/IPermission.js +4 -0
  36. package/build/shared/interfaces/security/IRole.js +5 -1
  37. package/build/shared/interfaces/security/index.js +1 -1
  38. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +8 -1
  39. package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +4 -1
  40. package/dist/esm/shared/charts/descriptors/analytics/trackGoal.js +3 -1
  41. package/dist/esm/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +7 -1
  42. package/dist/esm/shared/charts/descriptors/index.js +6 -1
  43. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +10 -6
  44. package/dist/esm/shared/charts/descriptors/message/question/question.js +12 -1
  45. package/dist/esm/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +11 -3
  46. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +21 -1
  47. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +72 -176
  48. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +2 -2
  49. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +172 -0
  50. package/dist/esm/shared/charts/descriptors/service/aiAgent/loadAiAgent.js +192 -0
  51. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
  52. package/dist/esm/shared/charts/descriptors/service/index.js +5 -0
  53. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +946 -0
  54. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptDefault.js +28 -0
  55. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +193 -0
  56. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptTool.js +136 -0
  57. package/dist/esm/shared/constants.js +1 -5
  58. package/dist/esm/shared/interfaces/debugEvents/IGoalCompletedEventPayload.js +2 -0
  59. package/dist/esm/shared/interfaces/debugEvents/TDebugEventType.js +1 -0
  60. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +12 -1
  61. package/dist/esm/shared/interfaces/messageAPI/handover.js +6 -0
  62. package/dist/esm/shared/interfaces/resources/ISimulation.js +6 -0
  63. package/dist/esm/shared/interfaces/resources/TResourceType.js +3 -0
  64. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +2 -1
  65. package/dist/esm/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -17
  66. package/dist/esm/shared/interfaces/restAPI/operations/generateOutput/v2.0/index.js +2 -0
  67. package/dist/esm/shared/interfaces/restAPI/resources/chart/v2.0/IReadFlowChartAiAgentsRest_2_0.js +2 -0
  68. package/dist/esm/shared/interfaces/restAPI/simulation/persona/IGeneratePersonaRest_2_0.js +2 -0
  69. package/dist/esm/shared/interfaces/restAPI/simulation/persona/IGetPersonaOptionsRest_2_0.js +2 -0
  70. package/dist/esm/shared/interfaces/restAPI/simulation/persona/IRegeneratePersonaFieldRest_2_0.js +2 -0
  71. package/dist/esm/shared/interfaces/security/IPermission.js +4 -0
  72. package/dist/esm/shared/interfaces/security/IRole.js +5 -1
  73. package/dist/esm/shared/interfaces/security/index.js +1 -1
  74. package/package.json +1 -1
  75. package/types/index.d.ts +2093 -1927
@@ -0,0 +1,28 @@
1
+ /* Custom modules */
2
+ import { createNodeDescriptor } from "../../../createNodeDescriptor";
3
+ export const LLM_PROMPT_DEFAULT = createNodeDescriptor({
4
+ type: "llmPromptDefault",
5
+ defaultLabel: "Default",
6
+ parentType: "llmPromptV2",
7
+ constraints: {
8
+ editable: false,
9
+ deletable: false,
10
+ collapsable: true,
11
+ creatable: false,
12
+ movable: false,
13
+ placement: {
14
+ predecessor: {
15
+ whitelist: []
16
+ }
17
+ }
18
+ },
19
+ fields: [],
20
+ sections: [],
21
+ form: [],
22
+ appearance: {
23
+ color: "white",
24
+ textColor: "#252525",
25
+ variant: "mini",
26
+ },
27
+ });
28
+ //# sourceMappingURL=llmPromptDefault.js.map
@@ -0,0 +1,193 @@
1
+ /* Custom modules */
2
+ import { createNodeDescriptor } from "../../../createNodeDescriptor";
3
+ export const LLM_PROMPT_MCP_TOOL = createNodeDescriptor({
4
+ type: "llmPromptMCPTool",
5
+ defaultLabel: "MCP Tool",
6
+ summary: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__SUMMARY",
7
+ parentType: "llmPromptV2",
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__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__NAME__LABEL",
41
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__MCP_WARNING__TEXT",
56
+ },
57
+ },
58
+ {
59
+ key: "mcpServerUrl",
60
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__MCP_SERVER_URL__LABEL",
61
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__MCP_SERVER_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__LLM_PROMPT_MCP_TOOL__FIELDS__TIMEOUT__LABEL",
72
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_TOOLS__LABEL",
85
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_TOOLS__DESCRIPTION",
86
+ defaultValue: true,
87
+ },
88
+ {
89
+ key: "debugMessageParameters",
90
+ type: "toggle",
91
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_PARAMETERS__LABEL",
92
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__LABEL",
103
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__DEBUG_MESSAGE__DESCRIPTION",
104
+ defaultValue: true,
105
+ },
106
+ {
107
+ key: "cacheTools",
108
+ type: "toggle",
109
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__CACHE_TOOLS__LABEL",
110
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__LABEL",
124
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__DESCRIPTION",
125
+ defaultValue: "none",
126
+ params: {
127
+ options: [
128
+ {
129
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__NONE__LABEL",
130
+ value: "none",
131
+ },
132
+ {
133
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_MCP_TOOL__FIELDS__TOOL_FILTER__OPTIONS__WHITELIST__LABEL",
134
+ value: "whitelist",
135
+ },
136
+ {
137
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__WHITELIST__LABEL",
147
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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__LLM_PROMPT_MCP_TOOL__FIELDS__BLACKLIST__LABEL",
157
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_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=llmPromptMCPTool.js.map
@@ -0,0 +1,136 @@
1
+ /* Custom modules */
2
+ import { createNodeDescriptor } from "../../../createNodeDescriptor";
3
+ export const LLM_PROMPT_TOOL = createNodeDescriptor({
4
+ type: "llmPromptTool",
5
+ defaultLabel: "Tool",
6
+ parentType: "llmPromptV2",
7
+ constraints: {
8
+ editable: true,
9
+ deletable: true,
10
+ collapsable: true,
11
+ creatable: true,
12
+ movable: true,
13
+ placement: {
14
+ predecessor: {
15
+ whitelist: []
16
+ }
17
+ },
18
+ childFlowCreatable: false
19
+ },
20
+ preview: {
21
+ type: "text",
22
+ key: "toolId"
23
+ },
24
+ fields: [
25
+ {
26
+ key: "toolId",
27
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__TOOL_ID__LABEL",
28
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__TOOL_ID__DESCRIPTION",
29
+ type: "cognigyLLMText",
30
+ defaultValue: "unlock_account",
31
+ params: {
32
+ required: true,
33
+ rows: 1,
34
+ multiline: false,
35
+ maxLength: 64,
36
+ }
37
+ },
38
+ {
39
+ key: "description",
40
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__DESCRIPTION__LABEL",
41
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__DESCRIPTION__DESCRIPTION",
42
+ type: "cognigyLLMText",
43
+ defaultValue: "This tool unlocks a locked user account.",
44
+ params: {
45
+ required: true,
46
+ rows: 5,
47
+ multiline: true
48
+ }
49
+ },
50
+ {
51
+ key: "useParameters",
52
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__USE_PARAMETERS__LABEL",
53
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__USE_PARAMETERS__DESCRIPTION",
54
+ type: "toggle",
55
+ defaultValue: false
56
+ },
57
+ {
58
+ key: "parameters",
59
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__PARAMETERS__LABEL",
60
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__PARAMETERS__DESCRIPTION",
61
+ type: "toolParameters",
62
+ defaultValue: `{
63
+ "type": "object",
64
+ "properties": {
65
+ "email": {
66
+ "type": "string",
67
+ "description": "User's login email for their account."
68
+ }
69
+ },
70
+ "required": ["email"],
71
+ "additionalProperties": false
72
+ }`,
73
+ params: {
74
+ required: false,
75
+ },
76
+ },
77
+ {
78
+ key: "debugMessage",
79
+ type: "toggle",
80
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__DEBUG_MESSAGE__LABEL",
81
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__DEBUG_MESSAGE__DESCRIPTION",
82
+ defaultValue: true,
83
+ },
84
+ {
85
+ key: "condition",
86
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__CONDITION__LABEL",
87
+ description: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__FIELDS__CONDITION__DESCRIPTION",
88
+ type: "cognigyText",
89
+ defaultValue: "",
90
+ },
91
+ ],
92
+ sections: [
93
+ {
94
+ key: "parameters",
95
+ label: "UI__NODE_EDITOR__SERVICE__LLM_PROMPT_TOOL__SECTIONS__PARAMETERS__LABEL",
96
+ defaultCollapsed: true,
97
+ fields: [
98
+ "parameters",
99
+ ],
100
+ condition: {
101
+ key: "useParameters",
102
+ value: true
103
+ },
104
+ },
105
+ {
106
+ key: "debugging",
107
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__DEBUG_SETTINGS__LABEL",
108
+ defaultCollapsed: true,
109
+ fields: [
110
+ "debugMessage",
111
+ ],
112
+ },
113
+ {
114
+ key: "advanced",
115
+ label: "UI__NODE_EDITOR__SERVICE__AI_AGENT_JOB__SECTIONS__ADVANCED__LABEL",
116
+ defaultCollapsed: true,
117
+ fields: [
118
+ "condition",
119
+ ],
120
+ },
121
+ ],
122
+ form: [
123
+ { type: "field", key: "toolId" },
124
+ { type: "field", key: "description" },
125
+ { type: "field", key: "useParameters" },
126
+ { type: "section", key: "parameters" },
127
+ { type: "section", key: "debugging" },
128
+ { type: "section", key: "advanced" },
129
+ ],
130
+ appearance: {
131
+ color: "white",
132
+ textColor: "#252525",
133
+ variant: "mini",
134
+ },
135
+ });
136
+ //# sourceMappingURL=llmPromptTool.js.map
@@ -51,17 +51,13 @@ export const IP_NOT_AVAILABLE = "not available";
51
51
  export const SECONDS_PER_MINUTE = 60;
52
52
  // Platform provided LLM
53
53
  export const PLATFORM_PROVIDED_LLM_USE_CASES = [
54
- "intentSentenceGeneration",
55
- "flowGeneration",
56
- "lexiconGeneration",
57
- "generateNodeOutput",
58
54
  "designTimeGeneration",
59
55
  ];
60
56
  export const DEPRECATED_GENAI_USE_CASES = [
61
57
  "intentSentenceGeneration",
62
58
  "flowGeneration",
63
- "lexiconGeneration",
64
59
  "generateNodeOutput",
60
+ "lexiconGeneration",
65
61
  ];
66
62
  export const PLATFORM_PROVIDED_LLM_ID = "aaaaaaaa-aaaa-aaaa-aaaa-000000000000";
67
63
  export const PLATFORM_PROVIDED_LLM_CONNECTION_ID = "aaaaaaaa-aaaa-aaaa-aaaa-000000000001";
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGoalCompletedEventPayload.js.map
@@ -12,5 +12,6 @@ export const arrayTDebugEventTypes = [
12
12
  "nluWarning",
13
13
  "debugMessage",
14
14
  "debugError",
15
+ "goalCompleted",
15
16
  ];
16
17
  //# sourceMappingURL=TDebugEventType.js.map
@@ -16,6 +16,9 @@ export const generativeAIModels = [
16
16
  "gpt-4",
17
17
  "gpt-4o",
18
18
  "gpt-4o-mini",
19
+ "gpt-4.1",
20
+ "gpt-4.1-mini",
21
+ "gpt-4.1-nano",
19
22
  "luminous-extended-control",
20
23
  "claude-v1-100k",
21
24
  "claude-instant-v1",
@@ -23,6 +26,11 @@ export const generativeAIModels = [
23
26
  "claude-3-haiku-20240307",
24
27
  "claude-3-sonnet-20240229",
25
28
  "claude-3-5-sonnet-20241022",
29
+ "claude-3-7-sonnet-20250219",
30
+ "claude-3-5-sonnet-latest",
31
+ "claude-3-7-sonnet-latest",
32
+ "claude-opus-4-0",
33
+ "claude-sonnet-4-0",
26
34
  "text-bison@001",
27
35
  "custom-model",
28
36
  "gemini-1.0-pro",
@@ -34,11 +42,14 @@ export const generativeAIModels = [
34
42
  "amazon.nova-pro-v1:0",
35
43
  "amazon.nova-micro-v1:0",
36
44
  "anthropic.claude-3-5-sonnet-20240620-v1:0",
37
- "claude-3-7-sonnet-20250219",
38
45
  "mistral-large-2411",
39
46
  "mistral-small-2503",
40
47
  "pixtral-large-2411",
41
48
  "pixtral-12b-2409",
49
+ "mistral-large-latest",
50
+ "pixtral-large-latest",
51
+ "mistral-medium-latest",
52
+ "mistral-small-latest",
42
53
  ...embeddingModels,
43
54
  ];
44
55
  export const generativeAIProviders = [
@@ -33,6 +33,9 @@ export const createHandoverRequestDataSchema = {
33
33
  "type": "string",
34
34
  "format": "mongo-id",
35
35
  },
36
+ "locale": {
37
+ "type": "string",
38
+ },
36
39
  "userId": {
37
40
  "type": "string"
38
41
  },
@@ -195,6 +198,9 @@ export const sendMessageToProviderSchema = {
195
198
  "type": "string",
196
199
  "format": "mongo-id",
197
200
  },
201
+ "locale": {
202
+ "type": "string",
203
+ },
198
204
  "userId": {
199
205
  "type": "string"
200
206
  },
@@ -0,0 +1,6 @@
1
+ export var SuccessCriterionType;
2
+ (function (SuccessCriterionType) {
3
+ SuccessCriterionType["TEXT"] = "text";
4
+ SuccessCriterionType["GOAL_COMPLETED"] = "goalCompleted";
5
+ })(SuccessCriterionType || (SuccessCriterionType = {}));
6
+ //# sourceMappingURL=ISimulation.js.map
@@ -118,6 +118,7 @@ export const arrayTSnapshottableResourceType = [
118
118
  "playbook",
119
119
  "slotFiller",
120
120
  "snippet",
121
+ "simulation",
121
122
  ];
122
123
  export const arrayTChartableResourceType = ["flow"];
123
124
  export const resourceTypes = [...arrayTResourceType];
@@ -174,6 +175,7 @@ export const packageableResourceTypes = [
174
175
  "nluconnector",
175
176
  "playbook",
176
177
  "snippet",
178
+ "simulation",
177
179
  ];
178
180
  export const primaryResourceTypes = [
179
181
  "aiAgent",
@@ -191,6 +193,7 @@ export const primaryResourceTypes = [
191
193
  "playbook",
192
194
  "snippet",
193
195
  "handoverProvider",
196
+ "simulation",
194
197
  ];
195
198
  export const pinnableResourceTypes = [
196
199
  "project"
@@ -9,7 +9,8 @@ export const knowledgeChunkDataSchema = {
9
9
  order: { type: "number" },
10
10
  text: {
11
11
  type: "string",
12
- minLength: 0,
12
+ minLength: 1,
13
+ pattern: "\\S",
13
14
  maxLength: parseInt(process.env.MAX_CHUNK_SIZE, 10) || 2000,
14
15
  },
15
16
  embedding: {
@@ -1,3 +1,6 @@
1
+ import { generativeAIUseCases } from "../../generativeAI/IGenerativeAIModels";
2
+ import { DEPRECATED_GENAI_USE_CASES } from "../../../constants";
3
+ export const configurableGenerativeAIUseCases = generativeAIUseCases.filter((useCase) => !DEPRECATED_GENAI_USE_CASES.includes(useCase));
1
4
  export const generativeAIUseCaseDataSchema = {
2
5
  title: "generativeAIMetaAzureOpenAIDataSchema",
3
6
  type: "object",
@@ -31,22 +34,10 @@ export const generativeAISettingsDataSchema = {
31
34
  type: "object",
32
35
  properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
33
36
  },
34
- intentSentenceGeneration: {
35
- type: "object",
36
- properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
37
- },
38
37
  aiEnhancedOutputs: {
39
38
  type: "object",
40
39
  properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
41
40
  },
42
- lexiconGeneration: {
43
- type: "object",
44
- properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
45
- },
46
- flowGeneration: {
47
- type: "object",
48
- properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
49
- },
50
41
  gptConversation: {
51
42
  type: "object",
52
43
  properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
@@ -55,10 +46,6 @@ export const generativeAISettingsDataSchema = {
55
46
  type: "object",
56
47
  properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
57
48
  },
58
- generateNodeOutput: {
59
- type: "object",
60
- properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
61
- },
62
49
  knowledgeSearch: {
63
50
  type: "object",
64
51
  properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
@@ -78,7 +65,7 @@ export const generativeAISettingsDataSchema = {
78
65
  aiAgent: {
79
66
  type: "object",
80
67
  properties: Object.assign({}, generativeAIUseCaseDataSchema.properties)
81
- },
68
+ }
82
69
  }
83
70
  }
84
71
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IReadFlowChartAiAgentsRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGeneratePersonaRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IGetPersonaOptionsRest_2_0.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IRegeneratePersonaFieldRest_2_0.js.map
@@ -14,6 +14,7 @@
14
14
  * - userDetails
15
15
  * - users
16
16
  * - voiceGatewayAccount
17
+ * - opsCenter
17
18
  */
18
19
  export const organisationWidePermissions = [
19
20
  "analyticsOdata",
@@ -25,6 +26,7 @@ export const organisationWidePermissions = [
25
26
  "userDetails",
26
27
  "users",
27
28
  "voiceGatewayAccount",
29
+ "opsCenter",
28
30
  ];
29
31
  /**
30
32
  * @openapi
@@ -71,6 +73,7 @@ export const organisationWidePermissions = [
71
73
  * - functions
72
74
  * - yesNoIntents
73
75
  * - dataPrivacySettings
76
+ * - simulator
74
77
  */
75
78
  export const projectWidePermissions = [
76
79
  "agentAssistConfigs",
@@ -110,6 +113,7 @@ export const projectWidePermissions = [
110
113
  "tokens",
111
114
  "yesNoIntents",
112
115
  "dataPrivacySettings",
116
+ "simulator"
113
117
  ];
114
118
  export const availablePermissions = [
115
119
  ...organisationWidePermissions,
@@ -20,6 +20,7 @@
20
20
  * - userManager
21
21
  * - userDetailsViewer
22
22
  * - voiceGatewayUser
23
+ * - opsCenterUser
23
24
  */
24
25
  export const organisationWideRoles = [
25
26
  "admin",
@@ -37,6 +38,7 @@ export const organisationWideRoles = [
37
38
  "userManager",
38
39
  "userDetailsViewer",
39
40
  "voiceGatewayUser",
41
+ "opsCenterUser",
40
42
  ];
41
43
  /**
42
44
  * @openapi
@@ -85,6 +87,7 @@ export const organisationWideRoles = [
85
87
  * - tokenEditor
86
88
  * - function_admin
87
89
  * - function_editor
90
+ * - simulator_admin
88
91
  */
89
92
  export const projectWideRoles = [
90
93
  "agentAssistConfigAdmin",
@@ -126,7 +129,8 @@ export const projectWideRoles = [
126
129
  "tokenEditor",
127
130
  "data_privacy_admin",
128
131
  "data_privacy_editor",
129
- "data_privacy_viewer"
132
+ "data_privacy_viewer",
133
+ "simulator_admin"
130
134
  ];
131
135
  export const availableRoles = [
132
136
  ...organisationWideRoles,
@@ -1,4 +1,4 @@
1
- export const COMPUTED_ACL_HASH_VERSION = "v19";
1
+ export const COMPUTED_ACL_HASH_VERSION = "v21";
2
2
  export { availablePermissions, } from "./IPermission";
3
3
  export { organisationWideRoles, projectWideRoles, availableRoles, } from "./IRole";
4
4
  export { operations, } from "./IOperation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cognigy/rest-api-client",
3
- "version": "2025.12.0",
3
+ "version": "2025.14.0",
4
4
  "description": "Cognigy REST-Client",
5
5
  "main": "build/index.js",
6
6
  "module": "dist/esm/index.js",