@cognigy/rest-api-client 2025.16.0 → 2025.18.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.
- package/CHANGELOG.md +10 -0
- package/build/shared/charts/descriptors/data/code.js +1 -1
- package/build/shared/charts/descriptors/data/debugMessage.js +13 -3
- package/build/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +48 -49
- package/build/shared/charts/descriptors/logic/goTo.js +2 -2
- package/build/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +31 -2
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +11 -2
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +12 -3
- package/build/shared/charts/descriptors/transcripts/getTranscript.js +23 -3
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +3 -0
- 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/getPrompt.js +75 -0
- package/build/shared/generativeAI/utils/generativeAIPrompts.js +479 -0
- package/build/shared/generativeAI/utils/prompts/contextAwareUserQueryRephrasing.js +84 -0
- package/build/shared/generativeAI/utils/prompts/rephraseSentences.js +86 -0
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/build/shared/interfaces/messageAPI/handover.js +6 -0
- package/build/shared/interfaces/resources/IKnowledgeDescriptor.js +9 -8
- package/build/shared/interfaces/resources/ILargeLanguageModel.js +1 -0
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/dist/esm/shared/charts/descriptors/data/code.js +1 -1
- package/dist/esm/shared/charts/descriptors/data/debugMessage.js +13 -3
- package/dist/esm/shared/charts/descriptors/knowledgeSearch/searchExtractOutput.js +48 -50
- package/dist/esm/shared/charts/descriptors/logic/goTo.js +2 -2
- package/dist/esm/shared/charts/descriptors/nlu/generativeSlotFiller/prompt.js +29 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +11 -2
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +12 -3
- package/dist/esm/shared/charts/descriptors/transcripts/getTranscript.js +23 -3
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +3 -0
- 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/getPrompt.js +68 -0
- package/dist/esm/shared/generativeAI/utils/generativeAIPrompts.js +476 -0
- package/dist/esm/shared/generativeAI/utils/prompts/contextAwareUserQueryRephrasing.js +81 -0
- package/dist/esm/shared/generativeAI/utils/prompts/rephraseSentences.js +83 -0
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/dist/esm/shared/interfaces/messageAPI/handover.js +6 -0
- package/dist/esm/shared/interfaces/resources/IKnowledgeDescriptor.js +10 -9
- package/dist/esm/shared/interfaces/resources/ILargeLanguageModel.js +1 -0
- package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
- package/package.json +1 -1
- package/types/index.d.ts +96 -51
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nodeDescriptorSchema, nodeFieldSchema } from "./INodeDescriptorSet";
|
|
1
|
+
import { nodeDescriptorSchema, nodeFieldSchema, } from "./INodeDescriptorSet";
|
|
2
2
|
export const knowledgeFieldTypes = [
|
|
3
3
|
"text",
|
|
4
4
|
"rule",
|
|
@@ -17,13 +17,13 @@ export const knowledgeFieldTypes = [
|
|
|
17
17
|
"daterange",
|
|
18
18
|
"connection",
|
|
19
19
|
"condition",
|
|
20
|
-
"description"
|
|
20
|
+
"description",
|
|
21
21
|
];
|
|
22
22
|
export const knowledgeFieldSchema = {
|
|
23
23
|
title: "knowledgeFieldSchema",
|
|
24
24
|
type: "object",
|
|
25
25
|
additionalProperties: false,
|
|
26
|
-
properties: Object.assign(Object.assign({}, nodeFieldSchema.properties), { type: { type: "string", enum: [...knowledgeFieldTypes] }, key: { type: "string", minLength: 1, maxLength: 200 } })
|
|
26
|
+
properties: Object.assign(Object.assign({}, nodeFieldSchema.properties), { type: { type: "string", enum: [...knowledgeFieldTypes] }, key: { type: "string", minLength: 1, maxLength: 200 } }),
|
|
27
27
|
};
|
|
28
28
|
const { type, summary, defaultLabel, sections, form } = nodeDescriptorSchema.properties;
|
|
29
29
|
export const knowledgeDescriptorSchema = {
|
|
@@ -36,15 +36,15 @@ export const knowledgeDescriptorSchema = {
|
|
|
36
36
|
summary,
|
|
37
37
|
sections,
|
|
38
38
|
form,
|
|
39
|
-
fields: { type: "array", items: knowledgeFieldSchema }
|
|
40
|
-
}
|
|
39
|
+
fields: { type: "array", items: knowledgeFieldSchema },
|
|
40
|
+
},
|
|
41
41
|
};
|
|
42
42
|
const filterNonConfigFields = ({ type }) => !["description"].includes(type);
|
|
43
43
|
export const buildConfigValidationSchema = (fields) => ({
|
|
44
44
|
type: "object",
|
|
45
45
|
additionalProperties: false,
|
|
46
46
|
required: (fields || []).filter(filterNonConfigFields).map(({ key }) => key),
|
|
47
|
-
properties: Object.assign({}, (fields || []).filter(filterNonConfigFields).reduce((result, field) => (Object.assign(Object.assign({}, result), { [field.key]: mapFieldToSchema(field) })), {}))
|
|
47
|
+
properties: Object.assign({}, (fields || []).filter(filterNonConfigFields).reduce((result, field) => (Object.assign(Object.assign({}, result), { [field.key]: mapFieldToSchema(field) })), {})),
|
|
48
48
|
});
|
|
49
49
|
const mapFieldToSchema = ({ type, params }) => {
|
|
50
50
|
switch (type) {
|
|
@@ -55,19 +55,20 @@ const mapFieldToSchema = ({ type, params }) => {
|
|
|
55
55
|
case "slider":
|
|
56
56
|
return { type: "number" };
|
|
57
57
|
case "textArray":
|
|
58
|
+
case "chipInput":
|
|
58
59
|
return {
|
|
59
60
|
type: "array",
|
|
60
|
-
minLength: (params === null || params === void 0 ? void 0 : params.required) ? 1 : 0
|
|
61
|
+
minLength: (params === null || params === void 0 ? void 0 : params.required) ? 1 : 0,
|
|
61
62
|
};
|
|
62
63
|
case "json":
|
|
63
64
|
return {
|
|
64
65
|
type: ["object", "array"],
|
|
65
|
-
additionalProperties: true
|
|
66
|
+
additionalProperties: true,
|
|
66
67
|
};
|
|
67
68
|
default:
|
|
68
69
|
return {
|
|
69
70
|
type: "string",
|
|
70
|
-
minLength: (params === null || params === void 0 ? void 0 : params.required) ? 1 : 0
|
|
71
|
+
minLength: (params === null || params === void 0 ? void 0 : params.required) ? 1 : 0,
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
};
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -771,6 +771,10 @@ declare class InvalidArgumentError extends BadRequestError {
|
|
|
771
771
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
772
772
|
[key: string]: any;
|
|
773
773
|
}, logLevel?: TLogLevel);
|
|
774
|
+
toRFC7807Response(data?: {
|
|
775
|
+
path?: string;
|
|
776
|
+
traceId?: string;
|
|
777
|
+
}): IErrorResponse;
|
|
774
778
|
}
|
|
775
779
|
declare class MethodNotAllowedError extends BaseError {
|
|
776
780
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
@@ -781,6 +785,10 @@ declare class MissingArgumentError extends BadRequestError {
|
|
|
781
785
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
782
786
|
[key: string]: any;
|
|
783
787
|
}, logLevel?: TLogLevel);
|
|
788
|
+
toRFC7807Response(data?: {
|
|
789
|
+
path?: string;
|
|
790
|
+
traceId?: string;
|
|
791
|
+
}): IErrorResponse;
|
|
784
792
|
}
|
|
785
793
|
declare class NetworkError extends BaseError {
|
|
786
794
|
constructor(message: string, stack?: ILoggerStack, meta?: ISuggestedMetaInfo, details?: {
|
|
@@ -979,7 +987,8 @@ declare const searchableResourceTypes: readonly [
|
|
|
979
987
|
"nluconnector",
|
|
980
988
|
"playbook",
|
|
981
989
|
"project",
|
|
982
|
-
"snapshot"
|
|
990
|
+
"snapshot",
|
|
991
|
+
"simulation"
|
|
983
992
|
];
|
|
984
993
|
export declare type TSearchableResourceType = (typeof searchableResourceTypes)[number];
|
|
985
994
|
declare const pinnableResourceTypes: readonly [
|
|
@@ -4372,6 +4381,7 @@ declare const generativeAIModels: readonly [
|
|
|
4372
4381
|
"claude-sonnet-4-0",
|
|
4373
4382
|
"text-bison@001",
|
|
4374
4383
|
"custom-model",
|
|
4384
|
+
"custom-embedding-model",
|
|
4375
4385
|
"gemini-1.0-pro",
|
|
4376
4386
|
"gemini-1.5-pro",
|
|
4377
4387
|
"gemini-1.5-flash",
|
|
@@ -4418,6 +4428,7 @@ declare const generativeAIModels: readonly [
|
|
|
4418
4428
|
* - claude-instant-v1
|
|
4419
4429
|
* - claude-3-opus-20240229
|
|
4420
4430
|
* - custom-model
|
|
4431
|
+
* - custom-embedding-model
|
|
4421
4432
|
* - gemini-2.0-flash
|
|
4422
4433
|
* - gemini-2.0-flash-lite
|
|
4423
4434
|
* - mistral-large-2411
|
|
@@ -5525,15 +5536,15 @@ export interface IMongoosePaginationPluginReturnValue<T = any> {
|
|
|
5525
5536
|
* type: integer
|
|
5526
5537
|
* example: 1
|
|
5527
5538
|
* next:
|
|
5528
|
-
*
|
|
5539
|
+
* allOf:
|
|
5529
5540
|
* - $ref: '#/components/schemas/TMongoId'
|
|
5530
|
-
*
|
|
5541
|
+
* nullable: true
|
|
5531
5542
|
* example: 5ce7c2d833ea1e04d7e6c432
|
|
5532
5543
|
* previous:
|
|
5533
|
-
*
|
|
5544
|
+
* allOf:
|
|
5534
5545
|
* - $ref: '#/components/schemas/TMongoId'
|
|
5535
|
-
*
|
|
5536
|
-
* example:
|
|
5546
|
+
* nullable: true
|
|
5547
|
+
* example: 5ce7c2d833ea1e04d7e6c432
|
|
5537
5548
|
*/
|
|
5538
5549
|
export interface ICursorBasedPaginationReturnValue<T> extends IMongoosePaginationPluginReturnValue<T> {
|
|
5539
5550
|
}
|
|
@@ -8756,6 +8767,7 @@ export interface IOpenAICompatibleMeta {
|
|
|
8756
8767
|
customModel: string;
|
|
8757
8768
|
baseCustomUrl: string;
|
|
8758
8769
|
customAuthHeader?: string;
|
|
8770
|
+
embeddingVectorSize?: number;
|
|
8759
8771
|
}
|
|
8760
8772
|
export interface IAlephAlphaMeta {
|
|
8761
8773
|
customModel?: string;
|
|
@@ -9913,6 +9925,22 @@ export interface INodeToExecute {
|
|
|
9913
9925
|
};
|
|
9914
9926
|
type?: "stopExecution" | "resetCognigyScriptInput" | "trackAnalyticsStep";
|
|
9915
9927
|
}
|
|
9928
|
+
export interface OpenAIChatMessage {
|
|
9929
|
+
role: "system" | "user" | "assistant";
|
|
9930
|
+
content: string;
|
|
9931
|
+
}
|
|
9932
|
+
export interface IGenerativeSlot {
|
|
9933
|
+
tag: string;
|
|
9934
|
+
description: string;
|
|
9935
|
+
value: string;
|
|
9936
|
+
optional?: boolean;
|
|
9937
|
+
validation?: {
|
|
9938
|
+
type: string;
|
|
9939
|
+
value: string;
|
|
9940
|
+
invalidReason: string;
|
|
9941
|
+
};
|
|
9942
|
+
invalid?: boolean;
|
|
9943
|
+
}
|
|
9916
9944
|
export declare type TCompletionPrompt = {
|
|
9917
9945
|
prompt: string;
|
|
9918
9946
|
};
|
|
@@ -9924,6 +9952,8 @@ export declare type TChatMessage = {
|
|
|
9924
9952
|
export declare type TChatPrompt = {
|
|
9925
9953
|
messages: Array<TChatMessage>;
|
|
9926
9954
|
};
|
|
9955
|
+
export declare type TALLPrompts = TCompletionPrompt | TChatPrompt | Array<OpenAIChatMessage>;
|
|
9956
|
+
export declare type TPromptParserFun = (originalMsg: TALLPrompts) => TALLPrompts;
|
|
9927
9957
|
export declare type TSessionUsageInformation = {
|
|
9928
9958
|
[key: string]: {
|
|
9929
9959
|
llmDisplayName: string;
|
|
@@ -10077,11 +10107,15 @@ export declare type ValueOf<T> = T[keyof T];
|
|
|
10077
10107
|
* @param limit: the maximum number of entries to read
|
|
10078
10108
|
* @param rolesWhiteList: (optional) the roles for which the entries should be included, if not provided or empty all entries will be read
|
|
10079
10109
|
* @param excludeDataOnlyMessagesFilter: (optional) the roles for which data only messages (emtpy text field) will be excluded if type is input/output
|
|
10110
|
+
* @param useTextAlternativeForLLM: (optional) if true, graphical outputs will be included in the transcript, either using the value from the graphical description / fallbackText field, or by converting the data where possible
|
|
10111
|
+
* @param includeTextAlternativeInTranscript: (optional) if true, the text alternative for LLM will be included in the transcript
|
|
10080
10112
|
*/
|
|
10081
10113
|
export declare type TReadTranscriptOptions = {
|
|
10082
10114
|
limit: number;
|
|
10083
10115
|
rolesWhiteList?: TTranscriptRoles[];
|
|
10084
10116
|
excludeDataOnlyMessagesFilter?: (TranscriptRole.USER | TranscriptRole.AGENT | TranscriptRole.ASSISTANT)[];
|
|
10117
|
+
useTextAlternativeForLLM?: boolean;
|
|
10118
|
+
includeTextAlternativeInTranscript?: boolean;
|
|
10085
10119
|
};
|
|
10086
10120
|
declare enum TranscriptRole {
|
|
10087
10121
|
ASSISTANT = "assistant",
|
|
@@ -10119,6 +10153,7 @@ export declare type TTranscriptAgentOutput = {
|
|
|
10119
10153
|
payload: {
|
|
10120
10154
|
text?: string;
|
|
10121
10155
|
data?: any;
|
|
10156
|
+
textAlternative?: string;
|
|
10122
10157
|
};
|
|
10123
10158
|
};
|
|
10124
10159
|
export declare type TTranscriptAssistantOutput = {
|
|
@@ -10128,6 +10163,7 @@ export declare type TTranscriptAssistantOutput = {
|
|
|
10128
10163
|
payload: {
|
|
10129
10164
|
text?: string;
|
|
10130
10165
|
data?: any;
|
|
10166
|
+
textAlternative?: string;
|
|
10131
10167
|
};
|
|
10132
10168
|
};
|
|
10133
10169
|
export declare type TTranscriptAssistantToolCall = {
|
|
@@ -10189,22 +10225,6 @@ export interface ITool {
|
|
|
10189
10225
|
export interface IToolParameters {
|
|
10190
10226
|
[key: string]: any;
|
|
10191
10227
|
}
|
|
10192
|
-
export interface OpenAIChatMessage {
|
|
10193
|
-
role: "system" | "user" | "assistant";
|
|
10194
|
-
content: string;
|
|
10195
|
-
}
|
|
10196
|
-
export interface IGenerativeSlot {
|
|
10197
|
-
tag: string;
|
|
10198
|
-
description: string;
|
|
10199
|
-
value: string;
|
|
10200
|
-
optional?: boolean;
|
|
10201
|
-
validation?: {
|
|
10202
|
-
type: string;
|
|
10203
|
-
value: string;
|
|
10204
|
-
invalidReason: string;
|
|
10205
|
-
};
|
|
10206
|
-
invalid?: boolean;
|
|
10207
|
-
}
|
|
10208
10228
|
export interface IRunGenerativeAIPromptOptions {
|
|
10209
10229
|
/**
|
|
10210
10230
|
* @deprecated should not inject the prompt anymore, use getPrompt() instead
|
|
@@ -10231,7 +10251,7 @@ export interface IRunGenerativeAIPromptOptions {
|
|
|
10231
10251
|
*/
|
|
10232
10252
|
toolChoice?: "auto" | "required" | "none";
|
|
10233
10253
|
/** promptFiller - Injected Function to replace the possible prompt variable for the use case data on runtime . */
|
|
10234
|
-
promptParser?: (rawPrompt:
|
|
10254
|
+
promptParser?: (rawPrompt: TALLPrompts) => TALLPrompts;
|
|
10235
10255
|
/** temperature - (Optional) The temperature range to determine how much the OpenAI should vary its response. Defaults to 0.7 */
|
|
10236
10256
|
temperature?: number;
|
|
10237
10257
|
/** model - (Optional) The OpenAI model to use. Defaults to 'gpt-4o' */
|
|
@@ -10401,10 +10421,13 @@ export declare type ISearchTagsFilterOps = "and" | "or";
|
|
|
10401
10421
|
export interface IProviderOauth2Fields extends IAzureOpenAIProviderOauth2Fields {
|
|
10402
10422
|
tokenCacheKey: string;
|
|
10403
10423
|
}
|
|
10424
|
+
export interface ILLMProviderMeta extends IAzureOpenAIMeta {
|
|
10425
|
+
customAuthHeader?: string;
|
|
10426
|
+
}
|
|
10404
10427
|
export interface ISearchLLMCredentials {
|
|
10405
10428
|
provider: TGenerativeAIProviders;
|
|
10406
10429
|
connectionFields: IAzureOpenAIProviderFieldsV2 | IProviderOauth2Fields | IAwsBedrockProviderFields | IAwsBedrockIamProviderFields | IAlephAlphaProviderFields;
|
|
10407
|
-
providerMetaData:
|
|
10430
|
+
providerMetaData: ILLMProviderMeta;
|
|
10408
10431
|
}
|
|
10409
10432
|
export interface ISearchTagsData {
|
|
10410
10433
|
tags: string[];
|
|
@@ -10631,7 +10654,7 @@ export interface IActions {
|
|
|
10631
10654
|
getState?: () => string;
|
|
10632
10655
|
getSystemContext?: (key: string) => any;
|
|
10633
10656
|
emitEvent?: TEmitter;
|
|
10634
|
-
executeCodeInSecureContext?: (codeParams: ICodeNodeParams) => void
|
|
10657
|
+
executeCodeInSecureContext?: (codeParams: ICodeNodeParams) => Promise<void>;
|
|
10635
10658
|
executeCognigyNLU?: (params: IExecuteCognigyNLUParams) => Promise<INLProperties>;
|
|
10636
10659
|
handleIntentDefaultReply?: (params: INLProperties) => Promise<any>;
|
|
10637
10660
|
/**
|
|
@@ -10678,6 +10701,7 @@ export interface IActions {
|
|
|
10678
10701
|
rephraseSentenceWithAI(sentence: string, options: IRephraseSentenceWithAIOptions): Promise<string>;
|
|
10679
10702
|
rephraseMultipleSentencesWithAI(sentences: string[], options: IRephraseSentenceWithAIOptions): Promise<string[]>;
|
|
10680
10703
|
requestHandover?: (text: string, cancel: string, userId: string, sessionId: string, requestHandover: string, inputAnalyticsData: IAnalyticsSourceData, handoverVersion?: IHandoverRequestStatus["handoverVersion"], repeatHandoverMessage?: boolean, sendResolveEvent?: boolean, resolveBehavior?: IHandoverRequestStatus["resolveBehavior"], nodeType?: IHandoverRequestStatus["nodeType"], providerResponse?: any, sendOnQueueEvent?: boolean, sendOnActiveEvent?: boolean) => void;
|
|
10704
|
+
runGenerativeAIPromptForUseCase?: (options: IRunGenerativeAIPromptOptions, useCase: TGenerativeAIUseCases, subUseCase?: string, promptParser?: TPromptParserFun, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<any>;
|
|
10681
10705
|
runGenerativeAIPrompt?: (options: IRunGenerativeAIPromptOptions, useCase: TGenerativeAIUseCases, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<any>;
|
|
10682
10706
|
resetContext?: () => object;
|
|
10683
10707
|
resetFormBrain?: () => Promise<void>;
|
|
@@ -10925,6 +10949,11 @@ export interface IPatternMatchResult {
|
|
|
10925
10949
|
detailedMatches?: any[];
|
|
10926
10950
|
}
|
|
10927
10951
|
export declare type IPatternTypes = "de_lp" | "iban" | "us_ssn" | "bic" | "ipv4" | "creditcard" | "phonenumber";
|
|
10952
|
+
export interface IExecutionMetadata {
|
|
10953
|
+
sessionId: string;
|
|
10954
|
+
projectId: string;
|
|
10955
|
+
organisationId: string;
|
|
10956
|
+
}
|
|
10928
10957
|
export interface IExecutionObjects {
|
|
10929
10958
|
input: {
|
|
10930
10959
|
[key: string]: any;
|
|
@@ -10939,6 +10968,7 @@ export interface IExecutionObjects {
|
|
|
10939
10968
|
[key: string]: any;
|
|
10940
10969
|
};
|
|
10941
10970
|
lastConversationEntries: ILastConversationEntry[];
|
|
10971
|
+
metadata: IExecutionMetadata;
|
|
10942
10972
|
}
|
|
10943
10973
|
export declare type TEmitter = (type: TDebugEventType, payload: TDebugEventPayload, options?: IEmitterOptions) => void;
|
|
10944
10974
|
export interface IEmitterOptions {
|
|
@@ -11286,7 +11316,7 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
|
|
|
11286
11316
|
executeCognigyNLU?: (text: string, data: any, inputId: string, pipeline: IGetNluPipelineParams) => Promise<INLProperties>;
|
|
11287
11317
|
handleIntentDefaultReply?: (nlProperties: INLProperties) => Promise<any>;
|
|
11288
11318
|
executeFlow: (config: IExecuteFlowNodeConfig) => Promise<void>;
|
|
11289
|
-
goToNode?: (config: IGoToNodeParams["config"]
|
|
11319
|
+
goToNode?: (config: Pick<IGoToNodeParams["config"], "flowNode" | "absorbContext">) => Promise<void>;
|
|
11290
11320
|
addConditionalEntrypoint: (addConditionalEntrypointParams: IAddConditionalEntrypointParams) => void;
|
|
11291
11321
|
runSQLQuery?: (params: {
|
|
11292
11322
|
connection: ISQLConnectionFields;
|
|
@@ -11798,27 +11828,27 @@ export interface IKnowledgeField<K extends string | number | symbol = string> {
|
|
|
11798
11828
|
* items:
|
|
11799
11829
|
* type: object
|
|
11800
11830
|
* properties:
|
|
11801
|
-
* type:
|
|
11802
|
-
* type: string
|
|
11803
|
-
* enum:
|
|
11804
|
-
* - text
|
|
11805
|
-
* - rule
|
|
11806
|
-
* - json
|
|
11807
|
-
* - checkbox
|
|
11808
|
-
* - time
|
|
11809
|
-
* - date
|
|
11810
|
-
* - datetime
|
|
11811
|
-
* - select
|
|
11812
|
-
* - xml
|
|
11813
|
-
* - textArray
|
|
11814
|
-
* - chipInput
|
|
11815
|
-
* - toggle
|
|
11816
|
-
* - slider
|
|
11817
|
-
* - number
|
|
11818
|
-
* - daterange
|
|
11819
|
-
* - connection
|
|
11820
|
-
* - condition
|
|
11821
|
-
* - description
|
|
11831
|
+
* type:
|
|
11832
|
+
* type: string
|
|
11833
|
+
* enum:
|
|
11834
|
+
* - text
|
|
11835
|
+
* - rule
|
|
11836
|
+
* - json
|
|
11837
|
+
* - checkbox
|
|
11838
|
+
* - time
|
|
11839
|
+
* - date
|
|
11840
|
+
* - datetime
|
|
11841
|
+
* - select
|
|
11842
|
+
* - xml
|
|
11843
|
+
* - textArray
|
|
11844
|
+
* - chipInput
|
|
11845
|
+
* - toggle
|
|
11846
|
+
* - slider
|
|
11847
|
+
* - number
|
|
11848
|
+
* - daterange
|
|
11849
|
+
* - connection
|
|
11850
|
+
* - condition
|
|
11851
|
+
* - description
|
|
11822
11852
|
* key:
|
|
11823
11853
|
* type: string
|
|
11824
11854
|
* label:
|
|
@@ -13154,9 +13184,9 @@ export interface IIndexChartNodesRestReturnValue_2_0 extends ICursorBasedPaginat
|
|
|
13154
13184
|
* items:
|
|
13155
13185
|
* $ref: '#/components/schemas/TMongoId'
|
|
13156
13186
|
* next:
|
|
13157
|
-
*
|
|
13187
|
+
* allOf:
|
|
13158
13188
|
* - $ref: '#/components/schemas/TMongoId'
|
|
13159
|
-
*
|
|
13189
|
+
* nullable: true
|
|
13160
13190
|
*/
|
|
13161
13191
|
export interface IChartNodeRelation_2_0 {
|
|
13162
13192
|
_id: TMongoId;
|
|
@@ -18239,6 +18269,11 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18239
18269
|
failReason?: string;
|
|
18240
18270
|
tags?: string[];
|
|
18241
18271
|
extractedChunks?: number;
|
|
18272
|
+
extension?: {
|
|
18273
|
+
name: string;
|
|
18274
|
+
id: string;
|
|
18275
|
+
type: string;
|
|
18276
|
+
};
|
|
18242
18277
|
}
|
|
18243
18278
|
/**
|
|
18244
18279
|
* @openapi
|
|
@@ -18534,6 +18569,8 @@ export interface IRunKnowledgeExtensionRestDataBody_2_0 {
|
|
|
18534
18569
|
}
|
|
18535
18570
|
export interface IRunKnowledgeExtensionRestData_2_0 extends IRunKnowledgeExtensionRestDataParams_2_0, IRunKnowledgeExtensionRestDataBody_2_0 {
|
|
18536
18571
|
}
|
|
18572
|
+
export interface IRunKnowledgeExtensionRestReturnValue_2_0 extends ICreatedTask_2_0 {
|
|
18573
|
+
}
|
|
18537
18574
|
/**
|
|
18538
18575
|
* @openapi
|
|
18539
18576
|
*
|
|
@@ -19235,7 +19272,7 @@ export interface ResourcesAPIGroup_2_0 {
|
|
|
19235
19272
|
readKnowledgeStore: TRestAPIOperation<IReadKnowledgeStoreRestData_2_0, IReadKnowledgeStoreRestReturnValue_2_0>;
|
|
19236
19273
|
deleteKnowledgeStore: TRestAPIOperation<IDeleteKnowledgeStoreRestData_2_0, IDeleteKnowledgeStoreRestReturnValue_2_0>;
|
|
19237
19274
|
updateKnowledgeStore: TRestAPIOperation<IUpdateKnowledgeStoreRestData_2_0, IUpdateKnowledgeStoreRestReturnValue_2_0>;
|
|
19238
|
-
runKnowledgeExtension: TRestAPIOperation<IRunKnowledgeExtensionRestData_2_0,
|
|
19275
|
+
runKnowledgeExtension: TRestAPIOperation<IRunKnowledgeExtensionRestData_2_0, IRunKnowledgeExtensionRestReturnValue_2_0>;
|
|
19239
19276
|
indexKnowledgeDescriptors: TRestAPIOperation<IIndexKnowledgeDescriptorsRestData_2_0, IIndexKnowledgeDescriptorsRestReturnValue_2_0>;
|
|
19240
19277
|
indexKnowledgeSources: TRestAPIOperation<IIndexKnowledgeSourcesRestData_2_0, IIndexKnowledgeSourcesRestReturnValue_2_0>;
|
|
19241
19278
|
createKnowledgeSource: TRestAPIOperation<ICreateKnowledgeSourceRestData_2_0, ICreateKnowledgeSourceRestReturnValue_2_0>;
|
|
@@ -23321,14 +23358,16 @@ export interface IScheduleSimulationRestDataParams_2_0 {
|
|
|
23321
23358
|
}
|
|
23322
23359
|
export interface IScheduleSimulationRestDataBody_2_0 {
|
|
23323
23360
|
name: string;
|
|
23324
|
-
largeLanguageModelReferenceId: string;
|
|
23325
23361
|
runConfig: {
|
|
23326
23362
|
flowReferenceId: string;
|
|
23327
23363
|
localeReferenceId?: string;
|
|
23328
23364
|
entrypoint: string;
|
|
23365
|
+
largeLanguageModelReferenceId?: string;
|
|
23366
|
+
userId?: string;
|
|
23329
23367
|
};
|
|
23330
23368
|
projectReference: string;
|
|
23331
23369
|
numberOfExecutions: number;
|
|
23370
|
+
endPointType: string;
|
|
23332
23371
|
}
|
|
23333
23372
|
export interface IScheduleSimulationRestData_2_0 extends IScheduleSimulationRestDataParams_2_0, IScheduleSimulationRestDataBody_2_0 {
|
|
23334
23373
|
}
|
|
@@ -23496,12 +23535,18 @@ export interface IGetPersonaOptionsRestData_2_0 {
|
|
|
23496
23535
|
export interface IMissionType_2_0 {
|
|
23497
23536
|
name: string;
|
|
23498
23537
|
description: string;
|
|
23538
|
+
successCriteria: SuccessCriteria[];
|
|
23539
|
+
}
|
|
23540
|
+
export interface SuccessCriteria {
|
|
23541
|
+
name: string;
|
|
23542
|
+
description: string;
|
|
23499
23543
|
}
|
|
23500
23544
|
export interface IPersonaType_2_0 {
|
|
23501
23545
|
name: string;
|
|
23502
23546
|
description: string;
|
|
23503
23547
|
}
|
|
23504
23548
|
export interface IGetPersonaOptionsRestReturnValue_2_0 {
|
|
23549
|
+
simulationName: string;
|
|
23505
23550
|
missionTypes: IMissionType_2_0[];
|
|
23506
23551
|
personaTypes: IPersonaType_2_0[];
|
|
23507
23552
|
}
|