@cognigy/rest-api-client 2025.23.0 → 2025.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/build/shared/charts/descriptors/index.js +6 -1
- package/build/shared/charts/descriptors/nlu/matchPattern.js +1 -0
- package/build/shared/charts/descriptors/placeholder.js +3 -0
- package/build/shared/charts/descriptors/service/agentTools/handoverToAiAgentTool.js +192 -0
- package/build/shared/charts/descriptors/service/agentTools/knowledgeTool.js +1 -1
- package/build/shared/charts/descriptors/service/agentTools/sendEmailTool.js +243 -0
- package/build/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +1 -1
- package/build/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +37 -3
- 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/handoverConnections.js +9 -1
- package/build/shared/charts/descriptors/service/index.js +6 -1
- package/build/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +1 -1
- package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +12 -16
- package/build/shared/constants.js +2 -1
- package/build/shared/interfaces/IOrganisation.js +1 -0
- package/build/shared/interfaces/IProfile.js +1 -0
- package/build/shared/interfaces/cxone/knowledgehub/CXoneKnowledgehubAPI.js +3 -0
- package/build/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/build/shared/interfaces/resources/TRestChannelType.js +2 -2
- 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/shared/charts/descriptors/index.js +5 -1
- package/dist/esm/shared/charts/descriptors/nlu/matchPattern.js +1 -0
- package/dist/esm/shared/charts/descriptors/placeholder.js +3 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/handoverToAiAgentTool.js +190 -0
- package/dist/esm/shared/charts/descriptors/service/agentTools/knowledgeTool.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/agentTools/sendEmailTool.js +241 -0
- package/dist/esm/shared/charts/descriptors/service/aiAgent/aiAgentJob.js +1 -1
- package/dist/esm/shared/charts/descriptors/service/aiAgent/helpers/createToolDefinitions.js +35 -2
- 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/handoverConnections.js +8 -0
- package/dist/esm/shared/charts/descriptors/service/index.js +3 -1
- package/dist/esm/shared/charts/descriptors/service/llmPrompt/LLMPromptV2.js +1 -1
- package/dist/esm/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +12 -16
- package/dist/esm/shared/constants.js +1 -0
- package/dist/esm/shared/interfaces/IOrganisation.js +1 -0
- package/dist/esm/shared/interfaces/IProfile.js +1 -0
- package/dist/esm/shared/interfaces/cxone/knowledgehub/CXoneKnowledgehubAPI.js +2 -0
- package/dist/esm/shared/interfaces/resources/IAuditEvent.js +1 -0
- package/dist/esm/shared/interfaces/resources/TRestChannelType.js +2 -2
- 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 +204 -22
package/dist/esm/shared/interfaces/restAPI/simulation/simulationRun/ISimulationRunRest_2_0.js
CHANGED
|
@@ -18,4 +18,18 @@ export var ESentimentTypeRest_2_0;
|
|
|
18
18
|
ESentimentTypeRest_2_0["NEUTRAL"] = "NEUTRAL";
|
|
19
19
|
ESentimentTypeRest_2_0["NEGATIVE"] = "NEGATIVE";
|
|
20
20
|
})(ESentimentTypeRest_2_0 || (ESentimentTypeRest_2_0 = {}));
|
|
21
|
+
export var ESimulationStatusRest_2_0;
|
|
22
|
+
(function (ESimulationStatusRest_2_0) {
|
|
23
|
+
ESimulationStatusRest_2_0["SUCCESS"] = "success";
|
|
24
|
+
ESimulationStatusRest_2_0["FAILED"] = "failed";
|
|
25
|
+
ESimulationStatusRest_2_0["ERROR"] = "error";
|
|
26
|
+
})(ESimulationStatusRest_2_0 || (ESimulationStatusRest_2_0 = {}));
|
|
27
|
+
export var ESimulationErrorCategoryRest_2_0;
|
|
28
|
+
(function (ESimulationErrorCategoryRest_2_0) {
|
|
29
|
+
ESimulationErrorCategoryRest_2_0["NONE"] = "none";
|
|
30
|
+
ESimulationErrorCategoryRest_2_0["AI_AGENT_TIMEOUT"] = "ai_agent_timeout";
|
|
31
|
+
ESimulationErrorCategoryRest_2_0["LLM_PROVIDER_ERROR"] = "llm_provider_error";
|
|
32
|
+
ESimulationErrorCategoryRest_2_0["AI_AGENT_ERROR"] = "ai_agent_error";
|
|
33
|
+
ESimulationErrorCategoryRest_2_0["UNKNOWN"] = "unknown";
|
|
34
|
+
})(ESimulationErrorCategoryRest_2_0 || (ESimulationErrorCategoryRest_2_0 = {}));
|
|
21
35
|
//# sourceMappingURL=ISimulationRunRest_2_0.js.map
|
|
@@ -3,4 +3,9 @@ export const SimulationRunBatchStatus = [
|
|
|
3
3
|
"COMPLETED",
|
|
4
4
|
"FAILED"
|
|
5
5
|
];
|
|
6
|
+
export var SuccessCriterionTypeRest_2_0;
|
|
7
|
+
(function (SuccessCriterionTypeRest_2_0) {
|
|
8
|
+
SuccessCriterionTypeRest_2_0["TEXT"] = "text";
|
|
9
|
+
SuccessCriterionTypeRest_2_0["GOAL_COMPLETED"] = "goalCompleted";
|
|
10
|
+
})(SuccessCriterionTypeRest_2_0 || (SuccessCriterionTypeRest_2_0 = {}));
|
|
6
11
|
//# sourceMappingURL=ISimulationRunBatchRest_2_0.js.map
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -2862,8 +2862,6 @@ declare const generativeAIModels: readonly [
|
|
|
2862
2862
|
* - luminous-extended-control
|
|
2863
2863
|
* - luminous-embedding-128
|
|
2864
2864
|
* - Pharia-1-Embedding-4608
|
|
2865
|
-
* - claude-v1-100k
|
|
2866
|
-
* - claude-instant-v1
|
|
2867
2865
|
* - claude-3-opus-20240229
|
|
2868
2866
|
* - custom-model
|
|
2869
2867
|
* - custom-embedding-model
|
|
@@ -3030,9 +3028,8 @@ export interface IVoiceGateway2VadParams {
|
|
|
3030
3028
|
voiceMs?: number;
|
|
3031
3029
|
mode?: number;
|
|
3032
3030
|
}
|
|
3033
|
-
export declare type TVoiceGateway2TTSVendor = "aws" | "deepgram" | "elevenlabs" | "google" | "microsoft" | "nuance" | "default" | "custom";
|
|
3034
3031
|
export interface IVoiceGateway2SynthesizerParams {
|
|
3035
|
-
vendor?:
|
|
3032
|
+
vendor?: string;
|
|
3036
3033
|
language?: string;
|
|
3037
3034
|
voice?: string;
|
|
3038
3035
|
label?: string;
|
|
@@ -3047,11 +3044,10 @@ export interface IVoiceGateway2SynthesizerParams {
|
|
|
3047
3044
|
disableCache?: boolean;
|
|
3048
3045
|
model?: string;
|
|
3049
3046
|
}
|
|
3050
|
-
export declare type TVoiceGateway2STTVendor = "aws" | "deepgram" | "google" | "microsoft" | "nuance" | "soniox" | "default" | "custom";
|
|
3051
3047
|
export declare type TVoiceGateway2GoogleModel = "latest_short" | "latest_long" | "command_and_search" | "phone_call" | "video" | "medical_dictation" | "medical_conversation" | "default";
|
|
3052
3048
|
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";
|
|
3053
3049
|
export interface IVoiceGateway2RecognizerParams {
|
|
3054
|
-
vendor?:
|
|
3050
|
+
vendor?: string;
|
|
3055
3051
|
language?: string;
|
|
3056
3052
|
label?: string;
|
|
3057
3053
|
fallbackVendor?: string;
|
|
@@ -3447,6 +3443,9 @@ export interface IVoiceGatewayEndpointSettings extends IEndpointSessionSettings
|
|
|
3447
3443
|
privacyNotice: Omit<IWebchat3EndpointPrivacyNoticeSettings, "title"> & {
|
|
3448
3444
|
cancelButtonText: string;
|
|
3449
3445
|
};
|
|
3446
|
+
transcription: {
|
|
3447
|
+
enabled: boolean;
|
|
3448
|
+
};
|
|
3450
3449
|
}
|
|
3451
3450
|
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 | {};
|
|
3452
3451
|
export declare type TAvayaVoice = "man" | "woman" | string;
|
|
@@ -9679,7 +9678,7 @@ export interface ISpeakingStyle {
|
|
|
9679
9678
|
export interface IVoiceConfigParams {
|
|
9680
9679
|
ttsVoice: string;
|
|
9681
9680
|
ttsLanguage: string;
|
|
9682
|
-
ttsVendor:
|
|
9681
|
+
ttsVendor: string;
|
|
9683
9682
|
ttsModel: string;
|
|
9684
9683
|
ttsLabel: string;
|
|
9685
9684
|
ttsDisableCache: boolean;
|
|
@@ -10693,6 +10692,101 @@ export interface IChartExecutableNode<C extends INodeFunctionBaseParams = INodeF
|
|
|
10693
10692
|
isDisabled: boolean;
|
|
10694
10693
|
analyticsLabel?: string;
|
|
10695
10694
|
}
|
|
10695
|
+
/**
|
|
10696
|
+
* @param meta.contactNumber DirectQuery views this is as an identifier similar to a session ID
|
|
10697
|
+
*/
|
|
10698
|
+
export interface ICXoneKnowledgehubRequestBody {
|
|
10699
|
+
schemaVersion?: string;
|
|
10700
|
+
timestamp: string;
|
|
10701
|
+
meta: {
|
|
10702
|
+
tenantId?: string;
|
|
10703
|
+
contactNumber: string;
|
|
10704
|
+
agentUid?: string;
|
|
10705
|
+
provider: string;
|
|
10706
|
+
};
|
|
10707
|
+
query: {
|
|
10708
|
+
uid: string;
|
|
10709
|
+
text: string;
|
|
10710
|
+
persona?: string;
|
|
10711
|
+
language?: string;
|
|
10712
|
+
};
|
|
10713
|
+
kbFiltering?: {
|
|
10714
|
+
conversationContextRefId?: string;
|
|
10715
|
+
filters?: string;
|
|
10716
|
+
};
|
|
10717
|
+
config: {
|
|
10718
|
+
kbAnswers: {
|
|
10719
|
+
promptEditorProfileId?: string;
|
|
10720
|
+
answers: {
|
|
10721
|
+
enabled: boolean;
|
|
10722
|
+
maxWords: number;
|
|
10723
|
+
};
|
|
10724
|
+
images: {
|
|
10725
|
+
enabled: boolean;
|
|
10726
|
+
maxImages: number;
|
|
10727
|
+
};
|
|
10728
|
+
links: {
|
|
10729
|
+
enabled: boolean;
|
|
10730
|
+
maxLinks: number;
|
|
10731
|
+
};
|
|
10732
|
+
};
|
|
10733
|
+
kbProcessSteps: {
|
|
10734
|
+
enabled: boolean;
|
|
10735
|
+
maxSteps: number;
|
|
10736
|
+
maxTitleWords: number;
|
|
10737
|
+
maxStepWords: number;
|
|
10738
|
+
};
|
|
10739
|
+
awsBedrock: {
|
|
10740
|
+
knowledgeHubId: string;
|
|
10741
|
+
awsBedrockKbId: string;
|
|
10742
|
+
maxKernels: number;
|
|
10743
|
+
shareable: boolean;
|
|
10744
|
+
promptTemplate?: {
|
|
10745
|
+
textPromptTemplate: string;
|
|
10746
|
+
modelArn: string;
|
|
10747
|
+
};
|
|
10748
|
+
};
|
|
10749
|
+
};
|
|
10750
|
+
}
|
|
10751
|
+
export interface ICXoneKnowledgehubResponseBody {
|
|
10752
|
+
timestamp: string;
|
|
10753
|
+
kbAnswers: {
|
|
10754
|
+
uid: string;
|
|
10755
|
+
conversationContextRefId?: string;
|
|
10756
|
+
kbCompletions: Array<{
|
|
10757
|
+
uid: string;
|
|
10758
|
+
kbCompletion: string;
|
|
10759
|
+
restriction: "Public" | "Private" | "Combine";
|
|
10760
|
+
citations: Array<{
|
|
10761
|
+
text: string;
|
|
10762
|
+
start: number;
|
|
10763
|
+
end: number;
|
|
10764
|
+
}>;
|
|
10765
|
+
}>;
|
|
10766
|
+
kbImages: Array<{
|
|
10767
|
+
uid: string;
|
|
10768
|
+
pageId: number;
|
|
10769
|
+
title: string;
|
|
10770
|
+
link: string;
|
|
10771
|
+
thumbnail: string;
|
|
10772
|
+
restriction: "Public" | "Private";
|
|
10773
|
+
}>;
|
|
10774
|
+
kbLinks: Array<{
|
|
10775
|
+
uid: string;
|
|
10776
|
+
pageId: number;
|
|
10777
|
+
title: string;
|
|
10778
|
+
link: string;
|
|
10779
|
+
restriction: "Public" | "Private";
|
|
10780
|
+
}>;
|
|
10781
|
+
};
|
|
10782
|
+
}
|
|
10783
|
+
export interface INiceCXoneKnowledgehubFields {
|
|
10784
|
+
accessKey: string;
|
|
10785
|
+
secretKey: string;
|
|
10786
|
+
clientId?: string;
|
|
10787
|
+
clientSecret?: string;
|
|
10788
|
+
endpointUrl?: string;
|
|
10789
|
+
}
|
|
10696
10790
|
export interface IGetConversationTranscriptParams {
|
|
10697
10791
|
turnLimit: number;
|
|
10698
10792
|
}
|
|
@@ -10860,6 +10954,7 @@ export interface IActions {
|
|
|
10860
10954
|
getEndpointSettings: () => IEndpointSettings;
|
|
10861
10955
|
getTranscript: (options: TReadTranscriptOptions) => Promise<TTranscriptEntry[]>;
|
|
10862
10956
|
addTranscriptStep: (content: TTranscriptEntryContent) => Promise<void>;
|
|
10957
|
+
executeNiceCxoneKnowledgehubApiRequest(knowledgehubConnection: INiceCXoneKnowledgehubFields, requestBody: ICXoneKnowledgehubRequestBody): Promise<ICXoneKnowledgehubResponseBody>;
|
|
10863
10958
|
}
|
|
10864
10959
|
export interface IGetMetaDataActionValue {
|
|
10865
10960
|
sessionId: string;
|
|
@@ -16805,7 +16900,7 @@ export interface IVoiceConfigParams {
|
|
|
16805
16900
|
ttsVoice: string;
|
|
16806
16901
|
ttsLanguage: string;
|
|
16807
16902
|
ttsModel: string;
|
|
16808
|
-
ttsVendor:
|
|
16903
|
+
ttsVendor: string;
|
|
16809
16904
|
ttsLabel: string;
|
|
16810
16905
|
azureSttContextId: string;
|
|
16811
16906
|
azureSpeechRecognitionMode: string;
|
|
@@ -16918,7 +17013,7 @@ export interface IVoiceConfigParams {
|
|
|
16918
17013
|
sttHintsDynamicHints: string[] | undefined;
|
|
16919
17014
|
ttsVoice: string;
|
|
16920
17015
|
ttsLanguage: string;
|
|
16921
|
-
ttsVendor:
|
|
17016
|
+
ttsVendor: string;
|
|
16922
17017
|
ttsModel: string;
|
|
16923
17018
|
sttDisablePunctuation: boolean;
|
|
16924
17019
|
azureSttContextId: string;
|
|
@@ -20017,7 +20112,8 @@ export interface IMemory {
|
|
|
20017
20112
|
text: string;
|
|
20018
20113
|
}
|
|
20019
20114
|
declare const profileTypes: readonly [
|
|
20020
|
-
"simulator"
|
|
20115
|
+
"simulator",
|
|
20116
|
+
"regular"
|
|
20021
20117
|
];
|
|
20022
20118
|
export declare type TProfileTypes = (typeof profileTypes)[number];
|
|
20023
20119
|
/**
|
|
@@ -21476,7 +21572,8 @@ declare const actionTypes: readonly [
|
|
|
21476
21572
|
"loginSucceeded",
|
|
21477
21573
|
"loginFailed",
|
|
21478
21574
|
"loginError",
|
|
21479
|
-
"unauthorized"
|
|
21575
|
+
"unauthorized",
|
|
21576
|
+
"disableCreditCardRedaction"
|
|
21480
21577
|
];
|
|
21481
21578
|
export declare type TActionType = typeof actionTypes[number];
|
|
21482
21579
|
/**
|
|
@@ -22443,6 +22540,9 @@ export interface ISetupVoiceGatewayRestData_2_0 extends ISetupVoiceGatewayRestDa
|
|
|
22443
22540
|
* businessUnitId:
|
|
22444
22541
|
* type: string
|
|
22445
22542
|
* description: The business unit ID
|
|
22543
|
+
* tenantId:
|
|
22544
|
+
* type: string
|
|
22545
|
+
* description: The tenant ID
|
|
22446
22546
|
* IOrganisation_2_0:
|
|
22447
22547
|
* allOf:
|
|
22448
22548
|
* - $ref: '#/components/schemas/IOrganisationData_2_0'
|
|
@@ -22466,6 +22566,8 @@ export interface IOrganisation_2_0 {
|
|
|
22466
22566
|
name: string;
|
|
22467
22567
|
/** The business unit ID */
|
|
22468
22568
|
businessUnitId?: string;
|
|
22569
|
+
/** The tenant ID */
|
|
22570
|
+
tenantId?: string;
|
|
22469
22571
|
/** Flag whether this organisation is currently disabled */
|
|
22470
22572
|
disabled: boolean;
|
|
22471
22573
|
/** Optional quota information */
|
|
@@ -22566,6 +22668,9 @@ export interface IOrganisationDataPrivacySettings_2_0 {
|
|
|
22566
22668
|
* businessUnitId:
|
|
22567
22669
|
* type: string
|
|
22568
22670
|
* description: The business unit ID
|
|
22671
|
+
* tenantId:
|
|
22672
|
+
* type: string
|
|
22673
|
+
* description: The tenant ID
|
|
22569
22674
|
* name:
|
|
22570
22675
|
* type: string
|
|
22571
22676
|
* description: The name of this organisation
|
|
@@ -22606,6 +22711,8 @@ export interface IOrganisationIndexItem_2_0 {
|
|
|
22606
22711
|
name: string;
|
|
22607
22712
|
/** The business unit ID */
|
|
22608
22713
|
businessUnitId?: string;
|
|
22714
|
+
/** The tenant ID */
|
|
22715
|
+
tenantId?: string;
|
|
22609
22716
|
/** Flag whether this organisation is currently disabled */
|
|
22610
22717
|
disabled: boolean;
|
|
22611
22718
|
/** Optional quota information */
|
|
@@ -23455,6 +23562,8 @@ export interface IProjectMetadataRest_2_0 {
|
|
|
23455
23562
|
}
|
|
23456
23563
|
export interface ISimulationRest_2_0 extends IProjectMetadataRest_2_0 {
|
|
23457
23564
|
id: string;
|
|
23565
|
+
_id: string;
|
|
23566
|
+
referenceId: string;
|
|
23458
23567
|
name: string;
|
|
23459
23568
|
persona: string;
|
|
23460
23569
|
personaName: string;
|
|
@@ -23462,13 +23571,17 @@ export interface ISimulationRest_2_0 extends IProjectMetadataRest_2_0 {
|
|
|
23462
23571
|
successCriteria: ISuccessCriteriaRest_2_0[];
|
|
23463
23572
|
maxTurns?: number;
|
|
23464
23573
|
timeout?: number;
|
|
23574
|
+
aiAgentReferenceId?: string;
|
|
23575
|
+
aiAgentId?: string;
|
|
23576
|
+
flowReferenceId?: string;
|
|
23577
|
+
flowId?: string;
|
|
23578
|
+
jobNodeId?: string;
|
|
23465
23579
|
createdAt?: number;
|
|
23466
23580
|
createdBy: string;
|
|
23467
23581
|
updatedAt?: number;
|
|
23468
23582
|
updatedBy: string;
|
|
23469
23583
|
lastChanged: number;
|
|
23470
23584
|
lastChangedBy?: string;
|
|
23471
|
-
expiresAt?: Date;
|
|
23472
23585
|
}
|
|
23473
23586
|
export interface IIndexSimulationsRestDataQuery_2_0 {
|
|
23474
23587
|
projectId?: string;
|
|
@@ -23599,6 +23712,8 @@ export interface ISuccessCriteriaGoalParams_2_0 {
|
|
|
23599
23712
|
name: string;
|
|
23600
23713
|
}
|
|
23601
23714
|
export interface ISuccessCriteriaRest_2_0 {
|
|
23715
|
+
name?: string;
|
|
23716
|
+
text?: string;
|
|
23602
23717
|
type: SuccessCriterionType_2_0;
|
|
23603
23718
|
params: ISuccessCriteriaTextParams_2_0 | ISuccessCriteriaGoalParams_2_0;
|
|
23604
23719
|
}
|
|
@@ -23607,6 +23722,34 @@ declare enum ESentimentTypeRest_2_0 {
|
|
|
23607
23722
|
NEUTRAL = "NEUTRAL",
|
|
23608
23723
|
NEGATIVE = "NEGATIVE"
|
|
23609
23724
|
}
|
|
23725
|
+
declare enum ESimulationStatusRest_2_0 {
|
|
23726
|
+
SUCCESS = "success",
|
|
23727
|
+
FAILED = "failed",
|
|
23728
|
+
ERROR = "error"
|
|
23729
|
+
}
|
|
23730
|
+
declare enum ESimulationErrorCategoryRest_2_0 {
|
|
23731
|
+
NONE = "none",
|
|
23732
|
+
AI_AGENT_TIMEOUT = "ai_agent_timeout",
|
|
23733
|
+
LLM_PROVIDER_ERROR = "llm_provider_error",
|
|
23734
|
+
AI_AGENT_ERROR = "ai_agent_error",
|
|
23735
|
+
UNKNOWN = "unknown"
|
|
23736
|
+
}
|
|
23737
|
+
export interface ISimulationErrorInfoRest_2_0 {
|
|
23738
|
+
category: ESimulationErrorCategoryRest_2_0;
|
|
23739
|
+
message?: string;
|
|
23740
|
+
technicalDetails?: string;
|
|
23741
|
+
}
|
|
23742
|
+
export interface ISuccessRateRest_2_0 {
|
|
23743
|
+
percentage: number;
|
|
23744
|
+
fraction: string;
|
|
23745
|
+
achieved: number;
|
|
23746
|
+
total: number;
|
|
23747
|
+
}
|
|
23748
|
+
export interface ISuccessCriterionResultRest_2_0 {
|
|
23749
|
+
criterion: ISuccessCriteriaRest_2_0;
|
|
23750
|
+
achieved: boolean;
|
|
23751
|
+
reason: string;
|
|
23752
|
+
}
|
|
23610
23753
|
export interface ISimulationRunRest_2_0 {
|
|
23611
23754
|
id: string;
|
|
23612
23755
|
organisationReference: string;
|
|
@@ -23615,15 +23758,21 @@ export interface ISimulationRunRest_2_0 {
|
|
|
23615
23758
|
simulationRunBatchReference: string;
|
|
23616
23759
|
sequence: number;
|
|
23617
23760
|
largeLanguageModelReferenceId: string;
|
|
23761
|
+
endPointType?: string;
|
|
23618
23762
|
turns: ITurnRest_2_0[];
|
|
23619
23763
|
totalTurns: number;
|
|
23764
|
+
maxTurns?: number;
|
|
23620
23765
|
successCriteria: ISuccessCriteriaRest_2_0[];
|
|
23621
23766
|
metrics: {
|
|
23622
23767
|
sentiment: ESentimentTypeRest_2_0;
|
|
23623
|
-
outOfScope: string;
|
|
23624
|
-
efficiency: number;
|
|
23625
|
-
topic: string;
|
|
23626
23768
|
success: boolean;
|
|
23769
|
+
results?: ISuccessCriterionResultRest_2_0[];
|
|
23770
|
+
successRate?: ISuccessRateRest_2_0;
|
|
23771
|
+
summary?: string;
|
|
23772
|
+
isBatchStopped?: boolean;
|
|
23773
|
+
isConversationEnded?: boolean;
|
|
23774
|
+
errorInfo?: ISimulationErrorInfoRest_2_0;
|
|
23775
|
+
status?: ESimulationStatusRest_2_0;
|
|
23627
23776
|
};
|
|
23628
23777
|
createdAt: number;
|
|
23629
23778
|
createdBy: string;
|
|
@@ -23639,30 +23788,63 @@ export declare type TSimulationRunBatchStatusRest_2_0 = typeof SimulationRunBatc
|
|
|
23639
23788
|
export interface IBatchSuccessCriteriaOverview_2_0 extends ISuccessCriteriaRest_2_0 {
|
|
23640
23789
|
percentage: number;
|
|
23641
23790
|
}
|
|
23791
|
+
export interface IEfficiencyScoreRest_2_0 {
|
|
23792
|
+
label: string;
|
|
23793
|
+
start: number;
|
|
23794
|
+
end: number;
|
|
23795
|
+
counter: number;
|
|
23796
|
+
}
|
|
23797
|
+
export interface IAverageSuccessRateForRunsRest_2_0 {
|
|
23798
|
+
percentage: number;
|
|
23799
|
+
fraction: string;
|
|
23800
|
+
achieved: number;
|
|
23801
|
+
total: number;
|
|
23802
|
+
average: number;
|
|
23803
|
+
}
|
|
23804
|
+
export interface IBatchMetricsRest_2_0 {
|
|
23805
|
+
_v: number;
|
|
23806
|
+
efficiencyScore?: IEfficiencyScoreRest_2_0[];
|
|
23807
|
+
turnsDistribution?: IEfficiencyScoreRest_2_0[];
|
|
23808
|
+
successRate?: number;
|
|
23809
|
+
averageSuccessRateForRuns?: IAverageSuccessRateForRunsRest_2_0;
|
|
23810
|
+
successCriterias?: IBatchSuccessCriteriaOverview_2_0[];
|
|
23811
|
+
averageTurns?: number;
|
|
23812
|
+
averageSentiment?: string;
|
|
23813
|
+
runResults?: {
|
|
23814
|
+
succeeded: number;
|
|
23815
|
+
failed: number;
|
|
23816
|
+
notExecuted?: number;
|
|
23817
|
+
};
|
|
23818
|
+
}
|
|
23642
23819
|
export interface ISimulationRunBatchRest_2_0 {
|
|
23643
23820
|
id: string;
|
|
23821
|
+
_id: string;
|
|
23644
23822
|
name: string;
|
|
23645
23823
|
status: TSimulationRunBatchStatusRest_2_0;
|
|
23646
23824
|
numberOfExecutions: number;
|
|
23647
|
-
successRate?: number;
|
|
23648
|
-
efficiency?: number;
|
|
23649
23825
|
simulationReference: string;
|
|
23650
23826
|
projectReference: string;
|
|
23651
23827
|
organisationReference: string;
|
|
23828
|
+
endPointType?: string;
|
|
23652
23829
|
runConfig: {
|
|
23653
23830
|
flowReferenceId: string;
|
|
23654
23831
|
localeReferenceId?: string;
|
|
23655
23832
|
entrypoint: string;
|
|
23833
|
+
largeLanguageModelReferenceId: string;
|
|
23834
|
+
userId?: string;
|
|
23835
|
+
finalPing?: number;
|
|
23836
|
+
};
|
|
23837
|
+
simulationFrozen: {
|
|
23838
|
+
persona: string;
|
|
23839
|
+
personaName: string;
|
|
23840
|
+
mission: string;
|
|
23656
23841
|
};
|
|
23657
23842
|
createdAt: number;
|
|
23658
23843
|
createdBy: string;
|
|
23659
|
-
largeLanguageModelReferenceId: string;
|
|
23660
23844
|
updatedAt?: number;
|
|
23661
23845
|
completedAt?: number;
|
|
23662
23846
|
expiresAt?: Date;
|
|
23663
|
-
batchMetrics?:
|
|
23664
|
-
results?: IBatchSuccessCriteriaOverview_2_0[];
|
|
23665
|
-
};
|
|
23847
|
+
batchMetrics?: IBatchMetricsRest_2_0;
|
|
23666
23848
|
}
|
|
23667
23849
|
export interface IIndexSimulationRunBatchesRestDataQuery_2_0 {
|
|
23668
23850
|
projectId: string;
|
|
@@ -23742,7 +23924,7 @@ export interface IMissionType_2_0 {
|
|
|
23742
23924
|
}
|
|
23743
23925
|
export interface SuccessCriteria {
|
|
23744
23926
|
name: string;
|
|
23745
|
-
|
|
23927
|
+
text: string;
|
|
23746
23928
|
}
|
|
23747
23929
|
export interface IPersonaType_2_0 {
|
|
23748
23930
|
name: string;
|