@cognigy/rest-api-client 4.99.0 → 2025.10.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/apigroups/ResourcesAPIGroup_2_0.js +3 -1
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockIAMProviderConnection.js +11 -0
- package/build/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +5 -1
- package/build/shared/charts/descriptors/index.js +5 -1
- package/build/shared/charts/descriptors/message/question/question.js +11 -7
- package/build/shared/charts/descriptors/message/say.js +10 -7
- package/build/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
- package/build/shared/charts/descriptors/service/LLMModerate.js +275 -0
- package/build/shared/charts/descriptors/service/index.js +5 -1
- package/build/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +12 -0
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +16 -14
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
- package/build/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/build/shared/interfaces/handover.js +21 -5
- package/build/shared/interfaces/messageAPI/endpoints.js +44 -119
- package/build/shared/interfaces/messageAPI/handover.js +34 -6
- package/build/shared/interfaces/resources/IEndpoint.js +24 -4
- package/build/shared/interfaces/resources/ISipConnectivityInfo.js +16 -0
- package/build/shared/interfaces/resources/IWebrtcWidgetConfig.js +12 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +3 -0
- package/build/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +3 -0
- package/build/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +3 -0
- package/build/shared/json-schema.js +2 -1
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +3 -1
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/awsBedrockIAMProviderConnection.js +8 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/generativeAIProviders/index.js +3 -0
- package/dist/esm/shared/charts/descriptors/index.js +6 -2
- package/dist/esm/shared/charts/descriptors/message/question/question.js +11 -7
- package/dist/esm/shared/charts/descriptors/message/say.js +10 -7
- package/dist/esm/shared/charts/descriptors/service/LLMEntityExtract.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/LLMModerate.js +273 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +2 -0
- package/dist/esm/shared/charts/descriptors/service/niceCXOneAAHAuthenticationConnection.js +9 -0
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +16 -14
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +25 -5
- package/dist/esm/shared/interfaces/generativeAI/IGenerativeAIModels.js +1 -0
- package/dist/esm/shared/interfaces/handover.js +21 -5
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +43 -118
- package/dist/esm/shared/interfaces/messageAPI/handover.js +34 -6
- package/dist/esm/shared/interfaces/resources/IEndpoint.js +27 -7
- package/dist/esm/shared/interfaces/resources/ISipConnectivityInfo.js +13 -0
- package/dist/esm/shared/interfaces/resources/IWebrtcWidgetConfig.js +9 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IConversationCounterPreAggregatedValue_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterOrganisationRest_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/IGetConversationCounterRest_3_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/metrics/conversationCounter/v3.0/index.js +2 -0
- package/dist/esm/shared/interfaces/security/IConversationCounterPreAggregatedValue.js +2 -0
- package/dist/esm/shared/json-schema.js +2 -1
- package/package.json +1 -1
- package/types/index.d.ts +98 -41
package/types/index.d.ts
CHANGED
|
@@ -2114,7 +2114,8 @@ declare const handoverProviders: readonly [
|
|
|
2114
2114
|
"liveAgent",
|
|
2115
2115
|
"genesysCloud",
|
|
2116
2116
|
"genesysCloudOM",
|
|
2117
|
-
"eightByEight"
|
|
2117
|
+
"eightByEight",
|
|
2118
|
+
"salesforceMIAW"
|
|
2118
2119
|
];
|
|
2119
2120
|
export declare type THandoverProvider = typeof handoverProviders[number];
|
|
2120
2121
|
export interface IHandoverSettings {
|
|
@@ -2391,6 +2392,14 @@ export interface IEndpointTranslationSettings {
|
|
|
2391
2392
|
alwaysRemoveNoTranslateMarker: boolean;
|
|
2392
2393
|
setInputLanguageOnExecutionCount: number;
|
|
2393
2394
|
}
|
|
2395
|
+
export interface ISipConnectivityInfo {
|
|
2396
|
+
realm: string;
|
|
2397
|
+
username: string;
|
|
2398
|
+
password: string;
|
|
2399
|
+
applicationSid: string;
|
|
2400
|
+
wsUri?: string;
|
|
2401
|
+
clientSid: string;
|
|
2402
|
+
}
|
|
2394
2403
|
export interface IEndpoint extends IEntityMeta {
|
|
2395
2404
|
channel: TChannelType;
|
|
2396
2405
|
/**
|
|
@@ -2402,6 +2411,10 @@ export interface IEndpoint extends IEntityMeta {
|
|
|
2402
2411
|
* The ID of the Snapshot or Project to target
|
|
2403
2412
|
*/
|
|
2404
2413
|
entrypoint: TMongoId;
|
|
2414
|
+
/**
|
|
2415
|
+
* The custom icon for the endpoint.
|
|
2416
|
+
*/
|
|
2417
|
+
customIcon: string;
|
|
2405
2418
|
/** The URL Token we publish on the endpoints and use to retrieve the correct endpoint configurations */
|
|
2406
2419
|
URLToken: string;
|
|
2407
2420
|
/** The name of the endpoint resource */
|
|
@@ -2417,8 +2430,8 @@ export interface IEndpoint extends IEntityMeta {
|
|
|
2417
2430
|
*/
|
|
2418
2431
|
useConversations: boolean;
|
|
2419
2432
|
/**
|
|
2420
|
-
|
|
2421
|
-
|
|
2433
|
+
* Whether to mask sensitive IP address in input object and analytics data for this endpoint
|
|
2434
|
+
*/
|
|
2422
2435
|
maskIPAddress: boolean;
|
|
2423
2436
|
/**
|
|
2424
2437
|
* Whether to mask sensitive data in analytics for this endpoint
|
|
@@ -2473,6 +2486,14 @@ export interface IEndpoint extends IEntityMeta {
|
|
|
2473
2486
|
* with those of the Agent */
|
|
2474
2487
|
overrideSnapshotConnections: boolean;
|
|
2475
2488
|
fileStorageSettings: IFileStorageSettings;
|
|
2489
|
+
/** Whether to use the webrtc application exists for this endpoint */
|
|
2490
|
+
webrtcClient?: boolean;
|
|
2491
|
+
sipConnectivityInfo?: ISipConnectivityInfo;
|
|
2492
|
+
/** The label of the webrtc widget */
|
|
2493
|
+
webrtcWidgetConfig?: {
|
|
2494
|
+
label: string;
|
|
2495
|
+
active: boolean;
|
|
2496
|
+
};
|
|
2476
2497
|
}
|
|
2477
2498
|
export interface IGraphEndpoint {
|
|
2478
2499
|
type: "endpoint";
|
|
@@ -2666,8 +2687,14 @@ export interface IVoiceGatewayEndpointSettings extends IEndpointSessionSettings
|
|
|
2666
2687
|
failover?: ICallEventFailoverSettings;
|
|
2667
2688
|
genericSettings?: IVGGenericSettings;
|
|
2668
2689
|
isFeatureAccmEnabled?: boolean;
|
|
2690
|
+
/**
|
|
2691
|
+
* Control the privacy notice of the Webrtc Widget
|
|
2692
|
+
*/
|
|
2693
|
+
privacyNotice: Omit<IWebchat3EndpointPrivacyNoticeSettings, "title"> & {
|
|
2694
|
+
cancelButtonText: string;
|
|
2695
|
+
};
|
|
2669
2696
|
}
|
|
2670
|
-
export declare type AnyEndpointSettings = IFacebookEndpointSettings | IWorkplaceEndpointSettings | ISlackEndpointSettings | IGenericEndpointSettings | IAlexaEndpointSettings | IWebchat2EndpointSettings | IWebchat3EndpointSettings | ILineEndpointSettings | ITwilioEndpointSettings | ITwilioSmsEndpointSettings | IIntercomEndpointSettings | IRealtimeEndpointSettings | ISunshineConversationsEndpointSettings | IAvayaEndpointSettings | IUserlikeEndpointSettings | IBandwidthEndpointSettings | IAudioCodesEndpointSettings | IWhatsAppEndpointSettings | IAmazonLexEndpointSettings | IEightByEightEndpointSettings | IMicrosoftBotFrameworkEndpointSettings | IVoiceGatewayEndpointSettings | IGenesysBotConnectorEndpointSettings | INiceCXOneEndpointSettings | IAgentAssistVoiceEndpointSettings | {};
|
|
2697
|
+
export declare type AnyEndpointSettings = IFacebookEndpointSettings | IWorkplaceEndpointSettings | ISlackEndpointSettings | IGenericEndpointSettings | IAlexaEndpointSettings | IWebchat2EndpointSettings | IWebchat3EndpointSettings | ILineEndpointSettings | ITwilioEndpointSettings | ITwilioSmsEndpointSettings | IIntercomEndpointSettings | IRealtimeEndpointSettings | ISunshineConversationsEndpointSettings | IAvayaEndpointSettings | IUserlikeEndpointSettings | IBandwidthEndpointSettings | IAudioCodesEndpointSettings | IWhatsAppEndpointSettings | IAmazonLexEndpointSettings | IEightByEightEndpointSettings | IMicrosoftBotFrameworkEndpointSettings | IVoiceGatewayEndpointSettings | IGenesysBotConnectorEndpointSettings | INiceCXOneEndpointSettings | INiceCXOneAAHEndpointSettings | IAgentAssistVoiceEndpointSettings | {};
|
|
2671
2698
|
export declare type TAvayaVoice = "man" | "woman" | string;
|
|
2672
2699
|
declare const avayaSttTtsLanguages: readonly [
|
|
2673
2700
|
"cy-GB",
|
|
@@ -4289,6 +4316,9 @@ export interface IGenesysBotConnectorEndpointSettings {
|
|
|
4289
4316
|
export interface INiceCXOneEndpointSettings {
|
|
4290
4317
|
verifyToken: string;
|
|
4291
4318
|
}
|
|
4319
|
+
export interface INiceCXOneAAHEndpointSettings {
|
|
4320
|
+
niceCXOneAAHConnection: string;
|
|
4321
|
+
}
|
|
4292
4322
|
declare const arrayNLUConnectorType_2_0: readonly [
|
|
4293
4323
|
"alexa",
|
|
4294
4324
|
"dialogflow",
|
|
@@ -4336,7 +4366,8 @@ declare const generativeAIModels: readonly [
|
|
|
4336
4366
|
"text-embedding-3-large",
|
|
4337
4367
|
"text-embedding-ada-002",
|
|
4338
4368
|
"luminous-embedding-128",
|
|
4339
|
-
"amazon.titan-embed-text-v2:0"
|
|
4369
|
+
"amazon.titan-embed-text-v2:0",
|
|
4370
|
+
"Pharia-1-Embedding-4608"
|
|
4340
4371
|
];
|
|
4341
4372
|
/**
|
|
4342
4373
|
* @openapi
|
|
@@ -4354,6 +4385,7 @@ declare const generativeAIModels: readonly [
|
|
|
4354
4385
|
* - text-embedding-ada-002
|
|
4355
4386
|
* - luminous-extended-control
|
|
4356
4387
|
* - luminous-embedding-128
|
|
4388
|
+
* - Pharia-1-Embedding-4608
|
|
4357
4389
|
* - claude-v1-100k
|
|
4358
4390
|
* - claude-instant-v1
|
|
4359
4391
|
* - claude-3-opus-20240229
|
|
@@ -6777,6 +6809,10 @@ export interface IIndexEndpointsRestData_2_0 extends IRestPagination<IEndpointIn
|
|
|
6777
6809
|
}
|
|
6778
6810
|
export interface IIndexEndpointsRestReturnValue_2_0 extends ICursorBasedPaginationReturnValue<IEndpointIndexItem_2_0> {
|
|
6779
6811
|
}
|
|
6812
|
+
export interface IWebrtcWidgetConfig {
|
|
6813
|
+
label: string;
|
|
6814
|
+
active: boolean;
|
|
6815
|
+
}
|
|
6780
6816
|
/**
|
|
6781
6817
|
* @openapi
|
|
6782
6818
|
*
|
|
@@ -7232,6 +7268,11 @@ export interface IEndpoint_2_0 {
|
|
|
7232
7268
|
overrideSnapshotConnections: boolean;
|
|
7233
7269
|
fileStorageSettings: IEndpointFileStorageSettings_2_0;
|
|
7234
7270
|
orgDataPrivacySettings?: IEndpoitOrgDataPrivacySettings_2_0;
|
|
7271
|
+
/** Whether to use the webrtc application exists for this endpoint */
|
|
7272
|
+
webrtcClient?: boolean;
|
|
7273
|
+
sipConnectivityInfo?: ISipConnectivityInfo;
|
|
7274
|
+
/** The label of the webrtc widget */
|
|
7275
|
+
webrtcWidgetConfig?: IWebrtcWidgetConfig;
|
|
7235
7276
|
}
|
|
7236
7277
|
export interface ITransformerFunction_2_0 {
|
|
7237
7278
|
/**
|
|
@@ -7389,6 +7430,7 @@ export interface IReadEndpointRestData_2_0 extends IReadEndpointRestDataParams_2
|
|
|
7389
7430
|
export interface IReadEndpointRestReturnValue_2_0 extends IEndpoint_2_0 {
|
|
7390
7431
|
}
|
|
7391
7432
|
export interface IUpdateEndpointRestDataBody_2_0 extends Partial<Omit<IEndpoint_2_0, keyof IEntityMeta | "URLToken">> {
|
|
7433
|
+
createWebrtcClient?: boolean;
|
|
7392
7434
|
}
|
|
7393
7435
|
export interface IUpdateEndpointRestDataParams_2_0 {
|
|
7394
7436
|
endpointId: string;
|
|
@@ -7399,6 +7441,7 @@ export interface IUpdateEndpointRestReturnValue_2_0 {
|
|
|
7399
7441
|
}
|
|
7400
7442
|
export interface IDeleteEndpointRestDataParams_2_0 {
|
|
7401
7443
|
endpointId: string;
|
|
7444
|
+
channelType?: TChannelType;
|
|
7402
7445
|
}
|
|
7403
7446
|
export interface IDeleteEndpointRestData_2_0 extends IDeleteEndpointRestDataParams_2_0 {
|
|
7404
7447
|
}
|
|
@@ -10264,10 +10307,16 @@ export interface IAzureOpenAIProviderOauth2Fields {
|
|
|
10264
10307
|
oauthUrl: string;
|
|
10265
10308
|
scope: string;
|
|
10266
10309
|
}
|
|
10310
|
+
export interface IAlephAlphaProviderFields {
|
|
10311
|
+
token: string;
|
|
10312
|
+
}
|
|
10267
10313
|
export interface IAwsBedrockProviderFields {
|
|
10268
10314
|
accessKeyId: string;
|
|
10269
10315
|
secretAccessKey: string;
|
|
10270
10316
|
}
|
|
10317
|
+
export interface IAwsBedrockIamProviderFields {
|
|
10318
|
+
roleArn: string;
|
|
10319
|
+
}
|
|
10271
10320
|
export interface IParams {
|
|
10272
10321
|
[key: string]: any;
|
|
10273
10322
|
}
|
|
@@ -10300,7 +10349,7 @@ export interface IProviderOauth2Fields extends IAzureOpenAIProviderOauth2Fields
|
|
|
10300
10349
|
}
|
|
10301
10350
|
export interface ISearchLLMCredentials {
|
|
10302
10351
|
provider: TGenerativeAIProviders;
|
|
10303
|
-
connectionFields: IAzureOpenAIProviderFieldsV2 | IProviderOauth2Fields | IAwsBedrockProviderFields;
|
|
10352
|
+
connectionFields: IAzureOpenAIProviderFieldsV2 | IProviderOauth2Fields | IAwsBedrockProviderFields | IAwsBedrockIamProviderFields | IAlephAlphaProviderFields;
|
|
10304
10353
|
providerMetaData: IAzureOpenAIMeta;
|
|
10305
10354
|
}
|
|
10306
10355
|
export interface ISearchTagsData {
|
|
@@ -10440,6 +10489,38 @@ export interface IGoalEscalations extends IGoalAnalyticsData, IAnalyticsEndpoint
|
|
|
10440
10489
|
export interface IEndpointSettings {
|
|
10441
10490
|
isFeatureAccmEnabled?: boolean;
|
|
10442
10491
|
}
|
|
10492
|
+
export interface IChartExecutableNode<C extends INodeFunctionBaseParams = INodeFunctionBaseParams> extends IProjectScope, IOrganisationScope {
|
|
10493
|
+
id: string;
|
|
10494
|
+
_id?: string;
|
|
10495
|
+
type: string;
|
|
10496
|
+
label?: string;
|
|
10497
|
+
extension: string;
|
|
10498
|
+
behavior: {
|
|
10499
|
+
stopping: boolean;
|
|
10500
|
+
};
|
|
10501
|
+
fields: INodeFieldSet;
|
|
10502
|
+
children: string[];
|
|
10503
|
+
next: string | null;
|
|
10504
|
+
config: C["config"];
|
|
10505
|
+
/**
|
|
10506
|
+
* Whether the node contain trustedCode.
|
|
10507
|
+
* Our cognigy nodes have trustedCodes - custom modules do not
|
|
10508
|
+
* have trusted-codes by default. This determines whether the nodes
|
|
10509
|
+
* function is executed in service-ai or service-execution.
|
|
10510
|
+
*/
|
|
10511
|
+
trustedCode: boolean;
|
|
10512
|
+
pathToPackageExecutable: string;
|
|
10513
|
+
/**
|
|
10514
|
+
* Whether the node is a standard
|
|
10515
|
+
* Cognigy node, e.g. a sendText node.
|
|
10516
|
+
*/
|
|
10517
|
+
isCognigy: boolean;
|
|
10518
|
+
/**
|
|
10519
|
+
* Whether the node is disabled
|
|
10520
|
+
*/
|
|
10521
|
+
isDisabled: boolean;
|
|
10522
|
+
analyticsLabel?: string;
|
|
10523
|
+
}
|
|
10443
10524
|
export interface IGetConversationTranscriptParams {
|
|
10444
10525
|
turnLimit: number;
|
|
10445
10526
|
}
|
|
@@ -10482,6 +10563,11 @@ export interface IRephraseSentenceWithAIOptions {
|
|
|
10482
10563
|
answer?: string;
|
|
10483
10564
|
}
|
|
10484
10565
|
export declare type TBrainSessionState = Partial<Pick<ISessionState, "frustration" | "lastFlowPath" | "apps" | "lastConversationEntries" | "analytics" | "lastToolCall" | "tokenUsage">>;
|
|
10566
|
+
export declare type TNodeAnalyticsParams = {
|
|
10567
|
+
nodeId: IChartExecutableNode["id"];
|
|
10568
|
+
nodeLabel: IChartExecutableNode["label"];
|
|
10569
|
+
nodeType: IChartExecutableNode["type"];
|
|
10570
|
+
};
|
|
10485
10571
|
export interface IActions {
|
|
10486
10572
|
addConditionalEntrypoint?: (actions: IActions, flowId: string) => (addConditionalEntrypointParams: IAddConditionalEntrypointParams) => void;
|
|
10487
10573
|
addHandoverInactivityTimer?: (params: {
|
|
@@ -10555,7 +10641,7 @@ export interface IActions {
|
|
|
10555
10641
|
rephraseSentenceWithAI(sentence: string, options: IRephraseSentenceWithAIOptions): Promise<string>;
|
|
10556
10642
|
rephraseMultipleSentencesWithAI(sentences: string[], options: IRephraseSentenceWithAIOptions): Promise<string[]>;
|
|
10557
10643
|
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"], agentAssistInitMessage?: string, providerResponse?: any, sendOnQueueEvent?: boolean, sendOnActiveEvent?: boolean) => void;
|
|
10558
|
-
runGenerativeAIPrompt?: (options: IRunGenerativeAIPromptOptions, useCase: TGenerativeAIUseCases) => Promise<any>;
|
|
10644
|
+
runGenerativeAIPrompt?: (options: IRunGenerativeAIPromptOptions, useCase: TGenerativeAIUseCases, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<any>;
|
|
10559
10645
|
resetContext?: () => object;
|
|
10560
10646
|
resetFormBrain?: () => Promise<void>;
|
|
10561
10647
|
resetState?: () => Promise<string>;
|
|
@@ -10593,7 +10679,7 @@ export interface IActions {
|
|
|
10593
10679
|
thinkV2?: (nodeId: string) => (text: string, data: any) => void;
|
|
10594
10680
|
trackAnalyticsStep?: (stepLabel: string) => (trackArgs?: ITrackAnalyticsStepsArguments) => void;
|
|
10595
10681
|
updateProfile?: (profileSchemaField: string, value: any) => Promise<any>;
|
|
10596
|
-
knowledgeSearch: (data: IKnowledgeSearchData) => Promise<IKnowledgeSearchReturnValue>;
|
|
10682
|
+
knowledgeSearch: (data: IKnowledgeSearchData, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<IKnowledgeSearchReturnValue>;
|
|
10597
10683
|
matchPattern: (patternType: IPatternTypes, phrase: string, locale?: string) => IPatternMatchResult;
|
|
10598
10684
|
getAgentAssistConfigId: () => string;
|
|
10599
10685
|
getNluEmbeddingCredentials: () => INluEmbeddingCredentials;
|
|
@@ -11231,7 +11317,8 @@ export interface INodeExecutionAPI extends Omit<IActions, "parseCognigyScriptCon
|
|
|
11231
11317
|
getAppSessionPin: () => Promise<string>;
|
|
11232
11318
|
validateDatepickerFunctionInSecureContext?: (codeToValidate: string) => string | null;
|
|
11233
11319
|
completeGoal: (goal: string) => void;
|
|
11234
|
-
knowledgeSearch: (data: IKnowledgeSearchData) => Promise<IKnowledgeSearchReturnValue>;
|
|
11320
|
+
knowledgeSearch: (data: IKnowledgeSearchData, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<IKnowledgeSearchReturnValue>;
|
|
11321
|
+
runGenerativeAIPrompt: (options: IRunGenerativeAIPromptOptions, useCase: TGenerativeAIUseCases, nodeAnalyticsParams?: TNodeAnalyticsParams) => Promise<any>;
|
|
11235
11322
|
matchPattern: (patternType: IPatternTypes, phrase: string, locale?: string) => IPatternMatchResult;
|
|
11236
11323
|
getAgentAssistConfigId: () => string;
|
|
11237
11324
|
countGPTTokens: (prompt: string) => number;
|
|
@@ -11264,38 +11351,6 @@ export interface INodeExecutionCognigyObject extends IExecutionObjects {
|
|
|
11264
11351
|
api: INodeExecutionAPI;
|
|
11265
11352
|
flowReferenceId?: string;
|
|
11266
11353
|
}
|
|
11267
|
-
export interface IChartExecutableNode<C extends INodeFunctionBaseParams = INodeFunctionBaseParams> extends IProjectScope, IOrganisationScope {
|
|
11268
|
-
id: string;
|
|
11269
|
-
_id?: string;
|
|
11270
|
-
type: string;
|
|
11271
|
-
label?: string;
|
|
11272
|
-
extension: string;
|
|
11273
|
-
behavior: {
|
|
11274
|
-
stopping: boolean;
|
|
11275
|
-
};
|
|
11276
|
-
fields: INodeFieldSet;
|
|
11277
|
-
children: string[];
|
|
11278
|
-
next: string | null;
|
|
11279
|
-
config: C["config"];
|
|
11280
|
-
/**
|
|
11281
|
-
* Whether the node contain trustedCode.
|
|
11282
|
-
* Our cognigy nodes have trustedCodes - custom modules do not
|
|
11283
|
-
* have trusted-codes by default. This determines whether the nodes
|
|
11284
|
-
* function is executed in service-ai or service-execution.
|
|
11285
|
-
*/
|
|
11286
|
-
trustedCode: boolean;
|
|
11287
|
-
pathToPackageExecutable: string;
|
|
11288
|
-
/**
|
|
11289
|
-
* Whether the node is a standard
|
|
11290
|
-
* Cognigy node, e.g. a sendText node.
|
|
11291
|
-
*/
|
|
11292
|
-
isCognigy: boolean;
|
|
11293
|
-
/**
|
|
11294
|
-
* Whether the node is disabled
|
|
11295
|
-
*/
|
|
11296
|
-
isDisabled: boolean;
|
|
11297
|
-
analyticsLabel?: string;
|
|
11298
|
-
}
|
|
11299
11354
|
export interface INodeFunctionInputOptions {
|
|
11300
11355
|
handledIntentReconfirmation?: boolean;
|
|
11301
11356
|
nluLanguage?: TNluLanguage;
|
|
@@ -16077,6 +16132,7 @@ export interface IVoiceConfigParams {
|
|
|
16077
16132
|
sttVadMode: number;
|
|
16078
16133
|
sttVadVoiceMs: number;
|
|
16079
16134
|
sttLabel: string;
|
|
16135
|
+
sttListenDuringPrompt: boolean;
|
|
16080
16136
|
ttsDisableCache: boolean;
|
|
16081
16137
|
ttsVoice: string;
|
|
16082
16138
|
ttsLanguage: string;
|
|
@@ -16087,6 +16143,7 @@ export interface IVoiceConfigParams {
|
|
|
16087
16143
|
azureSpeechRecognitionMode: string;
|
|
16088
16144
|
azureEnableAudioLogging: boolean;
|
|
16089
16145
|
azureHintsBoost: number;
|
|
16146
|
+
azureProfanityOption: "masked" | "removed" | "raw";
|
|
16090
16147
|
googleDisablePunctuation: boolean;
|
|
16091
16148
|
googleInteractionType: string;
|
|
16092
16149
|
googleHintsBoost: number;
|