@cognigy/rest-api-client 2025.24.0 → 2026.1.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 +14 -0
- package/build/apigroups/SimulationAPIGroup_2_0.js +15 -1
- package/build/authentication/AuthenticationAPI.js +1 -0
- package/build/shared/charts/createNodeDescriptor.js +1 -0
- package/build/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
- package/build/shared/charts/descriptors/analytics/updateProfile.js +5 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
- package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +9 -0
- package/build/shared/charts/descriptors/index.js +7 -1
- package/build/shared/charts/descriptors/message/question/question.js +5 -0
- package/build/shared/charts/descriptors/message/say.js +3 -0
- package/build/shared/charts/descriptors/placeholder.js +3 -0
- package/build/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +239 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToAiAgentTool.js +192 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +783 -0
- package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +272 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +23 -20
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +4 -2
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +3 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +26 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehub.js +198 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubConnection.js +16 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubForm.js +300 -0
- package/build/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubProviderModule.js +16 -0
- package/build/shared/charts/descriptors/service/handoverV2.js +1 -1
- package/build/shared/charts/descriptors/service/httpRequest.js +3 -0
- package/build/shared/charts/descriptors/service/index.js +9 -1
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +11 -4
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +29 -27
- package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +5 -5
- package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -2
- package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +13 -4
- package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +4 -4
- package/build/shared/constants.js +2 -1
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/amqpInterface.js +1 -0
- package/build/shared/interfaces/cxone/knowledgehub/CXoneKnowledgehubAPI.js +3 -0
- package/build/shared/interfaces/messageAPI/endpoints.js +1 -1
- package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/build/shared/interfaces/resources/IChart.js +10 -1
- package/build/shared/interfaces/resources/IChartNode.js +32 -4
- package/build/shared/interfaces/resources/IEndpoint.js +1 -0
- package/build/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
- package/build/shared/interfaces/resources/TResourceType.js +1 -0
- package/build/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +49 -0
- package/build/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/build/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +12 -0
- package/build/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +3 -0
- package/build/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js +15 -1
- package/build/shared/interfaces/restAPI/simulation/simulationRunBatch/ISimulationRunBatchRest_2_0.js +6 -1
- package/dist/esm/apigroups/ResourcesAPIGroup_2_0.js +14 -0
- package/dist/esm/apigroups/SimulationAPIGroup_2_0.js +15 -1
- package/dist/esm/authentication/AuthenticationAPI.js +1 -0
- package/dist/esm/shared/charts/createNodeDescriptor.js +1 -0
- package/dist/esm/shared/charts/descriptors/analytics/overwriteAnalytics.js +14 -0
- package/dist/esm/shared/charts/descriptors/analytics/updateProfile.js +5 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +7 -0
- package/dist/esm/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +9 -0
- package/dist/esm/shared/charts/descriptors/index.js +6 -1
- package/dist/esm/shared/charts/descriptors/message/question/question.js +5 -0
- package/dist/esm/shared/charts/descriptors/message/say.js +3 -0
- package/dist/esm/shared/charts/descriptors/placeholder.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/executeWorkflowTool.js +237 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToAiAgentTool.js +190 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToHumanAgentTool.js +770 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +270 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +23 -20
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJobCallMCPTool.js +4 -2
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +3 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/parseMcpHeaders.js +25 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehub.js +196 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubConnection.js +13 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubForm.js +297 -0
- package/dist/esm/shared/charts/descriptors/service/cxone/knowledgehub/CXoneKnowledgehubProviderModule.js +13 -0
- package/dist/esm/shared/charts/descriptors/service/handoverV2.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/httpRequest.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +4 -0
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +11 -4
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +29 -27
- package/dist/esm/shared/charts/descriptors/voice/mappers/transfer.mapper.js +5 -5
- package/dist/esm/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +2 -2
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +13 -4
- package/dist/esm/shared/charts/descriptors/voicegateway2/nodes/transfer.js +4 -4
- package/dist/esm/shared/constants.js +1 -0
- package/dist/esm/shared/interfaces/IOrganisation.js +1 -0
- package/dist/esm/shared/interfaces/amqpInterface.js +1 -0
- package/dist/esm/shared/interfaces/cxone/knowledgehub/CXoneKnowledgehubAPI.js +2 -0
- package/dist/esm/shared/interfaces/messageAPI/endpoints.js +1 -1
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/dist/esm/shared/interfaces/resources/IChart.js +10 -1
- package/dist/esm/shared/interfaces/resources/IChartNode.js +32 -4
- package/dist/esm/shared/interfaces/resources/IEndpoint.js +1 -0
- package/dist/esm/shared/interfaces/resources/INodeDescriptorSet.js +8 -0
- package/dist/esm/shared/interfaces/resources/TResourceType.js +1 -0
- package/dist/esm/shared/interfaces/resources/chart/IChartExecutableNode.js +10 -1
- package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeConnector.js +46 -0
- package/dist/esm/shared/interfaces/resources/knowledgeStore/IKnowledgeSource.js +1 -1
- package/dist/esm/shared/interfaces/restAPI/administration/user/v2.0/IExchangeCXoneTokenRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/ICreateKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IDeleteKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IIndexKnowledgeConnectorsRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IKnowledgeConnector_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IReadKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/resources/knowledgeStore/v2.0/connector/IUpdateKnowledgeConnectorRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ICreateSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IGetSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/ISchedulerRest_2_0.js +9 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/scheduler/IUpdateSchedulerRest_2_0.js +2 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js +14 -0
- package/dist/esm/shared/interfaces/restAPI/simulation/simulationRunBatch/ISimulationRunBatchRest_2_0.js +5 -0
- package/package.json +1 -1
- package/types/index.d.ts +727 -29
package/types/index.d.ts
CHANGED
|
@@ -935,6 +935,7 @@ declare const referenceKeys: readonly [
|
|
|
935
935
|
"resourceReference",
|
|
936
936
|
"snapshotReference",
|
|
937
937
|
"subResourceReference",
|
|
938
|
+
"connectorReference",
|
|
938
939
|
"storeReference",
|
|
939
940
|
"sourceReference"
|
|
940
941
|
];
|
|
@@ -965,6 +966,7 @@ declare const arrayTResourceType: readonly [
|
|
|
965
966
|
"knowledgeStore",
|
|
966
967
|
"knowledgeSource",
|
|
967
968
|
"knowledgeChunk",
|
|
969
|
+
"knowledgeConnector",
|
|
968
970
|
"lexicon",
|
|
969
971
|
"lexiconEntry",
|
|
970
972
|
"lexiconKeyphrase",
|
|
@@ -1609,6 +1611,20 @@ export interface IExchangeOneTimeTokenForRefreshTokenRestData_2_0 extends IExcha
|
|
|
1609
1611
|
export interface IExchangeOneTimeTokenForRefreshTokenRestReturnValue_2_0 {
|
|
1610
1612
|
refreshToken: string;
|
|
1611
1613
|
}
|
|
1614
|
+
/**
|
|
1615
|
+
* @openapi
|
|
1616
|
+
*
|
|
1617
|
+
* components:
|
|
1618
|
+
* schemas:
|
|
1619
|
+
* IExchangeCXoneTokenRestReturnValue_2_0:
|
|
1620
|
+
* type: object
|
|
1621
|
+
* properties:
|
|
1622
|
+
* refreshToken:
|
|
1623
|
+
* type: string
|
|
1624
|
+
*/
|
|
1625
|
+
export interface IExchangeCXoneTokenRestReturnValue_2_0 {
|
|
1626
|
+
refreshToken: string;
|
|
1627
|
+
}
|
|
1612
1628
|
export interface AuthenticationAPI {
|
|
1613
1629
|
authenticationHandler?: IAuthenticationAdapter;
|
|
1614
1630
|
setCredentials: (credentials: TAuthenticationCredentials) => void;
|
|
@@ -1621,6 +1637,7 @@ export interface AuthenticationAPI {
|
|
|
1621
1637
|
webfinger: TRestAPIOperation<IWebfingerRestData, IWebfingerRestReturnValue>;
|
|
1622
1638
|
getAuthorizationCode?: (data: IGetAuthorizationCodeParameters) => Promise<IGetAuthorizationCodeResponse>;
|
|
1623
1639
|
exchangeOneTimeTokenForRefreshToken: TRestAPIOperation<IExchangeOneTimeTokenForRefreshTokenRestData_2_0, IExchangeOneTimeTokenForRefreshTokenRestReturnValue_2_0>;
|
|
1640
|
+
exchangeCXoneToken: TRestAPIOperation<{}, IExchangeCXoneTokenRestReturnValue_2_0>;
|
|
1624
1641
|
generateManagementUIAuthToken: TRestAPIOperation<void, {
|
|
1625
1642
|
token: string;
|
|
1626
1643
|
}>;
|
|
@@ -2530,6 +2547,10 @@ export interface IEndpoint extends IEntityMeta {
|
|
|
2530
2547
|
label: string;
|
|
2531
2548
|
active: boolean;
|
|
2532
2549
|
};
|
|
2550
|
+
/**
|
|
2551
|
+
* Whether to enable mocking code for the node execution
|
|
2552
|
+
*/
|
|
2553
|
+
enableMocking?: boolean;
|
|
2533
2554
|
}
|
|
2534
2555
|
export interface IGraphEndpoint {
|
|
2535
2556
|
type: "endpoint";
|
|
@@ -3028,9 +3049,8 @@ export interface IVoiceGateway2VadParams {
|
|
|
3028
3049
|
voiceMs?: number;
|
|
3029
3050
|
mode?: number;
|
|
3030
3051
|
}
|
|
3031
|
-
export declare type TVoiceGateway2TTSVendor = "aws" | "deepgram" | "elevenlabs" | "google" | "microsoft" | "nuance" | "default" | "custom";
|
|
3032
3052
|
export interface IVoiceGateway2SynthesizerParams {
|
|
3033
|
-
vendor?:
|
|
3053
|
+
vendor?: string;
|
|
3034
3054
|
language?: string;
|
|
3035
3055
|
voice?: string;
|
|
3036
3056
|
label?: string;
|
|
@@ -3045,11 +3065,9 @@ export interface IVoiceGateway2SynthesizerParams {
|
|
|
3045
3065
|
disableCache?: boolean;
|
|
3046
3066
|
model?: string;
|
|
3047
3067
|
}
|
|
3048
|
-
export declare type TVoiceGateway2STTVendor = "aws" | "deepgram" | "google" | "microsoft" | "nuance" | "soniox" | "default" | "custom";
|
|
3049
3068
|
export declare type TVoiceGateway2GoogleModel = "latest_short" | "latest_long" | "command_and_search" | "phone_call" | "video" | "medical_dictation" | "medical_conversation" | "default";
|
|
3050
|
-
export declare type VoiceGatewayDeepgramModel = "base" | "base-phonecall" | "base-meeting" | "base-finance" | "base-voicemail" | "base-conversationalai" | "base-video" | "enhanced" | "enhanced-phonecall" | "enhanced-meeting" | "enhanced-finance" | "nova" | "nova-phonecall" | "nova-2" | "nova-2-meeting" | "nova-2-phonecall" | "nova-2-voicemail" | "nova-2-finance" | "nova-2-conversationalai" | "nova-2-medical" | "nova-2-drivethru" | "nova-2-automotive" | "whisper" | "whisper-tiny" | "whisper-base" | "whisper-small" | "whisper-large";
|
|
3051
3069
|
export interface IVoiceGateway2RecognizerParams {
|
|
3052
|
-
vendor?:
|
|
3070
|
+
vendor?: string;
|
|
3053
3071
|
language?: string;
|
|
3054
3072
|
label?: string;
|
|
3055
3073
|
fallbackVendor?: string;
|
|
@@ -3089,7 +3107,8 @@ export interface IVoiceGateway2RecognizerParams {
|
|
|
3089
3107
|
ibmOptions?: TVoiceGateway2IbmOptions;
|
|
3090
3108
|
nvidiaOptions?: TVoiceGateway2NvidiaOptions;
|
|
3091
3109
|
sonioxOptions?: TVoiceGateway2SonioxOptions;
|
|
3092
|
-
|
|
3110
|
+
openaiOptions?: TVoiceGateway2OpenaiOptions;
|
|
3111
|
+
model?: string;
|
|
3093
3112
|
}
|
|
3094
3113
|
export declare type TVoiceGateway2NuanceOptions = {
|
|
3095
3114
|
clientId?: string;
|
|
@@ -3165,6 +3184,10 @@ export declare type TVoiceGateway2SonioxOptions = {
|
|
|
3165
3184
|
metadata?: object;
|
|
3166
3185
|
storage?: object;
|
|
3167
3186
|
};
|
|
3187
|
+
export declare type TVoiceGateway2OpenaiOptions = {
|
|
3188
|
+
model?: string;
|
|
3189
|
+
apiKey?: string;
|
|
3190
|
+
};
|
|
3168
3191
|
export declare type TVoiceGateway2IbmOptions = {
|
|
3169
3192
|
sttApiKey?: string;
|
|
3170
3193
|
sttRegion?: string;
|
|
@@ -3445,6 +3468,9 @@ export interface IVoiceGatewayEndpointSettings extends IEndpointSessionSettings
|
|
|
3445
3468
|
privacyNotice: Omit<IWebchat3EndpointPrivacyNoticeSettings, "title"> & {
|
|
3446
3469
|
cancelButtonText: string;
|
|
3447
3470
|
};
|
|
3471
|
+
transcription: {
|
|
3472
|
+
enabled: boolean;
|
|
3473
|
+
};
|
|
3448
3474
|
}
|
|
3449
3475
|
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 | IZoomContactCenterEndpointSettings | {};
|
|
3450
3476
|
export declare type TAvayaVoice = "man" | "woman" | string;
|
|
@@ -7844,6 +7870,8 @@ export interface IEndpoint_2_0 {
|
|
|
7844
7870
|
sipConnectivityInfo?: ISipConnectivityInfo;
|
|
7845
7871
|
/** The label of the webrtc widget */
|
|
7846
7872
|
webrtcWidgetConfig?: IWebrtcWidgetConfig;
|
|
7873
|
+
/** Whether to enable mocking code for the node execution */
|
|
7874
|
+
enableMocking: boolean;
|
|
7847
7875
|
}
|
|
7848
7876
|
export interface ITransformerFunction_2_0 {
|
|
7849
7877
|
/**
|
|
@@ -9208,6 +9236,10 @@ export interface IGraphAgentAssistConfig {
|
|
|
9208
9236
|
* items:
|
|
9209
9237
|
* type: string
|
|
9210
9238
|
* description: MongoDB ObjectId representing a project
|
|
9239
|
+
* example:
|
|
9240
|
+
* - "68edf5dd4c931f68d31111"
|
|
9241
|
+
* - "690b02fc100e454245adde111"
|
|
9242
|
+
* - "68e6eda61ff68d2111"
|
|
9211
9243
|
*
|
|
9212
9244
|
* IGlobalResourceFields_2_0:
|
|
9213
9245
|
* allOf:
|
|
@@ -9439,6 +9471,7 @@ export interface ICodeNodeParams extends ICodeNodeBasicParams {
|
|
|
9439
9471
|
hasError?: boolean;
|
|
9440
9472
|
transpiled?: string;
|
|
9441
9473
|
};
|
|
9474
|
+
IsMockCodeExecution?: boolean;
|
|
9442
9475
|
}
|
|
9443
9476
|
export interface ICodeNodeBasicParams extends INodeFunctionBaseParams {
|
|
9444
9477
|
config: {
|
|
@@ -9677,7 +9710,7 @@ export interface ISpeakingStyle {
|
|
|
9677
9710
|
export interface IVoiceConfigParams {
|
|
9678
9711
|
ttsVoice: string;
|
|
9679
9712
|
ttsLanguage: string;
|
|
9680
|
-
ttsVendor:
|
|
9713
|
+
ttsVendor: string;
|
|
9681
9714
|
ttsModel: string;
|
|
9682
9715
|
ttsLabel: string;
|
|
9683
9716
|
ttsDisableCache: boolean;
|
|
@@ -10658,6 +10691,10 @@ export interface IGenerativeSlotFillerParams extends INodeFunctionBaseParams {
|
|
|
10658
10691
|
}
|
|
10659
10692
|
export interface IEndpointSettings {
|
|
10660
10693
|
isFeatureAccmEnabled?: boolean;
|
|
10694
|
+
/**
|
|
10695
|
+
* Whether to enable mocking code for the node execution
|
|
10696
|
+
*/
|
|
10697
|
+
enableMocking?: boolean;
|
|
10661
10698
|
}
|
|
10662
10699
|
export interface IChartExecutableNode<C extends INodeFunctionBaseParams = INodeFunctionBaseParams> extends IProjectScope, IOrganisationScope {
|
|
10663
10700
|
id: string;
|
|
@@ -10690,6 +10727,111 @@ export interface IChartExecutableNode<C extends INodeFunctionBaseParams = INodeF
|
|
|
10690
10727
|
*/
|
|
10691
10728
|
isDisabled: boolean;
|
|
10692
10729
|
analyticsLabel?: string;
|
|
10730
|
+
/**
|
|
10731
|
+
* Mock object to replace the node function with a mock function,
|
|
10732
|
+
* when the mock mode is enabled for the node and the endpoint settings allow it.
|
|
10733
|
+
*/
|
|
10734
|
+
mock: {
|
|
10735
|
+
isEnabled: boolean;
|
|
10736
|
+
code: string;
|
|
10737
|
+
transpiled?: string;
|
|
10738
|
+
hasError?: boolean;
|
|
10739
|
+
};
|
|
10740
|
+
}
|
|
10741
|
+
/**
|
|
10742
|
+
* @param meta.contactNumber DirectQuery views this is as an identifier similar to a session ID
|
|
10743
|
+
*/
|
|
10744
|
+
export interface ICXoneKnowledgehubRequestBody {
|
|
10745
|
+
schemaVersion?: string;
|
|
10746
|
+
timestamp: string;
|
|
10747
|
+
meta: {
|
|
10748
|
+
tenantId?: string;
|
|
10749
|
+
contactNumber: string;
|
|
10750
|
+
agentUid?: string;
|
|
10751
|
+
provider: string;
|
|
10752
|
+
};
|
|
10753
|
+
query: {
|
|
10754
|
+
uid: string;
|
|
10755
|
+
text: string;
|
|
10756
|
+
persona?: string;
|
|
10757
|
+
language?: string;
|
|
10758
|
+
};
|
|
10759
|
+
kbFiltering?: {
|
|
10760
|
+
conversationContextRefId?: string;
|
|
10761
|
+
filters?: string;
|
|
10762
|
+
};
|
|
10763
|
+
config: {
|
|
10764
|
+
kbAnswers: {
|
|
10765
|
+
promptEditorProfileId?: string;
|
|
10766
|
+
answers: {
|
|
10767
|
+
enabled: boolean;
|
|
10768
|
+
maxWords: number;
|
|
10769
|
+
};
|
|
10770
|
+
images: {
|
|
10771
|
+
enabled: boolean;
|
|
10772
|
+
maxImages: number;
|
|
10773
|
+
};
|
|
10774
|
+
links: {
|
|
10775
|
+
enabled: boolean;
|
|
10776
|
+
maxLinks: number;
|
|
10777
|
+
};
|
|
10778
|
+
};
|
|
10779
|
+
kbProcessSteps: {
|
|
10780
|
+
enabled: boolean;
|
|
10781
|
+
maxSteps: number;
|
|
10782
|
+
maxTitleWords: number;
|
|
10783
|
+
maxStepWords: number;
|
|
10784
|
+
};
|
|
10785
|
+
awsBedrock: {
|
|
10786
|
+
knowledgeHubId: string;
|
|
10787
|
+
awsBedrockKbId: string;
|
|
10788
|
+
maxKernels: number;
|
|
10789
|
+
shareable: boolean;
|
|
10790
|
+
promptTemplate?: {
|
|
10791
|
+
textPromptTemplate: string;
|
|
10792
|
+
modelArn: string;
|
|
10793
|
+
};
|
|
10794
|
+
};
|
|
10795
|
+
};
|
|
10796
|
+
}
|
|
10797
|
+
export interface ICXoneKnowledgehubResponseBody {
|
|
10798
|
+
timestamp: string;
|
|
10799
|
+
kbAnswers: {
|
|
10800
|
+
uid: string;
|
|
10801
|
+
conversationContextRefId?: string;
|
|
10802
|
+
kbCompletions: Array<{
|
|
10803
|
+
uid: string;
|
|
10804
|
+
kbCompletion: string;
|
|
10805
|
+
restriction: "Public" | "Private" | "Combine";
|
|
10806
|
+
citations: Array<{
|
|
10807
|
+
text: string;
|
|
10808
|
+
start: number;
|
|
10809
|
+
end: number;
|
|
10810
|
+
}>;
|
|
10811
|
+
}>;
|
|
10812
|
+
kbImages: Array<{
|
|
10813
|
+
uid: string;
|
|
10814
|
+
pageId: number;
|
|
10815
|
+
title: string;
|
|
10816
|
+
link: string;
|
|
10817
|
+
thumbnail: string;
|
|
10818
|
+
restriction: "Public" | "Private";
|
|
10819
|
+
}>;
|
|
10820
|
+
kbLinks: Array<{
|
|
10821
|
+
uid: string;
|
|
10822
|
+
pageId: number;
|
|
10823
|
+
title: string;
|
|
10824
|
+
link: string;
|
|
10825
|
+
restriction: "Public" | "Private";
|
|
10826
|
+
}>;
|
|
10827
|
+
};
|
|
10828
|
+
}
|
|
10829
|
+
export interface INiceCXoneKnowledgehubFields {
|
|
10830
|
+
accessKey: string;
|
|
10831
|
+
secretKey: string;
|
|
10832
|
+
clientId?: string;
|
|
10833
|
+
clientSecret?: string;
|
|
10834
|
+
endpointUrl?: string;
|
|
10693
10835
|
}
|
|
10694
10836
|
export interface IGetConversationTranscriptParams {
|
|
10695
10837
|
turnLimit: number;
|
|
@@ -10858,6 +11000,7 @@ export interface IActions {
|
|
|
10858
11000
|
getEndpointSettings: () => IEndpointSettings;
|
|
10859
11001
|
getTranscript: (options: TReadTranscriptOptions) => Promise<TTranscriptEntry[]>;
|
|
10860
11002
|
addTranscriptStep: (content: TTranscriptEntryContent) => Promise<void>;
|
|
11003
|
+
executeNiceCxoneKnowledgehubApiRequest(knowledgehubConnection: INiceCXoneKnowledgehubFields, requestBody: ICXoneKnowledgehubRequestBody): Promise<ICXoneKnowledgehubResponseBody>;
|
|
10861
11004
|
}
|
|
10862
11005
|
export interface IGetMetaDataActionValue {
|
|
10863
11006
|
sessionId: string;
|
|
@@ -10874,6 +11017,7 @@ export interface IGetMetaDataActionValue {
|
|
|
10874
11017
|
snapshotName: string;
|
|
10875
11018
|
isFollowSessionActive: boolean;
|
|
10876
11019
|
contactId: string;
|
|
11020
|
+
enableMocking: boolean;
|
|
10877
11021
|
}
|
|
10878
11022
|
export interface ICognigyNLPProperties {
|
|
10879
11023
|
/** The original text of the user */
|
|
@@ -11149,6 +11293,7 @@ export interface ISendEmailNodeParams extends INodeFunctionBaseParams {
|
|
|
11149
11293
|
googleWarning: string;
|
|
11150
11294
|
recipient: string;
|
|
11151
11295
|
from: string;
|
|
11296
|
+
senderName: string;
|
|
11152
11297
|
message: string;
|
|
11153
11298
|
subject: string;
|
|
11154
11299
|
replyTo: string;
|
|
@@ -11172,7 +11317,7 @@ export interface ISendEmailNodeParams extends INodeFunctionBaseParams {
|
|
|
11172
11317
|
} & (ISMTPEmailConnection);
|
|
11173
11318
|
}
|
|
11174
11319
|
export interface IEmailNotificationNodeParams extends INodeFunctionBaseParams {
|
|
11175
|
-
config: Pick<ISendEmailNodeParams["config"], "recipient" | "message" | "subject" | "cc" | "bcc" | "priority" | "async" | "storeLocation" | "inputKey" | "contextKey" | "stopOnError">;
|
|
11320
|
+
config: Pick<ISendEmailNodeParams["config"], "senderName" | "recipient" | "message" | "subject" | "cc" | "bcc" | "priority" | "async" | "storeLocation" | "inputKey" | "contextKey" | "stopOnError">;
|
|
11176
11321
|
}
|
|
11177
11322
|
export interface ISQLConnectionFields {
|
|
11178
11323
|
host: string;
|
|
@@ -11677,6 +11822,7 @@ declare const nodeFieldTypes: readonly [
|
|
|
11677
11822
|
"checkAgentAvailabilityConfig",
|
|
11678
11823
|
"chipInput",
|
|
11679
11824
|
"code",
|
|
11825
|
+
"mockCode",
|
|
11680
11826
|
"cognigyLLMText",
|
|
11681
11827
|
"cognigyText",
|
|
11682
11828
|
"cognigyTextArray",
|
|
@@ -11839,6 +11985,9 @@ export interface INodeDescriptor<T extends INodeFunctionBaseParams = any, U exte
|
|
|
11839
11985
|
sections?: INodeSection[];
|
|
11840
11986
|
/** The form defines how fields and sections should be render in order */
|
|
11841
11987
|
form?: INodeFieldAndSectionFormElement[];
|
|
11988
|
+
mocking?: {
|
|
11989
|
+
defaultMockCode?: string;
|
|
11990
|
+
};
|
|
11842
11991
|
}
|
|
11843
11992
|
export interface IAppTemplate extends IEntityMeta {
|
|
11844
11993
|
/** The object id of this app template */
|
|
@@ -13377,7 +13526,17 @@ export interface IChart_2_0 {
|
|
|
13377
13526
|
* analyticsLabel:
|
|
13378
13527
|
* type: string
|
|
13379
13528
|
* example: "condition"
|
|
13380
|
-
|
|
13529
|
+
* mock:
|
|
13530
|
+
* type: object
|
|
13531
|
+
* properties:
|
|
13532
|
+
* isEnabled:
|
|
13533
|
+
* type: boolean
|
|
13534
|
+
* example: false
|
|
13535
|
+
* code:
|
|
13536
|
+
* type: string
|
|
13537
|
+
* example: "console.log('Hello, world!');"
|
|
13538
|
+
* description: Mock code to be executed when the mock mode is enabled.
|
|
13539
|
+
* nullable: false
|
|
13381
13540
|
*
|
|
13382
13541
|
* IChartNode_2_0:
|
|
13383
13542
|
* allOf:
|
|
@@ -13401,6 +13560,10 @@ export interface IChartNode_2_0<T extends INodeFunctionBaseParams = any> {
|
|
|
13401
13560
|
extension: string;
|
|
13402
13561
|
localeReference: string;
|
|
13403
13562
|
analyticsLabel?: string;
|
|
13563
|
+
mock: {
|
|
13564
|
+
isEnabled: boolean;
|
|
13565
|
+
code: string;
|
|
13566
|
+
};
|
|
13404
13567
|
}
|
|
13405
13568
|
declare enum ConvertActionType {
|
|
13406
13569
|
ADDED = "added",
|
|
@@ -13409,6 +13572,12 @@ declare enum ConvertActionType {
|
|
|
13409
13572
|
}
|
|
13410
13573
|
export declare type TConvertAction = (typeof ConvertActionType)[keyof typeof ConvertActionType];
|
|
13411
13574
|
export declare type TNodeConversionMetadata = Record<string, TConvertAction>;
|
|
13575
|
+
export interface IMockData {
|
|
13576
|
+
isEnabled: boolean;
|
|
13577
|
+
code: string;
|
|
13578
|
+
transpiled?: string;
|
|
13579
|
+
hasError?: boolean;
|
|
13580
|
+
}
|
|
13412
13581
|
export interface IChartNodeBase {
|
|
13413
13582
|
_id: TMongoId;
|
|
13414
13583
|
referenceId: string;
|
|
@@ -13436,6 +13605,7 @@ export interface IChartNodeBase {
|
|
|
13436
13605
|
resourceReference: TMongoId;
|
|
13437
13606
|
projectReference: TMongoId;
|
|
13438
13607
|
organisationReference: TMongoId;
|
|
13608
|
+
mock: IMockData;
|
|
13439
13609
|
}
|
|
13440
13610
|
export interface IChartNode<T extends string = string, D extends INodeFunctionBaseParams = any, E extends string = string> extends IChartNodeBase {
|
|
13441
13611
|
type: T;
|
|
@@ -14383,7 +14553,7 @@ export interface INodeField_2_0 {
|
|
|
14383
14553
|
};
|
|
14384
14554
|
}
|
|
14385
14555
|
export declare type TNodeTag = "basic" | "logic" | "message" | "profile" | "service" | "nlu" | "data" | string;
|
|
14386
|
-
export declare type TNodeFieldType_2_0 = "text" | "rule" | "select" | "xml" | "typescript" | "json" | "textArray" | "chipInput" | "date" | "datetime" | "time" | "cognigyText" | "checkbox" | "toggle" | "slider" | "number" | "daterange" | "say" | "code" | "connection" | "condition" | "flow" | "node" | "flowNode" | "lexicon" | "switchNode" | "caseNode" | "sttSelect" | "sttTierModelSelect" | "ttsSelect" | "sttLanguageAzureSelect" | "sttLanguageGoogleSelect";
|
|
14556
|
+
export declare type TNodeFieldType_2_0 = "text" | "rule" | "select" | "xml" | "typescript" | "json" | "textArray" | "chipInput" | "date" | "datetime" | "time" | "cognigyText" | "checkbox" | "toggle" | "slider" | "number" | "daterange" | "say" | "code" | "connection" | "condition" | "flow" | "node" | "flowNode" | "lexicon" | "switchNode" | "caseNode" | "sttSelect" | "sttTierModelSelect" | "ttsSelect" | "sttLanguageAzureSelect" | "sttLanguageGoogleSelect" | "mock";
|
|
14387
14557
|
export interface INodeDependencies_2_0 {
|
|
14388
14558
|
/** A list of Node types */
|
|
14389
14559
|
children: string[];
|
|
@@ -16803,7 +16973,7 @@ export interface IVoiceConfigParams {
|
|
|
16803
16973
|
ttsVoice: string;
|
|
16804
16974
|
ttsLanguage: string;
|
|
16805
16975
|
ttsModel: string;
|
|
16806
|
-
ttsVendor:
|
|
16976
|
+
ttsVendor: string;
|
|
16807
16977
|
ttsLabel: string;
|
|
16808
16978
|
azureSttContextId: string;
|
|
16809
16979
|
azureSpeechRecognitionMode: string;
|
|
@@ -16846,7 +17016,7 @@ export interface IVoiceConfigParams {
|
|
|
16846
17016
|
sttGoogleLang1: string;
|
|
16847
17017
|
sttGoogleLang2: string;
|
|
16848
17018
|
sttGoogleLang3: string;
|
|
16849
|
-
|
|
17019
|
+
sttModel: string;
|
|
16850
17020
|
deepgramEndpointing: boolean;
|
|
16851
17021
|
deepgramEndpointingValue: number;
|
|
16852
17022
|
deepgramSmartFormatting: boolean;
|
|
@@ -16916,13 +17086,13 @@ export interface IVoiceConfigParams {
|
|
|
16916
17086
|
sttHintsDynamicHints: string[] | undefined;
|
|
16917
17087
|
ttsVoice: string;
|
|
16918
17088
|
ttsLanguage: string;
|
|
16919
|
-
ttsVendor:
|
|
17089
|
+
ttsVendor: string;
|
|
16920
17090
|
ttsModel: string;
|
|
16921
17091
|
sttDisablePunctuation: boolean;
|
|
16922
17092
|
azureSttContextId: string;
|
|
16923
17093
|
azureEnableAudioLogging: boolean;
|
|
16924
17094
|
googleModel: TVoiceGateway2GoogleModel;
|
|
16925
|
-
|
|
17095
|
+
sttModel: string;
|
|
16926
17096
|
deepgramEndpointing: boolean;
|
|
16927
17097
|
deepgramEndpointingValue: number;
|
|
16928
17098
|
deepgramSmartFormatting: boolean;
|
|
@@ -17338,7 +17508,7 @@ export interface ITransferNodeParams extends INodeFunctionBaseParams {
|
|
|
17338
17508
|
recognitionChannel: number;
|
|
17339
17509
|
sttLanguage: string;
|
|
17340
17510
|
sttVendor: string;
|
|
17341
|
-
|
|
17511
|
+
sttModel: string;
|
|
17342
17512
|
sttDisablePunctuation: boolean;
|
|
17343
17513
|
googleModel: TVoiceGateway2GoogleModel;
|
|
17344
17514
|
sttLabel: string;
|
|
@@ -18072,9 +18242,13 @@ export interface IGoogleGeminiMeta_2_0 {
|
|
|
18072
18242
|
* - $ref: '#/components/schemas/IGlobalLargeLanguageModelData_2_0'
|
|
18073
18243
|
* - $ref: '#/components/schemas/IEntityMeta'
|
|
18074
18244
|
* ILargeLanguageModel_2_0:
|
|
18075
|
-
*
|
|
18076
|
-
* -
|
|
18077
|
-
*
|
|
18245
|
+
* oneOf:
|
|
18246
|
+
* - allOf:
|
|
18247
|
+
* - $ref: '#/components/schemas/ILargeLanguageModelData_2_0'
|
|
18248
|
+
* - $ref: '#/components/schemas/IEntityMeta'
|
|
18249
|
+
* - allOf:
|
|
18250
|
+
* - $ref: '#/components/schemas/IGlobalLargeLanguageModelData_2_0'
|
|
18251
|
+
* - $ref: '#/components/schemas/IEntityMeta'
|
|
18078
18252
|
*/
|
|
18079
18253
|
export interface ILargeLanguageModel_2_0 extends IGlobalResource {
|
|
18080
18254
|
referenceId: string;
|
|
@@ -18404,6 +18578,7 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18404
18578
|
id: string;
|
|
18405
18579
|
type: string;
|
|
18406
18580
|
};
|
|
18581
|
+
contentHashOrTimestamp?: string;
|
|
18407
18582
|
}
|
|
18408
18583
|
/**
|
|
18409
18584
|
* @openapi
|
|
@@ -18430,6 +18605,7 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18430
18605
|
* - pdf
|
|
18431
18606
|
* - txt
|
|
18432
18607
|
* - ctxt
|
|
18608
|
+
* - extension
|
|
18433
18609
|
* description: The type of source for the Knowledge store
|
|
18434
18610
|
* metaData:
|
|
18435
18611
|
* type: object
|
|
@@ -18482,6 +18658,15 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18482
18658
|
* properties:
|
|
18483
18659
|
* metaData:
|
|
18484
18660
|
* type: object
|
|
18661
|
+
* data:
|
|
18662
|
+
* type: object
|
|
18663
|
+
* additionalProperties: true
|
|
18664
|
+
* description: Custom metadata object to store additional information in the KnowledgeSource
|
|
18665
|
+
* example:
|
|
18666
|
+
* _id: "x4xU6hMntv23p"
|
|
18667
|
+
* sys_CreatedAt: "2019-12-16T11:40:45.7212"
|
|
18668
|
+
* sys_UpdatedAt: "2025-10-01T07:46:04.5932"
|
|
18669
|
+
* Type: "FAQ"
|
|
18485
18670
|
* chunkCount:
|
|
18486
18671
|
* type: integer
|
|
18487
18672
|
* status:
|
|
@@ -18490,6 +18675,10 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18490
18675
|
* - ready
|
|
18491
18676
|
* - ingesting
|
|
18492
18677
|
* - disabled
|
|
18678
|
+
* connectorReference:
|
|
18679
|
+
* type: string
|
|
18680
|
+
* format: uuid
|
|
18681
|
+
* description: The connector Id associated with the KnowledgeSource. This is only applicable for KnowledgeSources of type "extension"
|
|
18493
18682
|
*
|
|
18494
18683
|
* IKnowledgeSourceGeneratedData_2_0:
|
|
18495
18684
|
* type: object
|
|
@@ -18498,6 +18687,20 @@ export interface IKnowledgeSourceMetaData {
|
|
|
18498
18687
|
* type: string
|
|
18499
18688
|
* format: uuid
|
|
18500
18689
|
*
|
|
18690
|
+
* IKnowledgeSourceDataTypeExtension_2_0:
|
|
18691
|
+
* type: object
|
|
18692
|
+
* properties:
|
|
18693
|
+
* connectorId:
|
|
18694
|
+
* type: string
|
|
18695
|
+
* format: uuid
|
|
18696
|
+
* description: The connector Id associated with the KnowledgeSource. This is only applicable for KnowledgeSources of type "extension"
|
|
18697
|
+
* example:
|
|
18698
|
+
* name: "mysource"
|
|
18699
|
+
* description: "mysource description"
|
|
18700
|
+
* type: "extension"
|
|
18701
|
+
* metaData:
|
|
18702
|
+
* tags: ["tag1"]
|
|
18703
|
+
* connectorId: "uuid"
|
|
18501
18704
|
* IKnowledgeSource_2_0:
|
|
18502
18705
|
* allOf:
|
|
18503
18706
|
* - $ref: '#/components/schemas/IKnowledgeSourceData_2_0'
|
|
@@ -18515,6 +18718,7 @@ export interface IKnowledgeSource_2_0 {
|
|
|
18515
18718
|
metaData: IKnowledgeSourceMetaData;
|
|
18516
18719
|
data: Record<string, unknown>;
|
|
18517
18720
|
storeReference: TMongoId;
|
|
18721
|
+
connectorReference?: TMongoId;
|
|
18518
18722
|
projectReference: TMongoId;
|
|
18519
18723
|
organisationReference: TMongoId;
|
|
18520
18724
|
createdAt: number;
|
|
@@ -18701,6 +18905,241 @@ export interface IRunKnowledgeExtensionRestData_2_0 extends IRunKnowledgeExtensi
|
|
|
18701
18905
|
}
|
|
18702
18906
|
export interface IRunKnowledgeExtensionRestReturnValue_2_0 extends ICreatedTask_2_0 {
|
|
18703
18907
|
}
|
|
18908
|
+
declare const knowledgeConnectorExecutionStatus: readonly [
|
|
18909
|
+
"none",
|
|
18910
|
+
"queued",
|
|
18911
|
+
"active",
|
|
18912
|
+
"done",
|
|
18913
|
+
"error"
|
|
18914
|
+
];
|
|
18915
|
+
export declare type KnowledgeConnectorExecutionStatus = typeof knowledgeConnectorExecutionStatus[number];
|
|
18916
|
+
/**
|
|
18917
|
+
* @openapi
|
|
18918
|
+
*
|
|
18919
|
+
* components:
|
|
18920
|
+
* schemas:
|
|
18921
|
+
* IKnowledgeConnectorCreatePayload_2_0:
|
|
18922
|
+
* allOf:
|
|
18923
|
+
* - $ref: '#/components/schemas/IKnowledgeConnectorExtensionReference_2_0'
|
|
18924
|
+
* - $ref: '#/components/schemas/IKnowledgeConnectorData_2_0'
|
|
18925
|
+
*
|
|
18926
|
+
* IKnowledgeConnectorUpdatePayload_2_0:
|
|
18927
|
+
* allOf:
|
|
18928
|
+
* - $ref: '#/components/schemas/IKnowledgeConnectorData_2_0'
|
|
18929
|
+
*
|
|
18930
|
+
* IKnowledgeConnectorExtensionReference_2_0:
|
|
18931
|
+
* type: object
|
|
18932
|
+
* properties:
|
|
18933
|
+
* extension:
|
|
18934
|
+
* type: string
|
|
18935
|
+
* description: The name of the extension
|
|
18936
|
+
* example: "confluence"
|
|
18937
|
+
* version:
|
|
18938
|
+
* type: string
|
|
18939
|
+
* description: The version of extension identifier
|
|
18940
|
+
* example: "1.1.0"
|
|
18941
|
+
* type:
|
|
18942
|
+
* type: string
|
|
18943
|
+
* description: The Knowledge Connector type identifier within an extension
|
|
18944
|
+
* example: "MyConfluenceConnector"
|
|
18945
|
+
*
|
|
18946
|
+
* IKnowledgeConnectorData_2_0:
|
|
18947
|
+
* type: object
|
|
18948
|
+
* properties:
|
|
18949
|
+
* config:
|
|
18950
|
+
* type: object
|
|
18951
|
+
* description: The configuration of the KnowledgeConnector
|
|
18952
|
+
* name:
|
|
18953
|
+
* type: string
|
|
18954
|
+
* description: The name of the KnowledgeConnector
|
|
18955
|
+
* example: "My Knowledge Connector"
|
|
18956
|
+
* schedule:
|
|
18957
|
+
* type: object
|
|
18958
|
+
* properties:
|
|
18959
|
+
* enabled:
|
|
18960
|
+
* type: boolean
|
|
18961
|
+
* description: If scheduled execution is enabled or not
|
|
18962
|
+
* example: true
|
|
18963
|
+
* start:
|
|
18964
|
+
* $ref: '#/components/schemas/TTimestamp'
|
|
18965
|
+
* description: Start date and time to calculate scheduled execution
|
|
18966
|
+
* hour:
|
|
18967
|
+
* type: number
|
|
18968
|
+
* description: Hour to start the scheduled execution
|
|
18969
|
+
* example: 1
|
|
18970
|
+
* minute:
|
|
18971
|
+
* type: number
|
|
18972
|
+
* description: Minute to start the scheduled execution
|
|
18973
|
+
* example: 1
|
|
18974
|
+
* weekDays:
|
|
18975
|
+
* type: array
|
|
18976
|
+
* items:
|
|
18977
|
+
* type: number
|
|
18978
|
+
* description: Repeat x days of the week, Monday = 0 ... Sunday = 6
|
|
18979
|
+
* example: [0,3]
|
|
18980
|
+
*
|
|
18981
|
+
* IKnowledgeConnectorExecution_2_0:
|
|
18982
|
+
* type: object
|
|
18983
|
+
* properties:
|
|
18984
|
+
* lastExecution:
|
|
18985
|
+
* $ref: '#/components/schemas/TTimestamp'
|
|
18986
|
+
* description: Unix-timestamp when the last execution was triggered
|
|
18987
|
+
* lastExecutionStatus:
|
|
18988
|
+
* type: string
|
|
18989
|
+
* description: Last execution status of the KnowledgeConnector
|
|
18990
|
+
* enum:
|
|
18991
|
+
* - none
|
|
18992
|
+
* - queued
|
|
18993
|
+
* - active
|
|
18994
|
+
* - done
|
|
18995
|
+
* - error
|
|
18996
|
+
*
|
|
18997
|
+
* IKnowledgeConnector_2_0:
|
|
18998
|
+
* allOf:
|
|
18999
|
+
* - $ref: '#/components/schemas/IKnowledgeConnectorExtensionReference_2_0'
|
|
19000
|
+
* - $ref: '#/components/schemas/IKnowledgeConnectorData_2_0'
|
|
19001
|
+
* - $ref: '#/components/schemas/IKnowledgeConnectorExecution_2_0'
|
|
19002
|
+
* - $ref: '#/components/schemas/IEntityMeta'
|
|
19003
|
+
*/
|
|
19004
|
+
export interface IKnowledgeConnector_2_0 {
|
|
19005
|
+
/**
|
|
19006
|
+
* Extension nam
|
|
19007
|
+
*/
|
|
19008
|
+
extension: string;
|
|
19009
|
+
/**
|
|
19010
|
+
* The type identifier of Knowledge Connector within an Extension
|
|
19011
|
+
*/
|
|
19012
|
+
type: string;
|
|
19013
|
+
/**
|
|
19014
|
+
* The version of the Knowledge Connector Extension
|
|
19015
|
+
*/
|
|
19016
|
+
version: string;
|
|
19017
|
+
/**
|
|
19018
|
+
* The configuration of the KnowledgeConnector
|
|
19019
|
+
*/
|
|
19020
|
+
config: Record<string, unknown>;
|
|
19021
|
+
/**
|
|
19022
|
+
* The name of the KnowledgeConnector
|
|
19023
|
+
*/
|
|
19024
|
+
name: string;
|
|
19025
|
+
/**
|
|
19026
|
+
* Schedule configuration
|
|
19027
|
+
*/
|
|
19028
|
+
schedule: {
|
|
19029
|
+
/**
|
|
19030
|
+
* If scheduled execution is enabled or not
|
|
19031
|
+
*/
|
|
19032
|
+
enabled: boolean;
|
|
19033
|
+
/**
|
|
19034
|
+
* Start date and time to calculate scheduled execution
|
|
19035
|
+
*/
|
|
19036
|
+
start: number;
|
|
19037
|
+
/**
|
|
19038
|
+
* Hour to start the scheduled execution
|
|
19039
|
+
*/
|
|
19040
|
+
hour: number;
|
|
19041
|
+
/**
|
|
19042
|
+
* Minute to start the scheduled execution
|
|
19043
|
+
*/
|
|
19044
|
+
minute: number;
|
|
19045
|
+
/**
|
|
19046
|
+
* Repeat x days of the week
|
|
19047
|
+
*/
|
|
19048
|
+
weekDays: Array<number>;
|
|
19049
|
+
};
|
|
19050
|
+
_id: TMongoId;
|
|
19051
|
+
referenceId: TMongoId;
|
|
19052
|
+
/**
|
|
19053
|
+
* The knowledge store Id to which the KnowledgeSource belongs to
|
|
19054
|
+
*/
|
|
19055
|
+
storeReference: TMongoId;
|
|
19056
|
+
/**
|
|
19057
|
+
* The project Id to which the KnowledgeSource belongs to
|
|
19058
|
+
*/
|
|
19059
|
+
projectReference: TMongoId;
|
|
19060
|
+
/**
|
|
19061
|
+
* The organisation Id to which the KnowledgeSource belongs to
|
|
19062
|
+
*/
|
|
19063
|
+
organisationReference: TMongoId;
|
|
19064
|
+
/**
|
|
19065
|
+
* Time of last execution
|
|
19066
|
+
*/
|
|
19067
|
+
lastExecution: number;
|
|
19068
|
+
/**
|
|
19069
|
+
* Last execution status of the KnowledgeConnector
|
|
19070
|
+
*/
|
|
19071
|
+
lastExecutionStatus: KnowledgeConnectorExecutionStatus;
|
|
19072
|
+
/**
|
|
19073
|
+
* Unix-timestamp when the enKnowledgeSourcetity was created initially
|
|
19074
|
+
*/
|
|
19075
|
+
createdAt: number;
|
|
19076
|
+
/**
|
|
19077
|
+
* Unix-timestamp when the KnowledgeSource was changed last time
|
|
19078
|
+
*/
|
|
19079
|
+
lastChanged: number;
|
|
19080
|
+
/**
|
|
19081
|
+
* Id of the user who created the KnowledgeSource initially
|
|
19082
|
+
*/
|
|
19083
|
+
createdBy: TMongoId;
|
|
19084
|
+
/**
|
|
19085
|
+
* Id of the user who did the last modification
|
|
19086
|
+
*/
|
|
19087
|
+
lastChangedBy: TMongoId;
|
|
19088
|
+
}
|
|
19089
|
+
export interface ICreateKnowledgeConnectorRestDataParams_2_0 {
|
|
19090
|
+
knowledgeStoreId: string;
|
|
19091
|
+
}
|
|
19092
|
+
export interface ICreateKnowledgeConnectorRestDataBody_2_0 {
|
|
19093
|
+
extension: string;
|
|
19094
|
+
type: string;
|
|
19095
|
+
version: string;
|
|
19096
|
+
config: object;
|
|
19097
|
+
name: string;
|
|
19098
|
+
schedule: {
|
|
19099
|
+
enabled: boolean;
|
|
19100
|
+
start: number;
|
|
19101
|
+
hour: number;
|
|
19102
|
+
minute: number;
|
|
19103
|
+
weekDays: Array<number>;
|
|
19104
|
+
};
|
|
19105
|
+
}
|
|
19106
|
+
export interface ICreateKnowledgeConnectorRestData_2_0 extends ICreateKnowledgeConnectorRestDataParams_2_0, ICreateKnowledgeConnectorRestDataBody_2_0 {
|
|
19107
|
+
}
|
|
19108
|
+
export interface ICreateKnowledgeConnectorRestReturnValue_2_0 extends IKnowledgeConnector_2_0 {
|
|
19109
|
+
}
|
|
19110
|
+
export interface IIndexKnowledgeConnectorsRestDataParams_2_0 {
|
|
19111
|
+
knowledgeStoreId: string;
|
|
19112
|
+
}
|
|
19113
|
+
export interface IIndexKnowledgeConnectorsRestData_2_0 extends IIndexKnowledgeConnectorsRestDataParams_2_0, IRestPagination<IKnowledgeConnector_2_0> {
|
|
19114
|
+
}
|
|
19115
|
+
export interface IIndexKnowledgeConnectorsRestReturnValue_2_0 extends ICursorBasedPaginationReturnValue<IKnowledgeConnector_2_0> {
|
|
19116
|
+
}
|
|
19117
|
+
export interface IReadKnowledgeConnectorRestDataParams_2_0 {
|
|
19118
|
+
knowledgeStoreId: string;
|
|
19119
|
+
connectorId: string;
|
|
19120
|
+
}
|
|
19121
|
+
export interface IReadKnowledgeConnectorRestData_2_0 extends IReadKnowledgeConnectorRestDataParams_2_0 {
|
|
19122
|
+
}
|
|
19123
|
+
export interface IReadKnowledgeConnectorRestReturnValue_2_0 extends IKnowledgeConnector_2_0 {
|
|
19124
|
+
}
|
|
19125
|
+
export interface IDeleteKnowledgeConnectorRestDataParams_2_0 {
|
|
19126
|
+
knowledgeStoreId: string;
|
|
19127
|
+
connectorId: string;
|
|
19128
|
+
}
|
|
19129
|
+
export interface IDeleteKnowledgeConnectorRestData_2_0 extends IDeleteKnowledgeConnectorRestDataParams_2_0 {
|
|
19130
|
+
}
|
|
19131
|
+
export interface IDeleteKnowledgeConnectorRestReturnValue_2_0 {
|
|
19132
|
+
}
|
|
19133
|
+
export interface IUpdateKnowledgeConnectorRestDataBody_2_0 extends Partial<Pick<IKnowledgeConnector_2_0, "version" | "name" | "config" | "schedule">> {
|
|
19134
|
+
}
|
|
19135
|
+
export interface IUpdateKnowledgeConnectorRestDataParams_2_0 {
|
|
19136
|
+
knowledgeStoreId: string;
|
|
19137
|
+
connectorId: string;
|
|
19138
|
+
}
|
|
19139
|
+
export interface IUpdateKnowledgeConnectorRestData_2_0 extends IUpdateKnowledgeConnectorRestDataBody_2_0, IUpdateKnowledgeConnectorRestDataParams_2_0 {
|
|
19140
|
+
}
|
|
19141
|
+
export interface IUpdateKnowledgeConnectorRestReturnValue_2_0 {
|
|
19142
|
+
}
|
|
18704
19143
|
/**
|
|
18705
19144
|
* @openapi
|
|
18706
19145
|
*
|
|
@@ -19415,6 +19854,11 @@ export interface ResourcesAPIGroup_2_0 {
|
|
|
19415
19854
|
readKnowledgeChunk: TRestAPIOperation<IReadKnowledgeChunkRestData_2_0, IReadKnowledgeChunkRestReturnValue_2_0>;
|
|
19416
19855
|
deleteKnowledgeChunk: TRestAPIOperation<IDeleteKnowledgeChunkRestData_2_0, IDeleteKnowledgeChunkRestReturnValue_2_0>;
|
|
19417
19856
|
updateKnowledgeChunk: TRestAPIOperation<IUpdateKnowledgeChunkRestData_2_0, IUpdateKnowledgeChunkRestReturnValue_2_0>;
|
|
19857
|
+
indexKnowledgeConnectors: TRestAPIOperation<IIndexKnowledgeConnectorsRestData_2_0, IIndexKnowledgeConnectorsRestReturnValue_2_0>;
|
|
19858
|
+
createKnowledgeConnector: TRestAPIOperation<ICreateKnowledgeConnectorRestData_2_0, ICreateKnowledgeConnectorRestReturnValue_2_0>;
|
|
19859
|
+
readKnowledgeConnector: TRestAPIOperation<IReadKnowledgeConnectorRestData_2_0, IReadKnowledgeConnectorRestReturnValue_2_0>;
|
|
19860
|
+
updateKnowledgeConnector: TRestAPIOperation<IUpdateKnowledgeConnectorRestData_2_0, IUpdateKnowledgeConnectorRestReturnValue_2_0>;
|
|
19861
|
+
deleteKnowledgeConnector: TRestAPIOperation<IDeleteKnowledgeConnectorRestData_2_0, IDeleteKnowledgeConnectorRestReturnValue_2_0>;
|
|
19418
19862
|
uploadResumable: TTusAPIOperation<IUploadResumableRestData_2_0, IUploadResumableRestReturnValue_2_0>;
|
|
19419
19863
|
generateNluScores: TRestAPIOperation<IGenerateNluScoresRestData_2_0, IGenerateNluScoresRestReturnValue_2_0>;
|
|
19420
19864
|
generateDesignTimeLLMOutput: TRestAPIOperation<IGenerateDesignTimeLLMOutputRestData_2_0, IGenerateDesignTimeLLMOutputRestReturnValue_2_0>;
|
|
@@ -21475,7 +21919,8 @@ declare const actionTypes: readonly [
|
|
|
21475
21919
|
"loginSucceeded",
|
|
21476
21920
|
"loginFailed",
|
|
21477
21921
|
"loginError",
|
|
21478
|
-
"unauthorized"
|
|
21922
|
+
"unauthorized",
|
|
21923
|
+
"disableCreditCardRedaction"
|
|
21479
21924
|
];
|
|
21480
21925
|
export declare type TActionType = typeof actionTypes[number];
|
|
21481
21926
|
/**
|
|
@@ -22442,6 +22887,9 @@ export interface ISetupVoiceGatewayRestData_2_0 extends ISetupVoiceGatewayRestDa
|
|
|
22442
22887
|
* businessUnitId:
|
|
22443
22888
|
* type: string
|
|
22444
22889
|
* description: The business unit ID
|
|
22890
|
+
* tenantId:
|
|
22891
|
+
* type: string
|
|
22892
|
+
* description: The tenant ID
|
|
22445
22893
|
* IOrganisation_2_0:
|
|
22446
22894
|
* allOf:
|
|
22447
22895
|
* - $ref: '#/components/schemas/IOrganisationData_2_0'
|
|
@@ -22465,6 +22913,8 @@ export interface IOrganisation_2_0 {
|
|
|
22465
22913
|
name: string;
|
|
22466
22914
|
/** The business unit ID */
|
|
22467
22915
|
businessUnitId?: string;
|
|
22916
|
+
/** The tenant ID */
|
|
22917
|
+
tenantId?: string;
|
|
22468
22918
|
/** Flag whether this organisation is currently disabled */
|
|
22469
22919
|
disabled: boolean;
|
|
22470
22920
|
/** Optional quota information */
|
|
@@ -22565,6 +23015,9 @@ export interface IOrganisationDataPrivacySettings_2_0 {
|
|
|
22565
23015
|
* businessUnitId:
|
|
22566
23016
|
* type: string
|
|
22567
23017
|
* description: The business unit ID
|
|
23018
|
+
* tenantId:
|
|
23019
|
+
* type: string
|
|
23020
|
+
* description: The tenant ID
|
|
22568
23021
|
* name:
|
|
22569
23022
|
* type: string
|
|
22570
23023
|
* description: The name of this organisation
|
|
@@ -22605,6 +23058,8 @@ export interface IOrganisationIndexItem_2_0 {
|
|
|
22605
23058
|
name: string;
|
|
22606
23059
|
/** The business unit ID */
|
|
22607
23060
|
businessUnitId?: string;
|
|
23061
|
+
/** The tenant ID */
|
|
23062
|
+
tenantId?: string;
|
|
22608
23063
|
/** Flag whether this organisation is currently disabled */
|
|
22609
23064
|
disabled: boolean;
|
|
22610
23065
|
/** Optional quota information */
|
|
@@ -23454,6 +23909,8 @@ export interface IProjectMetadataRest_2_0 {
|
|
|
23454
23909
|
}
|
|
23455
23910
|
export interface ISimulationRest_2_0 extends IProjectMetadataRest_2_0 {
|
|
23456
23911
|
id: string;
|
|
23912
|
+
_id: string;
|
|
23913
|
+
referenceId: string;
|
|
23457
23914
|
name: string;
|
|
23458
23915
|
persona: string;
|
|
23459
23916
|
personaName: string;
|
|
@@ -23461,13 +23918,17 @@ export interface ISimulationRest_2_0 extends IProjectMetadataRest_2_0 {
|
|
|
23461
23918
|
successCriteria: ISuccessCriteriaRest_2_0[];
|
|
23462
23919
|
maxTurns?: number;
|
|
23463
23920
|
timeout?: number;
|
|
23921
|
+
aiAgentReferenceId?: string;
|
|
23922
|
+
aiAgentId?: string;
|
|
23923
|
+
flowReferenceId?: string;
|
|
23924
|
+
flowId?: string;
|
|
23925
|
+
jobNodeId?: string;
|
|
23464
23926
|
createdAt?: number;
|
|
23465
23927
|
createdBy: string;
|
|
23466
23928
|
updatedAt?: number;
|
|
23467
23929
|
updatedBy: string;
|
|
23468
23930
|
lastChanged: number;
|
|
23469
23931
|
lastChangedBy?: string;
|
|
23470
|
-
expiresAt?: Date;
|
|
23471
23932
|
}
|
|
23472
23933
|
export interface IIndexSimulationsRestDataQuery_2_0 {
|
|
23473
23934
|
projectId?: string;
|
|
@@ -23555,6 +24016,7 @@ export interface IScheduleSimulationRestDataBody_2_0 {
|
|
|
23555
24016
|
userId?: string;
|
|
23556
24017
|
finalPing?: number;
|
|
23557
24018
|
data?: Record<string, unknown>;
|
|
24019
|
+
enableMocking?: boolean;
|
|
23558
24020
|
};
|
|
23559
24021
|
projectReference: string;
|
|
23560
24022
|
numberOfExecutions: number;
|
|
@@ -23608,6 +24070,72 @@ declare enum ESentimentTypeRest_2_0 {
|
|
|
23608
24070
|
NEUTRAL = "NEUTRAL",
|
|
23609
24071
|
NEGATIVE = "NEGATIVE"
|
|
23610
24072
|
}
|
|
24073
|
+
declare enum ESimulationStatusRest_2_0 {
|
|
24074
|
+
SUCCESS = "success",
|
|
24075
|
+
FAILED = "failed",
|
|
24076
|
+
ERROR = "error"
|
|
24077
|
+
}
|
|
24078
|
+
declare enum ESimulationErrorCategoryRest_2_0 {
|
|
24079
|
+
NONE = "none",
|
|
24080
|
+
AI_AGENT_TIMEOUT = "ai_agent_timeout",
|
|
24081
|
+
LLM_PROVIDER_ERROR = "llm_provider_error",
|
|
24082
|
+
AI_AGENT_ERROR = "ai_agent_error",
|
|
24083
|
+
UNKNOWN = "unknown"
|
|
24084
|
+
}
|
|
24085
|
+
export interface ISimulationErrorInfoRest_2_0 {
|
|
24086
|
+
category: ESimulationErrorCategoryRest_2_0;
|
|
24087
|
+
message?: string;
|
|
24088
|
+
technicalDetails?: string;
|
|
24089
|
+
}
|
|
24090
|
+
/**
|
|
24091
|
+
* Token usage for a specific purpose (user message generation, success criteria evaluation, etc.)
|
|
24092
|
+
*/
|
|
24093
|
+
export interface ITokenUsageByPurposeItemRest_2_0 {
|
|
24094
|
+
inputTokens: number;
|
|
24095
|
+
outputTokens: number;
|
|
24096
|
+
totalTokens: number;
|
|
24097
|
+
}
|
|
24098
|
+
/**
|
|
24099
|
+
* Token usage breakdown by purpose/category
|
|
24100
|
+
*/
|
|
24101
|
+
export interface ITokensByPurposeRest_2_0 {
|
|
24102
|
+
/** Tokens used for generating user messages during conversation */
|
|
24103
|
+
userMessageGeneration: ITokenUsageByPurposeItemRest_2_0;
|
|
24104
|
+
/** Tokens used for evaluating success criteria */
|
|
24105
|
+
successCriteriaEvaluation: ITokenUsageByPurposeItemRest_2_0;
|
|
24106
|
+
/** Tokens used for sentiment analysis */
|
|
24107
|
+
sentimentAnalysis: ITokenUsageByPurposeItemRest_2_0;
|
|
24108
|
+
}
|
|
24109
|
+
export interface ITokenUsageRest_2_0 {
|
|
24110
|
+
inputTokens: number;
|
|
24111
|
+
outputTokens: number;
|
|
24112
|
+
totalTokens: number;
|
|
24113
|
+
calculationMethod: "api" | "estimate";
|
|
24114
|
+
llmReferenceId: string;
|
|
24115
|
+
/** Human-readable name of the LLM (e.g., "Production GPT-4") */
|
|
24116
|
+
llmName: string;
|
|
24117
|
+
/** LLM provider (e.g., "openAI", "anthropic", "azureOpenAI") */
|
|
24118
|
+
llmProvider: string;
|
|
24119
|
+
/** LLM model type (e.g., "gpt-4", "claude-3") */
|
|
24120
|
+
llmModelType: string;
|
|
24121
|
+
/** Human-readable name of the simulation */
|
|
24122
|
+
simulationName: string;
|
|
24123
|
+
turnsWithTokenUsage: number;
|
|
24124
|
+
averageTokensPerTurn: number;
|
|
24125
|
+
/** Detailed breakdown of token usage by purpose (user message generation, success criteria, sentiment analysis) */
|
|
24126
|
+
tokensByPurpose?: ITokensByPurposeRest_2_0;
|
|
24127
|
+
}
|
|
24128
|
+
export interface ISuccessRateRest_2_0 {
|
|
24129
|
+
percentage: number;
|
|
24130
|
+
fraction: string;
|
|
24131
|
+
achieved: number;
|
|
24132
|
+
total: number;
|
|
24133
|
+
}
|
|
24134
|
+
export interface ISuccessCriterionResultRest_2_0 {
|
|
24135
|
+
criterion: ISuccessCriteriaRest_2_0;
|
|
24136
|
+
achieved: boolean;
|
|
24137
|
+
reason: string;
|
|
24138
|
+
}
|
|
23611
24139
|
export interface ISimulationRunRest_2_0 {
|
|
23612
24140
|
id: string;
|
|
23613
24141
|
organisationReference: string;
|
|
@@ -23616,15 +24144,22 @@ export interface ISimulationRunRest_2_0 {
|
|
|
23616
24144
|
simulationRunBatchReference: string;
|
|
23617
24145
|
sequence: number;
|
|
23618
24146
|
largeLanguageModelReferenceId: string;
|
|
24147
|
+
endPointType?: string;
|
|
23619
24148
|
turns: ITurnRest_2_0[];
|
|
23620
24149
|
totalTurns: number;
|
|
24150
|
+
maxTurns?: number;
|
|
23621
24151
|
successCriteria: ISuccessCriteriaRest_2_0[];
|
|
23622
24152
|
metrics: {
|
|
23623
24153
|
sentiment: ESentimentTypeRest_2_0;
|
|
23624
|
-
outOfScope: string;
|
|
23625
|
-
efficiency: number;
|
|
23626
|
-
topic: string;
|
|
23627
24154
|
success: boolean;
|
|
24155
|
+
results?: ISuccessCriterionResultRest_2_0[];
|
|
24156
|
+
successRate?: ISuccessRateRest_2_0;
|
|
24157
|
+
summary?: string;
|
|
24158
|
+
isBatchStopped?: boolean;
|
|
24159
|
+
isConversationEnded?: boolean;
|
|
24160
|
+
errorInfo?: ISimulationErrorInfoRest_2_0;
|
|
24161
|
+
status?: ESimulationStatusRest_2_0;
|
|
24162
|
+
tokenUsage?: ITokenUsageRest_2_0;
|
|
23628
24163
|
};
|
|
23629
24164
|
createdAt: number;
|
|
23630
24165
|
createdBy: string;
|
|
@@ -23640,30 +24175,105 @@ export declare type TSimulationRunBatchStatusRest_2_0 = typeof SimulationRunBatc
|
|
|
23640
24175
|
export interface IBatchSuccessCriteriaOverview_2_0 extends ISuccessCriteriaRest_2_0 {
|
|
23641
24176
|
percentage: number;
|
|
23642
24177
|
}
|
|
24178
|
+
export interface IEfficiencyScoreRest_2_0 {
|
|
24179
|
+
label: string;
|
|
24180
|
+
start: number;
|
|
24181
|
+
end: number;
|
|
24182
|
+
counter: number;
|
|
24183
|
+
}
|
|
24184
|
+
export interface IAverageSuccessRateForRunsRest_2_0 {
|
|
24185
|
+
percentage: number;
|
|
24186
|
+
fraction: string;
|
|
24187
|
+
achieved: number;
|
|
24188
|
+
total: number;
|
|
24189
|
+
average: number;
|
|
24190
|
+
}
|
|
24191
|
+
/**
|
|
24192
|
+
* Token usage breakdown for a specific purpose
|
|
24193
|
+
*/
|
|
24194
|
+
export interface ITokenUsageByPurposeRest_2_0 {
|
|
24195
|
+
inputTokens: number;
|
|
24196
|
+
outputTokens: number;
|
|
24197
|
+
totalTokens: number;
|
|
24198
|
+
}
|
|
24199
|
+
/**
|
|
24200
|
+
* Aggregated token usage breakdown by purpose for batch
|
|
24201
|
+
*/
|
|
24202
|
+
export interface IBatchTokensByPurposeRest_2_0 {
|
|
24203
|
+
/** Tokens used for generating user messages during conversation */
|
|
24204
|
+
userMessageGeneration: ITokenUsageByPurposeRest_2_0;
|
|
24205
|
+
/** Tokens used for evaluating success criteria */
|
|
24206
|
+
successCriteriaEvaluation: ITokenUsageByPurposeRest_2_0;
|
|
24207
|
+
/** Tokens used for sentiment analysis */
|
|
24208
|
+
sentimentAnalysis: ITokenUsageByPurposeRest_2_0;
|
|
24209
|
+
}
|
|
24210
|
+
export interface IBatchTokenUsageRest_2_0 {
|
|
24211
|
+
totalInputTokens: number;
|
|
24212
|
+
totalOutputTokens: number;
|
|
24213
|
+
totalTokens: number;
|
|
24214
|
+
averageInputTokensPerRun: number;
|
|
24215
|
+
averageOutputTokensPerRun: number;
|
|
24216
|
+
averageTokensPerRun: number;
|
|
24217
|
+
averageTokensPerTurn: number;
|
|
24218
|
+
runsWithTokenUsage: number;
|
|
24219
|
+
calculationMethod: "api" | "estimate" | "mixed";
|
|
24220
|
+
llmReferenceId: string;
|
|
24221
|
+
/** Human-readable name of the LLM (e.g., "Production GPT-4") */
|
|
24222
|
+
llmName: string;
|
|
24223
|
+
/** LLM provider (e.g., "openAI", "anthropic", "azureOpenAI") */
|
|
24224
|
+
llmProvider: string;
|
|
24225
|
+
/** LLM model type (e.g., "gpt-4", "claude-3") */
|
|
24226
|
+
llmModelType: string;
|
|
24227
|
+
/** Human-readable name of the simulation */
|
|
24228
|
+
simulationName: string;
|
|
24229
|
+
/** Detailed breakdown of token usage by purpose (aggregated across all runs) */
|
|
24230
|
+
tokensByPurpose?: IBatchTokensByPurposeRest_2_0;
|
|
24231
|
+
}
|
|
24232
|
+
export interface IBatchMetricsRest_2_0 {
|
|
24233
|
+
_v: number;
|
|
24234
|
+
efficiencyScore?: IEfficiencyScoreRest_2_0[];
|
|
24235
|
+
turnsDistribution?: IEfficiencyScoreRest_2_0[];
|
|
24236
|
+
successRate?: number;
|
|
24237
|
+
averageSuccessRateForRuns?: IAverageSuccessRateForRunsRest_2_0;
|
|
24238
|
+
successCriterias?: IBatchSuccessCriteriaOverview_2_0[];
|
|
24239
|
+
averageTurns?: number;
|
|
24240
|
+
averageSentiment?: string;
|
|
24241
|
+
runResults?: {
|
|
24242
|
+
succeeded: number;
|
|
24243
|
+
failed: number;
|
|
24244
|
+
notExecuted?: number;
|
|
24245
|
+
};
|
|
24246
|
+
tokenUsage?: IBatchTokenUsageRest_2_0;
|
|
24247
|
+
}
|
|
23643
24248
|
export interface ISimulationRunBatchRest_2_0 {
|
|
23644
24249
|
id: string;
|
|
24250
|
+
_id: string;
|
|
23645
24251
|
name: string;
|
|
23646
24252
|
status: TSimulationRunBatchStatusRest_2_0;
|
|
23647
24253
|
numberOfExecutions: number;
|
|
23648
|
-
successRate?: number;
|
|
23649
|
-
efficiency?: number;
|
|
23650
24254
|
simulationReference: string;
|
|
23651
24255
|
projectReference: string;
|
|
23652
24256
|
organisationReference: string;
|
|
24257
|
+
endPointType?: string;
|
|
23653
24258
|
runConfig: {
|
|
23654
24259
|
flowReferenceId: string;
|
|
23655
24260
|
localeReferenceId?: string;
|
|
23656
24261
|
entrypoint: string;
|
|
24262
|
+
largeLanguageModelReferenceId: string;
|
|
24263
|
+
userId?: string;
|
|
24264
|
+
finalPing?: number;
|
|
24265
|
+
};
|
|
24266
|
+
simulationFrozen: {
|
|
24267
|
+
persona: string;
|
|
24268
|
+
personaName: string;
|
|
24269
|
+
mission: string;
|
|
23657
24270
|
};
|
|
23658
24271
|
createdAt: number;
|
|
23659
24272
|
createdBy: string;
|
|
23660
|
-
largeLanguageModelReferenceId: string;
|
|
23661
24273
|
updatedAt?: number;
|
|
23662
24274
|
completedAt?: number;
|
|
23663
24275
|
expiresAt?: Date;
|
|
23664
|
-
batchMetrics?:
|
|
23665
|
-
results?: IBatchSuccessCriteriaOverview_2_0[];
|
|
23666
|
-
};
|
|
24276
|
+
batchMetrics?: IBatchMetricsRest_2_0;
|
|
23667
24277
|
}
|
|
23668
24278
|
export interface IIndexSimulationRunBatchesRestDataQuery_2_0 {
|
|
23669
24279
|
projectId: string;
|
|
@@ -24023,6 +24633,91 @@ export interface IStopSimulationRunBatchRestData_2_0 extends IStopSimulationRunB
|
|
|
24023
24633
|
export interface IStopSimulationRunBatchRestReturnValue_2_0 {
|
|
24024
24634
|
simulationRunBatchId: ISimulationRunBatchRest_2_0;
|
|
24025
24635
|
}
|
|
24636
|
+
declare enum ESchedulerFrequencyRest_2_0 {
|
|
24637
|
+
DAILY = "daily",
|
|
24638
|
+
EVERY_THREE_DAYS = "every three days",
|
|
24639
|
+
WEEKLY = "weekly",
|
|
24640
|
+
BIWEEKLY = "biweekly",
|
|
24641
|
+
MONTHLY = "monthly"
|
|
24642
|
+
}
|
|
24643
|
+
export interface ISchedulerRunConfigRest_2_0 {
|
|
24644
|
+
flowReferenceId: string;
|
|
24645
|
+
localeReferenceId?: string;
|
|
24646
|
+
entrypoint: string;
|
|
24647
|
+
largeLanguageModelReferenceId: string;
|
|
24648
|
+
userId?: string;
|
|
24649
|
+
finalPing?: number;
|
|
24650
|
+
data?: Record<string, unknown>;
|
|
24651
|
+
enableMocking?: boolean;
|
|
24652
|
+
}
|
|
24653
|
+
export interface ISchedulerRest_2_0 extends IProjectMetadataRest_2_0 {
|
|
24654
|
+
id: string;
|
|
24655
|
+
runConfig: ISchedulerRunConfigRest_2_0;
|
|
24656
|
+
enableSchedule: boolean;
|
|
24657
|
+
frequency: ESchedulerFrequencyRest_2_0;
|
|
24658
|
+
time: string;
|
|
24659
|
+
numberOfRuns: number;
|
|
24660
|
+
nextScheduledRun: string;
|
|
24661
|
+
emailNotifications: string[];
|
|
24662
|
+
scenarioName: string;
|
|
24663
|
+
runName: string;
|
|
24664
|
+
simulationReference: string;
|
|
24665
|
+
endDate?: string;
|
|
24666
|
+
createdAt: number;
|
|
24667
|
+
lastChanged: number;
|
|
24668
|
+
createdBy: string;
|
|
24669
|
+
lastChangedBy: string;
|
|
24670
|
+
}
|
|
24671
|
+
export interface ICreateSchedulerRestDataParams_2_0 {
|
|
24672
|
+
simulationReference: string;
|
|
24673
|
+
}
|
|
24674
|
+
export interface ICreateSchedulerRestDataBody_2_0 {
|
|
24675
|
+
runConfig: ISchedulerRunConfigRest_2_0;
|
|
24676
|
+
enableSchedule: boolean;
|
|
24677
|
+
frequency: ESchedulerFrequencyRest_2_0;
|
|
24678
|
+
time: string;
|
|
24679
|
+
numberOfRuns: number;
|
|
24680
|
+
emailNotifications?: string[];
|
|
24681
|
+
scenarioName?: string;
|
|
24682
|
+
runName: string;
|
|
24683
|
+
endDate?: string;
|
|
24684
|
+
}
|
|
24685
|
+
export interface ICreateSchedulerRestData_2_0 extends ICreateSchedulerRestDataParams_2_0, ICreateSchedulerRestDataBody_2_0 {
|
|
24686
|
+
}
|
|
24687
|
+
export interface ICreateSchedulerRestReturnValue_2_0 {
|
|
24688
|
+
scheduler: ISchedulerRest_2_0;
|
|
24689
|
+
}
|
|
24690
|
+
export interface IUpdateSchedulerRestDataParams_2_0 {
|
|
24691
|
+
simulationReference: string;
|
|
24692
|
+
schedulerId: string;
|
|
24693
|
+
}
|
|
24694
|
+
export interface IUpdateSchedulerRestDataBody_2_0 {
|
|
24695
|
+
runConfig?: ISchedulerRunConfigRest_2_0;
|
|
24696
|
+
enableSchedule?: boolean;
|
|
24697
|
+
frequency?: ESchedulerFrequencyRest_2_0;
|
|
24698
|
+
time?: string;
|
|
24699
|
+
numberOfRuns?: number;
|
|
24700
|
+
nextScheduledRun?: string;
|
|
24701
|
+
emailNotifications?: string[];
|
|
24702
|
+
scenarioName?: string;
|
|
24703
|
+
runName?: string;
|
|
24704
|
+
endDate?: string;
|
|
24705
|
+
}
|
|
24706
|
+
export interface IUpdateSchedulerRestData_2_0 extends IUpdateSchedulerRestDataParams_2_0, IUpdateSchedulerRestDataBody_2_0 {
|
|
24707
|
+
projectId?: string;
|
|
24708
|
+
}
|
|
24709
|
+
export interface IUpdateSchedulerRestReturnValue_2_0 {
|
|
24710
|
+
scheduler: ISchedulerRest_2_0;
|
|
24711
|
+
}
|
|
24712
|
+
export interface IGetSchedulerRestDataParams_2_0 {
|
|
24713
|
+
simulationReference: string;
|
|
24714
|
+
}
|
|
24715
|
+
export interface IGetSchedulerRestData_2_0 extends IGetSchedulerRestDataParams_2_0 {
|
|
24716
|
+
projectId?: string;
|
|
24717
|
+
}
|
|
24718
|
+
export interface IGetSchedulerRestReturnValue_2_0 {
|
|
24719
|
+
scheduler: ISchedulerRest_2_0 | null;
|
|
24720
|
+
}
|
|
24026
24721
|
export interface SimulationAPIGroup_2_0 {
|
|
24027
24722
|
indexSimulations: TRestAPIOperation<IIndexSimulationsRestData_2_0, IIndexSimulationsRestReturnValue_2_0>;
|
|
24028
24723
|
createSimulation: TRestAPIOperation<ICreateSimulationRestData_2_0, ICreateSimulationRestReturnValue_2_0>;
|
|
@@ -24042,6 +24737,9 @@ export interface SimulationAPIGroup_2_0 {
|
|
|
24042
24737
|
regeneratePersonaField: TRestAPIOperation<IRegeneratePersonaFieldRestData_2_0, IRegeneratePersonaFieldRestReturnValue_2_0>;
|
|
24043
24738
|
generateBulkPersona: TRestAPIOperation<IGenerateBulkPersonaRestData_2_0, IGenerateBulkPersonaRestReturnValue_2_0>;
|
|
24044
24739
|
generatePersonaFromTranscript: TRestAPIOperation<IGeneratePersonaFromTranscriptRestData_2_0, IGeneratePersonaFromTranscriptRestReturnValue_2_0>;
|
|
24740
|
+
getScheduler: TRestAPIOperation<IGetSchedulerRestData_2_0, IGetSchedulerRestReturnValue_2_0>;
|
|
24741
|
+
createScheduler: TRestAPIOperation<ICreateSchedulerRestData_2_0, ICreateSchedulerRestReturnValue_2_0>;
|
|
24742
|
+
updateScheduler: TRestAPIOperation<IUpdateSchedulerRestData_2_0, IUpdateSchedulerRestReturnValue_2_0>;
|
|
24045
24743
|
}
|
|
24046
24744
|
declare function SimulationAPIGroup_2_0(instance: Base): SimulationAPIGroup_2_0;
|
|
24047
24745
|
export declare type TRestAPIGroupsTypeByConfiguration<T extends IRestAPIClientConfig> = TResourceAPIVersionType<T> & TJWTAuthAPIVersionType<T> & TInsightsAPIVersionType<T> & TMetricsAPIVersionType<T> & TSessionAPIVersionType<T> & TExternalAPIVersionType<T> & TAdministrationAPIVersionType<T> & TManagementAPIVersionType<T> & TAnalyticsAPIVersionType<T> & TAIOpsCenterAPIVersionType<T> & TSimulationAPIVersionType<T>;
|