@cognigy/rest-api-client 2025.18.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 +7 -0
- 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/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/generativeAI/utils/generativeAIPrompts.js +17 -446
- 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/interfaces/generativeAI/IGenerativeAIModels.js +4 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +3 -2
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +87 -77
- package/build/test.js +39 -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/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/generativeAI/utils/generativeAIPrompts.js +16 -445
- 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/interfaces/generativeAI/IGenerativeAIModels.js +4 -0
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +3 -2
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +88 -78
- package/dist/esm/shared/interfaces/restAPI/management/authentication/ICreateJWTToken.js +1 -0
- package/dist/esm/test.js +39 -0
- package/package.json +1 -1
- package/types/index.d.ts +20 -2
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
|
/**
|
|
@@ -4367,6 +4379,10 @@ declare const generativeAIModels: readonly [
|
|
|
4367
4379
|
"gpt-4.1",
|
|
4368
4380
|
"gpt-4.1-mini",
|
|
4369
4381
|
"gpt-4.1-nano",
|
|
4382
|
+
"gpt-5",
|
|
4383
|
+
"gpt-5-nano",
|
|
4384
|
+
"gpt-5-mini",
|
|
4385
|
+
"gpt-5-chat-latest",
|
|
4370
4386
|
"luminous-extended-control",
|
|
4371
4387
|
"claude-v1-100k",
|
|
4372
4388
|
"claude-instant-v1",
|
|
@@ -10134,6 +10150,7 @@ declare enum TranscriptEntryType {
|
|
|
10134
10150
|
}
|
|
10135
10151
|
export declare type TTranscriptEntryContent = TTranscriptUserInput | TTranscriptAssistantOutput | TTranscriptAgentOutput | TTranscriptAssistantToolCall | TTranscriptToolAnswer | TTranscriptDebugLog;
|
|
10136
10152
|
export declare type TTranscriptEntry = TTranscriptEntryContent & {
|
|
10153
|
+
id: string;
|
|
10137
10154
|
timestamp: number;
|
|
10138
10155
|
traceId: string;
|
|
10139
10156
|
};
|
|
@@ -11511,7 +11528,7 @@ declare const nodePreviewTypes: readonly [
|
|
|
11511
11528
|
"image",
|
|
11512
11529
|
"aiAgent"
|
|
11513
11530
|
];
|
|
11514
|
-
export declare type TNodePreviewType =
|
|
11531
|
+
export declare type TNodePreviewType = typeof nodePreviewTypes[number];
|
|
11515
11532
|
export interface INodePreview {
|
|
11516
11533
|
type: TNodePreviewType;
|
|
11517
11534
|
key: string;
|
|
@@ -11608,7 +11625,7 @@ declare const nodeFieldTypes: readonly [
|
|
|
11608
11625
|
"typescript",
|
|
11609
11626
|
"xml"
|
|
11610
11627
|
];
|
|
11611
|
-
export declare type TNodeFieldType =
|
|
11628
|
+
export declare type TNodeFieldType = typeof nodeFieldTypes[number];
|
|
11612
11629
|
export declare type TComparableValue = string | number | boolean;
|
|
11613
11630
|
export declare type TNodeFieldCondition = INodeFieldSingleCondition | INodeFieldANDCondition | INodeFieldORCondition;
|
|
11614
11631
|
export interface INodeFieldSingleCondition {
|
|
@@ -11655,6 +11672,7 @@ export interface INodeField<K extends string | number | symbol = string> {
|
|
|
11655
11672
|
label: string | INodeFieldTranslations;
|
|
11656
11673
|
condition?: TNodeFieldCondition;
|
|
11657
11674
|
defaultValue?: any;
|
|
11675
|
+
fallbackValue?: any;
|
|
11658
11676
|
description?: string | INodeFieldTranslations;
|
|
11659
11677
|
params?: {
|
|
11660
11678
|
[key: string]: any;
|