@cognigy/rest-api-client 2025.17.0 → 2025.18.1
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.
- package/CHANGELOG.md +15 -3
- package/build/authentication/AuthenticationAPI.js +1 -1
- package/build/authentication/OAuth2/OAuth2Authentication.js +10 -9
- package/build/connector/AxiosAdapter.js +2 -1
- package/build/shared/charts/descriptors/data/code.js +1 -1
- package/build/shared/charts/descriptors/logic/goTo.js +2 -2
- package/build/shared/charts/descriptors/service/GPTPrompt.js +2 -2
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +2 -2
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +2 -2
- package/build/shared/errors/codes.js +2 -1
- package/build/shared/errors/invalidArgument.js +4 -0
- package/build/shared/errors/missingArgument.js +4 -0
- package/build/shared/generativeAI/utils/generativeAIPrompts.js +24 -587
- package/build/shared/generativeAI/utils/prompts/flowGeneration.js +168 -0
- package/build/shared/generativeAI/utils/prompts/generateNodeOutput.js +39 -0
- package/build/shared/generativeAI/utils/prompts/intentSentenceGeneration.js +15 -0
- package/build/shared/generativeAI/utils/prompts/lexiconGeneration.js +22 -0
- package/build/shared/generativeAI/utils/prompts/rephraseSentences.js +86 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +4 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +3 -2
- package/build/shared/interfaces/resources/IKnowledgeDescriptor.js +9 -8
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +87 -77
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/dist/esm/authentication/AuthenticationAPI.js +1 -1
- package/dist/esm/authentication/OAuth2/OAuth2Authentication.js +10 -9
- package/dist/esm/connector/AxiosAdapter.js +2 -1
- package/dist/esm/shared/charts/descriptors/data/code.js +1 -1
- package/dist/esm/shared/charts/descriptors/logic/goTo.js +2 -2
- package/dist/esm/shared/charts/descriptors/service/GPTPrompt.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +1 -1
- package/dist/esm/shared/errors/codes.js +1 -0
- package/dist/esm/shared/errors/invalidArgument.js +4 -0
- package/dist/esm/shared/errors/missingArgument.js +4 -0
- package/dist/esm/shared/generativeAI/utils/generativeAIPrompts.js +23 -586
- package/dist/esm/shared/generativeAI/utils/prompts/flowGeneration.js +165 -0
- package/dist/esm/shared/generativeAI/utils/prompts/generateNodeOutput.js +36 -0
- package/dist/esm/shared/generativeAI/utils/prompts/intentSentenceGeneration.js +12 -0
- package/dist/esm/shared/generativeAI/utils/prompts/lexiconGeneration.js +19 -0
- package/dist/esm/shared/generativeAI/utils/prompts/rephraseSentences.js +83 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +4 -0
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +3 -2
- package/dist/esm/shared/interfaces/resources/IKnowledgeDescriptor.js +10 -9
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +88 -78
- package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +74 -34
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { chartableResourceTypes
|
|
1
|
+
import { chartableResourceTypes } from "./TResourceType";
|
|
2
2
|
import { snippetDataSchema } from "./ISnippet";
|
|
3
3
|
const nodeAppearanceSchema = {
|
|
4
4
|
title: "nodeAppearanceSchema",
|
|
@@ -9,8 +9,8 @@ const nodeAppearanceSchema = {
|
|
|
9
9
|
textColor: { type: "string", format: "color" },
|
|
10
10
|
contrastTextColor: { type: "string", format: "color" },
|
|
11
11
|
showIcon: { type: "boolean" },
|
|
12
|
-
variant: { type: "string", enum: ["regular", "mini", "hexagon"] }
|
|
13
|
-
}
|
|
12
|
+
variant: { type: "string", enum: ["regular", "mini", "hexagon"] }
|
|
13
|
+
}
|
|
14
14
|
};
|
|
15
15
|
const nodeBehaviorSchema = {
|
|
16
16
|
title: "nodeBehaviorSchema",
|
|
@@ -18,8 +18,8 @@ const nodeBehaviorSchema = {
|
|
|
18
18
|
additionalProperties: false,
|
|
19
19
|
properties: {
|
|
20
20
|
stopping: { type: "boolean" },
|
|
21
|
-
entrypoint: { type: "boolean" }
|
|
22
|
-
}
|
|
21
|
+
entrypoint: { type: "boolean" }
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
export const nodePreviewTypes = [
|
|
25
25
|
"text",
|
|
@@ -35,8 +35,8 @@ const nodePreviewSchema = {
|
|
|
35
35
|
additionalProperties: false,
|
|
36
36
|
properties: {
|
|
37
37
|
key: { type: "string", minLength: 1, maxLength: 200 },
|
|
38
|
-
type: { type: "string", enum: [...nodePreviewTypes] }
|
|
39
|
-
}
|
|
38
|
+
type: { type: "string", enum: [...nodePreviewTypes] }
|
|
39
|
+
}
|
|
40
40
|
};
|
|
41
41
|
const nodeConstraintSchema = {
|
|
42
42
|
title: "nodeConstraintSchema",
|
|
@@ -45,13 +45,13 @@ const nodeConstraintSchema = {
|
|
|
45
45
|
properties: {
|
|
46
46
|
blacklist: {
|
|
47
47
|
type: "array",
|
|
48
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
48
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
49
49
|
},
|
|
50
50
|
whitelist: {
|
|
51
51
|
type: "array",
|
|
52
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
53
|
-
}
|
|
54
|
-
}
|
|
52
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
55
|
};
|
|
56
56
|
const nodeConstraintsSchema = {
|
|
57
57
|
title: "nodeConstraintsSchema",
|
|
@@ -70,10 +70,10 @@ const nodeConstraintsSchema = {
|
|
|
70
70
|
properties: {
|
|
71
71
|
children: nodeConstraintSchema,
|
|
72
72
|
predecessor: nodeConstraintSchema,
|
|
73
|
-
successor: nodeConstraintSchema
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
73
|
+
successor: nodeConstraintSchema
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
77
|
};
|
|
78
78
|
const nodeDependenciesSchema = {
|
|
79
79
|
title: "nodeDependenciesSchema",
|
|
@@ -82,9 +82,9 @@ const nodeDependenciesSchema = {
|
|
|
82
82
|
properties: {
|
|
83
83
|
children: {
|
|
84
84
|
type: "array",
|
|
85
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
86
|
-
}
|
|
87
|
-
}
|
|
85
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
88
|
};
|
|
89
89
|
export const nodeFieldTypes = [
|
|
90
90
|
"adaptivecard",
|
|
@@ -154,7 +154,7 @@ export const searchableNodeFieldTypes = [
|
|
|
154
154
|
"say",
|
|
155
155
|
"code",
|
|
156
156
|
"caseNode",
|
|
157
|
-
"select"
|
|
157
|
+
"select"
|
|
158
158
|
];
|
|
159
159
|
export const nodeFieldSingleConditionSchema = {
|
|
160
160
|
title: "nodeFieldSingleConditionSchema",
|
|
@@ -171,11 +171,11 @@ export const nodeFieldSingleConditionSchema = {
|
|
|
171
171
|
{ type: "number" },
|
|
172
172
|
{ type: "array", items: { type: "number" } },
|
|
173
173
|
{ type: "boolean" },
|
|
174
|
-
{ type: "array", items: { type: "boolean" } }
|
|
175
|
-
]
|
|
174
|
+
{ type: "array", items: { type: "boolean" } }
|
|
175
|
+
]
|
|
176
176
|
},
|
|
177
|
-
negate: { type: "boolean" }
|
|
178
|
-
}
|
|
177
|
+
negate: { type: "boolean" }
|
|
178
|
+
}
|
|
179
179
|
};
|
|
180
180
|
export const nodeFieldANDConditionSchema = {
|
|
181
181
|
title: "nodeFieldANDConditionSchema",
|
|
@@ -183,8 +183,8 @@ export const nodeFieldANDConditionSchema = {
|
|
|
183
183
|
additionalProperties: false,
|
|
184
184
|
required: ["and"],
|
|
185
185
|
properties: {
|
|
186
|
-
and: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
187
|
-
}
|
|
186
|
+
and: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
187
|
+
}
|
|
188
188
|
};
|
|
189
189
|
export const nodeFieldORConditionSchema = {
|
|
190
190
|
title: "nodeFieldORConditionSchema",
|
|
@@ -192,8 +192,8 @@ export const nodeFieldORConditionSchema = {
|
|
|
192
192
|
additionalProperties: false,
|
|
193
193
|
required: ["or"],
|
|
194
194
|
properties: {
|
|
195
|
-
or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
196
|
-
}
|
|
195
|
+
or: { type: "array", items: { $ref: "nodeFieldConditionSchema" } }
|
|
196
|
+
}
|
|
197
197
|
};
|
|
198
198
|
// @ts-ignore
|
|
199
199
|
export const nodeFieldConditionSchema = {
|
|
@@ -206,8 +206,8 @@ export const nodeFieldConditionSchema = {
|
|
|
206
206
|
// @ts-ignore
|
|
207
207
|
nodeFieldANDConditionSchema,
|
|
208
208
|
// @ts-ignore
|
|
209
|
-
nodeFieldORConditionSchema
|
|
210
|
-
]
|
|
209
|
+
nodeFieldORConditionSchema
|
|
210
|
+
]
|
|
211
211
|
};
|
|
212
212
|
export const nodeOptionsResolverSchema = {
|
|
213
213
|
title: "nodeOptionsResolverSchema",
|
|
@@ -216,10 +216,10 @@ export const nodeOptionsResolverSchema = {
|
|
|
216
216
|
properties: {
|
|
217
217
|
dependencies: {
|
|
218
218
|
type: "array",
|
|
219
|
-
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
219
|
+
items: { type: "string", minLength: 1, maxLength: 200 }
|
|
220
220
|
},
|
|
221
|
-
resolverFunction: {}
|
|
222
|
-
}
|
|
221
|
+
resolverFunction: {}
|
|
222
|
+
}
|
|
223
223
|
};
|
|
224
224
|
export const nodeFieldSchema = {
|
|
225
225
|
title: "nodeFieldSchema",
|
|
@@ -240,10 +240,10 @@ export const nodeFieldSchema = {
|
|
|
240
240
|
deDE: { type: "string", maxLength: 200 },
|
|
241
241
|
jaJP: { type: "string", maxLength: 200 },
|
|
242
242
|
esES: { type: "string", maxLength: 200 },
|
|
243
|
-
koKR: { type: "string", maxLength: 200 }
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
]
|
|
243
|
+
koKR: { type: "string", maxLength: 200 }
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
247
|
},
|
|
248
248
|
condition: nodeFieldConditionSchema,
|
|
249
249
|
defaultValue: {
|
|
@@ -253,8 +253,18 @@ export const nodeFieldSchema = {
|
|
|
253
253
|
{ type: "number" },
|
|
254
254
|
{ type: "null" },
|
|
255
255
|
{ type: "object" },
|
|
256
|
-
{ type: "string" }
|
|
257
|
-
]
|
|
256
|
+
{ type: "string" }
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
fallbackValue: {
|
|
260
|
+
oneOf: [
|
|
261
|
+
{ type: "array" },
|
|
262
|
+
{ type: "boolean" },
|
|
263
|
+
{ type: "number" },
|
|
264
|
+
{ type: "null" },
|
|
265
|
+
{ type: "object" },
|
|
266
|
+
{ type: "string" }
|
|
267
|
+
]
|
|
258
268
|
},
|
|
259
269
|
description: {
|
|
260
270
|
oneOf: [
|
|
@@ -268,10 +278,10 @@ export const nodeFieldSchema = {
|
|
|
268
278
|
deDE: { type: "string", maxLength: 200 },
|
|
269
279
|
jaJP: { type: "string", maxLength: 200 },
|
|
270
280
|
esES: { type: "string", maxLength: 200 },
|
|
271
|
-
koKR: { type: "string", maxLength: 200 }
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
]
|
|
281
|
+
koKR: { type: "string", maxLength: 200 }
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
]
|
|
275
285
|
},
|
|
276
286
|
params: { type: "object" },
|
|
277
287
|
optionsResolver: nodeOptionsResolverSchema,
|
|
@@ -282,11 +292,11 @@ export const nodeFieldSchema = {
|
|
|
282
292
|
lookupValue: { type: "string" },
|
|
283
293
|
fieldsToReset: {
|
|
284
294
|
type: "array",
|
|
285
|
-
items: { type: "string" }
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
}
|
|
295
|
+
items: { type: "string" }
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
290
300
|
};
|
|
291
301
|
export const nodeSectionSchema = {
|
|
292
302
|
title: "nodeSectionSchema",
|
|
@@ -306,10 +316,10 @@ export const nodeSectionSchema = {
|
|
|
306
316
|
deDE: { type: "string", maxLength: 200 },
|
|
307
317
|
jaJP: { type: "string", maxLength: 200 },
|
|
308
318
|
esES: { type: "string", maxLength: 200 },
|
|
309
|
-
koKR: { type: "string", maxLength: 200 }
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
]
|
|
319
|
+
koKR: { type: "string", maxLength: 200 }
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
]
|
|
313
323
|
},
|
|
314
324
|
description: {
|
|
315
325
|
oneOf: [
|
|
@@ -323,10 +333,10 @@ export const nodeSectionSchema = {
|
|
|
323
333
|
deDE: { type: "string", maxLength: 200 },
|
|
324
334
|
jaJP: { type: "string", maxLength: 200 },
|
|
325
335
|
esES: { type: "string", maxLength: 200 },
|
|
326
|
-
koKR: { type: "string", maxLength: 200 }
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
]
|
|
336
|
+
koKR: { type: "string", maxLength: 200 }
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
]
|
|
330
340
|
},
|
|
331
341
|
condition: nodeFieldConditionSchema,
|
|
332
342
|
defaultCollapsed: { type: "boolean" },
|
|
@@ -338,10 +348,10 @@ export const nodeSectionSchema = {
|
|
|
338
348
|
items: {
|
|
339
349
|
type: "string",
|
|
340
350
|
minLength: 1,
|
|
341
|
-
maxLength: 200
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
}
|
|
351
|
+
maxLength: 200
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
345
355
|
};
|
|
346
356
|
export const nodeFieldAndSectionFormElementSchema = {
|
|
347
357
|
title: "nodeFieldAndSectionFormElementSchema",
|
|
@@ -349,8 +359,8 @@ export const nodeFieldAndSectionFormElementSchema = {
|
|
|
349
359
|
required: ["key", "type"],
|
|
350
360
|
properties: {
|
|
351
361
|
key: { type: "string", minLength: 1, maxLength: 200 },
|
|
352
|
-
type: { type: "string", enum: ["field", "section"] }
|
|
353
|
-
}
|
|
362
|
+
type: { type: "string", enum: ["field", "section"] }
|
|
363
|
+
}
|
|
354
364
|
};
|
|
355
365
|
export const nodeDescriptorSchema = {
|
|
356
366
|
title: "nodeDescriptorSchema",
|
|
@@ -372,10 +382,10 @@ export const nodeDescriptorSchema = {
|
|
|
372
382
|
deDE: { type: "string", maxLength: 200 },
|
|
373
383
|
jaJP: { type: "string", maxLength: 200 },
|
|
374
384
|
esES: { type: "string", maxLength: 200 },
|
|
375
|
-
koKR: { type: "string", maxLength: 200 }
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
]
|
|
385
|
+
koKR: { type: "string", maxLength: 200 }
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
]
|
|
379
389
|
},
|
|
380
390
|
summary: {
|
|
381
391
|
oneOf: [
|
|
@@ -389,10 +399,10 @@ export const nodeDescriptorSchema = {
|
|
|
389
399
|
deDE: { type: "string", maxLength: 200 },
|
|
390
400
|
jaJP: { type: "string", maxLength: 200 },
|
|
391
401
|
esES: { type: "string", maxLength: 200 },
|
|
392
|
-
koKR: { type: "string", maxLength: 200 }
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
]
|
|
402
|
+
koKR: { type: "string", maxLength: 200 }
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
]
|
|
396
406
|
},
|
|
397
407
|
appearance: nodeAppearanceSchema,
|
|
398
408
|
behavior: nodeBehaviorSchema,
|
|
@@ -405,25 +415,25 @@ export const nodeDescriptorSchema = {
|
|
|
405
415
|
type: "array",
|
|
406
416
|
items: { type: "string" },
|
|
407
417
|
uniqueItems: true,
|
|
408
|
-
minItems: 0
|
|
418
|
+
minItems: 0
|
|
409
419
|
},
|
|
410
420
|
tokens: {
|
|
411
421
|
type: "array",
|
|
412
422
|
items: snippetDataSchema,
|
|
413
|
-
uniqueItems: true
|
|
423
|
+
uniqueItems: true
|
|
414
424
|
},
|
|
415
425
|
sections: {
|
|
416
426
|
type: "array",
|
|
417
427
|
additionalItems: false,
|
|
418
|
-
items: nodeSectionSchema
|
|
428
|
+
items: nodeSectionSchema
|
|
419
429
|
},
|
|
420
430
|
form: {
|
|
421
431
|
type: "array",
|
|
422
432
|
additionalItems: false,
|
|
423
433
|
maxLength: 25,
|
|
424
|
-
items: nodeFieldAndSectionFormElementSchema
|
|
425
|
-
}
|
|
426
|
-
}
|
|
434
|
+
items: nodeFieldAndSectionFormElementSchema
|
|
435
|
+
}
|
|
436
|
+
}
|
|
427
437
|
};
|
|
428
438
|
export const nodeDescriptorSetSchema = {
|
|
429
439
|
title: "nodeDescriptorSetSchema",
|
|
@@ -439,10 +449,10 @@ export const nodeDescriptorSetSchema = {
|
|
|
439
449
|
descriptors: {
|
|
440
450
|
type: "array",
|
|
441
451
|
additionalItems: false,
|
|
442
|
-
items: nodeDescriptorSchema
|
|
452
|
+
items: nodeDescriptorSchema
|
|
443
453
|
},
|
|
444
454
|
resourceType: { type: "string", enum: chartableResourceTypes },
|
|
445
|
-
trustedCode: { type: "boolean" }
|
|
446
|
-
}
|
|
455
|
+
trustedCode: { type: "boolean" }
|
|
456
|
+
}
|
|
447
457
|
};
|
|
448
458
|
//# sourceMappingURL=INodeDescriptorSet.js.map
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -146,6 +146,11 @@ export interface IHttpRequestOptions {
|
|
|
146
146
|
* @default true
|
|
147
147
|
*/
|
|
148
148
|
withAuthentication?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Should send credentials to the request.
|
|
151
|
+
* @default false
|
|
152
|
+
*/
|
|
153
|
+
withCredentials?: boolean;
|
|
149
154
|
/**
|
|
150
155
|
* Specifies the number of milliseconds before the request times out.
|
|
151
156
|
*/
|
|
@@ -374,6 +379,13 @@ export interface ILoginByAuthorizationCodeParameters {
|
|
|
374
379
|
* The code verifier for authentication using authorization code with PKCE
|
|
375
380
|
*/
|
|
376
381
|
codeVerifier?: string;
|
|
382
|
+
/**
|
|
383
|
+
* If rememberMe is set to true, you get a long lived refreshToken, default
|
|
384
|
+
* 7 days. If rememberMe is set to false, you get a short lived refreshToken valid only for 24 hours.
|
|
385
|
+
*
|
|
386
|
+
* @default false
|
|
387
|
+
*/
|
|
388
|
+
rememberMe: boolean;
|
|
377
389
|
}
|
|
378
390
|
export interface IGetAuthorizationCodeParameters {
|
|
379
391
|
/**
|
|
@@ -771,6 +783,10 @@ declare class InvalidArgumentError extends BadRequestError {
|
|
|
771
783
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
772
784
|
[key: string]: any;
|
|
773
785
|
}, logLevel?: TLogLevel);
|
|
786
|
+
toRFC7807Response(data?: {
|
|
787
|
+
path?: string;
|
|
788
|
+
traceId?: string;
|
|
789
|
+
}): IErrorResponse;
|
|
774
790
|
}
|
|
775
791
|
declare class MethodNotAllowedError extends BaseError {
|
|
776
792
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
@@ -781,6 +797,10 @@ declare class MissingArgumentError extends BadRequestError {
|
|
|
781
797
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
782
798
|
[key: string]: any;
|
|
783
799
|
}, logLevel?: TLogLevel);
|
|
800
|
+
toRFC7807Response(data?: {
|
|
801
|
+
path?: string;
|
|
802
|
+
traceId?: string;
|
|
803
|
+
}): IErrorResponse;
|
|
784
804
|
}
|
|
785
805
|
declare class NetworkError extends BaseError {
|
|
786
806
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
@@ -979,7 +999,8 @@ declare const searchableResourceTypes: readonly [
|
|
|
979
999
|
"nluconnector",
|
|
980
1000
|
"playbook",
|
|
981
1001
|
"project",
|
|
982
|
-
"snapshot"
|
|
1002
|
+
"snapshot",
|
|
1003
|
+
"simulation"
|
|
983
1004
|
];
|
|
984
1005
|
export declare type TSearchableResourceType = (typeof searchableResourceTypes)[number];
|
|
985
1006
|
declare const pinnableResourceTypes: readonly [
|
|
@@ -4358,6 +4379,10 @@ declare const generativeAIModels: readonly [
|
|
|
4358
4379
|
"gpt-4.1",
|
|
4359
4380
|
"gpt-4.1-mini",
|
|
4360
4381
|
"gpt-4.1-nano",
|
|
4382
|
+
"gpt-5",
|
|
4383
|
+
"gpt-5-nano",
|
|
4384
|
+
"gpt-5-mini",
|
|
4385
|
+
"gpt-5-chat-latest",
|
|
4361
4386
|
"luminous-extended-control",
|
|
4362
4387
|
"claude-v1-100k",
|
|
4363
4388
|
"claude-instant-v1",
|
|
@@ -5527,15 +5552,15 @@ export interface IMongoosePaginationPluginReturnValue<T = any> {
|
|
|
5527
5552
|
* type: integer
|
|
5528
5553
|
* example: 1
|
|
5529
5554
|
* next:
|
|
5530
|
-
*
|
|
5555
|
+
* allOf:
|
|
5531
5556
|
* - $ref: '#/components/schemas/TMongoId'
|
|
5532
|
-
*
|
|
5557
|
+
* nullable: true
|
|
5533
5558
|
* example: 5ce7c2d833ea1e04d7e6c432
|
|
5534
5559
|
* previous:
|
|
5535
|
-
*
|
|
5560
|
+
* allOf:
|
|
5536
5561
|
* - $ref: '#/components/schemas/TMongoId'
|
|
5537
|
-
*
|
|
5538
|
-
* example:
|
|
5562
|
+
* nullable: true
|
|
5563
|
+
* example: 5ce7c2d833ea1e04d7e6c432
|
|
5539
5564
|
*/
|
|
5540
5565
|
export interface ICursorBasedPaginationReturnValue<T> extends IMongoosePaginationPluginReturnValue<T> {
|
|
5541
5566
|
}
|
|
@@ -10125,6 +10150,7 @@ declare enum TranscriptEntryType {
|
|
|
10125
10150
|
}
|
|
10126
10151
|
export declare type TTranscriptEntryContent = TTranscriptUserInput | TTranscriptAssistantOutput | TTranscriptAgentOutput | TTranscriptAssistantToolCall | TTranscriptToolAnswer | TTranscriptDebugLog;
|
|
10127
10152
|
export declare type TTranscriptEntry = TTranscriptEntryContent & {
|
|
10153
|
+
id: string;
|
|
10128
10154
|
timestamp: number;
|
|
10129
10155
|
traceId: string;
|
|
10130
10156
|
};
|
|
@@ -10645,7 +10671,7 @@ export interface IActions {
|
|
|
10645
10671
|
getState?: () => string;
|
|
10646
10672
|
getSystemContext?: (key: string) => any;
|
|
10647
10673
|
emitEvent?: TEmitter;
|
|
10648
|
-
executeCodeInSecureContext?: (codeParams: ICodeNodeParams) => void
|
|
10674
|
+
executeCodeInSecureContext?: (codeParams: ICodeNodeParams) => Promise<void>;
|
|
10649
10675
|
executeCognigyNLU?: (params: IExecuteCognigyNLUParams) => Promise<INLProperties>;
|
|
10650
10676
|
handleIntentDefaultReply?: (params: INLProperties) => Promise<any>;
|
|
10651
10677
|
/**
|
|
@@ -10940,6 +10966,11 @@ export interface IPatternMatchResult {
|
|
|
10940
10966
|
detailedMatches?: any[];
|
|
10941
10967
|
}
|
|
10942
10968
|
export declare type IPatternTypes = "de_lp" | "iban" | "us_ssn" | "bic" | "ipv4" | "creditcard" | "phonenumber";
|
|
10969
|
+
export interface IExecutionMetadata {
|
|
10970
|
+
sessionId: string;
|
|
10971
|
+
projectId: string;
|
|
10972
|
+
organisationId: string;
|
|
10973
|
+
}
|
|
10943
10974
|
export interface IExecutionObjects {
|
|
10944
10975
|
input: {
|
|
10945
10976
|
[key: string]: any;
|
|
@@ -10954,6 +10985,7 @@ export interface IExecutionObjects {
|
|
|
10954
10985
|
[key: string]: any;
|
|
10955
10986
|
};
|
|
10956
10987
|
lastConversationEntries: ILastConversationEntry[];
|
|
10988
|
+
metadata: IExecutionMetadata;
|
|
10957
10989
|
}
|
|
10958
10990
|
export declare type TEmitter = (type: TDebugEventType, payload: TDebugEventPayload, options?: IEmitterOptions) => void;
|
|
10959
10991
|
export interface IEmitterOptions {
|
|
@@ -11301,7 +11333,7 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
|
|
|
11301
11333
|
executeCognigyNLU?: (text: string, data: any, inputId: string, pipeline: IGetNluPipelineParams) => Promise<INLProperties>;
|
|
11302
11334
|
handleIntentDefaultReply?: (nlProperties: INLProperties) => Promise<any>;
|
|
11303
11335
|
executeFlow: (config: IExecuteFlowNodeConfig) => Promise<void>;
|
|
11304
|
-
goToNode?: (config: IGoToNodeParams["config"]
|
|
11336
|
+
goToNode?: (config: Pick<IGoToNodeParams["config"], "flowNode" | "absorbContext">) => Promise<void>;
|
|
11305
11337
|
addConditionalEntrypoint: (addConditionalEntrypointParams: IAddConditionalEntrypointParams) => void;
|
|
11306
11338
|
runSQLQuery?: (params: {
|
|
11307
11339
|
connection: ISQLConnectionFields;
|
|
@@ -11496,7 +11528,7 @@ declare const nodePreviewTypes: readonly [
|
|
|
11496
11528
|
"image",
|
|
11497
11529
|
"aiAgent"
|
|
11498
11530
|
];
|
|
11499
|
-
export declare type TNodePreviewType =
|
|
11531
|
+
export declare type TNodePreviewType = typeof nodePreviewTypes[number];
|
|
11500
11532
|
export interface INodePreview {
|
|
11501
11533
|
type: TNodePreviewType;
|
|
11502
11534
|
key: string;
|
|
@@ -11593,7 +11625,7 @@ declare const nodeFieldTypes: readonly [
|
|
|
11593
11625
|
"typescript",
|
|
11594
11626
|
"xml"
|
|
11595
11627
|
];
|
|
11596
|
-
export declare type TNodeFieldType =
|
|
11628
|
+
export declare type TNodeFieldType = typeof nodeFieldTypes[number];
|
|
11597
11629
|
export declare type TComparableValue = string | number | boolean;
|
|
11598
11630
|
export declare type TNodeFieldCondition = INodeFieldSingleCondition | INodeFieldANDCondition | INodeFieldORCondition;
|
|
11599
11631
|
export interface INodeFieldSingleCondition {
|
|
@@ -11640,6 +11672,7 @@ export interface INodeField<K extends string | number | symbol = string> {
|
|
|
11640
11672
|
label: string | INodeFieldTranslations;
|
|
11641
11673
|
condition?: TNodeFieldCondition;
|
|
11642
11674
|
defaultValue?: any;
|
|
11675
|
+
fallbackValue?: any;
|
|
11643
11676
|
description?: string | INodeFieldTranslations;
|
|
11644
11677
|
params?: {
|
|
11645
11678
|
[key: string]: any;
|
|
@@ -11813,27 +11846,27 @@ export interface IKnowledgeField<K extends string | number | symbol = string> {
|
|
|
11813
11846
|
* items:
|
|
11814
11847
|
* type: object
|
|
11815
11848
|
* properties:
|
|
11816
|
-
* type:
|
|
11817
|
-
* type: string
|
|
11818
|
-
* enum:
|
|
11819
|
-
* - text
|
|
11820
|
-
* - rule
|
|
11821
|
-
* - json
|
|
11822
|
-
* - checkbox
|
|
11823
|
-
* - time
|
|
11824
|
-
* - date
|
|
11825
|
-
* - datetime
|
|
11826
|
-
* - select
|
|
11827
|
-
* - xml
|
|
11828
|
-
* - textArray
|
|
11829
|
-
* - chipInput
|
|
11830
|
-
* - toggle
|
|
11831
|
-
* - slider
|
|
11832
|
-
* - number
|
|
11833
|
-
* - daterange
|
|
11834
|
-
* - connection
|
|
11835
|
-
* - condition
|
|
11836
|
-
* - description
|
|
11849
|
+
* type:
|
|
11850
|
+
* type: string
|
|
11851
|
+
* enum:
|
|
11852
|
+
* - text
|
|
11853
|
+
* - rule
|
|
11854
|
+
* - json
|
|
11855
|
+
* - checkbox
|
|
11856
|
+
* - time
|
|
11857
|
+
* - date
|
|
11858
|
+
* - datetime
|
|
11859
|
+
* - select
|
|
11860
|
+
* - xml
|
|
11861
|
+
* - textArray
|
|
11862
|
+
* - chipInput
|
|
11863
|
+
* - toggle
|
|
11864
|
+
* - slider
|
|
11865
|
+
* - number
|
|
11866
|
+
* - daterange
|
|
11867
|
+
* - connection
|
|
11868
|
+
* - condition
|
|
11869
|
+
* - description
|
|
11837
11870
|
* key:
|
|
11838
11871
|
* type: string
|
|
11839
11872
|
* label:
|
|
@@ -13169,9 +13202,9 @@ export interface IIndexChartNodesRestReturnValue_2_0 extends ICursorBasedPaginat
|
|
|
13169
13202
|
* items:
|
|
13170
13203
|
* $ref: '#/components/schemas/TMongoId'
|
|
13171
13204
|
* next:
|
|
13172
|
-
*
|
|
13205
|
+
* allOf:
|
|
13173
13206
|
* - $ref: '#/components/schemas/TMongoId'
|
|
13174
|
-
*
|
|
13207
|
+
* nullable: true
|
|
13175
13208
|
*/
|
|
13176
13209
|
export interface IChartNodeRelation_2_0 {
|
|
13177
13210
|
_id: TMongoId;
|
|
@@ -18254,6 +18287,11 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18254
18287
|
failReason?: string;
|
|
18255
18288
|
tags?: string[];
|
|
18256
18289
|
extractedChunks?: number;
|
|
18290
|
+
extension?: {
|
|
18291
|
+
name: string;
|
|
18292
|
+
id: string;
|
|
18293
|
+
type: string;
|
|
18294
|
+
};
|
|
18257
18295
|
}
|
|
18258
18296
|
/**
|
|
18259
18297
|
* @openapi
|
|
@@ -18549,6 +18587,8 @@ export interface IRunKnowledgeExtensionRestDataBody_2_0 {
|
|
|
18549
18587
|
}
|
|
18550
18588
|
export interface IRunKnowledgeExtensionRestData_2_0 extends IRunKnowledgeExtensionRestDataParams_2_0, IRunKnowledgeExtensionRestDataBody_2_0 {
|
|
18551
18589
|
}
|
|
18590
|
+
export interface IRunKnowledgeExtensionRestReturnValue_2_0 extends ICreatedTask_2_0 {
|
|
18591
|
+
}
|
|
18552
18592
|
/**
|
|
18553
18593
|
* @openapi
|
|
18554
18594
|
*
|
|
@@ -19250,7 +19290,7 @@ export interface ResourcesAPIGroup_2_0 {
|
|
|
19250
19290
|
readKnowledgeStore: TRestAPIOperation<IReadKnowledgeStoreRestData_2_0, IReadKnowledgeStoreRestReturnValue_2_0>;
|
|
19251
19291
|
deleteKnowledgeStore: TRestAPIOperation<IDeleteKnowledgeStoreRestData_2_0, IDeleteKnowledgeStoreRestReturnValue_2_0>;
|
|
19252
19292
|
updateKnowledgeStore: TRestAPIOperation<IUpdateKnowledgeStoreRestData_2_0, IUpdateKnowledgeStoreRestReturnValue_2_0>;
|
|
19253
|
-
runKnowledgeExtension: TRestAPIOperation<IRunKnowledgeExtensionRestData_2_0,
|
|
19293
|
+
runKnowledgeExtension: TRestAPIOperation<IRunKnowledgeExtensionRestData_2_0, IRunKnowledgeExtensionRestReturnValue_2_0>;
|
|
19254
19294
|
indexKnowledgeDescriptors: TRestAPIOperation<IIndexKnowledgeDescriptorsRestData_2_0, IIndexKnowledgeDescriptorsRestReturnValue_2_0>;
|
|
19255
19295
|
indexKnowledgeSources: TRestAPIOperation<IIndexKnowledgeSourcesRestData_2_0, IIndexKnowledgeSourcesRestReturnValue_2_0>;
|
|
19256
19296
|
createKnowledgeSource: TRestAPIOperation<ICreateKnowledgeSourceRestData_2_0, ICreateKnowledgeSourceRestReturnValue_2_0>;
|