@cognigy/rest-api-client 2025.12.0 → 2025.13.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 (55) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/build/apigroups/ResourcesAPIGroup_2_0.js +4 -0
  3. package/build/shared/charts/descriptors/analytics/trackGoal.js +3 -1
  4. package/build/shared/charts/descriptors/index.js +5 -0
  5. package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +4 -2
  6. package/build/shared/charts/descriptors/message/question/question.js +12 -1
  7. package/build/shared/charts/descriptors/service/GPTPrompt.js +15 -1
  8. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +32 -173
  9. package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +2 -2
  10. package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +175 -0
  11. package/build/shared/charts/descriptors/service/aiAgent/loadAiAgent.js +194 -0
  12. package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
  13. package/build/shared/charts/descriptors/service/index.js +11 -1
  14. package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +922 -0
  15. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptDefault.js +31 -0
  16. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +196 -0
  17. package/build/shared/charts/descriptors/service/llmPrompt/llmPromptTool.js +139 -0
  18. package/build/shared/constants.js +1 -5
  19. package/build/shared/interfaces/debugEvents/IGoalCompletedEventPayload.js +3 -0
  20. package/build/shared/interfaces/debugEvents/TDebugEventType.js +1 -0
  21. package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +12 -1
  22. package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +2 -1
  23. package/build/shared/interfaces/resources/settings/IGenerativeAISettings.js +5 -18
  24. package/build/shared/interfaces/restAPI/operations/generateOutput/v2.0/index.js +3 -0
  25. package/build/shared/interfaces/security/IPermission.js +2 -0
  26. package/build/shared/interfaces/security/IRole.js +3 -1
  27. package/build/shared/interfaces/security/index.js +1 -1
  28. package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +4 -0
  29. package/dist/esm/shared/charts/descriptors/analytics/trackGoal.js +3 -1
  30. package/dist/esm/shared/charts/descriptors/index.js +6 -1
  31. package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +4 -2
  32. package/dist/esm/shared/charts/descriptors/message/question/question.js +12 -1
  33. package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +15 -1
  34. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +33 -174
  35. package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobTool.js +2 -2
  36. package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +172 -0
  37. package/dist/esm/shared/charts/descriptors/service/aiAgent/loadAiAgent.js +192 -0
  38. package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
  39. package/dist/esm/shared/charts/descriptors/service/index.js +5 -0
  40. package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +909 -0
  41. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptDefault.js +28 -0
  42. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptMCPTool.js +193 -0
  43. package/dist/esm/shared/charts/descriptors/service/llmPrompt/llmPromptTool.js +136 -0
  44. package/dist/esm/shared/constants.js +1 -5
  45. package/dist/esm/shared/interfaces/debugEvents/IGoalCompletedEventPayload.js +2 -0
  46. package/dist/esm/shared/interfaces/debugEvents/TDebugEventType.js +1 -0
  47. package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +12 -1
  48. package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeChunk.js +2 -1
  49. package/dist/esm/shared/interfaces/resources/settings/IGenerativeAISettings.js +4 -17
  50. package/dist/esm/shared/interfaces/restAPI/operations/generateOutput/v2.0/index.js +2 -0
  51. package/dist/esm/shared/interfaces/security/IPermission.js +2 -0
  52. package/dist/esm/shared/interfaces/security/IRole.js +3 -1
  53. package/dist/esm/shared/interfaces/security/index.js +1 -1
  54. package/package.json +1 -1
  55. package/types/index.d.ts +83 -42
@@ -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 = [
@@ -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
@@ -71,6 +71,7 @@ export const organisationWidePermissions = [
71
71
  * - functions
72
72
  * - yesNoIntents
73
73
  * - dataPrivacySettings
74
+ * - simulator
74
75
  */
75
76
  export const projectWidePermissions = [
76
77
  "agentAssistConfigs",
@@ -110,6 +111,7 @@ export const projectWidePermissions = [
110
111
  "tokens",
111
112
  "yesNoIntents",
112
113
  "dataPrivacySettings",
114
+ "simulator"
113
115
  ];
114
116
  export const availablePermissions = [
115
117
  ...organisationWidePermissions,
@@ -85,6 +85,7 @@ export const organisationWideRoles = [
85
85
  * - tokenEditor
86
86
  * - function_admin
87
87
  * - function_editor
88
+ * - simulator_admin
88
89
  */
89
90
  export const projectWideRoles = [
90
91
  "agentAssistConfigAdmin",
@@ -126,7 +127,8 @@ export const projectWideRoles = [
126
127
  "tokenEditor",
127
128
  "data_privacy_admin",
128
129
  "data_privacy_editor",
129
- "data_privacy_viewer"
130
+ "data_privacy_viewer",
131
+ "simulator_admin"
130
132
  ];
131
133
  export const availableRoles = [
132
134
  ...organisationWideRoles,
@@ -1,4 +1,4 @@
1
- export const COMPUTED_ACL_HASH_VERSION = "v19";
1
+ export const COMPUTED_ACL_HASH_VERSION = "v20";
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.13.0",
4
4
  "description": "Cognigy REST-Client",
5
5
  "main": "build/index.js",
6
6
  "module": "dist/esm/index.js",